8.3. Using FreeNX to Run Linux from Windows

You want the ability to remotely access a Linux box from your Windows PC. You have some Linux applications you want to use that are not available on Windows, or there are times when all you have is a Windows box to do your remote Linux administration from.

Additionally, you want a full graphical session to run satisfactorily over a slow link, even dial-up, and you want to be able to use the Linux desktop or window manager of your choice.

You don't want much! Fortunately, FreeNX was designed just to fulfill these needs. Follow these steps to get up and running.

If you try to connect to the server and get the error message: "Unable to create the X authorization cookie," it means Nxclient is looking in the incorrect location for the xauth program. Fix this by creating a symlink:

	# cd /usr/X11R6/bin
	# ln -sf /usr/bin/xauth

When NoMachine released its 2.0 versions, it left FreeNX behind. FreeNX 1.5 doesn't work with NoMachine 2.0 clients without a bit of tweaking, and even then, it may not work reliably. At the time this was written, you could download older NoMachine clients from Industrial-Statistics.com: http://www.industrial-statistics.com/info/nxclients?IndStats=47ebcaa422e76eba8af14a1b6f31d971.

Another option is to modify FreeNX 1.5 to work with the NoMachine 2.0 client. See FreeNX FAQ/Problem Solving: http://openfacts.berlios.de/index-en.phtml?title=FreeNX_FAQ/Problem_Solving.

Nxclient, by default, enters the name of the current Windows user on the Nxclient login screen, with the first letter capitalized. Linux logins are case-sensitive, so beware. You may log in as any FreeNX user; it doesn't matter which Windows login is active.

You may save your password in the Nxclient login; this is convenient, but an obvious security risk.

Enabling SSL encrypts all traffic, and is good to use all the time.

You'll probably want to increase the font size used in the logfiles; the default is nearly unreadable. Do this on the Environment tab; open "NX Client For Windows," then click the Configure button to get to all the configuration tabs.

You may use any desktop environment or window manager, as long as it is installed on the FreeNX server. However, when this was written, selecting anything other than KDE or Gnome didn't work correctly.

When a new user is added to the FreeNX server, the user key is copied from /etc/nxserver/users.id_dsa.pub to /home/user/.ssh/authorized_keys2.

FreeNX user's passwords are hashed and stored in /etc/nxserver/passwords.