LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   X libraries & headers for fluxbox (https://www.linuxquestions.org/questions/linux-software-2/x-libraries-and-headers-for-fluxbox-33888/)

wonderpun 10-31-2002 03:33 AM

Hi GT! Well the only thing I can think of is that you can create a xinitrc.fluxbox file and put the:
exec fluxbox
line in it. And then put the file in your /etc/X11/xinit directory. Good luck!

wonderpun 10-31-2002 03:39 AM

Alright. There's a file /etc/X11/xdm/Xsession. Find the section where the file mentions the other wm's and try adding fluxbox to the file. And make it similar to those already written there only type:
exec fluxbox
Well, good luck!!

P.S. You must have created the Fluxbox entry with your KDE Control Center in order for this to work.

GT I.N.C 10-31-2002 11:36 PM

Hey Wonderpun,

Yeh i have checked that out as well...sooo many times hehe

heres what it contains....

Code:

#!/bin/sh
# Modification for Linux-Mandrake by Chmouel Boudjnah <chmouel@mandraksoft.com>
# 20000309, Francis Galiegue <fg@mandrakesoft.com>: imwheel -k added for wheel
# mice and braindead-not-supporting-wheel-yet toolkits (this includes Qt...)

# read the user (~/.i18n) or system-wide (/etc/sysconfig/i18n) i18n settings
. /etc/profile.d/lang.sh

# redirect errors to a file in user's home directory if we can
for errfile in "$HOME/.xsession-errors" "${TMPDIR-/tmp}/xses-$USER" "/tmp/xses-$USER"
do
    if ( cp /dev/null "$errfile" 2> /dev/null )
    then
        chmod 600 "$errfile"
        exec > "$errfile" 2>&1
        break
    fi
done

# Mandrake default background
if [ "`whoami`" = root ]; then
    xsetroot -solid "#B20003"
else
    xsetroot -solid "#21449C"
fi

AGENT=$(type -p ssh-agent)
if [ -x "$AGENT" ]; then
    if [ -r $HOME/.ssh/identity -o -r $HOME/.ssh2/identification -o -r $HOME/.ssh/id_dsa -o -r $HOME/.ssh/id_rsa ]; then
        SSH_AGENT="$AGENT --"
    fi
fi   

# clean up after xbanner
if [ -f /usr/X11R6/bin/freetemp ]; then
    freetemp
fi

userresources=$HOME/.Xresources
userresources2=$HOME/.Xdefaults
sysresources=/etc/X11/Xresources

# merge in defaults and keymaps
if [ -f $sysresources ]; then
    xrdb -merge $sysresources
fi
 
if [ -f $userresources ]; then
    xrdb -merge $userresources
fi

if [ -f $userresources2 ]; then
    xrdb -merge $userresources2
fi

if [ -x /etc/X11/xinit/fixkeyboard ]; then
    /etc/X11/xinit/fixkeyboard
fi

if [ -z "$BROWSER" ] ; then
        # we need to find a browser on this system
        BROWSER=`which mozilla`
        if [ -z "$BROWSER" ] || [ ! -e "$BROWSER" ] ; then
        # not found yet
                BROWSER=
        fi
fi

if [ -z "$BROWSER" ] ; then
        # we need to find a browser on this system
        BROWSER=`which netscape`
        if [ -z "$BROWSER" ] || [ ! -e "$BROWSER" ] ; then
        # not found yet
                BROWSER=
        fi
fi

if [ -z "$BROWSER" ] ; then
        # we need to find a browser on this system
        BROWSER=`which lynx`
        if [ -z "$BROWSER" ] || [ ! -e "$BROWSER" ] ; then
        # not found yet
                BROWSER=
        else
                BROWSER="xvt -e lynx"
        fi
fi
export BROWSER

export HELP_BROWSER="$BROWSER"

if [ -x /usr/sbin/chksession ];then
    LIST=$(/usr/sbin/chksession -l)
else
    LIST="kde Gnome AfterStep Icewm AnotherLevel failsafe"
fi

# run scripts in /etc/X11/xinit.d
for i in /etc/X11/xinit.d/* ; do
    [ -d $i ] && continue
    # Don't run ??foo.{rpmsave,rpmorig,rpmnew} scripts
    [ "${i%.rpmsave}" != "${i}" ] && continue
    [ "${i%.rpmorig}" != "${i}" ] && continue
    [ "${i%.rpmnew}" != "${i}" ] && continue

    if [ -x $i ]; then
        $i &
    fi
done

# now, we see if xdm/gdm/kdm has asked for a specific environment
if [ $# = 1 ]; then
    DESKTOP=$1
else
    # use default DESKTOP from config file
    # users may want to choose their own desktop
    # even when x-session is started by startx command.
    # -- Jaegeum --
    if [ -f $HOME/.desktop ]; then
        . $HOME/.desktop >/dev/null 2>&1
    elif [ -f /etc/sysconfig/desktop ]; then
        . /etc/sysconfig/desktop >/dev/null 2>&1
    fi
fi

### Launch an XIM input server if needed
# it must be after definition of DESKTOP variable; but before any
# program that may want user input
if [ -x /etc/X11/xinit/XIM ]; then
    . /etc/X11/xinit/XIM
fi

### Launch first time wizard if needed
if [ ! -e $HOME/.drakfw ] && type drakfw > /dev/null 2>&1; then
    touch $HOME/.drakfw
    exec drakfw
fi

if [ -n "$DESKTOP" ]; then
    case $DESKTOP in
            failsafe)
        exec $SSH_AGENT xvt -geometry 80x24-0-0
        exec $SSH_AGENT xterm -geometry 80x24-0-0
        ;;
        default)
        ;;
        *)
        exec $SSH_AGENT /bin/sh -c "$(/usr/sbin/chksession -x=$DESKTOP)"
        ;;
    esac
fi

# otherwise, take default action
if [ -x "$HOME/.xsession" ]; then
        exec $SSH_AGENT "$HOME/.xsession"
elif [ -x "$HOME/.Xclients" ]; then
        exec $SSH_AGENT "$HOME/.Xclients"
fi

# We may try with chksession
if [ -x /usr/sbin/chksession ];then
#get the first available
        SESSION=$(/usr/sbin/chksession -F)
        [ "$SESSIONxxx" != "xxx" ] && exec $SSH_AGENT sh -c "$(/usr/sbin/chksession -x=$SESSION)"
fi

# Argh! Nothing good is installed. Fall back to icewm
if [ -x /usr/X11R6/bin/icewm ];then
        exec $SSH_AGENT /usr/X11R6/bin/icewm
else
        # gosh, neither icewm is available;
        # fall back to failsafe settings
        xclock -geometry 100x100-5+5 &
        xvt -geometry +0+50 &
        if [ -x "$BROWSER" -a -f /usr/doc/HTML/index.html ]; then
            $BROWSER /usr/share/doc/HTML/index.html &
        fi
        if [ -x /usr/X11R6/bin/icewm-light ];then
            exec $SSH_AGENT icewm-light
        elif [ -x /usr/X11R6/bin/twm ];then
            exec $SSH_AGENT twm
        else
            exec $SSH_AGENT xsm
        fi
fi

I have no idea where to put it...geeez all this trouble for fluxbox lol

Garry :D

wonderpun 11-01-2002 03:06 AM

Hi Garry :) Well, I must say that your Xsession file doesn't look like mine, that's for sure :) I'm sorry that I can't help you much, never used Mandrake. But I have a question to you. When kdm loads, it asks you for your username the password and then what? It lets you choose what wm you want to load? If yeah then I have an idea :) You see at the end of the Xsession file there's a section that starts:
# Argh! Nothing good is installed. Fall back to icewm
Try to change the:
/usr/X11R6/bin/icewm
to
/usr/local/bin/fluxbox
Then when you select icewm from the menu it should load flux. If I'm right and this worked then post back and will try to think out a way how to add flux to the menu :) If not, then sorry I couldn't help you much :) Good luck GT!

GT I.N.C 11-01-2002 03:45 AM

Ok thanks, i'll get straight onto it.....

Garry

GT I.N.C 11-01-2002 03:51 AM

Nope sorry, didn't work, it just loaded Ice....thanks for your help anyway...

Garry

MasterC 11-01-2002 04:01 AM

GT, /usr/local/bin/fluxbox is rather a suggested path, you would actually find the one that is on your system and use it. I am thinking this might be your problem :confused:

Do this:
whereis fluxbox

Note the location, then wherever you are editing these files, use that location. Example:

whereis fluxbox
/opt/wm/whoknows/nowhere/fluxbox /usr/man/man1/fluxbox.gz

So you see that fluxbox is in /opt/wm/whoknows/nowhere/fluxbox

So this will be your flux path.

Cool

GT I.N.C 11-01-2002 04:03 AM

Yeh thats my correct path....checked it first hehe

Code:

[root@localhost root]# whereis fluxbox
fluxbox: /usr/local/bin/fluxbox

Garry

GT I.N.C 11-01-2002 04:04 AM

All i need to know is how to make flux a selectable wm at the login screen....geeez didn't think it would be this hard :p

Garry :D

MasterC 11-01-2002 04:14 AM

Post here the contents of ~/.xsession and/or ~/.Xclients

Cool

MasterC 11-01-2002 04:16 AM

Well here's the deal I think so far...

I am basically newbie with a kagillion posts, so my experience is my knowledge. Most of my "experience" comes from Slack. I could easily tell you how to do this on slack, but for Mandy it's not the same. I am thinking pretty much the same boat for other's trying to help so far.

So instead of LQ Addict, I could still have "newbie" as my title and it'd be more fitting :D

Anyway, let's see if we can get this one going, I will do some searching after I see whats in those 2 files above.

Cool

GT I.N.C 11-01-2002 04:32 AM

Xsession is up above ^

Xclients is....
Code:

#!/bin/bash

exec /etc/X11/Xsession

Garry

MasterC 11-01-2002 06:12 AM

Living dangerously now, I'd try this:

Place a # sign in front of exec /etc/X11/Xsession in your Xclients file. Place a line below it with:
exec /path/to/fluxbox
replacing /path/to/fluxbox with the correct path.

So your Xclients should now look like:
#!/bin/bash

#exec /etc/X11/Xsession
exec fluxbox


Again, only if you wanna live dangerously, because I really don't know what effect this will produce. You might wanna post a few more things here instead first. Maybe the contents of your /etc/X11/xinit directory (if it exists).

At worst I think that would not allow you to enter X, you could probably still enter the file via command line and edit back to normal, but I really don't know.

Good Luck

GT I.N.C 11-01-2002 07:49 PM

Hmmm i don't think i wanna try that just yet hehe

heres /etc/X11/xinit

Code:

[root@localhost xinit]# ls -al
total 24
drwxr-xr-x    2 root    root        4096 Sep 29 05:55 ./
drwxr-xr-x  19 root    root        4096 Nov  1 20:49 ../
-rwxr-xr-x    1 root    root        2019 Feb 28  2002 fixkeyboard*
-rwxr-xr-x    1 root    root          36 Feb 28  2002 Xclients*
-rwxr-xr-x    1 root    root        2658 Feb 28  2002 XIM*
-rwxr-xr-x    1 root    root          61 Feb 28  2002 xinitrc*

Anything else you wanna check out?

Garry :D

MasterC 11-01-2002 11:24 PM

Ok, so, what is in that file there xinitrc? Post the contents of /etc/X11/xinit/xinitrc

Then, from there you might symlink this file to your user's home directory...

hmm, might be on to something...

Anyway post the contents of that first ;)

Cool


All times are GMT -5. The time now is 08:46 PM.