NX is a secure, compressed protocol for remote X Window System connections. You can use nx if you need to run graphical applications on Hoffman2 Cluster from a local Windows machine. There are free NX clients available from NoMachine (www.nomachine.com) for Windows, Linux, Mac OSX, and Solaris. This page describes detailed procedures for Windows. Procedures for other NX clients are similar.
The NX Client for Windows Setup Wizard will start. The rest of this page presumes you have accepted all the setup defaults. Detailed information on NX Client for Window configuration is available at http://www.nomachine.com/documents/configuration/client-guide.php
Configuration requires a copy of the Hoffman2 NX client key file. You may want to obtain a copy of this file before proceeding.
Login: your-Hoffman2-Cluster-login_id Password: your-Hoffman2-Cluster-login-password Session: Hoffman2
Host: hoffman2.idre.ucla.edu Port: 22
Delete the contents of the window that appears (the DSA key). Either paste into it the contents of the file /etc/nxserver/client.id_dsa.key from the Hoffman2 Cluster, or click the Import button to select a local file that contains a copy of that key.
Select type of your internet connection. ADSL (default)
Unix
GNOME
NEW KEY December 1, 2011. There is a new key for the new nxserver that was installed along with CentOS 6. If your NX client is configured with the old key, you will need to reconfigure it in order to connect to Hoffman2.
Use an scp or sftp client program on your local machine to download this file. For example:
scp login_id@hoffman2.idre.ucla.edu:/etc/nxserver/client.id_dsa.key .
The above command will save a copy of client.id_dsa.key in your current directory.
Or, use an ssh local client to login to Hoffman2 and display the key file, and copy-and-paste it to a text file on your Windows machine (e.g., a Notepad file).
If you don't have another local ssh client on your desktop, you can use nxssh. To connect to Hoffman2 Cluster with nxssh, do the following.
Start -> Programs -> Accessories -> Command Prompt
In the Command Prompt window, enter:
cd C:\Program Files\NX Client for Windows\bin
nxssh -l login_id hoffman2.idre.ucla.edu
At the Hoffman2 shell prompt, enter:
cat /etc/nxserver/client.id_dsa.key
Copy and paste the key text into a text file. For example, open Notepad and paste the entire text of the key file including the lines:
-----BEGIN DSA PRIVATE KEY-----
-----END DSA PRIVATE KEY-----
The default TestDrive key that comes with NX is located in
C:\Program Files\NX Client for Windows\share\keys\server.id_dsa.key
Start the NX Client for Windows from the Start menu:
Start -> Programs -> NX Client for Windows -> NX Client for Windows
or, click NX Client for Windows desktop icon. (C:\Program Files\NX Client for Windows\bin\NXWin.exe)
Enter your Hoffman2 Cluster login id and password in the pop-up window.
Click the Login button.
http://www.ats.ucla.edu/clusters/hoffman2/head_node_access
Windows Security Alert
To help protect your computer, Windows Firewall has blocked some feature of this program. Do you want to keep blocking this program?
Name: nxclient
[Keep blocking] [Unblock] [Ask me later]
After you have logged in to Hoffman2 and the gnome desktop is displayed, select:
Applications -> Accessories -> Terminal
From the gnome desktop, select:
System -> Log Out login_id ...
A small window will open. Click the Log Out button.
Logging out will close the NX Client for Windows program.
December 2011