CentOS7 Minimal下安裝圖形化界面的方法,有些時候純命令界面確實比較累,個人學習可以使用圖像界面,服務器強烈不建議用圖形界面。
登錄系統,使用yum 安裝
yum -y groupinstall Desktop
yum -y groupinstall "X Window System"
安裝GNOME桌面環境
yum install gnome-classic-session gnome-terminal nautilus-open-terminal control-center liberation-mono-fonts
#yum groupinstall 'X Window System' -y
如果安裝KDE桌面環境
#yum groupinstall 'KDE (K Desktop Environment)' -y
如果發生錯誤:
Warning: Group GNOME Desktop Environment does not exist.
No packages in any requested group available to install or update
則可以先用yum grouplist 檢查一下已安裝的組可支持的組,獲得對應的組名再安裝
卸載GNOME桌面環境
#yum groupremove "GNOME Desktop Environment"
卸載KDE桌面環境
#yum groupremove "KDE (K Desktop Environment)"
登錄系統,使用yum 安裝
#yum groupinstall 'X Window System' -y
安裝GNOME桌面環境
#yum groupinstall 'GNOME Desktop Environment' -y
如果安裝KDE桌面環境
#yum groupinstall 'KDE (K Desktop Environment)' -y
如果發生錯誤:
Warning: Group GNOME Desktop Environment does not exist.
No packages in any requested group available to install or update
則可以先用yum grouplist 檢查一下已安裝的組可支持的組,獲得對應的組名再安裝
卸載GNOME桌面環境
#yum groupremove "GNOME Desktop Environment"
卸載KDE桌面環境
#yum groupremove "KDE (K Desktop Environment)"