2015/09/27

CentOS Linux 7 xRDP (Linux RDP遠端桌面)

----
CentOS Linux 7 xRDP  (Linux RDP遠端桌面)
----
# 安裝 nux repo source 及 epel REPO
[root@hnamenode2 ~]# yum install epel-release -y
[root@hnamenode2 ~]# rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-1.el7.nux.noarch.rpm

# 安裝 xrdp
[root@hnamenode2 ~]# yum -y install xrdp tigervnc-server

# 啟動 xrdp
[root@hnamenode2 ~]#  systemctl restart xrdp.service

# 觀看啟動的狀態
[root@hnamenode2 ~]# netstat -antup | grep xrdp
tcp        0      0 127.0.0.1:3350          0.0.0.0:*               LISTEN      31816/xrdp-sesman  
tcp        0      0 0.0.0.0:3389            0.0.0.0:*               LISTEN      31817/xrdp

# xrdp 預設啟動
[root@hnamenode2 ~]#  systemctl enable xrdp.service
ln -s '/usr/lib/systemd/system/xrdp.service' '/etc/systemd/system/multi-user.target.wants/xrdp.service'

# 設定 selinux 給予權限
[root@hnamenode2 ~]# chcon --type=bin_t /usr/sbin/xrdp
[root@hnamenode2 ~]# chcon --type=bin_t /usr/sbin/xrdp-sesman




ref:
https://wiki.centos.org/TipsAndTricks/MultimediaOnCentOS7

沒有留言: