服務器:CentOS 7.6 GNOME桌面環境(若最小化安裝,默認是無桌面的,那么就要安裝桌面,參考百度)
個人主機:Windows 10專業版,請安裝Xmanager Power Suite 6(提前安裝,參考百度)
打開Xmanager,用Xshell連接服務器,超簡單如下:
采用root方式登錄
1、安裝epel源,如果已經安裝,可跳過此步驟
yum install epel-release -y
2、安裝lightdm和xfce
yum install lightdm -y
yum groupinstall -y xfce
3、修改配置文件
vim /etc/lightdm/lightdm.conf
=============
# The authentication key is a 56 bit DES key specified in hex as 0xnnnnnnnnnnnnnn. Alternatively
# it can be a word and the first 7 characters are used as the key.
#
[XDMCPServer]
enabled=true
port=177
#listen-address=
#key=
#hostname=
=============
4、將DisplayManager改為lightdm
systemctl disable gdm && systemctl enable lightdm
5、啟動lightdm
systemctl start lightdm
6、關閉防火牆
systemctl stop firewalld.service
7、使用xfce(默認使用Gnome桌面)
cd /usr/share/xsessions/
mkdir backup
mv gnome* backup
systemctl restart lightdm
8、打開Xmanager
9、連接登陸
(艹皿艹 ),為嘛會按鍵1次實際輸入2次字符?FFFFFUUUUCCCCKKKKK
單擊鍵盤出現兩個字符的問題解決辦法如下:
10、點擊Xmanager6最上面的工具菜單,並點擊 Xconfig 開始(C)
11、右鍵點擊Default Profile ,選擇屬性。
12、在打開的界面里面選擇高級。在如下界面中可以看到紅圈里的XKEYBOARD,本來是打上對勾的,點一下對勾,取消選擇這個選項,問題解決。
13、進入
14、若想從Xstart遠程進入桌面
15、輸入密碼、輸入參數等
16、窗體配置 本人配置的是單一窗體
進入遠程桌面