PDA

View Full Version : How to disable GUI at startup Searched



sorgenfw
27-Aug-2015, 19:09
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

ab
27-Aug-2015, 19:35
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...

sorgenfw
28-Aug-2015, 22:19
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.

sorgenfw
01-Sep-2015, 23:08
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.

ab
01-Sep-2015, 23:56
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...