::: MATE :::
yum -y install "@^MATE Desktop"
or
yum -y groupinstall mate-desktop
將近約有 156個套件要安裝
::: GNOME :::
yum -y groupinstall "X Window System" "GNOME Desktop Environment"
or
yum -y install "@^GNOME Desktop"
將近約有 777個套件要安裝
::: XFCE :::
yum --enablerepo=epel -y groups install "Xfce"
yum grouplist 可以列出安裝環境選項
安裝完成之後,
CentOS 7 之後可以用文字指令查詢目前的登入狀態
systemctl get-default
multi-user.target 意思文字登入
graphical.target 意思圖形登入
改變成圖形登入指令是
systemctl set-default graphical.target
改變成文字登入指令是
systemctl set-default multi-user.target
如果同時安裝了 GNOME 或 MATE,那在登入畫面上輸入帳號/密碼後,按Sign In旁邊的那個齒輪,就可以選擇要以哪一套環境登入。
需自行增加注音輸入法:
system tools -> settings -> Regions and Language -> add(+) Input ->
Chinese(Taiwan) -> Chinese(Intelligent Bopomofo)
選擇自己所喜歡的 Desktop 環境,如以下方式
但如果要恢復原始環境則只要刪除 ~/.Xclients 檔案即可
另外、修改 /usr/share/xsessions 資料匣,讓資料匣裡面
只有剩下 MATE 檔案,達到預設桌面效果。
MATE:
echo "mate-session" > ~/.Xclients
chmod +x ~/.Xclients
sudo systemctl restart xrdp.service
XFCEecho "xfce-session" > ~/.Xclients
chmod +x ~/.Xclients
sudo systemctl restart xrdp.service
Gnome 3:
echo "gnome-session" > ~/.Xclients
chmod +x ~/.Xclients
sudo systemctl restart xrdp.service
Gnome Fallback:
echo "gnome-fallback" > ~/.Xclients
chmod +x ~/.Xclients
sudo systemctl restart xrdp.service
KDE:
echo "startkde" > ~/.Xclients
chmod +x ~/.Xclients
sudo systemctl restart xrdp.service
Cinnamon:
echo "cinnamon" > ~/.Xclients
chmod +x ~/.Xclients
sudo systemctl restart xrdp.service
Xfce4:
echo "startxfce4" > ~/.Xclients
chmod +x ~/.Xclients
sudo systemctl restart xrdp.service