This guide shows you how to install FreeNX on Ubuntu Server Feisty Fawn 7.04 and also how to install the client.
First up, we need to grab the packages from NoMachine (This first time around I tried to use the Seveas repositories, but I had some trouble getting it to work, so we'll just use the .deb packages from Nomachine).
First up, lets create a directory to drop these all into:
Code:
mkdir freenx && cd freenx
Now to grab the required packages:
NX Node
Code:
wget http://64.34.161.181/download/2.1.0/Linux/nxnode_2.1.0-22_i386.deb
NX Client
Code:
wget http://64.34.161.181/download/2.1.0/Linux/nxclient_2.1.0-17_i386.deb
NX Server
Code:
wget http://64.34.161.181/download/2.1.0/Linux/AS/nxserver_2.1.0-22_i386.deb
Now that we have all our packages, lets install them.
Code:
sudo dpkg -i nxclient_2.1.0-17_i386.deb && sudo apt-get -f install
Code:
sudo dpkg -i nxnode_2.1.0-22_i386.deb nxserver_2.1.0-22_i386.deb
Note: we install NX Client first since NX Node and NX Server depend on it
We now have our packages installed, next up we want to install the desktop environment, I'm a Kubuntu user, so we'll use KDE.
Code:
sudo apt-get install kde
Apt will now install a whole swatch of packages, so go make some tea 
When that completes, we're going to open up the nx configuration file to make some tweaks.
Code:
sudo /usr/NX/etc/node.cfg
Locate the following line:
Uncomment it to look like this:
This configures NX Server to tunnel through ssh for security.
Next, we're going to locate this line:
#COMMAND_START_KDE=startkde
and uncomment it to look like this:
COMMAND_START_KDE=startkde
We have now enabled a KDE connection.
Now that we have modified the configuration file to what we desire, we're going to run the nxsetup process.
sudo /usr/NX/scripts/setup/nxserver --install debian
thanks to beemer for that note
Congratulations! We have now setup NX Server! to test it out, we can connect to it from another computer.
I used the NX Client from the Seveas Repositories.
To setup the nx client, add the following repositories to your sources.list file.
Code:
sudo nano /etc/apt/sources.list
now install nxclient
Code:
sudo apt-get update && sudo apt-get install nxclient
now start nxclient by hitting alt+f2 to bring up the run dialoug box and type in 'nxclient' then hit enter.
I believe the NX Connection Wizard will appear, choose a hostname and specify the IP of your server

Click Next, and then check the box to enable SSL encryption. Click Next again then finish.
Enter your login credentials, and the NX client will now connect and present you with a login session!
Bookmarks