Please help me to install X11 VNC VIEWER with graphical login screen in 18.04 and above.
1 Answer
- sudo apt-get update
- sudo apt-get install lightdm
#Click on OK and select lightdm in gui
- sudo reboot
- sudo apt-get install x11vnc
- 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
- systemctl daemon-reload
- systemctl enable x11vnc.service
- 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.