How To Install a Graphical Desktop on an Ubuntu Instance
1). From a shell prompt, run the following commands to install the Xfce4/xubuntu desktop, which is a light-weight GUI desktop for Ubuntu:
(ubuntu) $ sudo apt update
(ubuntu) $ sudo apt install tasksel
(ubuntu) $ sudo tasksel install xubuntu-desktop
2). To make sure the system boots into the GUI, run the following command:
(ubuntu) $ sudo systemctl set-default graphical.target
3). Once installation has completed, reboot your system:
(ubuntu) $ sudo reboot
If you need to access the graphical desktop remotely, you can do so by setting up a VNC server on the instance.
1). First, install a VNC server package, such as TightVNC Server:
(ubuntu) $ sudo apt get install tightvncserver