Skip to content

Instantly share code, notes, and snippets.

@dotmanila
Created October 8, 2018 17:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dotmanila/65b1b22e693cefdf1b20a552c46d1893 to your computer and use it in GitHub Desktop.
Save dotmanila/65b1b22e693cefdf1b20a552c46d1893 to your computer and use it in GitHub Desktop.
Start x11vnc on Xubuntu Bionic
# LightDM greeter uses display :2 so we have ti login first
sudo x11vnc -auth /var/run/lightdm/root/:2 -forever -shared -rfbauth /home/revin/.vnc/passwd \
-rfbport 5900 -xkb -norc -noxrecord -noxdamage -nomodtweak -desktop :2 -display :2
# Once logged in, we can connect to the desktop
sudo x11vnc -auth /var/run/lightdm/root/:0 -forever -shared -rfbauth /home/revin/.vnc/passwd \
-rfbport 5900 -xkb -norc -noxrecord -noxdamage -nomodtweak -desktop :0 -display :0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment