Enabling VNC Remote Access#

To install/run x11vnc:

$ sudo apt update
$ sudo apt install x11vnc

VNC command when running X server manually:

$ sudo x11vnc -display :0 -noxrecord -noxfixes -noxdamage -forever -loop –nopw

VNC command when running full desktop:

  1. Configure the target desktop for auto login:

$ sudo vi /etc/gdm3/custom.conf
  1. Uncomment/edit the following lines as shown below:

# Enabling automatic login
  AutomaticLoginEnable = true
  AutomaticLogin = <user>
  1. Save/exit the file and restart the gdm service:

$ sudo systemctl restart gdm3.service
  1. Start the VNC server:

$ sudo x11vnc -display :0 -noxrecord -noxfixes -noxdamage -forever -loop -nopw -auth /run/user/1000/gdm/Xauthority