You are on page 1of 2

1) Create a repository file for XRDP.

If you do not do this "yum install xrdp" may


fail to find the package.
vi /etc/yum.repos.d/xrdp.repo

add:
[xrdp]
name=xrdp
baseurl=http://li.nux.ro/download/nux/dextop/el7/x86_64/
enabled=1
gpgcheck=0

2) Install XRDP and tigervnc-server


yum -y install xrdp tigervnc-server

3) Start and enable XRDP


systemctl start xrdp
systemctl enable xrdp

4) Confirm that you can see port 3389 (TCP RDP port) Listening
netstat -anp | grep 3389

e.g:
[root@rhel-server ~]# netstat -anp | grep 3389
tcp 0 0 0.0.0.0:3389 0.0.0.0:*
LISTEN 1083/xrdp

5) If your OS firewall is running. Allow RDP (TCP port 3389) through the firewall:
systemctl status firewalld
firewall-cmd --permanent --zone=public --add-port=3389/tcp
firewall-cmd --reload

*Optionally you could disable the firewall


systemctl stop firewalld
systemctl disable firewalld

6) You can modify the XRDP configuration from "/etc/xrdp/xrdp.ini"


vi /etc/xrdp/xrdp.ini

e.g:
[globals]
bitmap_cache=yes
bitmap_compression=yes
port=3389
crypt_level=high
-> #channel_code=1
max_bpp=24
#black=000000
#grey=d6d3ce
#dark_grey=808080
#blue=08246b
#dark_blue=08246b
#white=ffffff
#red=ff0000
#green=00ff00
#background=626c72

[xrdp1]
name=sesman-Xvnc
lib=libvnc.so
username=ask
password=ask
ip=127.0.0.1
port=-1

Due to an issue I had where the XRDP session would open, display the desktop
for a second then close I have commented out channel_code=1. You do not need to do
this
but if you are having the same issue then this should help.

7) Open your RDP tool and specify the IP Address or FQDN of your RedHat server. You
should be able to log in and see the desktop

You might also like