How to share your desktop via x11vnc

From PeerFreedom Wiki
Jump to navigation Jump to search

Install it via:

# apt-get install x11vnc

Run with ssh tunnel (recommended)

# x11vnc -safer -viewonly -shared -loop -nopw -localhost -display :0 -auth /home/<username>/.Xauthority

In case you use LightDM as display manager you could use:

# x11vnc -safer -viewonly -shared -loop -nopw -localhost -display :0 -auth /var/run/lightdm/root/\:0

Run with IP whitelist (otherwise)

# x11vnc -safer -viewonly -shared -loop -nopw -display :0 -auth /home/<username>/.Xauthority -allow <ip>

In case you use LightDM as display manager you could use:

# x11vnc -safer -viewonly -shared -loop -nopw -display :0 -auth /var/run/lightdm/root/\:0 -allow <ip>

Firejail

If you are sandboxing your application with Firejail and Xephyr, you could use DISPLAY id from firemon --x11 command.