Installing the FreeNX server

Ask a question



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

Jean-François Pillou

CCM is a leading international tech website. Our content is written in collaboration with IT experts, under the direction of Jeff Pillou, founder of CCM.net. CCM reaches more than 50 million unique visitors per month and is available in 11 languages.

Learn more about the CCM team

Related