[SOLVED] Simple question about window managers- how to disable at boot?
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Simple question about window managers- how to disable at boot?
So, I have one of my lan servers booting into kde, but I don't want it to anymore.
My first instinct is to switch to runlevel 3 from 5. But I'm told that these days runlevels are outdated, and don't really matter much. (I'm an old-timer.)
So I'm guessing this is an easy question, right?
I guess I could just gut startx, but that's hackish, there's probably a cleaner way to find the service and disable it, right.
I did google for how to kill it, the kill version works, but it's also hackish, and that's after boot.
Anyway, long story short how do I find the service name so I can systemctl disable it?
I guess what I'm really asking is how do I just get a list of services? chkconfig is apparently deprecated too because it's only listing like 2 services and I know I have more running (nginx for example)
Runlevels still work. I routinely reboot my Centos 7 server with init 6
That said, it would behoove us (you and I) to learn the new ways. A search for "centos change runlevel" yielded many hits with instructions about the new way using systemctl targets. This was the first link.
To start with a graphical login screen on boot instead of Slackware's default console login, change the default runlevel to 4. Edit the file /etc/inittab and change the line that looks like
id:3:initdefault:
to
id:4:initdefault:
so whoever told you that still does not know as much as you. I'd go with your first instinct.
wait:
unless you're just wanting a different desktop, KDE just isn't doing it for you any more, then install whatever other one you want and use your login manager to select a different desktop.
more /etc/inittab
# inittab is no longer used when using systemd.
#
# ADDING CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM.
#
# Ctrl-Alt-Delete is handled by /usr/lib/systemd/system/ctrl-alt-del.target
#
# systemd uses 'targets' instead of runlevels. By default, there are two main targets:
#
# multi-user.target: analogous to runlevel 3
# graphical.target: analogous to runlevel 5
#
# To view current default target, run:
# systemctl get-default
#
# To set a default target, run:
# systemctl set-default TARGET.target
#
Tho I note that the comments provide the answer to the question for the OP...as did michaelk
Omg you guys are awesome, I post a question in the middle of the day on a saturday and get 924586 resonses haha! I should really be giving back more answers here on lq.
So I'm running Fedora 27 in 32 bit (Yea, michaelk, I'm that guy from the fedora forum haha).
Ha so runlevel was the way to go, I'm not so old after all! So I did michaelk's soln and did systemctl set-default multi-user.target and restarted, worked as expected. Not only that but I can still run xfce when I want to (I was a bit worried that runlevel 3 would also disable some kind of libraries or something to support a window manager at all. nope.)
Well here's my giving back a little bit-
Yea, (scasey), in addition to just running systemctl with no arguments or the grep- I found in my notes something I'd forgotton that I read on stackoverflow, this is pretty handy (and colored, woo!):
Code:
systemctl list-unit-files
Btw, seems odd that chkconfig no longer works? it used to be hand-in-hand with systemctl right? I was right about runlevel but wrong about chkconfig, sigh.
Thanks guys. (Sadly killing X didn't fix my underlying problem which is that my drive is periodically active for 1 our of every 10 seconds, i thought xfce was doing it, no, but that's for another post later, that could be any number of things, I'll post that later.)
That one doesn't change the boot level, but changes the default gui (depending on how a gui is started anyway). It works on the pocket chip anyway for a compiled but not installed wm. Although manually with the ln -s (wm_binary) /etc/alternatives/x-window-manager method.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.