Click to See Complete Forum and Search --> : blackbox & red hat 7.1


tallulah
06-20-2001, 11:53 PM
Hi, I recently switched to Red Hat 7.1. I always used Blackbox when I had Mandrake installed on my machine. I downloaded and installed bb so that I could have my preferred windows manager back, but I didn't know how to get it back as a choice during the (graphical) login. Even though I cancelled from choosing a default windows manager during the install, Red Hat seems to have selected gnome for me. I read the NHF on installing bb which instructs to make changes to two files. I only have one of the files. I do not have the file /usr/sbin/findsession (though I do have KDE installed), but I do have /etc/X11/xdm/Xsession. Does anyone know how I should go about adding bb to my login options in this case? Thanks in advance.
:)

[ 21 June 2001: Message edited by: ellie ]

kozumo
06-21-2001, 07:43 AM
I haven't fooled around with XDM, but I'll try to help anyway.

You need to create .Xsessions in your home directory: touch .Xsessions
or you an copy the default .Xsessions that was in /etc/X11/xdm/Xsession to your home directory. Then you can edit it and add exec blackbox.
Be sure that it is the very last line in that file.
If you're used to .xinitrc, you can symlink it to .Xsessions (that's what I do).

Then with XDM, I'm not sure if this is going to add it as an option. I think this will depend on the format of .Xsessions (try to find a manpage perhaps). However, there will be some option to choose what's in your .Xsessions file I believe.

Well I hope that helps, I don't even use XDM ;)

slapNUT
06-24-2001, 11:04 PM
Wether or not this is proper I don't know but it works so here's the section of my /etc/X11/Xsession file:


# now, we see if xdm/gdm/kdm has asked for a specific environment
if [ $# = 1 ]; then
case $1 in
KDE)
exec startkde
;;
WM)
exec wmaker
;;
SF)
xsetroot -cursor_name watch -solid "#666699"
exec sawfish
;;
failsafe)
exec $SSH_AGENT xterm -geometry 80x24-0-0
;;
default)
;;
ICE)
exec $SSH_AGENT xterm -geometry 80x24-0-0 &
icewm || exec xterm -bg red
;;
*)
;;
esac
else


I can now type startx ICE||KDE||WM||SF to startup iceWM, KDE, WindowMaker or Sawfish. And I have scripts in my ~/bin directory for each window manager so I start iceWM by just typing ICE. Also there's a file somewhere I forget where that I put ICE in it so if I set X to start automatically on boot it will select my wm from this file.

tallulah
06-24-2001, 11:10 PM
THANKS! :D