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
[/code]

Add the following to the source.list text file:

[code lang=”bash”]

#freenx packages
deb http://free.linux.hp.com/~brett/seveas/freenx feisty-seveas freenx
deb-src http://free.linux.hp.com/brett/seveas/freenx feisty-seveas freenx

[/code]

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 http://free.linux.hp.com/~brett/seveas/freenx/1135D466.gpg -O- | sudo apt-key add –
[/code]

Then Update Apt
[code lang=”bash”]
sudo apt-get update
[/code]
After you add the repository, then install the freenx package.
[code lang=”bash”]
sudo aptitude install freenx
[/code]
(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]

Find

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]

Find

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

and change it to:

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

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

Leave a Reply