sudo apt-get install tightvncserver
vncserver :1 -geometry 1280x800 -depth 16 -pixelformat rgb565
- Set up a password for access (optional)
sudo vi /etc/init.d/tightvncserver
- Paste the contents of the file below (
tightvncserver.sh
) into this new file.
sudo chmod 755 /etc/init.d/tightvncserver
sudo update-rc.d tightvncserver defaults
Done.
The script is missing a shebang. The following line should be inserted above line 1:
#! /bin/sh