Two simple ways to do this:
1) change the global setting.
I dunno about redhat, but for your slack:
Code:
$ cd /etc/X11/xinit
$ mv xinitrc xinitrc.orig
$ ln -s xinitrc.fluxbox xinitrc
2) change your personal settings.
I also use fluxbox on slack, and this is how I do it.
All you need to do is set up one file in your home dir: ".xinitrc"
Don't forget to chmod +x it. You need it to be executable!
Here's mine:
Code:
#!/bin/bash
# # start xscreensaver
xscreensaver &
# start window manager and get PID
fluxbox &
WMPID=$!
#### Once we started fluxbox, run some stuff I like to use.
#### the ampersands (&) are important!
# run dockapps
~/.fluxbox/dockapps.sh &
# xcompmgr turns on shadows, fading, transparency, etc
xcompmgr -cfC &
# purty desktop!
kdesktop &
#####
# wait for fluxbox to terminate.
wait $WMPID
The way .xinitrc works, is startx runs it, and when it terminates, so does your X session. That's why we wait for the window manager to terminate at the end: that way, when you use fb's "logout" option, the x session ends.
Incidentally, you may want to do this while you're at it:
Code:
$ ln -s .xinitrc .xsession
.xsession works much like .xinitrc. It's the script called by X/K/GDM when you select "custom" under session type. So if you decide to use XDM instead of startx, you get the exact same session.
--S
(edit: turned off the fucking smileys)