Installing the NX Server

December 2016


What is NX?


NX allows you to use make use of remote computer just as you would with Windows Remote Desktop or VNC.
But NX has several other advantages.

Why NX?

  • NX is free.
  • It is very secure (it uses SSH).
  • It requires no special service to start.
  • It uses the users and passwords already present on the system.
  • It is very efficient (the display is much more responsive compared to VNC or X over ssh).
  • You can resize the screen.
  • You can close a session and resume it for later, even from another internet connection.

Download and install SSH


NX Server needs ssh to run (NX uses ssh for secure connection).
The ssh server must be installed and launched (must be on the standard port 22).
To install and start the ssh server: sudo aptitude install ssh

Download and install NX Server


Note: There are 3 versions of NX server: NX Server and 2X FreeNX. We shall install NX Server.
Note: The NX server is limited to 2 users and 2 max max simultaneous connections.

Download:

You get the following 3 files:
  • nxclient_2.1.0-17_i386.deb
  • nxnode_2.1.0-22_i386.deb
  • nxserver_2.1.0-22_i386.deb

Install each of these packages in the following order by double-clicking and clicking on "Install Package".

Testing


Run: /usr/NX/bin/nxclient
At first launch, a wizard will help you create the connection.

Enter a name for this session and address of the SSH server:

You can choose the compression rate according to the type of connection you are using.
You can also choose the window manager (Gnome, KDE, ...):

It is recommended that you check the "Enable SSL encryption of all traffic" box to secure all communications.

You just have to enter a login and password:

Wait until the connection is established:

You can now access your desktop.

Note that

  • The NX client is present on the Knoppix CD. In other words, it allows you to access your computer remotely via an Internet connection by booting on the CD from any other computer. Not only the NX connection is secure (through ssh), but another advantage of using Knoppix is the integrated keyloggers protection feature. You can securely use your remote computer.
  • You can create a symbolic link to easily launch the client: sudo ln -s /usr/NX/bin/nxclient /usr/bin/nxclient
  • The NX client is also available for Windows.
  • The NX server is not available for Windows (because the server based on X protocol available to Linux/Unix).
  • Keyboard shortcuts are available, e.g CTRL + ALT + F to toggle full screen mode.
  • You can close a session and resume it later: close the NX window and click "Suspend"

If your ssh server is not on port 22

  • Edit the /usr/NX/etc/server.cfg file.
    • sudo gedit /usr/NX/etc/server.cfg
  • Uncomment the lines:
    • #SSHD_PORT = "22"
  • and
    • #SSHD_AUTH_PORT = "22"
  • and specify the port number of your ssh server.
  • Edit the /usr/NX/etc/node.cfg file.
    • sudo gedit /usr/NX/etc/node.cfg
  • Uncomment the line:#SSHD_PORT = "22"
  • and specify the port number of your ssh server.


Related :

This document entitled « Installing the NX Server » from CCM (ccm.net) is made available under the Creative Commons license. You can copy, modify copies of this page, under the conditions stipulated by the license, as this note appears clearly.