Skip to main content

Command Palette

Search for a command to run...

Install a VNC server on Debian based distros

Updated
1 min read

TLDR:

$ sudo apt update
$ sudo apt install lightdm
$ sudo reboot
$ sudo apt install x11vnc

$ sudo nano /lib/systemd/system/x11vnc.service

!Copy and paste these commands - change the password
[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

!Save file and run these commands:

$ systemctl daemon-reload
$ systemctl enable x11vnc.service
$ systemctl start x11vnc.service
$ systemctl status x11vnc.service

Resources:

  • https://www.crazy-logic.co.uk/projects/computing/how-to-install-x11vnc-vnc-server-as-a-service-on-ubuntu-20-04-for-remote-access-or-screen-sharing
  • https://youtu.be/3K1hUwxxYek - [Ubuntu VNC Server - David Bombal]
  • https://youtu.be/633OWaW3cyo - [Linux Desktop in the Cloud Tutorial | Create and Access From Anywhere - LearnLinuxTV - Linode]

More from this blog

Mensah David Assigbi's personal IT blog

28 posts