Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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!
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.
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
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, /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
Do this:
whereis fluxbox
Note the location, then wherever you are editing these files, use that location. Example:
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
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.