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/)

GT I.N.C 10-27-2002 02:23 AM

X libraries & headers for fluxbox
 
Hey all, i'm thinking of converting to fluxbox....

Well anyway i tried compiling it and i got this....

Code:

checking for X... no
configure: error: Fluxbox requires the X Window System libraries and headers.

Kinda weird...i do have X installed...well how else am i on this :p, and ummm i tried searching for x libraries headers etc. in rpmdrake and i can't seem to find anything....anyone can give me some pointers?

Garry :D

nautilus_1987 10-27-2002 02:36 AM

GT do you have KDE and Gnome installed?

acid_kewpie 10-27-2002 03:35 AM

:confused: well it's not looknig for kde or gnome is it?? it's looking for X. just install the Xfree860devel packaeg, and you'll be fine.

GT I.N.C 10-27-2002 03:49 AM

Thanks Acid that worked fine! Oh and thanks nautilus for trying to help!

Garry :D

nautilus_1987 10-27-2002 04:05 AM

Mine is in /root/.xinitrc ( exec fluxbox )

GT I.N.C 10-27-2002 04:10 AM

Ok now i can't seem to install it...i followed the instructions on the site...unless i created .xinitrc in the wrong directory....i made it in /home (it said in the home directory) is this wrong? Because when i logged out fluxbox wasn't there as a selectable window manager....

Garry :D

GT I.N.C 10-27-2002 04:25 AM

Ok i'll move it now...but i won't try it till a bit later....(homework)

Garry :D

nautilus_1987 10-27-2002 04:37 AM

I am having one week holiday now....hehehe

GT I.N.C 10-27-2002 11:17 PM

Ok that didn't work, fluxbox isn't a selectable window manager.....

What else am i doing wrong?

Is it because i have .xinitrc in the wrong directory...

Garry :D

MasterC 10-28-2002 08:58 AM

Yes, you want it in your USER home, not the system home. So ~ rather than /home

Your xinitrc should be found by typing this:
~/.xinitrc

If that makes sense. ~ means to go to the home of whatever user you are logged in as. Not the /home but a deeper directory of something like /home/gtinc
So:
/home/gtinc/.xinitrc
would be correct.

Here's a peek at mine so you can see what one looks like:
Code:

#!/bin/sh
# $XConsortium: xinitrc.cpp,v 1.4 91/08/22 11:41:34 rws Exp $
 
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/usr/X11R6/lib/X11/xinit/.Xresources
sysmodmap=/usr/X11R6/lib/X11/xinit/.Xmodmap

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

if [ -f $userresources ]; then
fi
   
if [ -f $usermodmap ]; then
    xmodmap $usermodmap
fi
   
# Start the window manager:
exec root-tail /var/log/messages,red /var/log/xferlog,white /var/log/proftpd.lo$
exec gkrellm -w &
exec /opt/fluxbox/bin/fluxbox

But all you really need in there is simply:
exec fluxbox

Or possibly the entire path, as I have if you do not have the directory in your path.

Cool

GT I.N.C 10-29-2002 12:16 AM

So when i do that will that make Fluxbox start automatically....or will it allow it to be selected?

Garry

GT I.N.C 10-29-2002 12:39 AM

Ok i tried it.....putting .xinitrc in /home/gt and /root

They don't work.....when Mandrake starts up it's not selectable......

Garry :D

MasterC 10-29-2002 02:22 PM

No it's not, that's for 'startx' rather than having it be in your list of choices at your KDM screen. If that's what you are looking to have/do you might want to find the actual Mandrake RPM for it, this will set everything up for you, and place the entries in the correct file for that.

If you wanna do it yourself, I believe the setting is in the KDE control Center, not the Mandrake Control center. Poke around in there, find the section for login, and see if you can make a new entry for Flux.

If you have more problems, or don't have a clue what I mean, post back, I will be happy to walk you through it better, and I will boot into Mandy and give you some screenshots to help.

Cool

GT I.N.C 10-29-2002 07:44 PM

I'm at school now, geeez how slow is the network hehe

