Last active
June 14, 2016 07:15
-
-
Save zachbrowne/5773984 to your computer and use it in GitHub Desktop.
Install FreeNX on Ubuntu Server
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt update && sudo apt -y upgrade | |
sudo apt install software-properties-common python-software-properties | |
sudo apt update | |
sudo apt-add-repository -y ppa:x2go/stable ppa:freenx-team/ppa ppa:ubuntu-mate-dev/ppa ppa:ubuntu-mate-dev/trusty-mate | |
sudo apt update | |
sudo apt install install gnome-session-fallback mate-desktop-environment-extras freenx freenx-server | |
# download the installation script | |
wget https://bugs.launchpad.net/freenx-server/+bug/576359/+attachment/1378450/+files/nxsetup.tar.gz | |
# Extract the script and copy it to the NX directory | |
sudo tar -xvf nxsetup.tar.gz | |
sudo cp nxsetup /usr/lib/nx/nxsetup | |
# Run the installation script | |
sudo /usr/lib/nx/nxsetup --install | |
# the script will prompt you | |
------> It is recommended that you use the NoMachine key for | |
easier setup. If you answer "y", FreeNX creates a custom | |
KeyPair and expects you to setup your clients manually. | |
"N" is default and uses the NoMachine key for installation. | |
Do you want to use your own custom KeyPair? [y/N] | |
# I would say yes for security reason, because it will generate a | |
# rsa key that you need to specify to your client in order to get | |
# connected to Freenx. But this is your choice. | |
# If you choose to go this way it will generate a rsa key in | |
sudo cat /var/lib/nxserver/home/.ssh/client.id_dsa.key | |
Client Configuration | |
Now it is time to connect remotely to your Ubuntu desktop. You should download the NoMachine NX client You can find other solutions but that one works fine. When installed create a new session with your computer information. The only specific configuration is to ensure you choose Gnome desktop and that you specify the key generated previously by the nxsetup script. | |
# if you choose to generate a seperate key for freenx, | |
# find out what is your key by issuing this command | |
sudo cat /var/lib/nxserver/home/.ssh/client.id_dsa.key |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment