Installing Graphical User Interface (GUI) on Ubuntu is easy on Google Compute Engine VPS, or any VPS that let’s you have shell.
sudo apt update
Update package lists.sudo apt upgrade
Upgrades all software.sudo apt install lxqt
Install LXQT orsudo apt install xfce4 xfce4-goodies
Xfce desktop environment.sudo apt install tigervnc-standalone-server
Install Tiger VNC server. Or install your preferred VNC server.vncserver
This will start VNC server, provide your VNC password.- Tunnel port 5901 on your SSH client.
- Connect to localhost:5901 on your preferred VNC client.
If you restarted the VPS, just type vncserver
again to run VNC server.
If you want to resize the resolution of the desktop, type vncserver -geometry 1920x1080
replacing the resolution of your choice.