Access your Raspberry-Pi through any Browser with VNC

Jul 9, 2012 22:18 · 205 words · 1 minute read

The other day I set up Ubuntu in a virtual Machine to do some preparation work before deploying a similar setup in Amazon’s EC2. This basically included programming some Java in Eclipse. When I had to show some stuff to a colleage, I found a quick trick to share a screen remotely on Lifehacker.

This also works well, if you don’t have a screen for your Raspberry or want to access some work files, while on the road. First you need to install the necessary packages

[cc lang=“bash” width=“100%” noborder=“1” line_numbers=“on” theme=“dawn”]
sudo apt-get install x11vnc vnc-java

Then just set a password. Username is not required.
[cc lang=“bash” width=“100%”  noborder=“1” line_numbers=“on” theme=“dawn”]
x11vnc -storepasswd
Now start VNC with
[cc lang=“bash” width=“100%”  noborder=“1” line_numbers=“on” theme=“dawn”]
x11vnc -forever -usepw -httpdir /usr/share/vnc-java/ -httpport 5800
Now you can try accessing your Raspberry Pi on the local network on http://raspberry-pi:5800. If you want outside access, you could either forward the necessary ports or maybe use IPv6, if already supported from your provider.

The port for plain vanilla VNC is 5400 and works with the same password. For Mac OSX, Chicken of the VNC is a good client. For extra security, you should add SSL to the VNC-connection.