xrdp
This is an open-source Remote Desktop Protocol server (project website).
- Installation with hardware encoding
- Fixing "Authentication is required to create a color managed device" popup
- Audio redirection
Installation with hardware encoding
Nvidia
According to this post, you can install xrdp with xorgxrdp and hardware encoding on a machine with Nvidia GPU with a script.
I copied the script and made a few changes to make it work for my use case. You can find it here.
Prerequisites to run this script:
- Fresh installed Debian 11 machine with Nvidia GPU
- No additional Nvidia driver installed!
The script will install the latest Nvidia driver, CUDA and build latest xrdp and xorgxrdp.
Fixing "Authentication is required to create a color managed device" popup
What and Why
This behavior is due to a software called PolKit. When you log in remotely, you have limited rights.
For a detailed explanation, see this post. This post also covers another popup that I didn't see in Debian 11. To get the full picture, also read the linked posts.
How to solve the problem
Create the file
/etc/polkit-1/localauthority/50-local.d/45-allow-colord.pkla
with the following content
[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
You need root permissions to create files at this location!
Audio redirection
Tested on Debian 12
With only installing xrdp server you don't have audio redirection. For that you have to build and install some pulseaudio modules (more information here).
I have created this script, which download, build and install these pulseaudio modules.
Prerequisites to run this script:
- Working xrdp server