LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-29-2003, 09:38 PM   #1
shiny
LQ Newbie
 
Registered: May 2003
Posts: 2

Rep: Reputation: 0
Unhappy 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?
 
Old 05-29-2003, 11:07 PM   #2
php
Member
 
Registered: Jun 2001
Location: USA
Distribution: Slackware
Posts: 825

Rep: Reputation: 30
you should be able to add your "exec /usr/local/bin/fluxbox" to the bottom of your ~/.xinitrc and have it work properly
 
Old 05-29-2003, 11:55 PM   #3
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
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.
 
Old 05-30-2003, 01:37 PM   #4
Duukkis
Member
 
Registered: May 2003
Location: Finland
Distribution: Debian Sarge
Posts: 75

Rep: Reputation: 15
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
 
Old 05-30-2003, 01:39 PM   #5
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
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.
 
Old 05-30-2003, 02:29 PM   #6
Duukkis
Member
 
Registered: May 2003
Location: Finland
Distribution: Debian Sarge
Posts: 75

Rep: Reputation: 15
thanks crashed_again it works!!!
 
Old 05-31-2003, 12:44 PM   #7
shiny
LQ Newbie
 
Registered: May 2003
Posts: 2

Original Poster
Rep: Reputation: 0
Smile

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!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
starting apps when fluxbox starts up imagreg Slackware 8 11-23-2004 10:47 PM
Starting programs in Fluxbox or Windowmaker BajaNick Linux - Software 3 03-03-2004 01:31 AM
Starting Fluxbox.... AceTech747 Linux - Software 13 12-15-2003 04:02 PM
starting fluxbox tombomb300 Linux - Software 8 11-20-2003 12:06 AM
Starting Fluxbox rdanda Slackware 10 05-01-2003 12:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration