Friday, 27 April 2018

Install XRDP in Centos 7


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

yum update

yum groupinstall "GNOME Desktop" "Graphical Administration Tools"

ln -sf /lib/systemd/system/runlevel5.target /etc/systemd/system/default.target

reboot

install xrdp package :
yum -y install xrdp tigervnc-server

start xrdp service :

systemctl start xrdp

check status of xrdp :

netstat -antup | grep xrdp

enable xrdp to automatic start on boot  :

systemctl enable xrdp

Edit xrdp.in file and make below entry:

vi /etc/xrdp/xrdp.ini is now:

[xrdp1]
name=my.default
lib=libvnc.so
username=ask
password=ask
ip=127.0.0.1
port=5900

save and exit

systemctl restart xrdp

Allow port in firewall :

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

if enable selinux :

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

Enjoy XRDP connection

Install XRDP in Centos 7

rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm yum update yum groupinstall "GNOME Desktop" ...