FreeNX: My New Best Friend
FreeNX is the free open source version of nomachine.org NX software. It is a VNC like program that tunnels over SSH and has compression to run well and at high resolutions over even slow internet links. This program has many advantages over the VNC protocol. The biggest is security, it is built into the program from the ground up. All connections are encrypted and tunneled over SSH by default with FreeNX. FreeNX is also faster by a huge factor over VNC this is a real plus on slow connections.
I use FreeNX for remote server administration and also for troubleshooting network issues. It also allows me to use web applications remotely that I would not normally like to have on the open internet (think NTOP). It is basically a drop in replacement for VNC in most cases.
To install in Redhat EL 5.1 or CentOS 5.1 a simple yum install freenx is all that is required. Next step is to install a client version on the computer you want to connect from. I am using Ubuntu so all I had to do was visit nomachine.org and download the .deb file and install it.
Configuration can be a little tricky. First off you have to import the SSH key to the client machine. I just copied the /etc/nxserver/client.id_dsa.key file to the client machine and then imported into FreeNX. More information on configuration and importing a key can be found at http://fedoranews.org/contributors/rick_stout/freenx/.
The last snag the I ran into with FreeNX is that FreeNX expects a GNOME, KDE, CDE or XDM window manager. Since my servers do not run any of those environments I had to use the custom option to allow me to use XFCE. To do that I went to the NX client wizard and entered in the required information.
For the Desktop I choose the custom option. I then clicked settings off to the right.
In the settings dialog I chose the “Run the following command” radio button and in the box below I entered in “startxfce4” without the quotes.
In the options box below I selected the “New virtual desktop” radio button. After clicking ok and saving the information all that was left was to enter my password and enjoy my fast and secure remote desktop.