Set GUI as default on CentOS?
I have just installed CentOS. When it boots, it does so to the command line UI. I'd prefer the GUI. I found these steps to switch the GUI by default:
However, when I follow those steps, I don't get the same results as the tutorial. When I enter the command to set the GUI as the default, I am told:
1Failed to set default target: Interactive authentication required
1 Answer
systemctl isolate graphical.target should have started the graphical interface.
Have you installed a desktop environment (GNOME, KDE, XFCE, etc)?
The second command needs root(#) or sudo:
sudo systemctl set-default graphical.target