Friday 17 February 2023

How to Install Gnome GUI on CentOS 9 Using DNF Group Install

CentOS 9 and many Linux distributions have options to install minimal, GUI and others and minimal installation restrict resource utilization. However, if minimal installation done while installation and GUI can be installed later.

[root@linuxcnf ~]# cat /etc/centos-release
CentOS Stream release 9
[root@linuxcnf ~]#

This article describes How to Install Gnome GUI Desktop on CentOS 9 on top of minimal installation.
Step 1. Package Group List: Run the following command to check package group list for Gnome GUI packages installation on CentOS 9:
[root@linuxcnf ~]# dnf grouplist
Last metadata expiration check: 3:49:03 ago on Tue 14 Feb 2023 02:36:14 PM IST.
Available Environment Groups:
   Server with GUI
[root@linuxcnf ~]#
Step 2. Package installation: Run the following commands to install “Server with GUI” group packages:
[root@linuxcnf ~]# dnf groupinstall "Server with GUI"
[root@linuxcnf ~]#
Step 3. Check Default Target: As shown in below output, set by default on minimal installation.
[root@linuxcnf ~]# systemctl get-default
[root@linuxcnf ~]#
Step 4. Set Default Target: After installation of GUI will not change the default target. Run the following command to change the default run level from to
[root@linuxcnf ~]# systemctl set-default
Removed "/etc/systemd/system/".
Created symlink /etc/systemd/system/ /usr/lib/systemd/system/
[root@linuxcnf ~]#
Caution: Before reboot maintain all the precautions!!! Startx command also start graphical mode if server physical console accessible.
Step 5. Reboot: Finally, reboot the machine to start the server in the graphical mode.
[root@linuxcnf ~]# reboot
While rebooting system follow the instruction to complete GUI booting process. Once system will come up, Login window will appear.
Done!!! GUI (Graphical User Interface) installation has been done on CentOS 9.

No comments:

Post a Comment