NX NoMachine (Free Edition) is a great tool to take remote control of a Linux server desktop. Summary of steps for setup:

  1. Install RPMs
  2. Create new key with nxserver –keygen
  3. Transfer keys to Client
  4. Install client software on your system
  5. Start the service: sudo nxserver –restart

Install RPMs:

Download and install the nxclient, nxnode, and nxserver rpm packages for your architecture:

http://www.nomachine.com/select-package.php?os=linux&id=1

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

Update permissions:

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

Finally:

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.

(Visited 1 times, 1 visits today)
Tags: , ,
Category: SUSE Linux Enterprise Server, Technical Solutions
This entry was posted Tuesday, 5 January, 2010 at 2:48 pm
You can follow any responses to this entry via RSS.

Comments

  • bfrancom says:

    There is also a great tutorial in the openSUSE wiki:
    http://en.opensuse.org/FreeNX_Server_HOWTO

    -Ben Francom

  • Leave a Reply

    Your email address will not be published. Required fields are marked *