FreeNX is an open source alternative to NoMachine’s NX Server. This means super speedy remote desktop access over SSH; I was streaming audio, surfing the web, chatting, checking email at home and doing the same via the nxclient on my work machine without any noticeable lag on the remote box.
There were however some hoops to jump through, so I chronicle them here.
Server: (aka work/remote machine)
To make things a bit easier you will want to add these install media.
urpmi.addmedia mirrors.usc.edu_devel_contrib-i586 rsync://mirrors.usc.edu/mandrakelinux/devel/cooker/i586/media/contrib/
urpmi.addmedia mirrors.usc.edu_devel_contrib-x86_64 rsync://mirrors.usc.edu/mandrakelinux/devel/cooker/x86_64/media/contrib/
By the way; rsync media seems to be less popular, and less likely to be flooded with a bunch of people, than FTP media.
Next install freenx via urpmi:
urpmi freenx
Along with the freenx package this will also install its dependencies; nxagent, libnxX11_0, and nxproxy.
Then do the following:
chmod 640 /var/lib/nxserver/nxhome/.ssh/client.id_dsa.key
Rename the following to stay more in line with standards:
mv /var/lib/nxserver/nxhome/.ssh/authorized_keys2 /var/lib/nxserver/nxhome/.ssh/authorized_keys
cat ~augie/.ssh/authorized_keys2 >> ~augie/.ssh/authorized_keys .
Add the user(s):
nxserver –adduser augie
nxserver –passwd augie
I keep sshd pretty tight, so this may or may not be needed for you.
Add ListenAddress 127.0.0.1 to /etc/ssh/sshd_config if need be.
Client: (aka home)
urpmi nxclient
Copy /var/lib/nxserver/nxhome/.ssh/client.id_dsa.key from server to /usr/NX/share/client.id_dsa.key on the client
chmod 644 /usr/NX/share/client.id_dsa.key
Run nxclient –wizard as root.
Copy /root/.nx to ~augie/ .
chown -R augie:augie ~augie/.nx/
Edit ~augie/.nx/nxclient.conf