Raspberry PI VNC Server
I’ve found many different articles on how to setup a VNC Server on a Raspberry PI and so far none of them achieve what I need, a VNC server on the the default :0 desktop. While I’m sure there are several ways to do this I’ve found that using the x11vnc package works best for me.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# Update your apt sources and install the package sudo apt-get update sudo apt-get install x11vnc # Setup your VNC password x11vnc -storepasswd # If you don't already have a directory under ~/.config/ named autostart create it mkdir ~/.config/autostart # Create the autostart file so x11vnc will start at boot using your choice of text editor (nano) nano ~/.config/autostart/x11vnc.desktop # Paste this into the file: [Desktop Entry] Encoding=UTF-8 Type=Application Name=X11VNC Comment= Exec=x11vnc -forever -usepw -display :0 -ultrafilexfer StartupNotify=false Terminal=false Hidden=false |
Now reboot and you will have a VNC server running on display :0 instead of :1 like most of the other tutorials out there recommend to do.