Add apt-add-repository
sudo apt-get install python-software-properties
Add the FreeNX PPA ( Trusty only! )
sudo apt-add-repository ppa:freenx-team/trusty
or
sudo apt-get update
Install FreeNX
sudo apt-get install freenx-server
wget
https://bugs.launchpad.net/freenx-server/+bug/576359/+attachment/1378450/+files/nxsetup.tar.gz
tar -xvf nxsetup.tar.gz
sudo cp nxsetup /usr/lib/nx/nxsetup
sudo /usr/lib/nx/nxsetup --install