[Linux] Non riesco a far partire Fluxbox Clicca QUI per vedere il messaggio nel forum |
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:
code: #!/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
se lo lancio con fluxbox -exec
mi dà:
[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. |
lord2y |
prova a mettere in .xinitrc
code:
#!/bin/bash
exec fluxbox #o il path da seguire per arrivare all'esegubile
salva, dai un
code:
$chmod +x .xinitrc
e prova a lanciare
code:
$startx
cosi' dovrebbe andare
:ciao: |
Sephirot |
mitco lordy :D
cmq io il path per arrivare a fluxbox lo avevo messo alla fine... non va bene?
e poi questo file va salvato nella mia home o dove sta gia'?
grazie cmq! :D |
lord2y |
Originally posted by Sephirot
mitco lordy :D
cmq io il path per arrivare a fluxbox lo avevo messo alla fine... non va bene?
se lo avessi prima dell'ultimo fi probabilmente andava senza problemi...
e poi questo file va salvato nella mia home o dove sta gia'?
grazie cmq! :D
il file .xinitrc va nella tua home ogni utente ha il suo personalizzato ;)
:ciao: |
Sephirot |
ho modificato il file .xinitrc mettendo il percorso all'eseguibile all'inizio.
poi ho dato chmod ma non e' successo nulla
poi con startx mi dava questo:
[sephi@localhost sephi]$ startx
Fatal server error:
Server is already active for display 0
If this server is no longer running, remove /tmp/.X0-lock
and start again.
When reporting a problem related to a server crash, please send
the full server output, not just the last messages.
Please report problems to xfree86@xfree86.org. |
Flyzone |
Entra da root e rimuovi /tmp/.X0-lock, solitamente accade quando crasha il sistema con X attivo. |
lord2y |
Originally posted by Sephirot
ho modificato il file .xinitrc mettendo il percorso all'eseguibile all'inizio.
poi ho dato chmod ma non e' successo nulla
poi con startx mi dava questo:
[sephi@localhost sephi]$ startx
Fatal server error:
Server is already active for display 0
If this server is no longer running, remove /tmp/.X0-lock
and start again.
When reporting a problem related to a server crash, please send
the full server output, not just the last messages.
Please report problems to xfree86@xfree86.org.
vuol dire che hai X già attivo, magari con kdm o gdm avviato..Devi prima killare quella sessione per poi riavviare X senno fai un gran casino...
nel tuo caso da root
code:
#/etc/init.d/xdm stop
Il server X va down..controlla con ctrl+alt+F7 se la sessione è terminata e dopo
code:
$startx
Così dovrebbe funzare...
fammi/facci sapere ;) |
Sephirot |
[sephi@localhost sephi]$ /etc/init.d/xdm stop
bash: /etc/init.d/xdm: No such file or directory
cmq in quella cartella non trovo file xdm
e se elimino remove /tmp/.X0-lock come suggeriva flyzone prima? |
lord2y |
Non è necessario...
Prova a dare un più semplice
code:
#kill -9 xdm
e poi lancia X nuovamente con il nuovo .xinitrc.
prova a cercare in /etc/init.d/ un file del tipo kdm o gdm...
se c'è poi ti dico cosa fare...
:ciao: |
|
|
|