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.
Recent comments
1 day 20 hours ago
1 day 20 hours ago
4 days 20 hours ago
4 days 22 hours ago
6 days 15 hours ago
6 days 15 hours ago
1 week 1 day ago
1 week 3 days ago
2 weeks 4 days ago
2 weeks 4 days ago