Yeh ummmm i went around KDE Control center last night, and from memory i found a session or window manager option and it had IceWm etc. i added fluxbox....but i couldn't do anything else it just added it to it's list, it didn't ask me what command to use or anything, so when i logged out 'fluxbox' was in the list but when i selected it and logged in it just went to IceWm....

Thanks

Garry :D

GT I.N.C 10-31-2002 01:40 AM

Man, no one has a slight idea?

I have been going through a billion configuration files and i can't find what i want......

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

GT I.N.C 11-02-2002 12:12 AM

Code:

#!/bin/sh
# (c) 2000 MandrakeSoft

exec /etc/X11/Xsession $*

weird xinitrc isn't it?

Garry :D

MasterC 11-02-2002 02:46 AM

Ok, so comment out that line, place a new line:
exec /usr/local/bin/fluxbox

Save and exit, symlink that to your home directory:
ln -s /etc/X11/xinit/xinitrc ~/.xinitrc

And then startx...

Cool

GT I.N.C 11-02-2002 02:48 AM

Yeh but the thing is i don't do a startx.....i do a GUI login...i think it's KDM....and i want flux to be a selectable WM...

Garry

MasterC 11-02-2002 02:54 AM

Yeah, I am still working on that one for ya...

Cool

MasterC 11-02-2002 03:00 AM

Hey, I think I found it... Just so you can see what I am reading:
http://www.mandrakeuser.org/docs/xwin/xstart.html#conf

Cool

MasterC 11-02-2002 03:07 AM

Ok, so...

It looks like you need to locate:
'/usr/share/config/kdm/kdmrc'

And find an area to add Fluxbox in there. If you post the contents I will see if I can help.

Also, to start fluxbox from the command line I understand you have to type:
startx fluxbox

And it's supposed to start. No need to comment any lines in any file.

If you want to use flux as your default wm, then you would make the entry in:
~/.desktop

And the entry should look like:
DESKTOP=fluxbox

Cool

MasterC 11-02-2002 03:08 AM

/usr/sbin/chksession -l

Also, you might need to run this to see what X options you have.

Good Luck, and read that link I provided above, good info there.

Cool

GT I.N.C 11-02-2002 03:41 AM

Ok thanks i will read that, then post up the things you requested....

Thanks again

Garry :D

GT I.N.C 11-02-2002 03:47 AM

Hmmm this is kmrc
Code:

[Desktop0]
BackgroundMode=Flat
BlendBalance=100
BlendMode=NoBlending
ChangeInterval=60
Color1=33,68,156
Color2=192,192,192
CurrentWallpaper=0
LastChange=0
MultiWallpaperMode=NoMulti
Pattern=
Program=
ReverseBlending=false
Wallpaper=
WallpaperList=
WallpaperMode=NoWallpaper

[General]
PidFile=/var/run/xdm.pid
Xservers=/etc/X11/xdm/Xservers

[Shutdown]
HaltCmd=/sbin/halt
LiloCmd=/sbin/lilo
LiloMap=/boot/map
RebootCmd=/sbin/reboot
UseLilo=true

[X-*-Core]
AllowNullPasswd=false
AllowRootLogin=false
AutoReLogin=false
Reset=
Resources=/etc/X11/xdm/Xresources
Session=/etc/X11/xdm/Xsession
Setup=
Startup=
SystemPath=/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin
UserPath=/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin

[X-*-Greeter]
AllowShutdown=Root
AuthComplain=false
DefaultUser=axfrdns
EchoMode=OneStar
FailFont=helvetica,12,5,15,75,0
FocusPasswd=false
GUIStyle=KDE
GreetFont=charter,24,5,15,50,0
GreetString=Welcome to %n
GreeterPosFixed=false
GreeterPosX=100
GreeterPosY=100
Language=C
LogoArea=Logo
LogoPixmap=/usr/share/apps/kdm/pics/kdelogo.png
MinShowUID=500
NoUsers=adm,alias,amanda,apache,bin,bind,daemon,exim,falken,ftp,games,gdm,gopher,halt,httpd,ident,ingres,kmem,lp,mail,mailnull,man,mta,mysql,named,news,nobody,nscd,operator,pcap,pop,postfix,postgres,qmaild,qmaill,qmailp,qmailq,qmailr,qmails,reboot,root,rpc,rpcuser,rpm,sendmail,shutdown,sympa,sync,tty,uucp,xfs,xten,
PreselectUser=None
SessionTypes=KDE,IceWM,failsafe,default
ShowUsers=All
SortUsers=true
StdFont=helvetica,12,5,15,50,0
Users=

[X-:*-Core]
AllowNullPasswd=true
AllowRootLogin=true
NoPassEnable=false
NoPassUsers=

[X-:*-Greeter]
AllowShutdown=All

[X-:0-Core]
Authorize=true
AutoLogin1st=true
AutoLoginEnable=false
AutoLoginUser=axfrdns
Reset=/etc/X11/xdm/TakeConsole
Setup=/etc/X11/xdm/Xsetup_0
Startup=/etc/X11/xdm/GiveConsole

[X-:1-Core]
Authorize=true

[Xdmcp]
Enable=false
KeyFile=/etc/X11/xdm/xdm-keys
Willing=
Xaccess=/etc/X11/xdm/Xaccess

And if i changed DESKTOP=KDE to DESKTOP=fluxbox that doesn't mean it would make flux selectable would it, it would just make it default...hmm i'm still reading....

Garry :D

MasterC 11-02-2002 03:49 AM

See this line:
SessionTypes=KDE,IceWM,failsafe,default

I think if you add fluxbox there, that might be your ticket.

Cool

GT I.N.C 11-02-2002 03:50 AM

Ok i'm gonna think of switching to GDM instead of KDM...since they say its high configurable....etc etc

Garry :D

MasterC 11-02-2002 03:56 AM

Also, what does:
/usr/sbin/chksession -l

return?

I think this would all make alot more sense if I followed along with ya, then I could explain things better.

Anway, I think if the chksession returns flux then you should be good to go...

Cool

GT I.N.C 11-02-2002 03:59 AM

Hmmmmm in GDM's Login Session tab there is KDE and IceWM...when i click on add session i type in fluxbox....and i can't enter what command to execute...but for KDE and Ice there already are commands...

#!/bin/sh
exec /etc/X11/xdm/Xsession KDE

and

#!/bin/sh
exec /etc/X11/xdm/Xsession IceWM

i can edit and chnage those etc.

But i cannot edit flux's....the window to type the command isn't editable...

hope this made sense..

Garry :D

MasterC 11-02-2002 04:02 AM

Might be a button you missed or something... Poke around a bit more, seems like it's always something little on things like that.

Cool

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

Ok i think i'm onto something...i'm gonna make an executable in /etc/X11/gdm/Sessions where Kde and Ice are...

i'll post when i'm done....

Oh yeh and sorry MasterC i never saw that post, i tried that before...and it didn't execute...nothing happened...

Garry :D

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

How do i make something executable chmod x+? or something like that?

Garry :D

GT I.N.C 11-02-2002 04:09 AM

Ahhhhh -x hhahaha i figured out myself...

well i hope it's right heheh :p

MasterC 11-02-2002 04:14 AM

-x makes it no longer executable, to make it executable it's +x

So:
chmod +x /path/to/executable will make it executable. If you no longer want it executable:
chmod -x /path/to/executable will make it no longer executable.

Cool

GT I.N.C 11-02-2002 04:34 AM

Hahha it turned into a shell icon though, well thats not whats worrying me now.......i got fluxbox to load....by editing the IceWm setting....so instead of Ice it's now flux....so that's sweet, but i can't get Ice back (not that i use it) and also KDE doesn't load anymore....geeeez i didn't even TOUCH KDE settings....

Hmmmmm any ideas, i know i don't have much info about it, but i can't find it, well i don't know where to start finding it....

Garry :D

MasterC 11-02-2002 04:40 AM

What did you edit? And when you say can't get it back, you mean you can't even select it? Or when you do select it, flux starts?


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