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:

sudo gedit /etc/apt/sources.list

Add the following to the source.list text file:

#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

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:

wget http://free.linux.hp.com/~brett/seveas/freenx/1135D466.gpg -O- | sudo apt-key add -

Then Update Apt

sudo apt-get update

After you add the repository, then install the freenx package.

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

sudo gedit /etc/ssh/sshd_config

Find

Port 22

and change it to

Port 8888

You then need to restart SSHD. Try

/etc/init.d/ssh restart

Edit the file /etc/nxserver/node.conf

sudo gedit /etc/nxserver/node.conf

Find

# The port number where local ‘sshd’ is listening.
#SSHD_PORT=22

and change it to:

# The port number where local ‘sshd’ is listening.
SSHD_PORT=8888

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

About billy

Senior IT Technician working in Edinburgh, Scotland.
This entry was posted in Linux and tagged , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>