当前位置: 首页 > Linux

安装GNOME3桌面并设置开机GUI

时间:2023-04-06 21:17:45 Linux

本文介绍如何在CentOS8Linux操作系统中安装GNOME3桌面环境和GDM(GNOMEDisplayManager)真实环境管理器。环境CentOS8最小安装GNOME3首先列出网络源中可以使用的Groups:[root@localhost~]#yumgrouplist接下来我们需要“AvailableEnvironmentGroups”下的“ServerwithGUI”,这个“ServerwithGUI”环境包使用的桌面环境是GNOME3。安装如下,下载1GB左右的安装包:[root@localhost~]#yumgroupinstall"ServerwithGUI"安装完成!设置GDM开机自启动,检查gdm.service是否启动。发现gdm服务没有启动。[root@localhost~]#systemctlstatusgdm●gdm.service-GNOMEDisplayManagerLoaded:loaded(/usr/lib/systemd/system/gdm.service;enabled;vendorpreset:enabled)Active:inactive(dead)设置如下开机启动gdm,并立即启动服务:[root@localhost~]#systemctlenablegdm--now设置系统启动级别默认为图形化,CentOS8默认启动级别为multi-user.target。[root@localhost~]#systemctlget-defaultmulti-user.target设置CentOS8的启动级别为graphical.target[root@localhost~]#systemctlset-defaultgraphical.target去掉/etc/systemd/system/default.target.Createdsymlink/etc/systemd/system/default.target?ú/usr/lib/systemd/system/graphical.target.[root@localhost~]#systemctlget-defaultgraphical.target以上设置后进入GNOME3桌面配置,重启操作系统。进入欢迎界面:总结本文介绍如何在CentOS8Linux操作系统中安装GNOME3桌面环境和GDM(GNOMEDisplayManager)真实环境管理器。