Majority of the users must be using their little Raspberry Pi computer headless (without any keyboard, mouse or display attached), and while SSH is a great option for Linux users feeling comfortable with command line other users need an graphical user interface. Here is an quick tutorial to remotely access your Raspberry Pi's desktop remotely over an network.
- There are many VNC server options available but I prefer X11VNC as it provides access to the same LXDE desktop session as live on RPi, unlike tightvncserver which creates a new virtual desktop session for each connection.
- To install X11VNC server SSH into your RasPi and use - sudo apt-get install x11vnc.
- Now use x11vnc -storepasswd and set your VNC access password.
- Now, we need to make X11VNC server start with LXDE, to do that use following commands at terminal.
- Now paste following :
Exec=x11vnc -forever -usepw -display :0 -ultrafilexfer
- Save the above file by using - Ctrl-X, Y,
- This will auto start our VNC server every time LXDE starts, make sure you have "Boot to desktop" option configured using "sudo raspi-config" to get this working flawlessly after reboot.
- By default X11VNC uses lower resolution, uncomment hdmi_force_hotplug=1 in /boot/config.txt followed by an reboot to fix that.