Remote Sharing into Fedora22-23/centos/RHEL7 with XRDP

Remote Sharing with XRDP

XRDP is an  open source remote desktop protocol(rdp) server. It uses the remote desktop protocol to present a GUI to the user and uses Xvnc or X11rdp to manage the X session.

In this short article we will see how to install Xrdp Server on Fedora and connect from the Windows
using Remote Desktop Protocol.

1) Check and install the package for Xrdp.

#rpm -qa xrdp

[root@ittroubleshooter /]# rpm -qa xrdp

To install the xrdp package use yum command.  If you are not configured the YUM server, refer the link.(Configure the Yum Server in Centos7/RHEL7/Fedora22)

#yum install -y xrdp

[root@ittroubleshooter /]# yum install -y xrdp

Note:  if you are using Fedora23 use below command to install Xrdp package.
#dnf -y install xrdp

2) Allow RDP Port on firewall and configure selinux.

If your firewall service is running, allow RDP Port.

[root@ittroubleshooter /]# firewall-cmd --add-port=3389/tcp --permanent
[root@ittroubleshooter /]# firewall-cmd --reload

Configure SELinux.

[root@ittroubleshooter /]#  chcon --type=bin_t /usr/sbin/xrdp
 [root@ittroubleshooter /]#  chcon --type=bin_t /usr/sbin/xrdp-sesman

3) Start and enable the xrdp service.

[root@ittroubleshooter /]# systemctl start xrdp && systemctl enable xrdp

4) Connect from Window side.

We are using window10 to take the remote of Linux machine using RDP. First Go To “run” and type “mstsc”.


Add ip address of xrdp server under General tab, refer below screen shot.


Then make some changes under the Display tab, Where choose the color dept below 32 bit(In our case we are using 24 bit)


Now Click on connect button, then enter your username and password of xrdp server, refer below screenshot.


Now Connected from the Windows using Remote Desktop Protocol.


Remember: If the above changes was not made, then a Connection Log box will appear that in part reads “VNC error – only supporting 8, 15, 16 and 24 bpp rdp connections”

Hope this post will help Linux/Unix beginners. Please share you feedback and Comments.

Leave a Reply


This site uses Akismet to reduce spam. Learn how your comment data is processed.

Notify of