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 updateUpdate package lists.
sudo apt upgradeUpgrades all software.
sudo apt install lxqtInstall LXQT or
sudo apt install xfce4 xfce4-goodiesXfce desktop environment.
sudo apt install tigervnc-standalone-serverInstall Tiger VNC server. Or install your preferred VNC server.
vncserverThis 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.