Connect To CentOS 7 Desktop with XRDP

Want to connect to your CentOS 7 desktop from your Windows 10 machine via the remote desktop connection? Well, this is possible with XRDP.

In most cases, VNC server and other opensource remote connection tools are the only options available to Linux users. You don’t see tools supporting Microsoft Remote Desktop Connection (RDP) protocols to connect to Linux desktop. The only tool gets this done with XRDP.

XRDP is an open source remote desktop protocol server which uses RDP to present a GUI to the client. It provides a fully functional Linux terminal server, capable of accepting connections from RDesktop, FreeRDP, and Microsoft’s own remote desktop clients.

To install XRDP on your system, you will need to add the EPEL repository in your system. If you have it installed previously, you can skip, or you can install EPEL using following commands:

Now run the following command to install XRDP on to your machine:

I disable SelLinux, but if you use it you will need to make changes to your SelLinux. You can either adjust your SelLinux using the following commands.

You will also need to adjust your firewall rules to allow port number 3389, on which RDP service will listen to. Run the following commands:

Now you can start XRDP on your system using following command:

To automatically start XRDP on boot time run the following command:

To check if XRDP service is running, use the following command:

You will get following output like this:

You can also use the following command to check the status of XRDP service:

Connecting to CentOS Machine

If you are on windows machine you can use the inbuilt Remote Desktop Client to connect to the CentOS machine running your favorite graphical desktop environment.

Start the Remote Desktop Client from search or you can also run mstsc command at run prompt.

Enter the IP address of your remote machine:

Then click on Show Options, and click on Display tab. Select True Color (24 bit) from the drop down menu of colors.

Finally click Connect button and you will see a warning saying that the identity of remote machine is not verified, click OK to proceed and you will see the prompt to enter the username and password of your remote machine.

Once you are logged in, you will see the following desktop:

I really like to hear what you have to say about this article:

  • Was this article helpful for you or do you have any questions?
  • Do you have additions, suggestions or any other ideas?
  • Just let me know by leaving a comment below.

Thank you for spending some time at my site and in my blog. I hope you come to visit again soon 😉

About Lex van der Horst 201 Articles

1 Trackback / Pingback

  1. How To Configure XRDP to start KDE as Default Desktop Session – Techwire

Leave a Reply