How to – Install FreeNX on Ubuntu Feisty

I’ve just installed FreeNX on my home Linux box and it was quite straightforward. Here’s what I did.

1) Start up a teminal and type:

[code lang=”bash”]
sudo gedit /etc/apt/sources.list

Add the following to the source.list text file:

[code lang=”bash”]

#freenx packages
deb feisty-seveas freenx
deb-src feisty-seveas freenx


Then goto this site and follow the rest of the instructions from the part that says “Add the GPG key:”

Alternatively you can follow the instructions below, I’ve just written them as a reminder to myself but feel free use the information below.

Installing the FreeNX server

1) Follow the steps above first.

Add the GPG key:

[code lang=”bash”]
wget -O- | sudo apt-key add –

Then Update Apt
[code lang=”bash”]
sudo apt-get update
After you add the repository, then install the freenx package.
[code lang=”bash”]
sudo aptitude install freenx
(Using aptitude to install extra needed packages)

For Ubuntu 6.10 no new prebuilt packages have been released, but the FreeNX server included in the 6.06 package does work with 6.10.

During installation you will be given the option to select NoMachine keys, or custom keys. It is best to select NoMachine keys. For the paranoid: there is absolutely NO added security risk involved in using the default keys. Read an [WWW] SSL primer if you want to know the details about why this is the case

On the server, add your user to nxserver

sudo nxserver –adduser
sudo nxserver –passwd
sudo nxserver –restart

[Note: I don’t know if this is still needed, but it helps – JeremySchroeder]

Configuring SSH

By default, nxserver uses port 22 for communicating over SSH. On some machines or networks, port 22 may be blocked. For example, some providers block port 22. To make the SSH server listen on port 8888, you can do the following:

Edit the file /etc/ssh/sshd_config

[code lang=”bash”]sudo gedit /etc/ssh/sshd_config[/code]


Port 22

and change it to

Port 8888

You then need to restart SSHD. Try

[code lang=”bash”]/etc/init.d/ssh restart[/code]

Edit the file /etc/nxserver/node.conf

[code lang=”bash”]sudo gedit /etc/nxserver/node.conf[/code]


[code lang=”bash”]# The port number where local ‘sshd’ is listening.

and change it to:

[code lang=”bash”]# The port number where local ‘sshd’ is listening.

That is, change the port number to the one that sshd is listening to, and uncomment the line.

Leave a Reply