Lately, I installed CentOS 7 in VMWare, and it was all good until it booted in CLI (Command Line Interface) mode.
startx command but no help. It looks like Desktop Environment was not installed for some reason.
If you are in the same situation then here is how you can install the necessary package to boot in GUI (Graphical User Interface) mode.
Let’s install GNOME Desktop with the following command.
yum groups install "GNOME Desktop"
It will take a few minutes to install the packages needed for GNOME and once done use “startx” command.
You need to go through accepting a license, creating a user, configuring language, keyboard type to set up for the first time, and finally, you will have the CentOS desktop.
We are not done yet.
When you reboot your CentOS, you will see the command prompt again.
So you need to preserve the settings to start in graphical mode every time you boot the OS.
- Open a terminal and execute the following command
systemctl set-default graphical.target
- Restart the CentOS, and it should be booted in GNOME GUI mode.
If you are not a GNOME fan then Alternatively, you may install the KDE environment with the below command.
yum groups install "KDE Plasma Workspaces"
I hope the above helps you to boot CentOS in graphical desktop mode.
Interesting in learning Linux Administration? Check out this administration Bootcamp course.
- Tagged in:
More great readings on Sysadmin
Looking For Traceroute on RHEL 8? Try TracepathAbhishek Nair on June 14, 2022
6 Best Switch Port Monitoring ToolsDurga Prasad Acharya on June 12, 2022
Windows 10/11 Random Shutdown: How to Find the CauseHitesh Sant on May 30, 2022
7 Best Server Configuration Monitoring and Auditing ToolsTalha Khalid on May 28, 2022
8 Best FTP Server Software for Windows for Secure TransferSatish Shethi on May 24, 2022
OSI Model Layers: An Introduction GuideAmrita Pathak on May 13, 2022
Join Geekflare Newsletter
Every week we share trending articles and tools in our newsletter. More than 10,000 people enjoy reading, and you will love it too.