How to install GNOME GUI on CentOS

GNOME adds GUI to the minimal CentOS installation, which is otherwise only a command-line based interface.

In this article, we’re going to explain how can the GNOME GUI can be installed on CentOS minimal version. Since the interface is CLI mode, this is only going to be a bunch of simple terminal commands.

GNOME is a part of the GNU project and is a very simple DE that focuses on ease of usage and elegance. It uses the KISS principle (Keep it simple, stupid), and is the default DE of many distributions like Debian, Fedora, Red Hat Enterprise Linux, Kali Linux, etc. Find out more about GNOME here.

Installing GNOME on minimal CentOS

Let’s straightaway get to it.

Assumption

We’re going to assume that users already have installed CentOS and have access to the root user, or a superuser. We’re going to write the commands according to the root user for the sake of simplicity. If you’re not the root user, just put sudo in front of all commands.

Start up the system and proceed:

Installation

Step 1 – Connect to the internet

You need an internet connection for this. So, if you’re on a wired connection, there’s nothing to do. However, if you want to connect to a wireless network, enter this:

nmtui

It stands for Network Manager Textual User Interface. It is still not a graphical interface, but it’s close, and if you ask me, it is cool too. You can connect to the wireless network here. You should see a menu like this:

Connecting to a wireless network.
Connecting to a wireless network.

Navigate to ‘Activate a connection’ and press Enter. A list of available networks should appear. Choose the one that you want to connect to, enter its password, and you’ll be connected.

Step 2 – Update your system

First, we update the system. It is not always required, but its good practice.

yum update

yum_update
Updating CentOS

Let it finish and proceed.

Step 3 – Install the GNOME package

Now, we install the GNOME packages. To install those, we’re going to use a command that installs all packages related to the GNOME DE.

sudo yum -y groups install "GNOME Desktop"

GNOME Packages installation
Installing GNOME packages

It may take a while, so lay back and get some snacks.

Step 4 – Configure the X window system

The program that runs a graphical environment on most Linux systems is called the X Window System. So, first, you’ll have to tell X that GNOME is the default DE that you want to use for the graphical environment. So enter this command:

echo "exec gnome-session" >> ~/.xinitrc

Now we’re done with the installation of GNOME and configuration of the X Window System. So let’s test it with:

startx

After this program runs, you’ll see the GNOME graphical interface, something like the image below, which means it works.

GNOME
GNOME DE

Step 5

Now it has been installed and tested. However, we don’t want that every time that you start up your system, you have to enter startx to get the GUI. So let’s make it start automatically during startup. Use the following command:

systemctl set-default graphical.target

Conclusion

You are done with installing GNOME on CentOS. Easy, wasn’t it? Now next time you boot, you should see the GNOME login screen. Enjoy the GNOME DE on your system.

We hope this article helped you. Cheers!

Pulkit Chandak
Pulkit Chandak is a Linux enthusiast and has been using and experimenting with open source software and hardware too since a long time. He is a huge admirer of open source software and wants to ventilate it to all around him. He is interested in reviewing and writing tutorials on Linux and its many distributions. He believes that freedom in software leads to freedom of the mind from the chains of limits.

LEAVE A REPLY

Please enter your comment!
Please enter your name here

STAY CONNECTED

23,534FansLike
365FollowersFollow
16SubscribersSubscribe

LATEST ARTICLES

Top 10 Reasons to use Xfce as your Desktop Environment

There are many choices for desktop environments for Linux based operating systems. Mainly, you can install any DE of your choice on most of the Linux based distributions, even if they are not offered as a package officially. In our recent articles, we discussed the best of KDE and Cinnamon. In this article, we wish to present to you the top reasons why you should consider Xfce as your desktop environment.

The 10 Best Linux Network Monitoring Tools

Having total control over your network is essential to prevent programs from overusing your network resources and slowing down the overall performance. This is why you should install a network monitoring tool on your system, giving you a visual overview of everything that's happening on your network. Networking Tools are like swiss-knife for the system administrators for troubleshooting system issues.

How to install CouchPotato on Ubuntu

Downloading movies and copying them over to your home server can get frustrating, especially if you are doing it daily! What if you have an option to download videos automatically, quickly, and above all with excellent quality. CouchPotato allows you to download movies easily once they are available and released automatically.

Top 20 Rsync Examples in Linux

The Rsync (remote sync) command is a Linux/Unix utility used to synchronize and copy files and directories either locally or remotely. Most Linux geeks use Rsync to mirror, backup or migrate data across folders, across disks and networks. One notable feature with the Rsync command is that it uses the "delta transfer algorithm."

Setting up NFS Server on Ubuntu Server

We have put together a detailed step-by-step tutorial that will guide you on how to install and set up NFS Server on Ubuntu so you too can start sharing data with other client systems. It is divided into sections, the first part discussing how to set up the host server and the second part showing you how to set up the client-side. For this tutorial, we will be using Ubuntu 20.04 LTS.

Crontab in Linux Explained With Examples

Crontab is the Linux equivalent of the Window's Task Scheduler. It can help you set up a task to run automatically at a regular...

MUST READ

Linux is growing faster than ever. As per the latest report, there is a drop in the Windows 10 market share for the first time, and Linux's market share has improved to 2.87% this month. Most of the features in the list were rolled out in the Pop OS 20.04. Let's a detailed look into the new features, how to upgrade, and a ride through video.
Elementary OS 5.1 Hera has received a point release with a handful of new features and bug fixes, and we will be reviewing the significant changes in this article. For those new to elementary OS, this Ubuntu-based Linux distribution uses their inhouse built Pantheon desktop environment and AppCenter.

Enabling GameMode on Linux for best gaming performance

GameMode is a combination of various libraries and daemons that allows all the users to improve the gaming performance on the Linux system. Developed by games publisher Feral Interactive, it improves gaming performance by requesting a group of options that will be applied temporarily to the Linux system.

5 Best Ways to Free up Hard Disk Space in Ubuntu

Hard disk space can easily get filled up with cached package files, old kernels, and other obsolete files that occupy unwanted hard disk space. Here are top five best and safer ways to clean and free up hard disk space in Ubuntu. We show you Terminal and GUI way of cleaning up system.

What’s New in Ubuntu 20.04 LTS “Focal Fossa”

Ubuntu 20.04 LTS is out now! This is the successor to Ubuntu 18.04, which was released in April 2018 and still has three years of official support left. Code-named Focal Fossa, the new edition has all the bells and whistles included in it, making it one of the best Ubuntu releases yet. Let's find out more.

The 10 Best Linux Network Monitoring Tools

Having total control over your network is essential to prevent programs from overusing your network resources and slowing down the overall performance. This is why you should install a network monitoring tool on your system, giving you a visual overview of everything that's happening on your network. Networking Tools are like swiss-knife for the system administrators for troubleshooting system issues.