I simply installed:
sudo apt install ubuntu-desktop-minimal -y
sudo apt install xrdp -y
systemctl status xrdp
and was able to connect with Remote Desktop from Windows as root
user:
but it worked terribly slow.
And I was unable to login with a regular user:
LXQT worked a bit better:
sudo apt install lxqt -y
sudo apt install xrdp -y
systemctl status xrdp
Resized my VPS to 8GB RAM:
And it still worked slow:
df -h
Filesystem Size Used Avail Use% Mounted on
tmpfs 795M 1.2M 794M 1% /run
/dev/sda 24G 6.8G 17G 29% /
tmpfs 3.9G 0 3.9G 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 795M 52K 795M 1% /run/user/1000
tmpfs 795M 52K 795M 1% /run/user/0
But VNC server worked fast enough:
vncserver -geometry 1920x1200
vncserver -geometry 1400x850
How to install Graphical User Interface (GUI) for Ubuntu 22 Cloud Servers
https://www.layerstack.com/resources/tutorials/How-to-install-Graphical-User-Interface-GUI-for-Ubuntu-22-Cloud-Servers
How to Install a Desktop Environment (GUI) on an Ubuntu 22.04 or 20.04 Server
https://bytexd.com/install-desktop-environment-gui-ubuntu/
The default settings for an XRDP installation are not optimized. To increase XRDP performance try the following:
https://askubuntu.com/questions/1283709/xrdp-and-xfce4-ubuntu-18-04-unusable
Assuming you use Xfce4, try disabling compositing with
https://askubuntu.com/questions/1323601/xrdp-is-quite-slow
How to Install and Configure VNC on Ubuntu 22.04
https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-vnc-on-ubuntu-22-04
https://superuser.com/questions/184338/how-to-change-screen-resolution-of-vnc-server-without-restarting-it
vncserver -geometry 1600×1200 -randr 1600×1200,1440×900,1024×768
Real VNC server 4.4 includes support for Xrandr, which allows resizing the VNC. Start the server with:
https://stackoverflow.com/questions/15816/changing-the-resolution-of-a-vnc-session-in-linux
vncserver -geometry 1600×1200 -randr 1600×1200,1440×900,1024×768
Win OpenSSH and ubuntu-gnome-desctop:
https://linux.how2shout.com/install-vnc-server-on-ubuntu-20-04-18-04-lts-to-access-gnome/
How To Install and Configure VNC Server on Ubuntu 20.04
https://tecadmin.net/install-vnc-server-on-ubuntu-20-04/
https://askubuntu.com/questions/352232/how-to-change-to-other-desktop-environment-on-vnc-sessions
ls /usr/share/xsessions/
4 Ways to install Firefox browser on Ubuntu 22.04 LTS Jammy
https://linux.how2shout.com/4-ways-to-install-firefox-browser-on-ubuntu-22-04-lts-jammy/
The right way to install FireFox:
https://askubuntu.com/questions/1399383/how-to-install-firefox-as-a-traditional-deb-package-without-snap-in-ubuntu-22
VNC Setting to Connect to Ubuntu Server with LXQt Desktop
https://askubuntu.com/questions/1276074/vnc-setting-to-connect-to-ubuntu-server-with-lxqt-desktop