X11vnc

From ArchWiki

Jump to: navigation, search

WARNING: This will set up VNC with NO PASSWORD. This means that ANYBODY who has access to the network the computer is on CAN SEE YOUR XSERVER. It is a fairly simple matter to tunnel your VNC connection through SSH to avoid this.

Contents

[edit] Setting up x11vnc

[edit] Install

pacman -Sy x11vnc

[edit] Starting

You need to have a X server running first. Use startx or similar. After that you can run

[edit] startx

x11vnc -display :0 -auth ~/.Xauthority

if that fails, you may have to run (as root)

x11vnc -display :0 -autho /home/USER/.Xauthority

where USER is the username of the user who is running the X server.

[edit] GDM

as root, run

x11vnc -display :0 -auth /var/lib/gdm/:0.Xauth

[edit] Accessing

Get a VNC client on another computer, and type in the IP address of the computer running x11vnc. Hit connect, and you should be set.

[edit] SSH Tunnel

You need to have SSH installed and configured.

Use the -localhost flag to x11vnc to have it bind to the local interface. Once that is done, you can use SSH to tunnel the port, and then connect to VNC through SSH. (I haven't tried this)

Personal tools