Celeb Glow
general | March 11, 2026

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:

Failed to set default target: Interactive authentication required

enter image description here

1

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

1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy