October 4, 2022

Install XRDP Server On Cent OS 7 with 99RDP Linux VPS

Abhishek Thakur


CentOs is one the most popular Linux Distros to be used by Linux Users. Also, some of the other popular distributions such as Ubuntu and Fedora are affiliates. If you want to use RDP on your Linux server, you can solve it by using the XRDP service. This article introduces this service and the concepts to install the XRDP server.

XRDP uses the same RDP (Microsoft Remote Desktop Protocol) to provide graphical login to remote machines. XRDP accepts connections from various RDP clients. Freerdp, Rdesktop, Neutrinordp, Microsoft Remote Desktop Client (for Windows, macOS, iOS, and Android). Like a remote desktop from Windows to Windows, the XRDP server not only supports graphics remote processing but also has features like:

  • Two-way clipboard transfer (text, bitmap, file)
  • Audio -direct
  • Drive redirect (mounted the local client drive to a remote machine)

How To Install XRDP on CentOs 7 Or other Linux Distros

CentOs Core does not come with a graphical environment. To uses the XRDP firstly we have to set up a Graphical environment on our CentOs 7 distro. This is an open-source UNIX-like package that works by bridging graphics from the X Windows system to the client and vice versa. To connect to CentOs, XRDP needs the XORG module. This allows the X server to act like XRDP.

Steps To Install XRDP server

To install the XRDP we need a root user while making any major changes to the system, and a machine having CentOs 7 with at least 4 GB of RAM.

Update CentOs 7 Server 

# yum update

After the update is finished reboot the server.

Install Any Graphical Desktop Environment

Kindly check out the given page How To Install GUI On 99RDP CentOS 7 VPS

Enable EPEL Repository

Extra Packages for Enterprise Linux (EPEL) is a special interest group (SIG) from the Fedora Project that provides a set of additional packages for RHEL (and CentOS, and others) from the Fedora sources. Use the given command to enable the EPEL repository.
# yum install epel-release

Install XRDP On CentOs 7 Server

Install XRDP Server using the given command. This command will take some time depending on your network connection. It will give an output like this.

# yum -y install xrdp tigervnc-server

XRDP output

Configuring XRDP.services 

Once the installation is complete start the XRDP service using the given command.

# systemctl start xrdp.service
If we use this enable command we don’t have to start the XRDP service each time after a reboot or shut down.
# systemctl enable xrdp.service

Managing Firewall for XRDP.services

Basically, the XRDP.ini file is configured to work on port 3389. So we are going to add a permanent TCP rule for the XRDP service in the firewall using the given command.

# firewall-cmd –permanent –zone=public –add-port=3389/tcp

Reload the firewall to apply the changes.

# firewall-cmd –reload


Checking The Status of Firewall and XRDP.services

Now all the configuration steps are done. It’s time to verify our steps for any errors. Use the given command to check that the firewall service is up and running. We will also check the status of the port and XRDP.services using the given commands.

# systemctl status firewalld.service

Firewall Status

# systemctl status xrdp

XRDP Status

# netstat -na | grep 3389

Port listen

This “netstat” command gives the output that the XRD service is listening on port 3389.

Checking CentOs 7 IP

Use the given command to check the IP of your CentOs machine.

# ifconfig

Check Ip


Accessing XRDP CentOs Server with Windows Remote Desktop

After verifying all the services. Open up Remote Desktop and enter the IP and login details to connect to the XRDP server.

Accessing RDP


XRDP Remote Desktop


That’s it, folks, these are the easy steps to configure your CentOs 7 server to work with Remote Desktop Protocol. You can use any Remote software to access the CentOS server. Also, the steps are the same for all other Linux Distros. This XRDP service also gives you the freedom to connect your Clipboard and system drives to the CentOS server.

Cheapest Dedicated Server Starting @$59.99 Only ➤➤➤➤➤  Click Here

Popular Blog Posts