[SOLVED] inittab runlevel 4 always takes me to kde desktop instead of fluxbox
SlackwareThis Forum is for the discussion of Slackware Linux.
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.
inittab runlevel 4 always takes me to kde desktop instead of fluxbox
Installed slackware 15, set window manager to fluxbox during the install.
When I login at runlevel 3 and run startx I always get fluxbox (both as root and as user), but when I change runlevel to 4 the system always starts kde. Why?
In /etc/X11/xinit/xinitrc is a link to xinitrc.fluxbox. There is an .xinitrc and an .xsession in my /root directory that is a copy of xinitrc.fluxbox.
Also, I manually copied xinitrc.fluxbox to my home directory ~/.xintrc.
If xdm it will use ~/.xsession, if kdm or sddm I do not know how those work. My guess you are using kdm. Others here should be able to help wit kdm/ssdm.
See "/etc/rc.d/rc.4", you can create a /etc/rc.d/rc.4.local to change over to xdm, which is what did to use fvwm2.
Note, you should use 'xwmconfig' to copy the startup files, that also brings in .xsession
I think the installer uses xwmconfig, and I selected fluxbox when it ran during the install process. So, after I verified that I could login and use startx to get into fluxbox I set inittab to runlevel 4 and when I rebooted I expected it to start fluxbox, but it took me to the kde desktop instead. That's the way I've always done it in the past.
I ran xwmconfig again, again selecting fluxbox. But it doesnt work. The only way I can get into fluxbox is if I set runlevel to 3, then do startx after I login as user.
All I have on that system (fresh slackware 15 install) is /usr/bin/xdm and /usr/bin/sddm. Neither gdm or kdm are present, at least not in the locations that the rc.4 script is looking for them.
So I'd say Im using sddm, since that's the last one the rc.4 script looks for before defaulting to xdm.
I just tried to manually start sddm, from runlevel 3, and I do get a graphical login but I never see anything that looks like that when im in runlevel 4 and I boot. At runlevel 4 it goes straight to some kind of plasma login screen.
All I have on that system (fresh slackware 15 install) is /usr/bin/xdm and /usr/bin/sddm. Neither gdm or kdm are present, at least not in the locations that the rc.4 script is looking for them.
So I'd say Im using sddm, since that's the last one the rc.4 script looks for before defaulting to xdm.
I just tried to manually start sddm, from runlevel 3, and I do get a graphical login but I never see anything that looks like that when im in runlevel 4 and I boot. At runlevel 4 it goes straight to some kind of plasma login screen.
That login screen is sddm. runlevel 4 is useful if you want a graphical login screen which is what sddm provides. You can also use it to configure things like autologin so that when you boot the system it goes straight to the desktop. Not the most secure option in the world but it's useful sometimes.
There's usually no reason to start sddm manually. You can, but it tends to act funny when you do.
All I have on that system (fresh slackware 15 install) is /usr/bin/xdm and /usr/bin/sddm. Neither gdm or kdm are present, at least not in the locations that the rc.4 script is looking for them.
So I'd say Im using sddm, since that's the last one the rc.4 script looks for before defaulting to xdm.
I just tried to manually start sddm, from runlevel 3, and I do get a graphical login but I never see anything that looks like that when im in runlevel 4 and I boot. At runlevel 4 it goes straight to some kind of plasma login screen.
At this screen is there anything you can click that would bring up a list of DEs/WMs you can launch?
At the lower left side of the login screen there is a drop down menu. Select Xsession default and it should load whatever you chose with xwmconfig. I tested it and fluxbox works with it.
Last edited by RadicalDreamer; 02-15-2022 at 09:41 PM.
Looks like xdm is the only display manager that starts fluxbox on my system, at least as the system is configured after a default install.
Sddm is installed, but it looks like sddm is Wayland's display manager and it always comes up with the plasma desktop. Does it replace kdm? Since i couldn't find kdm anywhere. Apparently sddm ignores the files that xwmconfig creates.
So apparently if you want to use fluxbox on Slack15 you basically have to use xdm or install some other display manager.
Is anyone else using fluxbox? How did you get it to start up in runlevel 4?
At the lower left side of the login screen there is a drop down menu. Select Xsession default and it should load whatever you chose with xwmconfig. I tested it and fluxbox works with it.
Ok, that works. Don't need an rc.4.local. I didn't see the drop down menu at the bottom left of the login screen.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.