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.
I have Slackware 9.1 installed on my computer. I'm only user of this system. I also use Fluxbox environment. I would like to start it after my machine boot up. I don't want to have graphical login and type username & password every time.
I know how to do it on KDE, but... with Fluxbox a have no idea.
What are you trying to do? Avoid a graphical login while also starting up a GUI automatically or avoiding any login at all? Because the second's not such a good idea and I don't know how to do that. The first isn't such a good idea either, really. But for that, I'd think adding 'startx' to the end of your ~/.bash_profile or maybe ~/.bash_login should work.
1 set fluxbox as default WM
2 loggin as root in KDE
in loggin manager set your user ID to loggin without needing a password and to loggin automatically
Voila
Originally posted by digiot id:4:initdefault:, actually.
What are you trying to do? Avoid a graphical login while also starting up a GUI automatically or avoiding any login at all?
I would like to start automatically my Fluxbox with particular user (not root). I don't want to type "user", "password" in graphical or console login.
Quote:
Because the second's not such a good idea and I don't know how to do that. The first isn't such a good idea either, really. But for that, I'd think adding 'startx' to the end of your ~/.bash_profile or maybe ~/.bash_login should work.
Why do you think it is not good idea? I have password set in my BIOS.
Um. Depending on the distro, if you are using shadow and aren't using PAM, maybe 'NO_PASSWORD_CONSOLE foo' in /etc/login.defs would get you down to entering a username. And invoking startx automatically would get you around the graphical login. (Probably a login.defs type-thing for that, too.) I really don't know, though. As far as not entering anything at all, how's the system supposed to ID you as joe user and not jill user if you don't authenticate - or at least announce - yourself? Maybe there is a way - I just don't know it. Short of ripping out the whole concepts of multi-user and logging in.
And I don't know what the problem with skipping a console password would be. Maybe nothing. I just always figure the crackers are smarter than me and try to disable or avoid security measures as little as possible. Typing 'foo bar' or 'foo bar startx' once a session just isn't that big of a deal to me.
Play around with 'man agetty' and especially the 'l' and 'n' options and see what you can come up with, I guess.
Originally posted by digiot Um. Depending on the distro,
I'm using Slackware 9.1
Quote:
if you are using shadow and aren't using PAM, maybe 'NO_PASSWORD_CONSOLE foo' in /etc/login.defs would get you down to entering a username. And invoking startx automatically would get you around the graphical login. (Probably a login.defs type-thing for that, too.) I really don't know, though. As far as not entering anything at all, how's the system supposed to ID you as joe user and not jill user if you don't authenticate - or at least announce - yourself? Maybe there is a way - I just don't know it. Short of ripping out the whole concepts of multi-user and logging in.
I would like to start computer and don't wait to type anything (except BIOS password)... just wait for Xwindows (in that time I can make coffe or tea for myself :-) Announce particular user is possible, becouse this kind of "starting" is possible with KDE. And I would like to do the same with Fluxbox. But it's too complicated for me :-(
Quote:
And I don't know what the problem with skipping a console password would be. Maybe nothing. I just always figure the crackers are smarter than me and try to disable or avoid security measures as little as possible. Typing 'foo bar' or 'foo bar startx' once a session just isn't that big of a deal to me.
I'm used to start my system in that way. I don't have to wait while my system is starting, type "login", "password" after that and wait another period of time to start my Fluxbox. If I have to use 'root' account or another in the system I start xterm and login as that user. In Red Hat I could edit my ~/.Xclients-default file and everything was OK with Fluxbox. It starts automaticly with KDE settings about "logging without password" & "loggin automatically".
Quote:
Play around with 'man agetty' and especially the 'l' and 'n' options and see what you can come up with, I guess.
I think I haven't such an experience :-( It's too complicated for me
Oh. I just re-read some stuff up there. You were using xwmconfig to set flux as your default and saying it started up in 3 but you couldn't get the automatic bit. This is right, because 'xwmconfig' just defines the ~/.xinitrc file. But you're trying to get some weird thing KDE does (and I suspect it's actually KDM) so xwmconfig and 3 is not what you want. You want 4 and flux as a default with KDM as a (non)login-manager, like Squabsy said. If you can do this in KDE then, yeah, you can in flux. So try to make sure the graphical login boots you into flux first. That's the problem. Select it in that GUI checkbox thing. Then do the rest of the stuff - as long as init's going to 4 and GDM/KDM is starting up and KDM is doing its weirdness and starting flux, it should work.
Originally posted by digiot Oh. I just re-read some stuff up there. You were using xwmconfig to set flux as your default and saying it started up in 3 but you couldn't get the automatic bit. This is right, because 'xwmconfig' just defines the ~/.xinitrc file. But you're trying to get some weird thing KDE does (and I suspect it's actually KDM) so xwmconfig and 3 is not what you want. You want 4 and flux as a default with KDM as a (non)login-manager, like Squabsy said. If you can do this in KDE then, yeah, you can in flux. So try to make sure the graphical login boots you into flux first. That's the problem. Select it in that GUI checkbox thing. Then do the rest of the stuff - as long as init's going to 4 and GDM/KDM is starting up and KDM is doing its weirdness and starting flux, it should work.
It should work but it doesn't - that is the problem. I have no problem to start Fluxbox "manually" in any (3 or 4) runlevel...
...But, if i have that configuration:
tail -1 ~/.xinitrc
gives me
Code:
exec /usr/X11R6/bin/fluxbox
cat /etc/inittab | grep initdefault
gives me
Code:
id:4:initdefault:
Loggin manager (in KDE) is set to loggin without needing a password for particular user and to loggin automatically.
With that configuration system automatically starts KDE, not Fluxbox.
Well, that's what I mean - .xinitrc doesn't have anything to do with what starts up in runlevel 4. You have to tell KDM to start fluxbox - so what do you mean by starting it 'manually' in runlevel 4? You mean checking the 'which WM do you want?' box? Then I guess it's either one of three things - you're not setting flux as the *default* with KDM or it's not *accepting* the default when you set it for some reason or it *does* rely on KDE and can't do it with other WMs after all. Unfortunately, I can't remember where KDM keeps the data on what the default is so that you could check for sure what KDM thought it was supposed to log you into. Somebody's gotta know this - lots of people use the KDM stuff. Good luck.
Originally posted by digiot ... I can't remember where KDM keeps the data on what the default is so that you could check for sure what KDM thought it was supposed to log you into. Somebody's gotta know this - lots of people use the KDM stuff. Good luck.
Thank you for the clue! I've just read configuration files of KDM. I've found that I have to create ~/.xprofile file with information which X-environment should start with particular user. I've put there "exec fluxbox" line. It works!
Originally posted by immer Thank you for the clue! I've just read configuration files of KDM. I've found that I have to create ~/.xprofile file with information which X-environment should start with particular user. I've put there "exec fluxbox" line. It works!
Best regards.
How come I don't see any ~/.xprofile file in my directories?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.