New favorite x11vnc

home | blog | Terrible people and places | Covid-19 links | Teh Internet | guest blog |rants | placeholder | political | projects | Gwen and Liam | Citadel patched | Tools | Scouts

Ever want to skip all the usual messy setup for sharing the console X session?
Give x11vnc a go.

Better write-up here than I will do:

Just do this:

If starting up remotely -- i.e. just up and down use to see the console:

 (set a password first using x11vnc -storepasswd)

root@host:~# x11vnc -display :0 -xkb -usepw -forever &

Which gives you access to the console x session while the server is running.

To specify the port, just add:
 -rfbport 5910

If you need the current session, just tack on the auth file:
root@host:~# x11vnc -display :0 -xkb -usepw -forever -rfbport 5910 -auth /var/lib/xdm/authdir/authfiles/A\:1234567890 (or whatever the name you have)....

That will give you server:10 for the connection number.

Note: If you use a gdm / kdm / whatever login manager, you will loose your x11vnc server when you move on to the actual desktop X session and will need to re-run the command above.
for more fun...
apt-get install lxde xinit
chuck autologin=username in /etc/lxdm/lxdm.conf
chuck a file called autostart in /home/user/.config/lxsession/LXDE and put in programs to auto start. chmod it executable? make dirs as needed.
make sure x will start: