Connecting to Ubuntu 22.04 with Remote Desktop

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

6 Responses to Connecting to Ubuntu 22.04 with Remote Desktop

  1. dmitriano says:

    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/

  2. dmitriano says:

    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

  3. dmitriano says:

    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. dmitriano says:

    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/

Leave a Reply to dmitriano Cancel reply

Your email address will not be published. Required fields are marked *