Start Fluxbox session automatically
I am using Debian Lenny (5.0) with X installed. I also have fluxbox was my Window manger. I would like to achieve this:
When my system boots it should start X and then start fluxbox session automatically without entering login and password. This is for the purpose of creating a LiveCD. Right now, after my system boots I have to manually login and type in "startx" on tty1 which launches X and starts fluxbox thereafter. I would like to ***automate** this very step. I would try to avoid using any login mangers like xdm, gdm, kdm ,etc. Thanks |
|
Quote:
Code:
/etc/event.d/tty1 |
Check in your ~/ folder for a file called ".xinitrc" and add the this to it. If not there create the file
Code:
# echo "exec startfluxbox" >> ~/.xinitrc |
This thread:
http://www.linuxquestions.org/questi...ut-gui-374338/ will show you how to autologin into runlevel 3. For whatever user you decide to autologin as, put this (or something similar/suitable) in its ~/.bash_profile: Code:
if [ -z "$DISPLAY" ] && [ $(tty) == /dev/vc/3 ]; then As previously indicated, you may have to edit .xinitrc so that fluxbox starts when your user issues the command $startx. Fluxbox can also be started from the cli with the command $startfluxbox (instead of $startx) cheers, |
Quote:
I get the part of .xinitrc to start fluxbox. However, I still need to start "startx" manually by typing in the command. And that's made me to post this question. I would like startx to be executed automatically towards the end of the boot process. Quote:
Thanks |
Quote:
1) You add a login manager and set it too auto login your user account 2) You write a script that uses "startx" and add it to runtime default in your init.d or rc.d etc ... etc.. depending on distro. These are they only ways I can think that it would work. Intrested myself if I could bypass using gdm... |
Quote:
|
Maybe find a way to echo the runlevels on startup. If you need a tty open before startx, then trace.log your startup and then startx. At least you can see how the tty is initiated. You'll need to take in account of adding username and pass. Seems like alot of code to me.. I'd just load xdm and autologin.
|
Quote:
Quote:
|
Unless I've seriously misunderstood your intentions, the link referred to in my first post instructs you on how to get a user autolog'd-in, in runlevel3 (ie, no xdm...)
Once that is accomplished, the autolog'd-in user's .bash_profile is sourced - the quote-back you used essentially establishes whether X is running, if it isn't, then it checks whether the autologin condition is met (whether the user is logging in from tty3 (from the linked example)), and if so, then startx. The suggested edit to .xinitrc ensures that fluxbox is started when the command startx is issued. cheers, |
Well... it seems you got yourself a nice project... In fact if you can get it to work, share the source. I did overlook the XDM. I personally use GDM, and find it slow, and it doesn't work well with my kvm switch. Maybe a script that immediately initiates after login? Though that negates an autologin process, just an suggestion.
|
Quote:
If I don't find anything I will use the method in that. Although I am very doubtful it will work. Thank you for the link though. |
Quote:
Please let me know if there are drawbacks (I am sure every autologin method will have some) with this method. I have listed a few in the "Important Notes" section. |
All times are GMT -5. The time now is 04:07 PM. |