In this guide I will run through from start to finish how to connect to your Ubuntu Desktop GUI using NoMachine “Free remote desktop for everybody” on Piggybank Cloud.
Step 1. Deploy you Ubuntu-Desktop-KVM
1.1 Click the green add button, select Ubuntu-Desktop-KVM
1.2 Allocate resource to your Machine
1.3 Enter your username and password for Ubuntu Desktop
1.4 Select a network (Virtual Network Interface Card)
Piggybank Cloud gives a few options in terms of how you deploy your network namely:
Private Network (Subnet allocated by KVM) – You can access your VM’s either by Dialup VPN or Port Forward.
Public IP – You can access directly from the internet.
VXLAN – Allocate your own Private IP address using a DHCP server.
I have used the KVM allocated Subnet VLAN-100 which gives me 200 private addresses which I access over diapup VPN.
1.5 Click create and this will launch Ubuntu-Desktop-KVM
Step 2. Install NoMachine on both Client (Windows) and Server (Ubuntu)
I will concentrate mainly on the Ubuntu Desktop Installation of NoMachine
2.1 Download Nomachine
I have found it easiest to download the file to my windows desktop and then transfer the file to my Ubuntu Desktop Machine using SFTP with Filezilla.
2.1.1 Download file from https://www.nomachine.com/download/linux&id=1 nomachine_6.4.6_1_amd64.deb
2.1.2 Create a directory for it on your Ubuntu-Desktop-KVM and transfer the file to this directory. (This is to avoid having to change any file permissions)
2.1.3 Move the file from your home/NoMachine to /usr directory
2.1.4 Install NoMachine
David@Ubuntu-Desktop-KVM:~$ mkdir Nomachine David@Ubuntu-Desktop-KVM:~$ cd Nomachine/ David@Ubuntu-Desktop-KVM:~/Nomachine$ ls nomachine_6.4.6_1_amd64.deb David@Ubuntu-Desktop-KVM:~/Nomachine$ sudo mv nomachine_6.4.6_1_amd64.deb /usr/ David@Ubuntu-Desktop-KVM:~/Nomachine$ cd /usr/ David@Ubuntu-Desktop-KVM:/usr$ ls bin games include lib local nomachine_6.4.6_1_amd64.deb sbin share src David@Ubuntu-Desktop-KVM:/usr$ sudo dpkg -i nomachine_6.4.6_1_amd64.deb
2.1.5 Install NoMachine on Windows Client by clicking on the downloaded file and run through the wizard.
Step 3. Connect using NoMachine
3.1 Please Note: You will need to login at least once into your Virtual Machine using the built in window called Spice on the Piggybank Cloud VDC. This is your access to your Server if you have lost remote connectivity (remote hands for VM’s)
Once you have logged in as the user you will be able to access the desktop using NoMachine even if the user login timeouts.
If you specifically log out the user you will no have access anymore using NoMachine
3.2 Create a connection using NoMachine to your Ubuntu Desktop
If you are connecting to a private address make sure you are connected to your Dialup VPN or alternatively create a port forward.
By default Nomachine will listen on port 4000
Here’s an example of a port forward on Piggybank cloud:
3.2.1 Click add new and enter your Ubuntu Desktop’s IP address
Once you have run through the wizard this will create a shortcut to connect to your Ubuntu Desktop.
3.2.1 Enter your Ubuntu Desktops User Credentials
Step 4. You are now connected!
I have found NoMachine extremely responsive and there are various tweaks to improve performance based on your Ubuntu Desktop’s allocated resource.
It is extremely straight forward to setup and is cross platform user friendly.
The only thing is that you have to be either logged in or just have a locked screen for the remote session to be able to happen. If you physically log out you will not be able to log back in.
Please feel free to comment, anything to add to this will be most welcome.
Thank you for reading!