VNC remote control your Raspberry Pi – Part 2
My recent article was about VNC on your Raspberry Pi. I showed you how to set up a VNC server and how to connect to it from a VNC client program. The problem is, that after a reboot, you have to start a VNC session manually from command line. This has to be changed.
We start at our home directory. There we jump into the hidden config directory:
There we create a new folder ‚autostart‘ and move into that folder:
mkdir autostart cd autostart
The last thing we have to do is to create a new file with commands, that automatically start our VNC server during booting. Here is how it works:
we add the following lines to the new file:
[Desktop Entry] Type=Application Name=TightVNC Exec=vncserver :1 StartupNotify=false
Save it and you are done. After each reboot of the graphical mode, your VNC server is also started.