XRDP, Remote Desktop Protocol problems:
I was planning on using the Unbuntu 20.10 64 bit OS on RaspberryPi as a standalone self-training environment for LAMP, Laravel, and other software, but I didn’t want a attached monitor, keyboard or mouse. I have a desktop and laptops, and don’t want another screen, keyboard or mouse. I want to use the computers I have, and I want to connect to the Raspberry Pi using Remote Desktop Protocol and SSH.
After a fresh install of Ubuntu 20.10 with an attached monitor, keyboard and mouse, I went through the first boot setup configuring WiFI, locale, username and such, then I updated the software and rebooted. I then installed open-ssh and configured the firewall (use) to allow ssh connections. (I would have preferred a headless configuration, but Ubuntu Desktop 20.10 is designed to use a monitor and keyboard on first boot). Up to this point everything worked great.
I then installed xrdp and things didn’t work well.
If a Remote Desktop session is opened when a session using the monitor, keyboard and mouse plugged into the Raspberry Pi, the remote session screen acts as a second monitor. If the session plugged into the Raspberry Pi opens the Terminal App, the terminal window is opened on the Remote Session Screen. If the session plugged into the Raspberry Pi opens the Logs App, the window for that app opens on the Remote Session Screen. However if Firefox is opened, the browser window opens on the monitor attached to the Raspberry Pi.
If there is a monitor, keyboard and mouse attached to the Raspberry Pi, with no active session (the user has either never logged in or logged out), then the Remote Session worked well, after I added a profile to Polkit to permit the creation of a color profile.
The serious problem occurs when the monitor, keyboard and mouse connected to the Raspberry Pi is removed, and Remote Desktop is used for a graphical interface.
If there is no monitor attached to the Raspberry Pi, Remote Desktop works, but the logs are continually flooded with error messages reporting failure on finding a display (because no monitor is attached or needed if Remote Desktop is used) which greatly reduces the performance and usability of the Raspberry Pi.