Install XRDP
The default package management tool used by CentOS8 is DNF. Other versions can be installed using yum
$ dnf install -y epel-release
$ dnf install -y xrdp
Copy the code
Setting boot
$ systemctl enable xrdp --now
Copy the code
Firewall open port
$ firewall-cmd --add-port=3389/tcp --permanent
$ firewall-cmd --reload
Copy the code
Other configuration
To change the XRDP port, run the /etc/xrd/xrdp.ini configuration file. Modify the port parameter, for example:
port=13389
- Firewall Settings
$ firewall-cmd --add-port=13389/tcp --permanent
$ firewall-cmd --reload
Copy the code
- Test the connection
Use the remote desktop connection under Windows. The default port is 3389. If you have modified the port, use the new port to connect. Such as: