Install TightVNC Server

You will be prompted to confirm installation by typing “Y’ and finally when installation is complete, you should see the following:

We now need to run the VNC Server, so enter the following command into your SSH window:

You will be prompted to enter and confirm a password. It would make sense to use “raspberry” for this, but passwords are limited to 8 characters, so I use “raspberr”. Note that this is the password that you will need to use to connect to the Raspberry Pi remotely.
You will also be asked if you want to create a separate “read-only” password – say no.
From now on, the only command that you need to type within your SSH to start the VNC server will be

The VNC server is now running and so we can attempt to connect to it.

Autostart Server

Open a Terminal session on the Pi, or connect using SSH. A new terminal or SSH session will automatically start you off in your home directory of /home/pi. If you are not in this directory, change to it by typing:

Then cd to the .config directory by typing:

Note the ‘.’ at the start of the folder name. This makes it a hidden folder that will not show up when you type ‘ls’.

Issue the command below to create a new directory inside .config called ‘autostart’.

cd into that new directory by typing:

All that remains is to edit a new configuration file. So type the following command to open the nano editor on the new file:

Edit the contents of the file with the following text.

Type ctrl-X and then Y to save the changes to the file.
Thats all there is to it. The next time you reboot the VNC server will restart automatically.

(Visited 76 times, 1 visits today)