How to Install Remote Desktop ( RDP ) using nomachine on your ubuntu instance

1) Install ubuntu desktop on your server instance
By default X server, GNOME etc is not installed on your ubuntu instance. You can install it by simply executing the following commands:

export DEBIAN_FRONTEND=noninteractive
sudo -E apt-get update
sudo -E apt-get install -y ubuntu-desktop

It will install lot of stuff. So don’t get surprised if it takes 10 to 15 minutes to finish it.

2) Install FreeNX server on your server
The following commands assume that you are using ubuntu 9.10 (Karmic Koala) image.

sudo add-apt-repository ppa:freenx-team
sudo apt-get update
sudo aptitude install -y freenx
sudo /usr/lib/nx/nxsetup --install

If you are using older ubuntu versions, please visit FreeNX server installation page on ubuntu website to get the instructions for installing FreeNX server.

While executing the last command, you will get the following prompt:

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
.

I would say answer ‘N’ which is the default. If you answer Y, you will have to generate keys and put them at a specific location in the client.

3) Enable password authentication on the ssh server
Edit /etc/ssh/sshd_config and set PasswordAuthentication to yes. By default password authentication is disabled.
You will need to restart ssh process by executing

sudo /etc/init.d/ssh restart

Now that you have enabled password authentication, you should make sure that the the user you are going to use for using remote desktop has a password. Cannonical’s karmic images come with ‘ubuntu’ user. This user does not have a password. You can set a password by executing

sudo passwd ubuntu

4) Enable gnome-session-fallback

sudo apt-get update && sudo apt-get upgrade

sudo apt-get install gnome-session-fallback


5) Install and setup NX client
Now install the NoMachineNX client on your Desktop. You can download the client form http://www.nomachine.com/download.php. You can install it by simply double clicking the downloaded file. Once you install it, click on the NX Connection wizard to setup a new connection. Fill in the values as shown below. Make sure that you put in your server address in the host field.

And that’s it! NX client will create a desktop shortcut for the server connection (Only if you choose to do so).

 

Was this answer helpful?

 Print this Article

Also Read

cPanel Wildcard Subdomains

Ever wanted to setup subdomains on your Cpanel server, such that a keyword is the wildcard part...

Setting up DNS using Webmin

Here's a quick walkthrough for using Webmin to setup DNS. (Depending on your Distro, you may...

Free Control Panel - Install Sentora on CentOS 6, CentOS 7, Ubuntu 12.04 and Ubuntu 14.04.

IMPERATIVE: You must have read Pre-Installation Check HERE You MUST have setup DNS for the...

Kloxo DNS

With Kloxo you can chose to run your own nameservers, which enable you to have custom DNS records...

Installing cPanel Web Server

To begin your installation, use the following commands:   cd /home — Opens the...