LinuxQuestions.org
Review your favorite Linux distribution.
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 04-09-2004, 12:47 PM   #1
immer
LQ Newbie
 
Registered: Oct 2003
Location: Somewhere in Europe :-)
Distribution: Linux Mint
Posts: 29

Rep: Reputation: 15
Question Autologon on Fluxbox - how?


Hello everybody.

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.

Best regards.
 
Old 04-09-2004, 05:03 PM   #2
jimdaworm
Member
 
Registered: Aug 2003
Location: Spain
Distribution: Ubuntu
Posts: 897

Rep: Reputation: 30
xwmconfig (I think thats the command) chosse fluxbox as your default windows manager (if it isnīt already)

edit this file I would guess you need to be root to do it.

/etc/inittab

and change
id:3:initdefault:

to

id:5:initdefault:

I hope that helps... I think it should work in teory what ever you do donīt set it to 1 or 6!

Adam
 
Old 04-09-2004, 05:36 PM   #3
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
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? 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.
 
Old 04-09-2004, 05:44 PM   #4
squabsy
LQ Newbie
 
Registered: Mar 2004
Posts: 9

Rep: Reputation: 0
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
 
Old 04-10-2004, 04:52 PM   #5
immer
LQ Newbie
 
Registered: Oct 2003
Location: Somewhere in Europe :-)
Distribution: Linux Mint
Posts: 29

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by squabsy
1 set fluxbox as default WM
I done it with
Code:
xwmconfig
command.
Quote:
2 loggin as root in KDE
in loggin manager set your user ID to loggin without needing a password and to loggin automatically
Voila
I do it and system automatically starts KDE, not Fluxbox :-(

So... If I do everything what you wrote in loggin manager in KDE, set fluxbox as default WM
and have in /etc/inittab
Code:
id:3:initdefault:
and I login in console, and type
Code:
startx
Fluxbox starts.

BUT...if i change in /etc/inittab
Code:
id:4:initdefault:
...KDE starts.
 
Old 04-10-2004, 05:03 PM   #6
immer
LQ Newbie
 
Registered: Oct 2003
Location: Somewhere in Europe :-)
Distribution: Linux Mint
Posts: 29

Original Poster
Rep: Reputation: 15
Quote:
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.
 
Old 04-10-2004, 06:15 PM   #7
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
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.
 
Old 04-11-2004, 04:00 PM   #8
immer
LQ Newbie
 
Registered: Oct 2003
Location: Somewhere in Europe :-)
Distribution: Linux Mint
Posts: 29

Original Poster
Rep: Reputation: 15
Quote:
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
 
Old 04-11-2004, 04:17 PM   #9
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
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.
 
Old 04-11-2004, 05:01 PM   #10
immer
LQ Newbie
 
Registered: Oct 2003
Location: Somewhere in Europe :-)
Distribution: Linux Mint
Posts: 29

Original Poster
Rep: Reputation: 15
Red face

Quote:
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.
 
Old 04-11-2004, 05:12 PM   #11
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
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.
 
Old 04-12-2004, 05:02 PM   #12
immer
LQ Newbie
 
Registered: Oct 2003
Location: Somewhere in Europe :-)
Distribution: Linux Mint
Posts: 29

Original Poster
Rep: Reputation: 15
Thumbs up

Quote:
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!

Best regards.
 
Old 04-12-2004, 08:01 PM   #13
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
No problem. Congrats on getting it working.
 
Old 04-12-2004, 09:24 PM   #14
r_jensen11
Senior Member
 
Registered: Apr 2003
Location: Minnesota, USA
Distribution: Slack 10.0 w/2.4.26
Posts: 1,032

Rep: Reputation: 45
Quote:
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?

"slocate xprofile" doesn't turn anything up....
 
Old 04-13-2004, 08:13 AM   #15
immer
LQ Newbie
 
Registered: Oct 2003
Location: Somewhere in Europe :-)
Distribution: Linux Mint
Posts: 29

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by r_jensen11
How come I don't see any ~/.xprofile file in my directories? ...
You have to create this file. Example:
Code:
echo "exec fluxbox" > ~/.xprofile
 
  


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
Problems setting up autologon for Suse9.3 & WindowsMaker steve_f60 Linux - General 1 11-10-2005 02:41 PM
fedora 3 autologon zchoyt Linux - Software 3 04-14-2005 12:00 AM
autologon + redhat Enterprise 2.1 mehesque Linux - General 0 06-14-2004 11:23 AM
Fluxbox pix_cell Linux - Software 4 03-03-2004 05:59 PM
Fluxbox: Enabling KDE using package install of fluxbox underline Linux - Software 0 12-27-2003 10:11 AM

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

All times are GMT -5. The time now is 09:52 PM.

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