gb
  English
Phone:  +1 (217) 636-4164
Skype:  onegbits
  1. Home
  2. Blog
  3. Install xrdp on CentOS 7

Install xrdp on CentOS 7

Install xrdp on CentOS 7

23

Jan, 18

335

In order to RDP to your Linux server from Windows machine, 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 setup xrdp server on CentOS 7.

Install xrdp on CentOS 7

Step 1:  Don’t forget toinstall Gnome on CentOS 7.

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

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

Step 3:  Add 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 following command.

# netstat -antup | grep xrdp

Output should be lik 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 start up.

systemctl enable xrdp.service

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

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

Step 9: Configure SELinux using below commands:

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

Test Remote Connectivity

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

1_4

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”.

2_3

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, fell free to comment here. Our team will help you to solve the issue.

 

 

 

Leave A Comment
We are with you

24 X 7 X 365

+1 (217) 636-4164

©2017 1Gbits. All rights reserved