LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   starting fluxbox in rh9.0 (https://www.linuxquestions.org/questions/linux-software-2/starting-fluxbox-in-rh9-0-a-62594/)

shiny 05-29-2003 09:38 PM

starting fluxbox in rh9.0
 
Hello!

I'm trying to get fluxbox 0.1.14 started under RH9 without much luck. I'm using the default Gnome 2.0/Metacity configuration and the GDM display manager (as far as I know). These are the suggestions I've read elsewhere and tried so far:

1. creating a file called 'Fluxbox' in /etc/X11/gdm/Sessions with the following text:

#!/bin/bash

exec /usr/local/bin/fluxbox

....and making it executable. My understanding is that this is supposed to add fluxbox to the list of available sessions at bootup. It doesn't, though. The only ones that continue to show are Last, Default, Failsafe, Gnome, and KDE.

2. creating an ~/.xsession file with the same text as above. What I've read in this case is that the /etc/X11/xdm/Xsession script checks here for any user-specified instructions before continuing with the default startup, and putting an entry here for an alternate window manager will force it to load. This doesn't work either. After I log in, I get the familiar RH screen telling me that Metacity is loading, and so on....

By the way, I'm doing all of this as root, in case it matters.

As far as the install goes, I compiled flux from source and even though I do have the binary at /usr/local/bin/fluxbox, I'm not entirely certain the build was successful. I went back and checked the config.log file and found the following error messages among everything else:

configure:1583: WARNING: `missing' script is too old or missing

configure: failed program was:
#ifndef __cplusplus
choke me
#endif

configure: failed program was:
#line 2988 "configure"
#include "confdefs.h"

That last message actually occurs several times within the log.

I'm new to Linux and while I've dealt with missing dependencies before, I have no idea what any of this means. Am I missing something that I need? And if I am, should a bad binary have anything to do with not being able to get fluxbox to show up in the GDM available sessions list?

I'm trying to get up to speed on what all's involved in X startup, but I'm not there yet. Any ideas?

php 05-29-2003 11:07 PM

you should be able to add your "exec /usr/local/bin/fluxbox" to the bottom of your ~/.xinitrc and have it work properly

Crashed_Again 05-29-2003 11:55 PM

Quote:

Originally posted by hackers_
you should be able to add your "exec /usr/local/bin/fluxbox" to the bottom of your ~/.xinitrc and have it work properly
Isn't that only if you boot to runlevel 3? Not 100% about that though.

Duukkis 05-30-2003 01:37 PM

I have the same problem that shiny have. Fluxbox wm doesn't start properly. But I can start it manually with:

startx /usr/bin/fluxbox

and it works fine.

I have seen lots of howtos and they all suggest that I add this line to my /$HOME/.xinitrc file:

exec /usr/bin/fluxbox
or(?)
exec fluxbox

I can't do that because I haven't .xinitrc file in my home directory but instead I have file with the same name in /etc/X11/xinit directory. Is it the same in which folder I have it and should it be similar in both places? I know that xinitrc file in /etc/X11/xinit dir affects globally and the same file in home dir to appropriate user so it should be the same. This is my /etc/X11/xinit/xinitrc file:

#!/bin/sh
# $Xorg: xinitrc.ccp, v 1.3 2000/08/17 19:54:30 cpqbld Exp $

# /etc/X11/xinit/xinitrc
#
# global xinitrc file, used by all X sessions started by xinit (startx)

# invoke global X session script
. /etc/X11/Xsession

# start the window manager
# exec fluxbox
exec /usr/bin/fluxbox

As you can see I have tryed two different exec commands to start fluxbox. Do I need ./etc/X11/Xsession line or is it associated with xdm? This question because I have xdm installed but I don't use it. What I must do for that fluxbox starts automatically without startx /usr/bin/fluxbox command
:confused:

Crashed_Again 05-30-2003 01:39 PM

Just create the .xinitrc file in you home directory. Then add:

exec /usr/bin/fluxbox

Next time you 'startx' it should throw you right into fluxbox.

Duukkis 05-30-2003 02:29 PM

thanks crashed_again it works!!!

shiny 05-31-2003 12:44 PM

Ok....looks like my Fluxbox binary is in good shape, and I was finally able to get it to appear in the GDM sessions list. Turns out my method of opening an existing session file under /etc/X11/gdm/Sessions (like Gnome), editing it, and saving it as 'Fluxbox' wasn't working - but duplicating the Gnome file, editing it, and then renaming it as 'Fluxbox' did. Go figure.

So now, I can bring up Fluxbox by itself at bootup. However, my goal is to use it, instead of Metacity, as a window manager along with Gnome 2.0 in the same way Gnome and Metacity work together now. Which means I need to find out where in the grand scheme of things Metacity is being called up at startup and replace it with Fluxbox.

Can anyone offer any insight on doing this? And is there anything else that needs to be done to make Gnome and Fluxbox work together?

Thanks again!


All times are GMT -5. The time now is 10:29 AM.