In order to allow remote desktop after screen locks, you need to install an gnome extension:
Refer: https://blog.mruckman.com/2024/01/rdp-stops-working-when-screen-locks-turns-off-ubuntu-22-04/
Works as of 2019-09-21
Refer: https://askubuntu.com/questions/1133134/remote-desktop-hang-os-or-block-all-the-connections
Did not try this one yet, keeping for reference
Refer: https://linuxize.com/post/how-to-install-xrdp-on-ubuntu-20-04/
No need to install repository for Ubuntu 21.10. Also, when connecting, you need to be logged off of the target system.
sudo add-apt-repository ppa:martinx/xrdp-hwe-18.04 -y
sudo apt-get update
sudo apt-get install xrdp
sudo systemctl enable xrdp
I then rebooted my computer, and then look at the following place in settings for Ubuntu 24.04, and you need to change the password, or at least learn it. It's auto generated. You also need to enable remote logon, and not just desktop sharing.
System, Remote Desktop
If you need to uninstall:
sudo apt-get purge --autoremove xrdp
xRDP – The Infamous “Authentication Required to Create Managed Color Device” Explained - Current Bug
Refer: http://c-nergy.be/blog/?p=12073
Older Notes, No Longer Works
Real Remote Desktop client from windows works better, reboot the laptop and also you will get some error prompt, hit enter to get past the blank page.
For Remmina, you need to connect with Xorg, and at least 24-bit color
Get your IP address
$ ifconfig
Install xrdp
$ sudo apt-get install xrdp
Start xrdp
$ sudo systemctl enable xrdp
