CentOS 7 安裝xrdp 遠端桌面

來源:互聯網
上載者:User

 首先你需要安裝gnome, 這裡就不介紹了

安裝:

1. 準備環境:

 首先安裝 EPEL and nux Desktoprepository rpms, 注意版本更新(如果rpm包版本已經不存在,把連結的前面copy下來用瀏覽器開啟,查詢最新版本,然後更換): 

# rpm -Uvh https://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm# rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-1.el7.nux.noarch.rpm


2. 開始安裝 xrdp , tigervnc-server: 

# yum -y install xrdp tigervnc-server

3. 確認你的xrdp安裝成功後,啟動xrdp:

# systemctl start xrdp.service

4. 檢查xrdp是否啟動成功,xrdp監聽3389連接埠:

netstat -antup | grep xrdp


5. 如果發現啟動不成功,請檢查 /var/log/message , 如果發現類似 “Failed at step EXEC spawning /usr/sbin/xrdp-sesman: Permission denied” ,請執行如下命令:

chcon -t bin_t /usr/sbin/xrdp /usr/sbin/xrdp-sesman

6. 執行如下步驟讓xrdp下次系統啟動後自動運行:

# systemctl enable xrdp.service

7. 開啟防火牆對應連接埠,也可以直接把防火牆關掉

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






















相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.