en
  English
Phone :  +370 (5) 204-1903
Email: sales@1gbits.com

Install xrdp on CentOS 7

In order to RDP to your Linux server from Windows, we can use xrdp. Xrdp is an open source remote desktop protocol server that is capable of accepting connections from rdesktop, freerdp, and remote desktop clients. In this guide we will help you to set up xrdp server in CentOS 7.

Centos Tutorials Jan 23, 18 by Mery 2 min Read
Install xrdp on CentOS 7

In order to RDP to your Linux server from Windows, we can use xrdp. Xrdp is an open source remote desktop protocol server that is capable of accepting connections from rdesktop, freerdp, and remote desktop clients. In this guide we will help you to set up xrdp server in CentOS 7.

Install xrdp on CentOS 7

Step 1:  Do not forget to install Gnome on CentOS 7.

Step 2:   Install and configure the EPEL repository using below command:

rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

Step 3:  Add a nux repository using the following command:

rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-1.el7.nux.noarch.rpm

Step 4: Use Yum command to install xrdp and tigervnc-server.

yum -y install xrdp tigervnc-server

Step 5: start the xrdp service using the following command:

systemctl start xrdp.service

Step 6: xrdp will listen on 3389, confirm this by issuing the following command.

# netstat -antup | grep xrdp

Output should be below:

tcp 0 0 0.0.0.0:3389 0.0.0.0:* LISTEN 1508 / xrdp 

tcp 0 0 127.0.0.1:3350 0.0.0.0:* LISTEN 1507 / xrdp-sesman

Step 7: Issue the following command to enable the service at system startup.

systemctl enable xrdp.service

Step 8: Using the following commands Create iptables rule to allow RDP connection from external machines.

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

Step 9: Configure SELinux using the following commands:

# chcon --type = bin_t / usr / sbin / xrdp # chcon --type = bin_t / usr / sbin / xrdp-sesman

Test Remote Connectivity

Now open the Remote Desktop Connection utility from your Windows machine, enter the IP address of the Linux server in the computer field and click on connect.

Install xrdp on CentOS 7

It will ask to enter the user name and password. You can use root or any other Linux system user. Make sure you use module "sesman-xvnc".

Install xrdp on CentOS 7

If you click ok, you will get a desktop.

3_1

That's all You have successfully installed xrdp on CentOS 7 . If you are facing any problem with the installation, feel free to comment here. Our team will help you to solve the issue.

 

 

 

author img

Mery

Generic placeholder image
Ali Imtiaz

2018 May 31, 15:05:53

Error: Package: xorgxrdp-0.2.6-2.el7.x86_64 (epel) Requires: xorg-x11-server-Xorg(x86-64) = 1.19.5 Installed: xorg-x11-server-Xorg-1.19.3-11.el7.x86_64 (@InstallMedia) xorg-x11-server-Xorg(x86-64) = 1.19.3-11.el7 You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest Please help I'm new to linux

Generic placeholder image
Enid

2019 Jan 01, 15:01:26

This page really has all of the information I needed concerning this subject and didn't know who to ask.

Generic placeholder image
Nicolas

2019 Sep 04, 19:09:51

An Error when executing : yum -y install xrdp tigervnc-server Error: Package: xorgxrdp-0.2.11-1.el7.x86_64 (epel) Requires: xorg-x11-server-Xorg(x86-64) = 1.20.4 Available: xorg-x11-server-Xorg-1.20.1-3.el7.x86_64 (base) xorg-x11-server-Xorg(x86-64) = 1.20.1-3.el7 Available: xorg-x11-server-Xorg-1.20.1-5.el7.x86_64 (updates) xorg-x11-server-Xorg(x86-64) = 1.20.1-5.el7 Available: xorg-x11-server-Xorg-1.20.1-5.1.el7.x86_64 (updates) xorg-x11-server-Xorg(x86-64) = 1.20.1-5.1.el7 Available: xorg-x11-server-Xorg-1.20.1-5.2.el7_6.x86_64 (updates) xorg-x11-server-Xorg(x86-64) = 1.20.1-5.2.el7_6 Available: xorg-x11-server-Xorg-1.20.1-5.3.el7_6.x86_64 (updates) xorg-x11-server-Xorg(x86-64) = 1.20.1-5.3.el7_6 Available: xorg-x11-server-Xorg-1.20.1-5.6.el7_6.x86_64 (updates) xorg-x11-server-Xorg(x86-64) = 1.20.1-5.6.el7_6

Generic placeholder image
tyler

2019 Sep 15, 18:09:53

I need a help please, I get this error when I try to start xdrp service on CentOS 7 "# systemctl start xrdp.service Failed to start xrdp.service: Unit not found."

Generic placeholder image
Bud

2020 Mar 10, 14:03:37

Hey There. I found your blog using search. This is a well crafted really article. I'll be sure to bookmark it and come back to read more of your useful information. Thanks a lot for the post. I'll be back :)

Generic placeholder image
haseeb

2020 Sep 10, 09:09:43

Hi, thanks, i followed along and it worked. my login screen is exactly same as per this article second last image. how to check weather its using xfce or mate desktop ? is it possible to switch that as well? thanks in advance

Leave A Comment