NX NoMachine Remote Control of SLES Server
NX NoMachine (Free Edition) is a great tool to take remote control of a Linux server desktop. Summary of steps for setup:
- Install RPMs
- Create new key with nxserver –keygen
- Transfer keys to Client
- Install client software on your system
- Start the service: sudo nxserver –restart
Download and install the nxclient, nxnode, and nxserver rpm packages for your architecture:
sudo rpm -i nxclient-xx.i386.rpm sudo rpm -i nxnode-xx.i386.rpm sudo rpm -i nxserver-xx.i386.rpm
Download the Windows/Mac NoMachine NX client for your desktop.
Create a new ssh key pair in /usr/NX/share/keys/:
sudo /usr/NX/bin/nxserver --keygen
chmod 640 /usr/NX/home/nx/.ssh/authorized_keys2
Now we’ll need to copy the secure key that was generated onto the client machines so that your NX client can use it.
The key on the server is located in: /usr/NX/share/keys/default.id_dsa.key.
For Windows client machines, you will need to copy the key to “C:\Program Files\NX client\Windows\share\keys\” with a distinct name. Later you can point to the appropriate key in your NX Client config. On Mac, you can create an NX folder under your home folder and scp the key with an appropriate naming convention to remember which server it is for.
Use /usr/NX/bin/nxserver –help to see options.
Config file: /usr/NX/etc/server.cfg (though I didn’t have to edit anything here by default)
If using TCP-wrappers:
Add sshd: 127.0.0.1, <yoursubnet> to hosts.allow
sudo /usr/NX/bin/nxserver --restart
Use the NX Connection Wizard to set up new connection profiles for your servers, and select Advanced to go into the menu that will allow you to point to the key for a particular server.