Set password
1sudo passwd ubuntu
Create dummy virtual display
1sudo apt-get install xserver-xorg-video-dummy
Put the following contents under sudo vim /etc/X11/xorg.conf
1Section "Device"2 Identifier "Configured Video Device"3 Driver "dummy"4 VideoRam 2560005EndSection6Section "Monitor"7 Identifier "Configured Monitor"8 HorizSync 28.0-80.09 VertRefresh 48.0-75.010 #Modeline "1920x1200_60.00" 172.80 1920 2040 2248 2576 1200 1081 1084 1118 -HSync +Vsync11 Modeline "1920x1200_60.00" 193.16 1920 2048 2256 2592 1200 1201 1204 1242 -HSync +Vsync12 Virtual 2880 180013EndSection14Section "Screen"15 Identifier "Default Screen"16 Monitor "Configured Monitor"17 Device "Configured Video Device"18 DefaultDepth 2419 SubSection "Display"20 Depth 2421 Modes "1920x1200_60.00"22 Virtual 2880 180023 EndSubSection24EndSection
Install Desktop Environment
1sudo apt-get update2sudo apt-get dist-upgrade3sudo apt-get install ubuntu-desktop
Reboot sudo reboot -i
Install NX server
1wget https://download.nomachine.com/download/6.9/Linux/nomachine_6.9.2_1_amd64.deb2sudo dpkg -i nomachine_6.9.2_1_amd64.deb3mkdir -p ~/.nx/config
Add your host to authorized clients for NX
- Copy
.pub
key from your machine under~/.nx/config
(you can usescp
) - Rename your key under
~/.nx/config
toauthorized.crt
chmod 600 ~/.nx/config/authorized.crt
- Reboot
sudo reboot -i
Now you can connect via NX from your host machine