Installing the FreeNX server

December 2016




NX is an efficient and secure method to remotely access a machine running X-Windows. There exist different types of NX server:
  • NX Server and 2X for commercial purpose
  • FreeNX which is a freeware.

In this tip you will learn how to install FreeNX :

Instruction for installation

  • Add the following repository: deb http://www.datakeylive.com/ubuntu gutsy main
    • sudo aptitude update
    • sudo aptitude install expect openssh-server tcl8.4 nxlibs nxagent nxproxy freenx nxclient
  • Add the authorized users for connecting under server NX:
    • sudo nxserver --adduser toto 
  • Then modify the /etc/nxserver/node.conf file:
  • Replace: #ENABLE_3_0_0_BACKEND="0" by ENABLE_3_0_0_BACKEND="1"
  • Replace: #DISPLAY_BASE=1000 by DISPLAY_BASE=1001
  • Replace: #AGENT_EXTRA_OPTIONS_X="" by AGENT_EXTRA_OPTIONS_X="-fp/usr/share/fonts/X11/misc/,/usr/share/fonts/X11/Type1/,/usr/share/fonts/X11/75dpi/,/usr/share/fonts/X11/100dpi"
  • You can now use any the NX 3.0 client.

(Tested with FreeNX 0.7.1-0 under Ubuntu 7.10 and NX 3.1.0-3 under Windows.)

Note that

  • FreeNX 0.6.x servers are not compatible with NX 3.x clients.

Links


If the SSH server is on port 22

  • Edit the node.cfg: sudo gedit /etc/nxserver/node.conf file.
  • Scroll to the line :
    • #SSHD_PORT=22
  • Enter the port number of your choice
    • SSHD_PORT=714

NX Clients


Related :

This document entitled « Installing the FreeNX 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.