|
|
|
![]() |
|
Strumenti |
![]() |
#1 |
Senior Member
Iscritto dal: Jan 2004
Messaggi: 426
|
xinitrc
Ciao gente,
visto che kde è troppo pesante ho deciso di usare fluxbox. Ora però c'è un problema... sotto /home/*****/.kde/Autostart potevo comodamente mettere i programmi da far startare. Sotto fluxbox le faq dicono di modificare il file xinitrc ma DOVE SI TROVA QUESTO FILE e soprattutto COME BISOGNA MODIFICARLO ? grazie |
![]() |
![]() |
![]() |
#2 |
Senior Member
Iscritto dal: Jan 2001
Città: Milano
Messaggi: 5707
|
si trova nella home di ogni utente col nome .xinitrc
se non viene trovato viene utilizzato /etc/X11/xinit/xinitrc lo puoi editare con vi o qualsiasi editor di testo. Ultima modifica di kingv : 30-05-2004 alle 20:35. |
![]() |
![]() |
![]() |
#3 |
Senior Member
Iscritto dal: Jan 2004
Messaggi: 426
|
grazie, ora provo a editarlo e ti faccio sapere
|
![]() |
![]() |
![]() |
#4 | |
Senior Member
Iscritto dal: Jan 2001
Città: Milano
Messaggi: 5707
|
Quote:
riguarda il messaggio precedente, mi ero dimenticato una directory ![]() |
|
![]() |
![]() |
![]() |
#5 |
Senior Member
Iscritto dal: Jan 2004
Messaggi: 426
|
ma in che modo devo aggiungere il nome dei programmi che voglio far partire ?
Io ho aggiunto semplicemente gnome-settings-daemon fbdesk -l nomedesktop.jpg però fluxbox praticamente non parte ![]() |
![]() |
![]() |
![]() |
#6 |
Senior Member
Iscritto dal: Jan 2004
Messaggi: 426
|
Devo copiare /etc/X11/xinitrc/xinitrc in /home/*****/.xinitrc giusto?
Se aggiungo qualcosa sotto la riga # Add your own lines here... (ad esembio gnome-settings-daemon) fluxbox non si avvia più! ![]() ![]() ![]() |
![]() |
![]() |
![]() |
#7 |
Senior Member
Iscritto dal: Jan 2001
Città: Milano
Messaggi: 5707
|
non so cosa sia gnome-settings-daemon, aggiungi un programma tipo xclock e guarda se parte all'avvio del WM
posta anche tutto .xinitrc (non dovrebbe essere lungo) |
![]() |
![]() |
![]() |
#8 |
Senior Member
Iscritto dal: Jan 2004
Messaggi: 426
|
Ora qualcosa ho capito, o provato a mettere xterm e all'avvio fa partire un terminale. Sul terminale digito exit poi parte fluxbox.
Come posso fargli partire insieme ? Ecco .xinitrc ------------------------------------------------------------ #!/bin/bash # # Sample .xinitrc for SuSE Linux # This script is called from 'startx' when you start an X session # # # In case everything goes wrong, we at least fall back to a plain xterm # failsafe="xterm -ls -T Failsave -geometry 80x24-0-0" trap "exec $failsafe" EXIT SIGHUP SIGINT SIGPIPE SIGTERM SIGIO # # Some bash (1 and 2) settings to avoid trouble on a # failed program call. # test -n "$BASH" && set +o posix no_exit_on_failed_exec=1 type shopt > /dev/null 2>&1 && shopt -s execfail set +e > /dev/null 2>&1 # # This should be the default # export TERM=xterm # # choose a window manager # if test -n "$WINDOWMANAGER" ; then WINDOWMANAGER=`type -p $WINDOWMANAGER` fi if test -z "$WINDOWMANAGER" ; then if test -x /usr/X11R6/bin/kde ; then WINDOWMANAGER=/usr/X11R6/bin/kde elif test -x /usr/X11R6/bin/startkde ; then WINDOWMANAGER=/usr/X11R6/bin/startkde elif test -x /usr/X11R6/bin/fvwm2 ; then WINDOWMANAGER=/usr/X11R6/bin/fvwm2 elif test -x /usr/X11R6/bin/wmlist ; then for i in `/usr/X11R6/bin/wmlist` ; do WINDOWMANAGER=`type -p $i` test -n "$WINDOWMANAGER" && break done elif test -x /usr/X11R6/bin/twm ; then WINDOWMANAGER=/usr/X11R6/bin/twm fi fi if test -z "$WINDOWMANAGER" ; then echo "Error: Unable to find a window manager. Please make sure you installed one!" echo "Exiting..." xmessage -timeout 10 -default okay -center -file - <<-EOF Error: Unable to find a window manager. Please make sure you installed one! Exiting... EOF exit 1 fi # # Load system and users resources if not already done # (XSESSION_IS_UP set by xdm in $XLIBDIR/xdm/Xsession) # if test "$XSESSION_IS_UP" != "yes" ; then XLIBDIR=/usr/X11R6/lib/X11 test -r $XLIBDIR/Xmodmap && xmodmap $XLIBDIR/Xmodmap test -r $HOME/.Xmodmap && xmodmap $HOME/.Xmodmap test -r $XLIBDIR/Xresources && xrdb -load -retain $XLIBDIR/Xresources test -r $HOME/.Xdefaults && xrdb -I$HOME -merge $HOME/.Xdefaults test -r $HOME/.Xresources && xrdb -I$HOME -merge $HOME/.Xresources fi # Start the XIM server XIMFILE=/etc/X11/xim test -r $HOME/.xim && XIMFILE=$HOME/.xim test -r $XIMFILE && source $XIMFILE # Enable Numlock if set test -r /var/run/numlock-on -a -x /usr/X11R6/bin/numlock && /usr/X11R6/bin/numlock # Disable new Xcursor themes if none is specified resp. located in $HOME # (use "unset XCURSOR_CORE" to enable them again later) #if [ "x$XCURSOR_THEME" == "x" -a ! -d $HOME/.icons ]; then # export XCURSOR_CORE=true #else # unset XCURSOR_CORE #fi # Prevent keyboard bouncing for Toshiba Notebooks # Means, disable AccessX test -r /etc/sysconfig/sax && source /etc/sysconfig/sax if [ "x$KBD_BOUNCE_FIX" = "xyes" ]; then test -x /usr/X11R6/bin/xbounce && /usr/X11R6/bin/xbounce fi # # Add your own lines here... konsole # # day planer deamon # pland & # # finally start the window manager # exec $WINDOWMANAGER # call failsafe exit 0 ------------------------------------------------------------ Ultima modifica di qaywsx : 30-05-2004 alle 21:12. |
![]() |
![]() |
![]() |
#9 |
Senior Member
Iscritto dal: Jan 2001
Città: Milano
Messaggi: 5707
|
non vedo la chiamata a fluxbox
![]() come fa a partire? |
![]() |
![]() |
![]() |
#10 |
Senior Member
Iscritto dal: Nov 2002
Città: Morio Cho
Messaggi: 2595
|
Ad esempio, il mio .xinitrc e` tutto qua:
Codice:
exec wterm +sb -bg azure -fg black & exec hotkeys -o off -t sk2500 -d /dev/hdb & exec fluxbox
__________________
Sono GULDO, non Guido! Cioè, certo che guido... Bé, insomma, avete capito ![]() Linux 2.6.26|Debian|Debian@Hwupgrade|Debian Clan|Solo Puffin ti darà forza e grinta a volontà! NERD rank 62|Milla Jovovich|大事な物はいつも形の無い物だけ Sito e Forum sul Giappone|La mia libreria su aNobii |
![]() |
![]() |
![]() |
#11 |
Senior Member
Iscritto dal: Jan 2004
Messaggi: 426
|
la faccio partire tramite kdm
|
![]() |
![]() |
![]() |
#12 |
Senior Member
Iscritto dal: Jan 2001
Città: Milano
Messaggi: 5707
|
se usi kdm devi utilizzare un file che si chiama .xsession (nella tua home)
controlla che sia eseguibile ( chmod ug+x .xsession) |
![]() |
![]() |
![]() |
#13 |
Senior Member
Iscritto dal: Jan 2001
Città: Milano
Messaggi: 5707
|
tanto per fare una prova creati un .xsession semplice, tipo:
Codice:
fluxbox & fbpid=$! xterm & wait $fbpid |
![]() |
![]() |
![]() |
#14 |
Senior Member
Iscritto dal: Jan 2004
Messaggi: 426
|
MITICOOOOOOOO; ora funziona
ecco il file .xsession ------------------------------------------ fluxbox & fbpid=$! kicker gnome-settings-daemon & fbsetbg -l /home/*****/.kde/share/wallpapers/acqua.jpg /home/*****/.kahakai/adsl.sh wait $fbpid ------------------------------------------ comunque quel wait $fbpid cosa significa ? |
![]() |
![]() |
![]() |
#15 |
Senior Member
Iscritto dal: Jan 2001
Città: Milano
Messaggi: 5707
|
dato che Xfree sta in piedi finche' l'esecuzione di xinitrc (o xsession) non e' terminata quel wait aspetta che venga chiuso il WM, finche' il WM non e' terminato non termina nemmeno l'esecuzione dello script
![]() |
![]() |
![]() |
![]() |
#16 |
Senior Member
Iscritto dal: Jan 2004
Messaggi: 426
|
ok, ora posso andare a dormire !
![]() Tra l'altro ... conosci mica qualche altro programma tipo superkaramba simile al menu di mac os x ? |
![]() |
![]() |
![]() |
#17 | |
Senior Member
Iscritto dal: Jan 2001
Città: Milano
Messaggi: 5707
|
Quote:
no mi spiace, a essere sincero non ho mai usato neanche superkaramba.... |
|
![]() |
![]() |
![]() |
Strumenti | |
|
|
Tutti gli orari sono GMT +1. Ora sono le: 04:28.