• 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

How to Install GUI On CentOS/RHEL 8

by admin

This note explains how to install GUI on CentOS/RHEL 8. During installation, this GUI package was not selected at the software selection phase. And so after installation, the screen boots into CLI prompt and not GUI.

When checked with the Available Environment Groups in grouplist it still shows “Server with GUI” as shown in an example below:

# dnf grouplist
This system is receiving updates from Unbreakable Linux Network or Spacewalk.

Last metadata expiration check: x:yy:zz ago on Mon xx Oct yyyy

Available Environment Groups:
      Server with GUI    
...
...

1. Ensure all the system packages are up to date. Execute the following command to update the system to the latest release from the repository:

# dnf update

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

# dnf groupinstall "Server with GUI"

The above will install the GUI which otherwise by default gets installed to text mode.

3. Enable GUI on system start up.

# systemctl set-default graphical.target

In CentOS/RHEL 8, systemd uses ‘targets’ instead of runlevels.

4. Issue the following command to enable the GUI on system start.

# ln -sf /lib/systemd/system/runlevel5.target /etc/systemd/system/default.target

4. Reboot the machine and it will boot into GUI.

# systemctl reboot

Filed Under: CentOS/RHEL, CentOS/RHEL 8, Linux

Some more articles you might also be interested in …

  1. Linux OS service ‘auditd’
  2. “You must wait longer to change your password” – error while changing password in CentOS/RHEL
  3. 11 Useful “ssh” and “scp” Commands in Linux
  4. What does refid value “.LOCL.” mean in NTP
  5. Understanding the job control commands in Linux – bg, fg and CTRL+Z
  6. How to use auditd to monitor a specific SYSCALL
  7. How To Disable MD5-based HMAC Algorithm’s for SSH
  8. TIME_WAIT queue troubles
  9. Linux OS Service ‘acpid’
  10. How to configure IPtables to open Ports in CentOS / RHEL

You May Also Like

Primary Sidebar

Recent Posts

  • JavaFX ComboBox: Set a value to the combo box
  • Nginx load balancing
  • nginx 504 gateway time-out
  • Images preview with ngx_http_image_filter_module

© 2022 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright