0

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:

https://www.rootusers.com/how-to-start-gui-in-centos-7-linux/

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
  • That tutorial shows those commands being run from the root user. Try running these commands as root or with sudo.
    – Romen
    Commented Aug 29, 2019 at 18:00

1 Answer 1

2

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
  • I had to install the GUI using this command: yum groupinstall "GNOME Desktop" –y. The process that followed (to download the GUI) took hours. But once done, sudo systemctl set-default graphical.target did the trick. Thanks. Commented Sep 3, 2019 at 14:14

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .