DebianThis forum is for the discussion of Debian 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 am very curious how X knows to start fluxbox when you install the fluxbox Debian package. For that matter, this question might be answered with any windows manager. I know if you install fluxbox from source, you need to setup an ~/.xinitrc file to fire it up when you startx. What I want to know, though, is how X knows to start fluxbox when you install the Debian package. Something in the package tells the system to use fluxbox as the windows manage intead of just an X session w/o any windows manager.
Can anyone shed any light on how this is done? It has me baffled.
Well, it does nothing regarding anything in ~/ (no .xinitrc / .xsession). As far as something in /etc, i sure can't find anything. Scoured /etc/X11 to no end for changes, but can't figure it out. I have been assuming it makes chagnes to some preexisting script, but which I do not know. So far no one knows that I have asked.
Send me Email, I'll find you the file (and script)
Quote:
Originally posted by Swad Well, it does nothing regarding anything in ~/ (no .xinitrc / .xsession). As far as something in /etc, i sure can't find anything. Scoured /etc/X11 to no end for changes, but can't figure it out. I have been assuming it makes chagnes to some preexisting script, but which I do not know. So far no one knows that I have asked.
I'm on another system at a remote location right now, but send me an Email message to remind me, and I will find you both the script and the file that make changing window managers easy. You can select your desktop or window manager on a Debian system right from the gdm or kdm login, depending on which login manager you're using. If you're not using either gdm or kdm, one easy way to do it would be to install gdm or kdm.
To do that is easy:
apt-get install gdm
Then when you login, you'll have the option of selecting any window or desktop manager that's available.
I use startx and that's how I wish to continue to do it. I prefer booting to the console. Any way you take it, I'm not at all looking for a solution--all I'm trying to do is find out what the Debian Fluxbox package is doing when intalled to automatically start with X (and I do assume it's making adjustments to some scripts, though I have to find out what script(s)). I may wind up just emailing the package maintainer to find out.
I use debian, and for me the script called is /etc/X11/xinit/xinitrc
Which does nothing but call a second script, /etc/X11/Xsession
This script, in turn, gets config information from these:
OPTIONFILE=/etc/X11/Xsession.options
Remember, a "dir" won't show you files that begin with ".". to see these hidden config files, do "ls -a".
basically, if you put a .xsession in your home directory, that's the script that will be called when the user runs startx. Otherwise, it resorts to the system defaults listed above. If fluxbox didn't stick a .xsession in your ~/, then it modified the system defaults (Which I'd think would generally be bad form).
If the only WM you install on debian is flux, and I can see ALL the files the flux package HAS from debians website... How is debian knowing to start fluxbox?
We also followed the process starting w/ the 'startx' script... But it leads to defaults.. But at no time is there an actual 'exec fluxbox' line... Yet flux loads....
Bing--that's it. I TOTALLY forgot about alternatives. Running:
update-alternatives --list x-window-manager
points to /usr/bin/fluxbox. As soon as you uninstall the Debian fluxbox package, it's gone. I had completely forgoten about alternatives with debian. Thanks for pointing that out! Finally got what I need.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.