Brief: In this guide, we will take a look at how to install GNOME desktop (GUI) on Rocky Linux 9. This guide will be useful for users who have installed a basic functionality using the Minimal Install but later decided to switch to the Graphical Interface.
Linux is a widely adopted operating system, which is used to run many mission-critical applications in data centers. It is known for its stability and performance. One other reason for its popularity is its exceptional command-line support. Linux users can manage the entire system using the command line interface (CLI) only. This allows us to manage Linux servers more efficiently by automating repetitive tasks.
Many users and administrators prefer to use the command line interface to perform their day-to-day tasks. However, in some cases, a user-friendly graphical interface makes our lives easy. For example, we can use the graphical interface to browse the internet, read/compose media-rich e-mails, and so on.
In this guide, we will see the detailed steps on how to install the GNOME Desktop (GUI) on Rocky Linux 9. We will also see how to enable the graphical mode so that system can boot into graphical mode by default. After following this guide beginners will be able to operate the Linux system effortlessly using the easy-to-use graphical interface.
Prerequisites
Before proceeding, we must ensure that the system meets the following installation requirements:
- A stable internet connection with moderate to high speed.
- A user with superuser privileges. In our case, this will be a root user which is indicated by the hash
(#)
prompt. - At least 2 GB of RAM with an additional 1 GB of disk space.
Please note that the last requirement will vary from system to system. For example, a heavily used system will require more hardware resources whereas a moderately used system will require average hardware resources.
Installing Gnome Desktop in Rocky Linux 9
First, let’s find out the currently installed base environment using the dnf group sub-command:
<code># dnf group list --installed</code>
As we can see, currently the system is using a Minimal Install base environment that provides basic functionality without a graphical interface.
Rocky Linux provides multiple base environments that can be listed using the following command:
<code># dnf group list --available</code>
Here, we can see all the available environment groups such as Server With GUI, Server, Workstation, Custom Operating System, and Virtualization Host. These are located under the Available Environment Groups section.
Out of these environments, the Workstation and Server With GUI support the GNOME Desktop environment.
The prime difference between the Workstation and Server With GUI is that the former is ideal for laptops and PCs whereas the latter is ideal for data center servers. Hence both of these base environments provide a different set of packages.
For example, Workstation provides email, chat, video conferencing, and office suite packages. Whereas Server With GUI provides debugging and monitoring tools, an email server, an FTP server, and other similar packages.
We can choose the appropriate environment group as per our requirements. For example, to set up the Workstation environment we can use the following command:
<code># dnf group install "Workstation"</code>
Similarly, to install Server With GUI we can use the following command:
<code># dnf group install "Server with GUI"</code>
The above command shows the installation summary such as the package name, its version, repository, and its size. In addition to this, it also shows the transaction summary which includes the number of packages that will be installed and the total download size.
Let’s type y
and press the enter key to begin the installation.
Enabling the Graphical Mode in Rocky Linux 9
Just now we installed the GNOME Desktop Environment. However, this is not sufficient to use the graphical interface. Because the default target of the system is still non-graphical. So let’s set it to the graphical mode.
First, check the current target of the system using the following command:
<code># systemctl get-default <p><strong>multi-user.target</strong></p></code>
Here, the multi-user.target represents the run-level 3.
Next, set the graphical mode as the default target of the system:
<code># systemctl set-default graphical</code>
This will ensure that the system boots into graphical mode every time unless we change it.
Now, verify that the default target of the system is updated:
<code># systemctl get-default<p><strong>graphical.target</strong></p></code>
Finally, reboot the system to boot into the graphical mode:
<code># reboot </code>
In the next section, we will see how to set up the GNOME Desktop Environment.
Setting Up the Gnome Desktop Environment in Rocky Linux 9
Now, we can see the GNOME welcome screen. Let’s follow the on-screen instruction to complete initial the setup.
The initial setup will ask for basic information such as location settings, online accounts, optionally new user creation, and so on.
That’s it, now we can start using the system using the GNOME Desktop environment.
In this step-by-step guide, first, we saw how to install the GNOME Desktop Environment on Rocky Linux 9. Then, we updated the default target of the system to boot it into the graphical mode. Finally, we completed the initial setup using the GNOME welcome screen.
Did you find this information useful? Let us know your views in the comments below.
The above is the detailed content of How to Install Gnome Desktop On Rocky Linux 9. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undress AI Tool
Undress images for free

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

When encountering DNS problems, first check the /etc/resolv.conf file to see if the correct nameserver is configured; secondly, you can manually add public DNS such as 8.8.8.8 for testing; then use nslookup and dig commands to verify whether DNS resolution is normal. If these tools are not installed, you can first install the dnsutils or bind-utils package; then check the systemd-resolved service status and configuration file /etc/systemd/resolved.conf, and set DNS and FallbackDNS as needed and restart the service; finally check the network interface status and firewall rules, confirm that port 53 is not

As a system administrator, you may find yourself (today or in the future) working in an environment where Windows and Linux coexist. It is no secret that some big companies prefer (or have to) run some of their production services in Windows boxes an

Built on Chrome’s V8 engine, Node.JS is an open-source, event-driven JavaScript runtime environment crafted for building scalable applications and backend APIs. NodeJS is known for being lightweight and efficient due to its non-blocking I/O model and

In Linux systems, 1. Use ipa or hostname-I command to view private IP; 2. Use curlifconfig.me or curlipinfo.io/ip to obtain public IP; 3. The desktop version can view private IP through system settings, and the browser can access specific websites to view public IP; 4. Common commands can be set as aliases for quick call. These methods are simple and practical, suitable for IP viewing needs in different scenarios.

Linuxcanrunonmodesthardwarewithspecificminimumrequirements.A1GHzprocessor(x86orx86_64)isneeded,withadual-coreCPUrecommended.RAMshouldbeatleast512MBforcommand-lineuseor2GBfordesktopenvironments.Diskspacerequiresaminimumof5–10GB,though25GBisbetterforad

Written in C, MySQL is an open-source, cross-platform, and one of the most widely used Relational Database Management Systems (RDMS). It’s an integral part of the LAMP stack and is a popular database management system in web hosting, data analytics,

Ubuntu has long stood as a bastion of accessibility, polish, and power in the Linux ecosystem. With the arrival of Ubuntu 25.04, codenamed “Plucky Puffin”, Canonical has once again demonstrated its commitment to delivering a

MongoDB is a high-performance, highly scalable document-oriented NoSQL database built to manage heavy traffic and vast amounts of data. Unlike traditional SQL databases that store data in rows and columns within tables, MongoDB structures data in a J
