Home RDP to Debian
Post
Cancel

RDP to Debian

Install xrdp.

1
sudo apt install xrdp

Now make sure to automatically start the service at the system startup.

1
systemctl enable xrdp

Then make sure that the service is running.

1
systemctl status xrdp

If you are running a firewall make sure you have put a allow rule in for the RDP port.

1
ufw allow 3389/tcp

Note You have to configure the polkit rule to avoid an authenticate popup after inputting the username and password at the xrdp login screen on windows.

1
vim /etc/polkit-1/localauthority.conf.d/02-allow-colord.conf 
1
2
3
4
5
6
7
polkit.addRule(function(action, subject) {
if ((action.id == “org.freedesktop.color-manager.create-device” || action.id == “org.freedesktop.color-manager.create-profile” || action.id == “org.freedesktop.color-manager.delete-device” || action.id == 
“org.freedesktop.color-manager.delete-profile” || action.id == “org.freedesktop.color-manager.modify-device” || action.id == “org.freedesktop.color-manager.modify-profile”) && subject.isInGroup({group}))
{
return polkit.Result.YES;
}
});

Restart the xrdp service.

1
systemctl restart xrdp
This post is licensed under CC BY 4.0 by the author.