centos7/Fedora27安裝xrdp

1. update epel7

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

2. create a repository file

vi /etc/yum.repos.d/xrdp.repoui

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

3. install and configure xrdp

  • yum -y install xrdp tigervnc-server
  • dnf install xrdp tigervnc-server(fedora27)
  • systemctl enable xrdp.service
  • systemctl start xrdp.service

xrdp will listen on 3389, lets confirm this by issuing following command.this

# netstat -antup | grep xrdp

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

4. configure firewall

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

4. configure SELinux

# chcon --type=bin_t /usr/sbin/xrdp
# chcon --type=bin_t /usr/sbin/xrdp-sesman
相關文章
相關標籤/搜索