本篇文章介紹如何在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)現實環境管理器。