Xrdp is an open-source and freely available Remote Desktop Protocol application which allows remote sessions of Linux Server from Windows machines. It will accept remote connections from rdesktop, freerdp and other remote desktop clients
xRDP is fully compatible with rdesktop, RDP, and even with Microsoft Remote Desktop Client (mstsc.exe).
Requirements:
- Although this is not a requirement, we recommend acting as a non-root user when making any major changes to your system.
- A machine running CentOS 9 with at least 2 GB of RAM.
Update the packages installed on the system:
$ sudo dnf -y update
Then install the necessary packages:
$ sudo dnf install -y epel-release
$ sudo dnf install -y xrdp
$ sudo systemctl enable xrdp
$ sudo systemctl start xrdp
if you are using FirewallD, open port 3389/TCP for RDP:
$ sudo firewall-cmd –add-port=3389/tcp –permanent
$ sudo firewall-cmd –reload
Now, it’s time to take RDP sessions from any Windows machine using Remote Desktop Protocol.