Auto Start VNC on Raspberry PI boot up

Quick tip :
To have a VNC server automatically start when your Raspberry Pi boots up follow these steps.


Install VNC

First off make sure you have a vnc server installed. I used tightvnc because it hasent let me down yet.

$ sudo apt-get install tightvncserver

Now start the VNC server process with :

$ tightvncserver

ou can start now start a session with

$ vncserver :1 -geometry 1024x728 -depth 24

Configure Auto Start

Go to your “/home/pi/.config” directory.
Create a directory called “autostart”
Inside that directory create a file called “tightvnc.desktop”

$ vi tightvnc.desktop

Then paste the following and after a reboot you should be good to go.

[Desktop Entry]


Exec=vncserver :1


Lastly if you plan on doing any work with the GPIO pins be sure you have the latest package!

$ sudo apt-get install python-RPi.GPIO