How to disable GUI at startup Searched

Greetings all,

I am trying to disable the GUI such that I may boot into text mode with x-windows not loaded. I cannot find the configuration item in YAST. What I have done in the past was edit /etc/inittab, however there is no such file in SLES12.

I suppose there is an option in grub, however I am not familiar.

Any help would be greatly appreciated.

Cheers!
WS

Try this as ‘root’:

systemctl set-default multi-user target


Good luck.

If you find this post helpful and are logged into the web interface,
show your appreciation and click on the star below…

Thank you! I will try that out.

Incidentally, I ended up modifying /etc/sysconfig/displaymanager and changed:

DISPLAYMANAGER=“gdm” to DISPLAYMANAGER=“console”

I am not sure if this was the best way, however this gave me the result I was looking for.

This works! to toggle it back use:

systemctl set-default graphical target

This works on CentOS 7 as it looks like /etc/inittab has been depreciated.

Yes, /etc/inittab is a legacy of SysV stuff, and now with SystemD a lot of
things change. Some of the old ways still work for compatibility, but
ultimately many things are deprecated. Lots to learn, lots of new
potential, and some new headaches. Time marches on…


Good luck.

If you find this post helpful and are logged into the web interface,
show your appreciation and click on the star below…