LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-15-2022, 06:21 PM   #1
chud1950
Member
 
Registered: Jan 2008
Posts: 49

Rep: Reputation: 4
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.

What could I be missing?
 
Old 02-15-2022, 06:39 PM   #2
jmccue
Member
 
Registered: Nov 2008
Location: US
Distribution: slackware
Posts: 723
Blog Entries: 1

Rep: Reputation: 388Reputation: 388Reputation: 388Reputation: 388
Are you using kdm, sddm or xdm ?

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

Maybe that was the issue(??)

HTH
John

Last edited by jmccue; 02-15-2022 at 06:41 PM.
 
1 members found this post helpful.
Old 02-15-2022, 07:03 PM   #3
chud1950
Member
 
Registered: Jan 2008
Posts: 49

Original Poster
Rep: Reputation: 4
Thanks for the response.

Quote:
Are you using kdm, sddm or xdm ?
How do I find out?

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.
 
Old 02-15-2022, 07:24 PM   #4
chud1950
Member
 
Registered: Jan 2008
Posts: 49

Original Poster
Rep: Reputation: 4
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.
 
Old 02-15-2022, 07:30 PM   #5
jmccue
Member
 
Registered: Nov 2008
Location: US
Distribution: slackware
Posts: 723
Blog Entries: 1

Rep: Reputation: 388Reputation: 388Reputation: 388Reputation: 388
If you did not change anything you are using kdm. If you want to change over to xdm, copy this to
/etc/rc.d/rc.4.local
and do a chmod 755 on it.

Code:
#!/bin/bash
if [ -x /usr/bin/xdm ]; then
  exec /usr/bin/xdm -nodaemon
elif [ -x /usr/X11R6/bin/xdm ]; then
  exec /usr/X11R6/bin/xdm -nodaemon
fi
then do a xwmconfig to copy the startup files. This assumes you are in run level 4.

To change to sddm, you would replace the above with a copy of the sddm logic in /etc/rc.d/rc.4

HTH

Last edited by jmccue; 02-15-2022 at 07:34 PM.
 
Old 02-15-2022, 09:09 PM   #6
Pithium
Member
 
Registered: Jul 2014
Location: Far side of the Oregon Trail
Distribution: Slackware64 15.0
Posts: 508

Rep: Reputation: 586Reputation: 586Reputation: 586Reputation: 586Reputation: 586Reputation: 586
Quote:
Originally Posted by chud1950 View Post
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.
 
Old 02-15-2022, 09:12 PM   #7
Mechanikx
Member
 
Registered: Jul 2018
Distribution: Slackware
Posts: 359

Rep: Reputation: 260Reputation: 260Reputation: 260
Quote:
Originally Posted by chud1950 View Post
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?
 
Old 02-15-2022, 09:39 PM   #8
RadicalDreamer
Senior Member
 
Registered: Jul 2016
Location: USA
Distribution: Slackware64-Current
Posts: 1,823

Rep: Reputation: 988Reputation: 988Reputation: 988Reputation: 988Reputation: 988Reputation: 988Reputation: 988Reputation: 988
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.
 
1 members found this post helpful.
Old 02-15-2022, 10:09 PM   #9
chud1950
Member
 
Registered: Jan 2008
Posts: 49

Original Poster
Rep: Reputation: 4
Thanks.

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?
 
1 members found this post helpful.
Old 02-15-2022, 10:23 PM   #10
chud1950
Member
 
Registered: Jan 2008
Posts: 49

Original Poster
Rep: Reputation: 4
Quote:
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.

Thanks to everyone that responded.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Runlevel 4 in /etc/inittab: no sound after login jayhel Slackware - Installation 1 03-31-2014 01:39 PM
/etc/inittab - accidentally changed runlevel to 0 (halt) fjkum Linux - Newbie 5 05-11-2011 04:39 AM
how to troubleshooting Runlevel & inittab on slackware12 mithridates Slackware 4 08-09-2007 02:19 PM
Command ls --color=always, can always be always Kevin Tough Linux - Newbie 1 09-08-2005 11:05 PM
changed default runlevel from 3 to 4 in inittab- now I'm stuck in a loop Earl Parker II Linux - Newbie 15 07-12-2004 08:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:46 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration