Steps to Install XRDP Server on your Debian 11 Bullseye Linux to access its graphical user interface from Windows 10 or 11 using Remote Desktop Protocol (RDP).
By default we cannot access Linux operating system using RDP on Windows, hence we need to install XRDP on our Debian Linux. For those who don’t know about the XRDP, it is an open-source adaptation of the Microsoft RDP protocol. This helps the users to establish remote access of PC from other PC or laptop.
How to install Xrdp Server on Debian 11 Bullseye
Update APT repository cache
Run the system update command on your Debian 11 Bullseye Linux to not only refresh the system cache but also to install any security updates, if available.
sudo apt update
Install XRDP on Debian 11 Bullseye
We don’t need to add any additional repository to download and install the XRDP on Debian 11, it is already available through the default repo of the system.
sudo apt install xrdp
Check XRDP service status
To know our installed XRDP server is working fine as a service in the background, check its status.
systemctl status xrdp
If it is not running then start it:
sudo systemctl enable --now xrdp
Add XRDP user to SSL-Cert group
We need to add our XRDP to the SSL-cert group to access it properly otherwise it will show only a blank screen after establishing a remote desktop connection.
sudo adduser xrdp ssl-cert
Restart XRDP server
sudo systemctl restart xrdp
Allow port in the firewall
Although port 3389 will automatically get opened, however, still if you have a firewall installed then run the given command once:
sudo ufw allow 3389
After that check your system IP address and note that.
ip a
Connect Debian 11 over RDP from Windows 10 or 11
First, log out your Debian 11 current session otherwise you won’t be able to access its graphical user interface using the remote desktop connection.
After that go to the Windows 11/10/7 system and search for the Remote Desktop app to open it.
Enter the IP address of the Debian 11 Server in the Remote Desktop app.
Accept certificate warnings by clicking the YES button.
Enter the Debian user login information
Finally, you will have graphical user interface access to your remote Debian 11 Bullseye on Windows over an RDP connection.
Other Articles:
• How to RDP from Windows 7/10/11 to access Linux Mint
• Access AlmaLinux 8 remote desktop using Windows RDP
• krdc: Access Windows 10 from Ubuntu 20.04 KDE RDP
Source: https://www.how2shout.com/linux/commands-to-install-xrdp-server-on-debian-11-bullseye-linux/