Skip to content

Instantly share code, notes, and snippets.

Last active Mar 19, 2020
What would you like to do?
x11vnc setup solution, Ubuntu 18.04 LTS

Make and Make install

See x11vnc stack smashing detected solution

Recommended version: x11vnc: 0.9.14 lastmod: 2013-11-21


Set desktop to auto login and prevent screen locking .. else you will need to deal with Xauth

Test run x11vnc

/usr/local/bin/x11vnc -forever -display :0

Create a password

x11vnc -storepasswd

or use -localhost when starting service and use an ssh tunnel instead

Setup service at /lib/systemd/system/x11vnc.service

sudo systemctl daemon-reload
sudo systemctl enable x11vnc
sudo systemctl start x11vnc
ExecStart=/usr/bin/x11vnc -forever -display :0 -rfbauth /home/[USERNAME]/.vnc/passwd
ExecStop=/usr/bin/killall x11vnc

This comment has been minimized.

Copy link

@likaci likaci commented Mar 19, 2020

with default gnome desktop

Description=Start x11vnc at startup.

ExecStart=/usr/bin/x11vnc -forever -display :0 -rfbauth /etc/x11vnc.pass -auth /run/user/1000/gdm/Xauthority

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment