LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   What to do now? (Fluxbox) (https://www.linuxquestions.org/questions/linux-software-2/what-to-do-now-fluxbox-154023/)

Stalkz 03-05-2004 09:06 PM

What to do now? (Fluxbox)
 
I installed it and everything, it worked perfectly, but what do I do now to use it?

I went to my xsession file and as usual could not edit it. When I login as root it's just a text based nothing. I need my GUI, I don't know what to do when not in it. I can su root in a terminal but STILL, I don't know how to open a file and edit it without double clicking it in a filemanager.

And even if I could, I hear "put exec fluxbox" (or blackbox, whichever the case) at the end of the xinitrc or xsession file". But where at the end?


Quote:

exec $SSH_AGENT /bin/sh -c "$(/usr/sbin/chksession -x=$DESKTOP)"
;;
esac
fi

# otherwise, take default action
if [ -x "$HOME/.xsession" ]; then
xsetroot -cursor_name left_ptr
exec $SSH_AGENT "$HOME/.xsession"
elif [ -x "$HOME/.Xclients" ]; then
xsetroot -cursor_name left_ptr
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)
[ -n "$SESSION" -a "$SESSION" != Default ] && 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
xsetroot -cursor_name left_ptr
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
exec fluxbox

Like that? exec flexbox is the last thing...

TheOneAndOnlySM 03-05-2004 09:34 PM

well, i have no experience with the xsession file (i use kde so it has its own way of handling things)

however, i may suggest that you explicitly try starting fluxbox...

do which fluxbox or which flux (or locate fluxbox or locate flux*, you get the idea) to find out where the executable is located; then type the full path name in a console while logged in as root

also, let me go and start my fluxbox in slackware; i'll see what it generates as the xsession file

Stalkz 03-05-2004 10:05 PM

[root@(IP here...)/]# usr/local/bin/fluxbox
Failed to load database:/root/.fluxbox/init
Trying with: /usr/local/share/fluxbox/init
Failed to read: session.tabs
Setting default value
Failed to read: session.ignoreBorder
Setting default value
Failed to read: session.numLayers
Setting default value
Failed to read: session.updateDelayTime
Setting default value
Failed to read: session.slitlistFile
Setting default value
Failed to read: session.groupFile
Setting default value
Failed to read: session.useMod1
Setting default value
Failed to load groupfile:
apps file failure
Failed to read: session.screen0.imageDither
Setting default value
Failed to read: session.screen0.opaqueMove
Setting default value
Failed to read: session.screen0.sloppywindowgrouping
Setting default value
Failed to read: session.screen0.workspacewarping
Setting default value
Failed to read: session.screen0.desktopwheeling
Setting default value
Failed to read: session.screen0.antialias
Setting default value
Failed to read: session.screen0.autoRaise
Setting default value
Failed to read: session.screen0.clickRaises
Setting default value
Failed to read: session.screen0.rootCommand
Setting default value
Failed to read: session.screen0.resizeMode
Setting default value
Failed to read: session.screen0.menuAlpha
Setting default value
Failed to read: session.screen0.menuDelay
Setting default value
Failed to read: session.screen0.menuDelayClose
Setting default value
Failed to read: session.screen0.menuMode
Setting default value
BScreen::BScreen: an error occured while querying the X server.
another window manager is already running on display %s.
:0.0
Error: Couldn't find screens to manage.
Make sure you don't have another window manager running.
[root@(IP here...) /]#

Stalkz 03-05-2004 10:13 PM

Well, I did what you said without my GUI (ctrl+alt+F1)

It said "Cannot load(not exact words). Make sure your X Server is loaded"

I'd assume if I started my Xserver the way I was starting fluxbox, I could do that then start fluxbox sucessfully. But I don't know how. Like where is my xserver at? Whats the filename or whatever?

TheOneAndOnlySM 03-05-2004 10:20 PM

okay...

to start just a plain X server, you should be able to type xdm and run that (except it is an entire desktop mananger)

do which xdm, locate xdm, etc...., and explicitly tell you computer from where to run xdm (if typing that command by itself doesn't work); do this as root

then, login again in the login screen and either switch to another console (ctrl alt f2 or ctrl alt f6) or open up an xterm and execute fluxbox again using explicity pathnames

Stalkz 03-05-2004 10:51 PM

Do you have (G)AIM?


If you do, please IM me, my sn is MorphineMessiah

Stalkz 03-06-2004 01:35 PM

-top-

TheOneAndOnlySM 03-06-2004 01:38 PM

unfortunately, i cannot use internet on linux (i use aol so no client for aol broadband on linux)

however, what is the status of fluxbox?

i looked into the Xsession file created in slackware and yes, it seems that if you place exec fluxbox at the bottom of your Xsession file, all should be well

i can post what the contents of mine are, but it is obviously very much in a slackware format

Stalkz 03-06-2004 02:15 PM

I can't edit my Xsession even when logged in as root. Boo-urns.

TheOneAndOnlySM 03-06-2004 02:18 PM

hmm

login as root
chmod 755 Xsessionfile

vi Xsessionfile

insert exec fluxbox by going to the bottom of your file and pressing "i" followed by typing exec fluxbox; then hit ESC

hit Shift ZZ to exit and save

do you not have any gui at all?

Stalkz 03-06-2004 02:28 PM

I do, but I usually login as root outside the GUI.

Stalkz 03-06-2004 02:50 PM

Ok I put exec fluxbox and exec /usr/local/bin/fluxbox in my Xsession file(s [theres a couple])

Doesn't work.

Stalkz 03-06-2004 03:04 PM

Heres what /etc/X11/xdm/Xsession says

Quote:

#!/bin/bash -login

exec /etc/X11/Xsession $*
exec /home/stalkz/Documents/fluxbox-0.9.8
exec /usr/local/share/fluxbox
exec /fluxbox
I typed anything possible just to be sure

/etc/X11/Xsession says:

Quote:

#!/bin/sh
# Modification for Mandrake Linux by Chmouel Boudjnah <chmouel@mandraksoft.com>
#
# $Id: Xsession,v 1.39 2003/03/03 09:53:26 flepied Exp $

# read the user (~/.i18n) or system-wide (/etc/sysconfig/i18n) i18n settings
. /etc/profile.d/10lang.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"
IS_ROOT=1
else
IS_ROOT=
# Load the color only when not called from gdm/kdm
if [ -z "$1" ]; then
xsetroot -solid "#21449C"
fi
fi

xsetroot -cursor_name watch

AGENT=$(type -p ssh-agent)
if [ -x "$AGENT" -a -z "$SSH_AUTH_SOCK" ]; 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

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 2> /dev/null`
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 2> /dev/null`
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 2> /dev/null`
if [ -z "$BROWSER" ] || [ ! -e "$BROWSER" ] ; then
# not found yet
BROWSER=
else
BROWSER="xvt -e lynx"
fi
fi
export BROWSER

export HELP_BROWSER="$BROWSER"

# 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 [ -z "$IS_ROOT" -a ! -e $HOME/.drakfw ] && type drakfw > /dev/null 2>&1 && touch $HOME/.drakfw > /dev/null 2>&1; then
if [ -x /etc/X11/xinit.d/numlock ]; then
/etc/X11/xinit.d/numlock
fi
xsetroot -cursor_name left_ptr
exec $SSH_AGENT drakfw
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
[ "${i%\~}" != "${i}" ] && continue

if [ -x $i ]; then
if [ "${DESKTOP}" = default ]; then
SESSION=$(/usr/sbin/chksession -F)
else
SESSION=${DESKTOP}
fi
$i "${SESSION}" &
fi
done

if [ -n "$DESKTOP" ]; then
case $DESKTOP in
failsafe)
xsetroot -cursor_name left_ptr
exec $SSH_AGENT xvt -geometry 80x24-0-0
exec $SSH_AGENT xterm -geometry 80x24-0-0
exec $SSH_AGENT twm

;;
default)
;;
*)
exec $SSH_AGENT /bin/sh -c "$(/usr/sbin/chksession -x=$DESKTOP)"
;;
esac
fi

# otherwise, take default action
if [ -x "$HOME/.xsession" ]; then
xsetroot -cursor_name left_ptr
exec $SSH_AGENT "$HOME/.xsession"
elif [ -x "$HOME/.Xclients" ]; then
xsetroot -cursor_name left_ptr
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)
[ -n "$SESSION" -a "$SESSION" != Default ] && 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
xsetroot -cursor_name left_ptr
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
if [ -x /usr/local/bin/fluxbox ]; then
exec $SSH_AGENT fluxbox
fi
exec fluxbox
exec /usr/local/bin/fluxbox
~
204,1 Bot
/usr/share/config/kdm/Xsession says

Quote:

# ession - run as user

# 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
ession - run as user

# 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

DM_PATH=$PATH
test -f /etc/profile && . /etc/profile
test -f $HOME/.profile && . $HOME/.profile
IFS_SAVE=$IFS
IFS=:
for i in $PATH; do
case :$DM_PATH: in
*:$i:*) ;;
::) DM_PATH=$i;;
*) DM_PATH=$DM_PATH:$i;;
esac
done
IFS=$IFS_SAVE
PATH=$DM_PATH
export PATH

test -f /etc/xprofile && . /etc/xprofile
test -f $HOME/.xprofile && . $HOME/.xprofile

sess=$1
shift

case $sess in
failsafe)
exec xterm -geometry 80x24-0-0 $*
;;
""|default)
if test -x $HOME/.xsession; then
exec $HOME/.xsession $*
else
sess=kde
fi
;;
esac

# start windowmanager
type "$sess" >/dev/null 2>&1 && exec "$sess" $*
type "start$sess" >/dev/null 2>&1 && exec "start$sess" $*
type "$sess-session" >/dev/null 2>&1 && exec "$sess-session" $*
sess=`echo "$sess" | tr A-Z a-z`
type "$sess" >/dev/null 2>&1 && exec "$sess" $*
type "start$sess" >/dev/null 2>&1 && exec "start$sess" $*
type "$sess-session" >/dev/null 2>&1 && exec "$sess-session" $*

# windowmanager not found, tell user
exec xmessage -center -buttons OK:0 -default OK "Sorry, $sess not found."
Guess I didn't put it in there because it looks more like an error thing...


All times are GMT -5. The time now is 01:45 AM.