• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

CentOS / RHEL 7 : How to Install GUI

by admin

For the new installation of RHEL 7, GUI doesn’t come with the default installation. If you do not click on the “Software Selection” link and pick “server with GUI” then there will be no GUI after reboot, only “Base Environment ” will be installed.

RHEL 7 software selection

RHEL 7 server with GUI

To enable GUI after system installation, you can use the following method.

Installing the environment group “Server with GUI”

1. Check the available environment groups :

# yum grouplist
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

2. Execute the following to install the environments for GUI.

# yum groupinstall "Server with GUI"
.......
Transaction Summary
====================================================
Install  199 Packages (+464 Dependent packages)
Upgrade               (   8 Dependent packages)

Total download size: 523 M
Is this ok [y/d/N]:

The above will install the GUI in RHEL 7, which by default get installed to text mode.

3. Enable GUI on system start up. In RHEL 7, systemd uses ‘targets’ instead of runlevels. The file /etc/inittab is no more used to change run levels. Issue the following command to enable the GUI on system start.

To set a default target :

# systemctl set-default graphical.target

To change the current target to graphical without reboot :

# systemctl start graphical.target

Verify the default target :

# systemctl get-default
graphical.target

4. Reboot the machine to verify that it boots into GUI directly.

# systemctl reboot

Installing core GNOME packages

“Server with GUI” installs the default GUI which is GNOME. In case if you want to install only core GNOME packages use :

# yum groupinstall 'X Window System' 'GNOME'
....
Transaction Summary
===========================================================
Install  104 Packages (+427 Dependent packages)
Upgrade               (   8 Dependent packages)

Total download size: 318 M
Is this ok [y/d/N]:

Filed Under: CentOS/RHEL 7

Some more articles you might also be interested in …

  1. How to Capture More Logs in /var/log/dmesg for CentOS/RHEL
  2. Understanding the dm-multipath Configuration file /etc/multipath.conf
  3. “lsb_release: command not found” – Fix in CentOS/RHEL
  4. How to change the default IP address of docker bridge
  5. How to enable CUPS Debugging on CentOS/RHEL
  6. How To Customize The Screensaver Options In Gnome on CentOS/RHEL 7
  7. Understanding System Security Services Daemon (SSSD)
  8. CentOS / RHEL 7 : How to create an Network Bonding (NIC teaming) using nmcli
  9. How to create virtual block device (loop device/filesystem) in Linux
  10. How To Calculate The Memory Reserved By HugePages in CentOS/RHEL

You May Also Like

Primary Sidebar

Recent Posts

  • Chezmoi: A multi-machine dotfile manager, written in Go
  • cheat: Create and view interactive cheat sheets on the command-line
  • chars: Display names and codes for various ASCII and Unicode characters and code points
  • chafa: Image printing in the terminal

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright