https://help.ubuntu.com/community/FreeNX

ubuntu 14.04

sudo apt-add-repository ppa:freenx-team/trusty

Update Apt

sudo apt-get update

Install FreeNX

sudo apt-get install freenx-server

下载nxsetup

wget https://bugs.launchpad.net/freenx-server/+bug/576359/+attachment/1378450/+files/nxsetup.tar.gz
tar -xvf nxsetup.tar.gz

Copy the setup script to /usr/lib/nx:

sudo cp nxsetup /usr/lib/nx/nxsetup
sudo /usr/lib/nx/nxsetup --install