Installing FreeNX on Mandriva 2005 LE

Add the Cooker main and contrib media sources.

urpmi freenx nxagent nxproxy nxviewer libnxX11_0-1.4.0-3mdk

Disable the Cooker media sources to avoid installing other packages from the Cooker repositories. Cooker repositories should only be used in the stable (official) distro when you are absolutely certain of what you are doing. In the case of freenx, there are very few dependencies and certainly none that require upgrading critical packages like rpm and urpmi so it is fairly safe to install from Cooker.

nxserver --adduser someuser
nxserver --passwd someuser

Copy /var/lib/nxserver/nxhome/.ssh/client.id_dsa.key to the client.

If you have to connect to multiple NX servers, the FreeNX client cannot manage multiple keys so you will have to wrap the nxclient in a shell script to copy the appropriate key to /usr/NX/share/client.id_dsa.key

e.g.

#!/bin/sh
# Used to connect to server1

cp -f ~/projects/nx/keys/server1.nxclient.id_dsa.key /usr/NX/share/client.id_dsa.key
nxclient &

Test to ensure that the client can connect to the server without being prompted for a password by doing:

ssh -i projects/nx/keys/server1.nxclient.id_dsa.key nx@server1

You may find that you cannot connect as the account for the user "nx" is locked. Do:

passwd nx

and assign a very strong passphrase to it. You will never have to enter this as authentication is done via PKI.

service vncserver start

Make sure that the user "someuser" that you set up above is running vncserver.

The client should now be able to connect.