zZzZz Skrevet 11. september 2003 Del Skrevet 11. september 2003 Fikk litt sjokk nå... Hadde nettopp installert fluxbox 0.9.3, og lagt den inn i /opt/kde/share/config/kdm/Xsession (bruker KDM). Hadde tenkt å prøve vidunderet, men det var ikke kdm'en min enig i... Ingen av vindusbehandlerne mine virker... Xsession-fila mi ser slik ut: #/bin/sh # $XConsortium: Xsession /main/10 1995/12/18 18:21:28 gildea $ # # # $XFree86: xc/programs/xdm/config/Xsession,v 1.2 1998/01/11 03:48:32 dawes Exp $ # Modified for Slackware-3.5, 28-Mar-98 volkerdi # Extensively rewritten for Slackware 7.0, 03-Oct-1999 volkerdi # Patched to give priority to $HOME/.xsession, 10-Oct-1999 volkerdi # Merged changes into upstream (XFree86-4.0.2) version, 17-Feb-2001 volkerdi # Fixes for $PATH (from Jim Diamond), GDM/KDM/XDM, 2003-02-07 volkerdi # 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 userresources=$HOME/.Xresources usermodmap=$HOME/.Xmodmap sysresources=/usr/X11R6/lib/X11/xinit/.Xresources sysmodmap=/usr/X11R6/lib/X11/xinit/.Xmodmap # merge in defaults and keymaps if [ -r $sysresources ]; then xrdb -merge $sysresources fi if [ -r $sysmodmap ]; then xmodmap $sysmodmap fi if [ -r $userresources ]; then xrdb -merge $userresources fi if [ -r $usermodmap ]; then xmodmap $usermodmap fi # Since xdm doesn't run a bash -login shell (or any other login shell) # we should source these files to set up the user's environment. profile=/etc/profile userprofile=~/.profile if [ -r $profile ]; then source $profile 1> /dev/null 2> /dev/null fi if [ -r $userprofile ]; then source $userprofile 1> /dev/null 2> /dev/null fi # Set the $PATH through the user's preferred shell. case `basename "$SHELL"` in bash|sh|ash) PATH="`( echo 'echo $PATH' | bash --login ) | tail -1`" ;; csh|tcsh) PATH="`( echo 'echo $PATH' | tcsh -l ) | tail -1`" ;; ksh) PATH="`( cat /etc/profile; echo 'echo $PATH' ) | ksh | tail -1`" ;; zsh) PATH="`( echo 'echo $PATH' | zsh -l ) | tail -1`" ;; *) # We don't know your shell, so we'll set up reasonable defaults. if [ "`whoami`" = "root" ]; then PATH=$PATH:/usr/local/sbin:/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin else PATH=$PATH:/usr/local/bin:/bin:/usr/bin fi ;; esac # These files (if they exist) are used to set up the X related environment. We used to # exec .xsession at this location, but that can interfere with choosing a session type # through XDM/KDM/GDM so it was moved to after a requested session is started. Since # that means that .xsession might never be run at all when using XDM/KDM/GDM, support # for the xprofile was added to allow a way for the user to customize the X environment. if [ -r /etc/xprofile ]; then source /etc/xprofile fi if [ -r ~/.xprofile ]; then source ~/.xprofile fi # Some people say that an .xsession file should always be given priority, even if a # different window manager was requested in $1. If you want that behavior, uncomment # the lines below. This is not recommended (nor, in general, is the use of an # .xsession file as a default... it should be left for the advanced users). #if [ -x $HOME/.xsession ]; then # exec $HOME/.xsession $@ #fi # If a particular session type was requested in $1, start that session: case "$1" in failsafe) xsetroot -solid SteelBlue exec xterm -geometry 80x24-0-0 ;; KDE) exec /opt/kde/bin/startkde ;; gnome) exec gnome-session ;; openwin) exec olvwm ;; fvwm2) xsetroot -solid SteelBlue exec fvwm2 ;; fvwm95) xsetroot -solid SteelBlue exec fvwm95 ;; Fluxbox 0.9.3) exec gkrellm & exec /usr/torbjorn/flux/nyflux/bin/fluxbox ;; blackbox) exec blackbox ;; xfce) exec /etc/X11/xinit/xinitrc.xfce ;; windowmaker) exec /etc/X11/xinit/xinitrc.wmaker ;; afterstep) exec afterstep ;; enlightenment) exec /usr/torbjorn/enlightenment/enlightenment-0.16.5/src/enlightenment ;; fluxbox) exec gkrellm & exec /usr/local/bin/fluxbox ;; #XPde) # exec /usr/torbjorn/xpde-0.3.5/XPde #;; twm) #xclock -geometry 50x50-1+1 & #xterm -geometry 80x50+494+51 & #xterm -geometry 80x20+494-0 & #xterm -geometry 80x66+0+0 -name login & xsetroot -solid SteelBlue exec twm ;; esac # If we aren't running from XDM/KDM/GDM and no window manager was # specified, then we'll run the user's $HOME/.xsession if it's # executable. This must be set up to run the user's window manager. if [ -x $HOME/.xsession ]; then exec $HOME/.xsession $@ fi # If the user doesn't have their own xsession and none was specified in # $1, then run the system default session type: if [ -r /etc/X11/xinit/xinitrc ]; then exec /etc/X11/xinit/xinitrc fi # If a $startup variable is set to define the window or session manager, # then run that: if [ -s "$startup" -a -x "$startup" ]; then exec "$startup" else if [ -r "$resources" ]; then xrdb -load "$resources" fi # Run xsm as a failsafe. exec xsm fi Noen som finner no'n feil? Kan vel legge til at den flux 0.9.3 er konfigurert med prefix, i motsetning til den gamle. Lenke til kommentar
iDude Skrevet 11. september 2003 Del Skrevet 11. september 2003 fluxbox) exec gkrellm & exec /usr/local/bin/fluxbox ;; #XPde) # exec /usr/torbjorn/xpde-0.3.5/XPde # ;; twm) #xclock -geometry 50x50-1+1 & #xterm -geometry 80x50+494+51 & #xterm -geometry 80x20+494-0 & #xterm -geometry 80x66+0+0 -name login & xsetroot -solid SteelBlue exec twm ;; esac Mulig "#" kommentarene etter ";;" og før twm) forvirrer /bin/sh ... Lenke til kommentar
zZzZz Skrevet 12. september 2003 Forfatter Del Skrevet 12. september 2003 fluxbox) exec gkrellm & exec /usr/local/bin/fluxbox ;; #XPde) # exec /usr/torbjorn/xpde-0.3.5/XPde # ;; twm) #xclock -geometry 50x50-1+1 & #xterm -geometry 80x50+494+51 & #xterm -geometry 80x20+494-0 & #xterm -geometry 80x66+0+0 -name login & xsetroot -solid SteelBlue exec twm ;; esac Mulig "#" kommentarene etter ";;" og før twm) forvirrer /bin/sh ... Tvilsomt, for dette skjedde før jeg satte den XPde-dingsen til kommentar. Lenke til kommentar
Cronius Skrevet 14. september 2003 Del Skrevet 14. september 2003 Litt meningsløst egentlig, men for å midlertidig gå rundt problemet kan du: # XFree86 & # su bruker $ fluxbox -display :0 Lenke til kommentar
iDude Skrevet 14. september 2003 Del Skrevet 14. september 2003 Fluxbox 0.9.3) exec gkrellm & exec /usr/torbjorn/flux/nyflux/bin/fluxbox ;; Dette tror jeg ikke er lov... Du må ha quotes rundt uttrykket ditt for at "case" skal tolke det, mellomrommet i uttrykket (Fluxbox 0.9.3) gjør at xsession-skriptet ditt ikke kjører... Lenke til kommentar
Cronius Skrevet 14. september 2003 Del Skrevet 14. september 2003 Hvis man kjører kdm fra en tty gir den sikkert debugging der (hvis ikke ibrotha hadde løsningen) Lenke til kommentar
zZzZz Skrevet 14. september 2003 Forfatter Del Skrevet 14. september 2003 Hipp hurra for ibrotha! Joda, fjerning av mellomrom gjorde susen. Lenke til kommentar
iDude Skrevet 14. september 2003 Del Skrevet 14. september 2003 Hipp hurra for ibrotha!Joda, fjerning av mellomrom gjorde susen. Jepp jepp.. Hurra for meg Lenke til kommentar
Anbefalte innlegg
Opprett en konto eller logg inn for å kommentere
Du må være et medlem for å kunne skrive en kommentar
Opprett konto
Det er enkelt å melde seg inn for å starte en ny konto!
Start en kontoLogg inn
Har du allerede en konto? Logg inn her.
Logg inn nå