Install VNC and Auto Start
First of all, make sure you expand the SD card – you don’t want to run out of space!
- apt-get install tightvncserver
- Yes, you want it to install, so accept the space it tells you it’s going to use!
- It’ll go through the usual install procedure and eventually put you back at the shell prompt.
- tightvncserver :1
- (This will create a few files it needs to run)
- Set a password when it asks. Don’t bother with a view password unless you really want one – it’s just a pain.
- Edit the /etc/rc.local file and add the following before the ‘exit’ command at the bottom.
- sudo -u root /usr/bin/vncserver :1 -geometry 1024×768 -depth 16 -pixelformat rgb565 -fp /usr/share/fonts/X11/misc/,/usr/share/fonts/X11/Type1/,/usr/share/fonts/X11/75dpi/,/usr/
- Save the file, back to the prompt you go.
- This will mean that your VNC server starts up before you need to login on port 1 and a screen size of 1024×768.
- Reboot. Watch that magic happen. Dude. S’up.
The reason you do sudo is that it needs to know who to run the server as – remember, you’re not logged in before the login prompt comes up!
Now, you should be able to reboot and connect to the VNC server from your laptop, for instance.
You’ll need to download the Tight VNC viewer to do this.