-
sudo bash -c "echo 'deb http://ppa.launchpad.net/freenx-team/ppa/ubuntu VERSION main deb-src http://ppa.launchpad.net/freenx-team/ppa/ubuntu VERSION main' >> /etc/apt/sources.list.d/freenx.list"
where VERSION can be: dapper, hardy, intrepid or jaunty. More information can be found at FreeNX Team PPA.
- Add the public key of FreeNX PPA run:
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com F3A662B57D580D3A2E98E5152A8E3034D018A4CE
- Then Update Apt
sudo apt-get update
- After you add the repository, then install the freenxpackage (using Aptitude to install extra needed packages).
sudo aptitude install freenx
- Now use nxsetup to install necessary files and create the special user “nx”
sudo /usr/lib/nx/nxsetup --install
Unity 2D?
If your computer comes without 3D graphics support, the ubuntu will fall into unity 2D automatically, in this case, the nx session should work fine with unity 2D
If your computer comes with 3D graphics support, by default, the ubuntu will try to use Unity (3D) as its desktop session. However, the nx server does not support Unity (3D) so far. In this case the nx session will fail to work. To solve it, you have to change the nx server configuration to use Unity 2D or Gnome classic specificly.
The following commands will configure the NX server to unity 2D(Tested on Ubuntu 12.04):
- To configure NX server to use unity 2D:
- Edit /usr/NX/etc/node.conffile as root, and enable the following line:
COMMAND_START_GNOME="gnome-session --session=ubuntu-2d"
- Restart freenx server:
sudo /etc/init.d/freenx restart
- Edit /usr/NX/etc/node.conffile as root, and enable the following line:
- To configure NX server to use gnome-shell:
- Install gnome-shell:
sudo apt-get install gnome-shell
- Edit /usr/NX/etc/node.conffile as root, and enable the following line:
COMMAND_START_GNOME="gnome-session --session=gnome"
- Restart freenx server:
sudo /etc/init.d/freenx restart
- Install gnome-shell:
- To configure NX server to use gnome-session-fallback:
- Install gnome-session-fallback:
sudo apt-get install gnome-session-fallback
- Edit /usr/NX/etc/node.conffile as root, and enable the following line:
COMMAND_START_GNOME="gnome-session --session=gnome-fallback"
- Restart freenx server:
sudo /etc/init.d/freenx restart
- Install gnome-session-fallback:
Config file
To find active rows.
egrep -v ^# /etc/test.cfg