Tonight I started to review the learning material for Red Hat System Administration III to prepare for RHCSE exam. I need a machine with GUI, and all my CentOS 7 VMs are headless. So let’s install the GUI on it, shall I?
epel repo, if it’s not yet installed:
Then install the 2 groups:
Tip, if “I” can’t remember the names of the groups, I can run this command to list all available groups:
The last step is optional. But if I want the machine to boot up into the graphical login, I need to ensure that the default target is
graphical.target. Usually, the default target is
I think I can also switch to the graphical.target without rebooting by running:
Note, I didn’t test the above last command though, so it may just not work.