PDA

View Full Version : Non riesco a far partire Fluxbox


Sephirot
03-10-2003, 00:40
Allora, ho installato compilato etc FluxBox e tutto bene sin qua.
Poi pero' non riesco a farlo partire.
Nella documentazione ho letto che devo prendere xinitrc metterlo nella home del mio user e modificarlo aggiungendo alla fine questa riga: exec /usr/local/bin/fluxbox

quindi ho questo file xinitrc:

#!/bin/sh
# (c) 1999-2002 Red Hat, Inc.

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
userxkbmap=$HOME/.Xkbmap

sysresources=/etc/X11/Xresources
sysmodmap=/etc/X11/Xmodmap
sysxkbmap=/etc/X11/Xkbmap

# merge in defaults
if [ -f "$sysresources" ]; then
xrdb -merge "$sysresources"
fi

if [ -f "$userresources" ]; then
xrdb -merge "$userresources"
fi

# merge in keymaps
if [ -f "$sysxkbmap" ]; then
setxkbmap `cat "$sysxkbmap"`
XKB_IN_USE=yes
fi

if [ -f "$userxkbmap" ]; then
setxkbmap `cat "$userxkbmap"`
XKB_IN_USE=yes
fi

if [ -z "$XKB_IN_USE" -a ! -L /etc/X11/X ]; then
if grep '^exec.*/Xsun' /etc/X11/X > /dev/null 2>&1 && [ -f /etc/X11/XF86Config ]; then
xkbsymbols=`sed -n -e 's/^[ ]*XkbSymbols[ ]*"\(.*\)".*$/\1/p' /etc/X11/XF86Config`
if [ -n "$xkbsymbols" ]; then
setxkbmap -symbols "$xkbsymbols"
XKB_IN_USE=yes
fi
fi
fi

# xkb and xmodmap don't play nice together
if [ -z "$XKB_IN_USE" ]; then
if [ -f "$sysmodmap" ]; then
xmodmap "$sysmodmap"
fi

if [ -f "$usermodmap" ]; then
xmodmap "$usermodmap"
fi
fi

unset XKB_IN_USE

# run all system xinitrc shell scripts.
for i in /etc/X11/xinit/xinitrc.d/* ; do
if [ -x "$i" ]; then
. "$i"
fi
done

# The user may have their own clients they want to run. If they don't,
# fall back to system defaults.
# set up ssh agent environment if available.

if [ -f $HOME/.Xclients ]; then
[ -x /usr/bin/ssh-agent -a -z "$SSH_AGENT_PID" ] && \
exec ssh-agent $HOME/.Xclients || \
exec $HOME/.Xclients
elif [ -f /etc/X11/xinit/Xclients ]; then
[ -x /usr/bin/ssh-agent -a -z "$SSH_AGENT_PID" ] && \
exec ssh-agent /etc/X11/xinit/Xclients || \
exec /etc/X11/xinit/Xclients
else
# failsafe settings. Although we should never get here
# (we provide fallbacks in Xclients as well) it can't hurt.
xclock -geometry 100x100-5+5 &
xterm -geometry 80x50-50+150 &
if [ -x /usr/bin/netscape -a -f /usr/share/doc/HTML/index.html ]; then
netscape /usr/share/doc/HTML/index.html &
fi
if [ -x /usr/X11R6/bin/fvwm2 ]; then
exec fvwm2
else
exec twm
fi
fi
exec /usr/local/bin/fluxbox


solo che il Fluxbox non parte.... dove sbaglio?
grazie!

maxithron
03-10-2003, 01:04
ma un fluxbox -exec non ti basta?

Sephirot
03-10-2003, 02:18
[sephi@localhost sephi]$ fluxbox -exec
Failed to read: session.tabs
Setting default value
Failed to read: session.slitlistFile
Setting default value
Failed to read: session.groupFile
Setting default value
Failed to load groupfile:
BScreen::BScreen: e' accaduto un errore nella interrogazione del server X.
un altro window manager e' gia' attivo per il display :0.0.
Blackbox::Blackbox: nessuno schermo gestibile, uscendo
Fluxbox: Unknown error.


come vedi non basta...

Sephirot
03-10-2003, 14:37
up :cry:

pinball
03-10-2003, 15:51
Originariamente inviato da Sephirot
Allora, ho installato compilato etc FluxBox e tutto bene sin qua.
Poi pero' non riesco a farlo partire.
Nella documentazione ho letto che devo prendere xinitrc metterlo nella home del mio user e modificarlo aggiungendo alla fine questa riga: exec /usr/local/bin/fluxbox

quindi ho questo file xinitrc:

#!/bin/sh
# (c) 1999-2002 Red Hat, Inc.

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
userxkbmap=$HOME/.Xkbmap

sysresources=/etc/X11/Xresources
sysmodmap=/etc/X11/Xmodmap
sysxkbmap=/etc/X11/Xkbmap

# merge in defaults
if [ -f "$sysresources" ]; then
xrdb -merge "$sysresources"
fi

if [ -f "$userresources" ]; then
xrdb -merge "$userresources"
fi

# merge in keymaps
if [ -f "$sysxkbmap" ]; then
setxkbmap `cat "$sysxkbmap"`
XKB_IN_USE=yes
fi

if [ -f "$userxkbmap" ]; then
setxkbmap `cat "$userxkbmap"`
XKB_IN_USE=yes
fi

if [ -z "$XKB_IN_USE" -a ! -L /etc/X11/X ]; then
if grep '^exec.*/Xsun' /etc/X11/X > /dev/null 2>&1 && [ -f /etc/X11/XF86Config ]; then
xkbsymbols=`sed -n -e 's/^[ ]*XkbSymbols[ ]*"\(.*\)".*$/\1/p' /etc/X11/XF86Config`
if [ -n "$xkbsymbols" ]; then
setxkbmap -symbols "$xkbsymbols"
XKB_IN_USE=yes
fi
fi
fi

