apt install slim
apt install lightdm
# Install one of it# Different options, slim is roughly 400mb smaller than lightdm
Install desktop GUI
tasksel
# To select `ubuntu cloud image` and `ubuntu desktop`# Use space bar to select or deselect # Press [tab] -> [OK]
After installation, use cat to see which the default display manager
cat /etc/X11/default-display-manager
# To check which default display, eg: `/usr/bin/slim`
Install VNC - Virtual Network Computing
apt install tigervnc-standalone-server
# You will need `vnc` to connect remote desktop from a client# [tigervnc] is one of the many options
After installation of VNC, run it as non-root user
adduser [user-name]
# Create a user to run VNC server
usermod -aGsudo[user-name]
# Give root permission to the user
su - [user-name]
# To switch over to the user, then run VNC server
Configure VNC
vncserver -localhost no
# To give a password# Choose `no` for `view-only` password
vncserver -list# It returns a list of VNC information# To see port information for connect from client