I tried 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. 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

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. I hope the above helps you to boot CentOS in graphical desktop mode. Interesting in learning Linux Administration? Check out this administration Bootcamp course.

How to Boot CentOS 7 in GUI Mode  Desktop Environment   - 50How to Boot CentOS 7 in GUI Mode  Desktop Environment   - 81How to Boot CentOS 7 in GUI Mode  Desktop Environment   - 56How to Boot CentOS 7 in GUI Mode  Desktop Environment   - 3How to Boot CentOS 7 in GUI Mode  Desktop Environment   - 15How to Boot CentOS 7 in GUI Mode  Desktop Environment   - 92How to Boot CentOS 7 in GUI Mode  Desktop Environment   - 25How to Boot CentOS 7 in GUI Mode  Desktop Environment   - 99How to Boot CentOS 7 in GUI Mode  Desktop Environment   - 38How to Boot CentOS 7 in GUI Mode  Desktop Environment   - 13How to Boot CentOS 7 in GUI Mode  Desktop Environment   - 18How to Boot CentOS 7 in GUI Mode  Desktop Environment   - 40How to Boot CentOS 7 in GUI Mode  Desktop Environment   - 63How to Boot CentOS 7 in GUI Mode  Desktop Environment   - 65How to Boot CentOS 7 in GUI Mode  Desktop Environment   - 49How to Boot CentOS 7 in GUI Mode  Desktop Environment   - 60How to Boot CentOS 7 in GUI Mode  Desktop Environment   - 94How to Boot CentOS 7 in GUI Mode  Desktop Environment   - 43How to Boot CentOS 7 in GUI Mode  Desktop Environment   - 15How to Boot CentOS 7 in GUI Mode  Desktop Environment   - 54How to Boot CentOS 7 in GUI Mode  Desktop Environment   - 67How to Boot CentOS 7 in GUI Mode  Desktop Environment   - 83How to Boot CentOS 7 in GUI Mode  Desktop Environment   - 5How to Boot CentOS 7 in GUI Mode  Desktop Environment   - 94