Linux

How to install and enable GUI GNOME Desktop on centos 7

Usually CentOS 7 comes in a numbers of variants, For most users, there are two major options are the GUI installation. or the minimal installation, and in most cases users prefer to use minimal installation which use remote shell commands. In this article we will talk about switching from minimal installation to GUI (Graphical User Interface) installation.

What is GNOME?

GNOME is the most popular environment in the latest distributions of Linux. It’s the default environment in CentOS 7 GUI, Fedora 21 and later and Ubuntu 17.10

How to install GUI “GNOME Desktop” on centos7

Login to your server using SSH , then run the following command

Note that this may take a while, download required packages.
    
     yum groupinstall “GNOME Desktop” -y
    
   

Enable centos 7 GUI

By default after installing the “GNOME Desktop” group of packages, the default target will not have changed, as example after you reboot the server the GUI will not automatically load. To check the current default target run the following command:
    
     systemctl get-default
# ------ Result ------
# multi-user.target
    
   

The result means that still not GUI enabled. 

Now we change to graphical interface

    
     systemctl set-default graphical.target
#Removed symlink /etc/systemd/system/default.target
#Created symlink from /etc/systemd/system/default.target to /usr/lib/systemd/system/graphical.target.

    
   

To verify again what is the default run again the command

    
     systemctl get-default
# ------ Result ------
# graphical.target
    
   

And we are good , you can now reboot your server and the GUI interface will appear asking for accepting license , and under user settings , you can start add new users. You can change to the GUI by performing ‘systemctl isolate graphical.target’ which will change us to the GUI immediately.

    
     systemctl isolate graphical.target
    
   

“If you are using our VPS Server login to your client area and choose your VPS server and click VNC” , or you need to have VNC client to connect to your server.

To Remove centos 7 GUI

    
     yum groupremove "GNOME Desktop"
    
   

Visit the following for More resources regarding centos.

XsoftHost Support

Share

Recent Posts

Add Extra IP addresses to server configuration On Ubuntu 17.10 and later

Each failover IP address will need its own line in the configuration file. The configuration…

3 years ago

Create RAID Arrays with mdadm on Ubuntu

What is mdadm? The mdadm utility can be used to create and manage storage arrays…

4 years ago

How to change the maximum upload file size for PHP

There are several scenarios that you might need to increase or decrease your php maximum…

6 years ago

How to install Let’s Encrypt Plugin in WHM/cPanel

What is Let’s Encrypt? Let’s Encrypt is a free certificate authority provided by the Internet…

6 years ago

How to install python in my cPanel and add py extension

Python normally installed on all cPanel hosting server because most of Centos/red hat update system…

6 years ago

How to Uninstall cloudlinux and covert back to centos cpanel server

CloudLinux supports all the hardware supported by RHEL/CentOS, with few exceptions. Exceptions are usually hardware…

6 years ago