參考文章:web
https://segmentfault.com/a/1190000019557600segmentfault
1. 安裝 GUI 界面
大多數雲服務器廠商提供的鏡像都無 GUI 界面,因此要先安裝圖形環境。本文使用 GNOME 桌面環境:centos
yum -y groups install "GNOME Desktop"
這條命令將安裝 GNOME 桌面的必要軟件包,執行完後配置 X 系統使用 GNOME:服務器
echo "exec gnome-session" >> ~/.xinitrc
2. 安裝 xrdp
安裝源微信
yum install epel* -y
安裝 xrdpsession
yum --enablerepo=epel -y install xrdp
啓動 xrdptcp
systemctl start xrdp
systemctl enable xrdp
關閉防火牆spa
firewall-cmd --permanent --zone=public --add-port=3389/tcp
firewall-cmd --reload
3. 鏈接效果
由於我使用的是 mac 筆記本,因此遠程桌面的軟件使用的是 Microsoft Remote Desktop.net

輸入 centos 用戶名,密碼3d
鏈接後的效果
本文分享自微信公衆號 - 駭客與畫家(hacker-and-painter)。
若有侵權,請聯繫 support@oschina.cn 刪除。
本文參與「OSC源創計劃」,歡迎正在閱讀的你也加入,一塊兒分享。