Install GNOME GUI on RHEL 7 Linux Server

If you have performend a RHEL 7 Linux Server installation and did not include Graphical User Interface (GUI) you can do it later directly from command line using yum command and selecting an appropriate installation group. To list all available installation groups on Redhat 7 Linux use:

1. Login to the RHEL7 system.

2. List the available group in the yum repository .

[root@hanskarri-rhel ~]# yum group list
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
There is no installed groups file.
Maybe run: yum groups mark convert (see man yum)
Available Environment Groups:
 Minimal Install
 Infrastructure Server
 File and Print Server
 Basic Web Server
 Virtualization Host
 Server with GUI
Available Groups:
 Compatibility Libraries
 Console Internet Tools
 Development Tools
 Graphical Administration Tools
 Legacy UNIX Compatibility
 Scientific Support
 Security Tools
 Smart Card Support
 System Administration Tools
 System Management
Done
[root@hanskarri-rhel ~]#

3. Since , we are working on the server, let me install the group called “server with GUI” group.

[root@hanskarri-rhel ~]# yum groupinstall 'Server with GUI'
Loaded plugins: langpacks, product-id, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
There is no installed groups file.
Maybe run: yum groups mark convert (see man yum)
Package 1:NetworkManager-config-server-0.9.9.1-13.git20140326.4dba720.el7.x86_64 already installed and latest version
Warning: Group core does not have any packages to install.
Warning: Group base does not have any packages to install.
Group base does have 1 conditional packages, which may get installed.
Resolving Dependencies
--> Running transaction check
---> Package ModemManager.x86_64 0:1.1.0-6.git20130913.el7 will be installed
--> Processing Dependency: libmbim-glib.so.0()(64bit) for package: ModemManager-1.1.0-6.git20130913.el7.x86_64
--> Processing Dependency: libqmi-glib.so.1()(64bit) for package: ModemManager-1.1.0-6.git20130913.el7.x86_64
---> Package NetworkManager-libreswan.x86_64 0:0.9.8.0-5.el7 will be installed
<<<<<>>>>>>>
 xorg-x11-server-utils.x86_64 0:7.7-4.el7 xorg-x11-xkb-utils.x86_64 0:7.7-9.1.el7
 yelp-libs.x86_64 1:3.8.1-7.el7 yelp-xsl.noarch 0:3.8.1-2.el7
 zenity.x86_64 0:3.8.0-4.el7
Complete!
[root@hanskarri-rhel ~]#

4. If you do not want to install all the server management graphical tools, just install the gnome desktop  using the below command.

[root@hanskarri-rhel ~]# yum groupinstall 'X Window System' 'GNOME'

5. In RHEL 7’s init  run-levels are called as targets.

[root@hanskarri-rhel ~]# systemctl get-default
multiuser.target
[root@hanskarri-rhel ~]#
6.Modify the target as “graphical.target” to bring the system in to the GUI mode by default.

[root@hanskarri-rhel ~]# systemctl enable graphical.target --force
rm '/etc/systemd/system/default.target'
ln -s '/usr/lib/systemd/system/graphical.target' '/etc/systemd/system/default.target'
[root@hanskarri-rhel ~]#

7.Verify the current target now.

[root@hanskarri-rhel ~]# systemctl get-default
graphical.target
[root@hanskarri-rhel ~]#

8. Reboot the system .

9. Accept the license agreement and continue.

We have successfully configured the existing RHEL7 server with GUI