Lasersköld

2013-02-20

#teknik

Remote desktop on my Raspberry Pi

Since I don't have a screen, a hdmi-cable, and no TV, I've used to just access my Pi from an ssh shell in my terminal. I don't have any practical use of accessing my raspberry visually when all functionality I need can be used through the terminal. When I first started my Pi, I disabled the X-system so it should not use unnecessary resources.

I did it anyway, just for fun. Here's how:

First I installed a vnc-server on the raspberry pi according to this tutorial (on my Raspberry Pi).

sudo apt-get install tightvncserver

Then to run the server I simply ran

vncserver :1 -geometry 640x480 -depth 24

That was not according to the video, but it worked anyway. It started an x-server on :1 with the given dimensions and a color depth of 24 bits. Now with the server up and running, all I had to do was to connect to it from my laptop.

To get the ip-address from my Pi I used ifconfig.

ifconfig

According to this link, the standard vnc-server for Ubuntu (that I use) is vinagre. So I installed it (on my desktop computer):

sudo apt-get install vinagre

And then start it. Configurations were quite self-explanatory. Here's how it looks

vnc-settings.png

And tataaaa! A running vnc-client on my desktop.

pi+vnc.png


Andra inlägg från bloggen

2024

Använda cpp som ett skriptspråk (2024-12-03)

Mekaniskt tangentbord Lasersköld L1 del 1 (2024-11-14)

Alphasmart neo 2 font editor (2024-10-11)

Bloggen är äntligen fyttad (2024-09-24)

2022

Figurer i skuggan (2022-06-04)

2018

prestandatest pa morgonen c (2018-11-21)

2017

Framsteg och frustration (2017-08-31)

2015

fix audacity startup bug on ubuntu 1510 (2015-11-24)

git subtree (2015-06-21)

add native code to android studio (2015-06-21)

2014

Ingenting (2014-11-08)

Äldre inlägg...