How to install X11 (VNC VIEWER) in Ubuntu 18.04 and above to take system in remote with graphical interface?

Please help me to install X11 VNC VIEWER with graphical login screen in 18.04 and above.

1 Answer

  1. sudo apt-get update
  2. sudo apt-get install lightdm

#Click on OK and select lightdm in gui

  1. sudo reboot
  2. sudo apt-get install x11vnc
  3. sudo nano /lib/systemd/system/x11vnc.service

#Next copy below and save

[Unit] Description=x11vnc service After=display-manager.service network.target syslog.target

[Service] Type=simple ExecStart=/usr/bin/x11vnc -forever -display :0 -auth guess -passwd password ExecStop=/usr/bin/killall x11vnc Restart=on-failure

[Install] WantedBy=multi-user.target

  1. systemctl daemon-reload
  2. systemctl enable x11vnc.service
  3. systemctl start x11vnc.service

Note : Password will be password by default you can change by editing x11vnc service. if you change password restart the service.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like