Other Help Topics :: Fool-proofing dsl



Here's the original from 2.1b. I don't know if any of the lua scripts called in it were changed when Robert upgraded everything to murgalua:
Code Sample

# put X windows programs that you want started here.
# Be sure to add at the end of each command the &

KEYTABLE="$(getknoppixparam.lua KEYTABLE)"
DESKTOP="$(getoption.lua $HOME/.desktop wm)"
ICONS="$(getoption.lua $HOME/.desktop icons)"

# For German Keyboards
if [ $KEYTABLE == "de" ]; then
 xmodmap -e "clear Mod4" -e "add Mod5 = Mode_switch" &
fi

#if egrep -qv noicons /proc/cmdline 2>/dev/null; then
if [ "$ICONS" == 1 ]; then
 for x in `ls -1 .xtdesktop/*.hide 2>/dev/null`; do rm -f ${x%.*}; done
 iconsnap.lua &>/dev/null &
 xtdesk &>/dev/null &
fi
# dillo /usr/share/doc/dsl/getting_started.html &>/dev/null &
torsmo 2>/dev/null &
case $DESKTOP in
 fluxbox )
   fluxter &>/dev/null &
   docked.lua &
   swallow.sh docked &
   exec fluxbox 2>/dev/null  
 ;;
 jwm )
   ./.background
   sleep 2
   exec jwm 2>/dev/null
 ;;
 * )
   exec fluxbox 2>/dev/null
 ;;
esac

thanks lucky13 :)
Ok, so that disaster was averted and I now have it boot up to a nice, full screen, opera browser (I somehow broke firefox, I actually like opera a lot). I still have a few issues though. I do want the computer to auto logon but i'm a little confused how to so that (I'm not THAT good with linux). I also cannot seem to get acpid to even install, the myDSL extension doesn't seem to do anything and I can't get to it through any other means. Other than that I think my moms gonna love this machine.
Init starts services with /etc/initrc. There are lines for every runlevel, either like "c1:2345:getty 9600" or "c1:2345:bash -login". If it's getty, change that getty part to just bash (or ash), or remove that -login option if it's bash already. That way login is not even started, it logs automagically as root.

Then in the start of .xinitrc use su to change into another user, like "su - myuser"

Well, I don't seem to have /etc/initrc, i have /etc/init (Not human readable) and inittab (doesn't have anything like 'c1:2345:getty', It's got some other stuff with getty but I changed that and it wouldn't boot up.)
Next Page...
original here.