In this tutorial we’ll learn how to install GNOME on CentOS 7. We will also install and configure its prerequisites. GNOME is one of the most popular desktop environments for Linux users today. By default a full installation of CentOS 7 will have the graphical user interface (GUI) installed, but we can install gnome 3 desktop on CentOS if you like to use gnome 3 as your desktop environment.
I recommend to use a minimal Ubuntu server setup as a basis for the tutorial, that can be a virtual or a root server image with an CentOS 7 minimal install from a web hosting company or you use our minimal server tutorial to install a server from scratch.
Install GNOME on CentOS 7
Step 1. First, ensure your system is fully up-to-date by running the following:
yum -y update
Step 2. Installing GNOME.
Install Gnome GUI by issuing the following command:
yum groupinstall "GNOME Desktop"
By default after installing the “GNOME Desktop” group of packages, the default target will not have changed, meaning that after a reboot the GUI will not automatically be loaded. The last step which remains is to change system target or runlevel from runlevel 3 to runlevel 5. This will ensure that we directly boot to GNOME GUI:
systemctl set-default graphical.target systemctl get-default
Finally steps, Reboot the machine to start the server in the graphical mode:
Congratulation’s! You have successfully install and configured GNOME on your CentOS 7 server.