本篇文章介紹如何在CentOS8 Linux操作系統中安裝GNOME3桌面環境和GDM(GNOME Display Manager)現實環境管理器。 |
環境
CentOS8 Minimal
安裝GNOME3
首先列出網絡源中可以使用的Groups:
[root@localhost ~]# yum grouplist
下一步我們需要“Available Environment Groups”下面的“Server with GUI”,這個“Server with GUI”環境包使用的桌面環境就是GNOME3。下面進行安裝,下載大約1GB的安裝包:
[root@localhost ~]# yum groupinstall "Server with GUI"
安裝完成!
設置GDM開機啟動
查看gdm.service
是否啟動,發現gdm服務沒有啟動。
[root@localhost ~]# systemctl status gdm ● gdm.service - GNOME Display Manager Loaded: loaded (/usr/lib/systemd/system/gdm.service; enabled; vendor preset: enabled) Active: inactive (dead)
下面設置gdm
開機啟動,並立即啟動該服務:
[root@localhost ~]# systemctl enable gdm --now
設置系統啟動級別為graphical
默認情況,CentOS8默認啟動級別為multi-user.target
。
[root@localhost ~]# systemctl get-default multi-user.target
下面設置CentOS8的啟動級別為graphical.target
[root@localhost ~]# systemctl set-default graphical.target Removed /etc/systemd/system/default.target. Created symlink /etc/systemd/system/default.target ¡ú /usr/lib/systemd/system/graphical.target. [root@localhost ~]# systemctl get-default graphical.target
進入GNOME3桌面
設置完上面的配置之后,重啟操作系統。進入歡迎界面:
總結
本篇文章介紹如何在CentOS8 Linux操作系統中安裝GNOME3桌面環境和GDM(GNOME Display Manager)現實環境管理器。