# xkb and xmodmap don't play nice together
if [ -z "$XKB_IN_USE" ]; then
if [ -f "$sysmodmap" ]; then
xmodmap "$sysmodmap"
fi

if [ -f "$usermodmap" ]; then
xmodmap "$usermodmap"
fi
fi

unset XKB_IN_USE

# run all system xinitrc shell scripts.
for i in /etc/X11/xinit/xinitrc.d/* ; do
if [ -x "$i" ]; then
. "$i"
fi
done

# The user may have their own clients they want to run. If they don't,
# fall back to system defaults.
# set up ssh agent environment if available.

if [ -f $HOME/.Xclients ]; then
[ -x /usr/bin/ssh-agent -a -z "$SSH_AGENT_PID" ] && \
exec ssh-agent $HOME/.Xclients || \
exec $HOME/.Xclients
elif [ -f /etc/X11/xinit/Xclients ]; then
[ -x /usr/bin/ssh-agent -a -z "$SSH_AGENT_PID" ] && \
exec ssh-agent /etc/X11/xinit/Xclients || \
exec /etc/X11/xinit/Xclients
else
# failsafe settings. Although we should never get here
# (we provide fallbacks in Xclients as well) it can't hurt.
xclock -geometry 100x100-5+5 &
xterm -geometry 80x50-50+150 &
if [ -x /usr/bin/netscape -a -f /usr/share/doc/HTML/index.html ]; then
netscape /usr/share/doc/HTML/index.html &
fi
if [ -x /usr/X11R6/bin/fvwm2 ]; then
exec fvwm2
else
exec twm
fi
fi
exec /usr/local/bin/fluxbox


solo che il Fluxbox non parte.... dove sbaglio?
grazie!



ma cos'è tutta sta robaccia??? :eek: :confused:

(prima di proseguire fai il backup del tuo attuale .xinitrc che non si sa mai! :p )

1. lavora da root: crea un nuovo file .xinitrc dentro la tua home (/home/utente/.xinitrc) con:

cd /home/utente
nano .xinitrc

..e scrivici dentro SOLO questa riga, e nient'altro:

exec /usr/bin/fluxbox

...salva ed esci.... da log in testuale ti basta poi dare "startx" e vedrai che parte fluxbox! ;) :p

ciaooo

PS: se dopo aver fatto questo non ti parte lo stesso, il problema (almeno a me) stava nei file di config che non so perchè non erano nel posto giusto... se lo fa pure a te posta che ti dico cosa fare!

PPS: hai preso l'ultima versione di fluxbox dalla homepage spero... che distro usi? se hai debian e hai fatto solo apt-get install fluxbox la versione è veramente vecchissima! ;) da apt-get.org cercati il repository con l'ultima versione!

Timewolf
03-10-2003, 20:00
Ma dove lo hai pescato questo xinitrc?
Devi modificare il file .xinitrc che si trova nella tua home directory

Sephirot
04-10-2003, 01:10
Originariamente inviato da moly82
...salva ed esci.... da log in testuale ti basta poi dare "startx" e vedrai che parte fluxbox! ;) :p

ciaooo

PS: se dopo aver fatto questo non ti parte lo stesso, il problema (almeno a me) stava nei file di config che non so perchè non erano nel posto giusto... se lo fa pure a te posta che ti dico cosa fare!

dimmi cosa fare perchè non parte :(

possi
04-10-2003, 08:55
Non scomodiamo root quando non serve.

Nella tua home crea un bel .xinitrc (notare il punto davanti al nome...)

buttaci dentro il path in cui si trova fluxbox... da quel che ho capito
/usr/local/bin/fluxbox

salva ed esci

l'exec davanti al path è assolutamente superfluo in questo caso.
Ora lancia startx e goditi il tuo fluxbox
Ciao

pinball
04-10-2003, 12:28
Originariamente inviato da Sephirot
dimmi cosa fare perchè non parte :(


dunqnue hai modificato come ti ho detto il file .xinitrc??? exec o non exec il risultato è lo stesso...

...che distro usi? hai preso tutti i pacchetti che servono?

Debian-Puff:/home/roby# apt-cache search fluxbox
fbdesk - desktop icons for fluxbox window manager (NON indispensabile)
fluxconf - FluxBox configuration utility
fluxbox - Highly configurable and low resource X11 Window manager
fluxbox-theme-contrib - Themes for fluxbox (NON indispensabile)
fluxbox-theme-sid - Themes for fluxbox (NON indispensabile)
fluxbox-themes - Themes for fluxbox (NON indispensabile)

... a sto punto, una volta che hai scaricato tutto, vai nella dir /usr/share/fluxbox, e copiati i 2 file di testo che ci trovi dentro (uno di config e uno per le keys da tastiera..) e copiali dentro la tua /home/utente/fluxbox.

a me solo così andava, non so come mai questa operazione dovevo farla io manualmente ma vai a sapere.... :muro: :oink: :p