VNC

How to connect to the GDM X session via VNC

There're quite a few howtos on the topic already, but most involve a lot more steps than what I've found. If you need a quick&dirty way to connect to the already running GDM, here's how to do it (ssh into the server and run as root):
$ apt-get install x11vnc
(...)
$ ps ax | egrep '(auth.*gdm|gdm.*auth)'
6022 tty7     Ss+    0:10 /usr/X11R6/bin/X :0 -br -audit 0 -auth /var/lib/gdm/:0.Xauth -nolisten tcp vt7
11322 pts/8    S+     0:00 egrep (auth.*gdm|gdm.*auth)
# Take the display and the auth file from the gdm command line above.
$ x11vnc -forever -display :0 -auth /var/lib/gdm/:0.Xauth

Now you can use your VNC client to connect to the VNC server which is most probably running on the standard 5900 port.

How to pop up the menu of vncviewer when working in full-screen mode in Linux

It caused me a bit of headache, because the Ctrl+Shift+Esc combo (that I got used to in Windows) does not work. I tried to look up the solution in Google (on how to exit full-screen mode), but did not find anything relevant. Shocked Eventually I've found the answer in the manpage of vncviewer, somewhere near its end. The description of the -MenuKey option contained that the default key to bring up the vncviewer menu is F8. Smiling

Syndicate content