sudo apt install xorgxrdp tigervnc-standalone-server xrdpI prefer vnc over xorg, so set autorun=Xvnc.
Set firewall: sudo ufw allow 3389/tcp
Enable autostart: sudo systemctl enable xrdp
Fix authentication popup problem:
sudo bash -c "cat >/etc/polkit-1/localauthority/50-local.d/45-allow.colord.pkla" <<EOF
[Allow Colord all Users]
Identity=unix-user:*
Action=org.freedesktop.color-manager.create-device;org.freedesktop.color-manager.create-profile;org.freedesktop.color-manager.delete-device;org.freedesktop.color-manager.delete-profile;org.freedesktop.color-manager.modify-device;org.freedesktop.color-manager.modify-profile
ResultAny=no
ResultInactive=no
ResultActive=yes
EOFNow reboot and try to connect to it.
Note that by using this remote desktop connnection, you should not connect remotely to your computer while you login into it locally.