• 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. How to configure NTP to fall back to local system clock source in CentOS/RHEL
  2. tune2fs: command not found
  3. How to Change or Rename a Mount Point in Linux
  4. CentOS / RHEL 5 : How to use the faillog command to track failed login attempts
  5. How to verify the integrity of a file with md5 checksum
  6. How To Disable Or Extend System Logging Rate-limit on CentOS/RHEL 6
  7. How to enable bind query logging to find out Who’s Querying a Name Server
  8. mv Command Examples in Linux
  9. makepkg Command Examples in Linux
  10. “kernel: INFO: task {PROCESS}:{PID} blocked for more than 120 seconds.” – CentOS/RHEL Troubleshooting

You May Also Like

Primary Sidebar

Recent Posts

  • protonvpn-cli Command Examples in Linux
  • protonvpn-cli connect Command Examples
  • procs Command Examples in Linux
  • prlimit: command not found

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright