Software >> OS >> Unix >> Linux >> RHEL >> 7 >> How to install xrdp to allow remote connection to Linux using RDP protocol

1. Install EPEL repository

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

2. Install nux repository

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

3. Install xdrp & tigervnc

# yum -y install xrdp tigervnc-server

4. Start xrdp service

# systemctl start xrdp.service

5. Open firewall port

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

6.  Configure SELinux & re-enable and start xrdp

# chcon --type=bin_t /usr/sbin/xrdp
# chcon --type=bin_t /usr/sbin/xrdp-sesman
# systemctl reenable xrdp.service  
# systemctl start xrdp.service