[LatinaLUG] RMS a Piedimonte Matese (CE)

pier latina@lists.linux.it
Fri, 28 Jun 2002 23:19:20 +0200


On Fri, 28 Jun 2002 00:54:04 +0200
Antonio Gallo <agx@linux.it> wrote: {

minchianṭ nulla capii, comunque che eri matto l'avevamo capito non c'era bisogno che ce lo confermassi :-))
ciao pierluigi


> > wm_blackbox() {
> > 	xscreensaver &
> > 	bbkeys -i &
> > 	mount.app &
> > 	sleep 1
> > 	wmcpu &
> > 	sleep 1
> > 	wmppp &
> > 	blackbox
> > }
> 
> LOL.......
> 
> 
> 
> #!/bin/sh
> # This is the X-Widow's xinitrc for Bad Penguin created by AGX
> echo "[ initrc ]----------------------------------------------------------"
>   
> # ===== X-Window Resource Handlings =====
> echo "Handling X-Window Resources"
> 
> 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 [ -f $sysresources ]; then
>     xrdb -merge $sysresources
> fi
> if [ -f $sysmodmap ]; then
>     xmodmap $sysmodmap
> fi
> if [ -f $userresources ]; then
>     xrdb -merge $userresources
> fi
> if [ -f $usermodmap ]; then
>     xmodmap $usermodmap
> fi
> 
> # =================================================
> # ---------------- BAD PENGUIN --------------------
> # =================================================
> # <BEGIN COPYRIGHT>
> # This file is part of the "Bad Penguin" GNU/Linux distribution
> # Copyright (C) 1997-98-99, 2000 by Antonio GALLO
> # Home Page at ......: http://www.badpenguin.org
> # Home Page at ......: http://www.linux.it/~agx/
> # e-mail contact ....: mailto:agx@linux.it	mailto:agx@geocities.com
> # This program is distributed under the GNU General Public License
> # You are not allowed to remove the copyright notice
> # <END COPYRIGHT>
> # 1.4.0 by agx@linux.it 
> # 1.5.0 by agx@linux.it introduced the .XCONSOLE concept
> # 1.6.0 by AGX: apply featured described in x-window.txt
>   
> # Set the Path for Users of XDM
> PATH="/usr/X11R6/bin:/usr/local/bin:/usr/bin:/bin"
> if [ "$USER" = "root" ]; then
>   PATH="$PATH:/usr/local/sbin:/usr/sbin:/sbin:"
> fi
> 
> # Set the Profile for Users of XDM
> if [ "$PROFILE" = "" ]; then
>   export PROFILE="`cat /etc/agx_profile`"
> fi
> 
> # ===== BACKGROUND =====
> 
> # Check if BACKGROUND environment variable is set
> WM_FAIL=1
> if [ "$BACKGROUND" != "" ]; then
>   echo "Carico il background $BACKGROUND"
>   Esetroot $BACKGROUND
>   WM_FAIL=$?
> fi
> 
> # if Fail then Load the Deault Window Manager from the hidden file
> if [ $WM_FAIL -ne 0 ]; then
>   if [ -f ~/.BACKGROUND ]; then
>     BACKGROUND="`cat ~/.BACKGROUND`"
>     echo "Carico il background $BACKGROUND"
>     Esetroot $BACKGROUND
>     WM_FAIL=$?
>   fi
> fi
> 
> # if failed then load a reasonable default
> if [ $WM_FAIL -ne 0 ]; then
>   # Provide a default background instead of the oblovious gray screen
>   echo "Imposto background di default"
>   xsetroot -solid "#008080" &
> fi
> 
> # =====  Start the XCONSOLE  =====
> 
> # Check if XCONSOLE environment variable is set
> WM_FAIL=1
> if [ "$XCONSOLE" != "" ]; then
>   # Check Executable
>   WM_BIN=`echo $XCONSOLE | cut -f 1 -d' '`
>   echo "Checking X-Console: $WM_BIN"
> #  if [ -x $WM_BIN ]; then
>     echo -n "Staring X-Console: $XCONSOLE "
>     $XCONSOLE &
>     echo "($?)"
>     WM_FAIL=0
> #  else
> #    WM_FAIL=1
> #  fi
> fi
> 
> # if Fail then Load the Deault X-Console from the hidden file
> if [ $WM_FAIL -ne 0 ]; then
>   if [ -f ~/.XCONSOLE ]; then
>     XCONSOLE="`cat ~/.XCONSOLE`"
>     # Check Executable
>     WM_BIN=`echo $XCONSOLE | cut -f 1 -d' '`
>     echo "Checking X-Console: $WM_BIN"
> #    if [ -x $WM_BIN ]; then
>       echo -n "Staring X-Console: $XCONSOLE "
>       WM_FAIL=0
>       $XCONSOLE &
>       echo "($?)"
> #    fi
>   fi
> fi
> 
> # if failed then load normal X-Console
> if [ $WM_FAIL -ne 0 ]; then
>   echo "Starting Default X Console"
>   xconsole -file /dev/xconsole  -notify  -daemon  -exitOnFail \
>            -geometry 888x100+0-25 -verbose -fn fixed
> fi
> 
> # ===== Post-Install =====
> # need an xconsole to run from X-Window
> echo "Configuring Bad Penguin Packages that require X-Window running"
> #setup --post-install   --no-header  --relaxed  1>/dev/xconsole 2>/dev/xconsole
> #setup --x-post-install --no-header  --relaxed  1>/dev/xconsole 2>/dev/xconsole
> 
> # ===== TRUE TYPE FONT SERVER =====
> XFS=xfstt
> if [ -x /usr/X11R6/bin/$XFS ]; then
>   echo "Starting the True Type Font Server"
>  
>   # Defaults
>   XFSTT_PORT=7101
>   XFSTT_SOCKET="unix/:$XFSTT_PORT"
>   XFSTT_PID="`pidof $XFS`"
> 
>   if [ "$XFSTT_PID" = "" ]; then
>     echoc CYAN "Preparing Truetype fonts ..."
> #    $XFS  --sync  1>/dev/xconsole 2>/dev/xconsole
> #    sleep 1
>     $XFS 1>/dev/xconsole 2>/dev/xconsole &
>     sleep 1
>   fi
> 
>   xset fp+ $XFSTT_SOCKET
>   REPLY=$?
>   if [ $? -ne 0 ]; then
>     echoc RED "Problem running the true-type font server !!!"
>     echoc RED "Problem running the true-type font server !!!" >/dev/xconsole
>     xmessage -center "Problem running the true-type font server !!!"
>   else
>     echo "The true-type font server is running" >/dev/xconsole
>   fi
> fi    
> 
> # =====  AUTORUN: Start some nice programs  =====
> if [ -f ~/.XRUNME ]; then
>   echo "Starting Programs in autorun"
>   set -x
>   . ~/.XRUNME
>   set +x
> fi
> 
> # =====  Start the WINDOW MANAGER  =====
> 
> # Check if WINDOWMANAGER environment variable is set
> WM_FAIL=1
> if [ "$WINDOWMANAGER" != "" ]; then
>   # Check Executable
>   WM_BIN=`echo $WINDOWMANAGER | cut -f 1 -d' '`
>   echo "Checking Window Manager: $WM_BIN"
> #  if [ -x $WM_BIN ]; then
>     echo -n "Staring Window Manager: $WINDOWMANAGER "
>     $WINDOWMANAGER &
>     echo "($?)"
>     WM_FAIL=0
> #  else
> #    WM_FAIL=1
> #  fi
> fi
> 
> # if Fail then Load the Deault Window Manager from the hidden file
> if [ $WM_FAIL -ne 0 ]; then
>   if [ -f ~/.WINDOWMANAGER ]; then
>     WINDOWMANAGER="`cat ~/.WINDOWMANAGER`"
>     # Check Executable
>     WM_BIN=`echo $WINDOWMANAGER | cut -f 1 -d' '`
>     echo "Checking Window Manager: $WM_BIN"
> #    if [ -x $WM_BIN ]; then
>       echo -n "Staring Window Manager: $WINDOWMANAGER "
>       WM_FAIL=0
>       $WINDOWMANAGER &
>       echo "($?)"
> #    fi
>   fi
> fi
> 
> # ... last chance, if failed then load "twm"
> if [ $WM_FAIL -ne 0 ]; then
>   echo "No WM exists or configured, starting twm"
>   xsetroot -mod 4 4 -bg rgb:6/8/8 -fg rgb:78/a/a &
>   twm &
> fi
> 
> 
> 
> # =====  Start the SESSION MANAGER  =====
> 
> # Check if SESSIONMANAGER environment variable is set
> if [ "$SESSIONMANAGER" != "" ]; then
>   # Check Executable
>   WM_BIN=`echo $SESSIONMANAGER | cut -f 1 -d' '`
>   echo "Checking Session Manager: $WM_BIN"
> #  if [ -x $WM_BIN ]; then
>     echo -n "Staring Session Manager: $SESSIONMANAGER "
>     exec $SESSIONMANAGER
> #  fi
> fi
> 
> # if Fail then Load the Deault Session Manager from the hidden file
> if [ -f ~/.SESSIONMANAGER ]; then
>   SESSIONMANAGER="`cat ~/.SESSIONMANAGER`"
>   # Check Executable
>   WM_BIN=`echo $SESSIONMANAGER | cut -f 1 -d' '`
>   echo "Checking Session Manager: $WM_BIN"
> #  if [ -x $WM_BIN ]; then
>     echo -n "Staring Session Manager: $SESSIONMANAGER "
>     exec $SESSIONMANAGER
> #  fi
> fi
> 
> # Fallback to a normal xterm
> echo "$SESSIONMANAGER in not an executabled or file not found !"
> SESSIONMANAGER="/usr/X11R6/bin/xterm -ls -title Session_Manager -bg black -fg wheat -geom 80x25+0+0"
> exec $SESSIONMANAGER
> echo "Failed to run Emergency shell, try with just a plain xterm"
> SESSIONMANAGER="xterm"
> exec xterm
> echo "[ initrc EOF ]-------------------------------------------------"
> _______________________________________________
> http://www.llg.it
> latina mailing list 
> latina@lists.linux.it
> http://lists.linux.it/listinfo/latina