Quick and dirty way to remotely connect to GDM

This is a quick & dirty way how to remotely connect to another machine on the same network (and start a gnome user session via GDM if needed).

First ssh to the host where you want to be able to connect to and install the x11vnc package:

[user@server ~]$ sudo yum install x11vnc

Run the installed x11vnc server:

[user@server ~]$ sudo x11vnc -display :0 -auth guess

Connect to the the remote desktop from your machine:

[user@machine ~]$ vncviewer 192.168.1.100


This is dirty  because of this:

#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#
#@                                                           @#
#@  **  WARNING  **  WARNING  **  WARNING  **  WARNING  **   @#
#@                                                           @#
#@        YOU ARE RUNNING X11VNC WITHOUT A PASSWORD!!        @#
#@                                                           @#
#@  This means anyone with network access to this computer   @#
#@  may be able to view and control your desktop.            @#
#@                                                           @#
#@ >>> If you did not mean to do this Press CTRL-C now!! <<< @#
#@                                                           @#
#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#

 

So use this with CAUTION!!!

More info about how to secure the connection can be found in the disclaimer printed on screen after running the server.