HD Install :: .xinitrc not working correctly- don't know why



I've got a frugal install and I've been tinkering with various scripts and settings the past few days. It had been working seemingly fine but I must have done something yesterday to  cause my .xinitrc to give a bunch of errors and I haven't a clue why.

I'll post the file and then tell you about the errors I get on boot.

First here's my boot line from menu.lst

title DSL fb1024x768
kernel /boot/linux24 root=/dev/hda1 quiet vga=791 noacpi noapm nodma noscsi pictures=/mnt/hda3/Pictures scripts=/mnt/hda3/scripts
initrd /boot/minirt24.gz  
-----------------------------------------
Here's my .xinitrc
------------------------------------------

# 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)"

./etc/init.d/dsl-functions
CMDLINE="$(cat/proc/cmdline)"

PICTURES="$(getbootparam pictures)"
[ -d "$PICTURES" ] || PICTURES="/var/Pictures"

SCRIPTS="$(getbootparam scripts)"
[ -d "$SCRIPTS" ] || scripts="/home/dsl/scripts"

# For non-US Keyboards
if [ ${KEYTABLE:0:2} != "us" ]; 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.sh
fi
#dillo /usr/share/doc/dsl/getting_started.html &>/dev/null &
torsmo 2>/dev/null &
xset s off
noblank
xset s off

/usr/local/bin/MyCron &

/mnt/hda3/scripts/cron_start_frame.sh &
fluxbox 2>/dev/null


here's my .xinitrc
case $DESKTOP in
 fluxbox )
   fluxter &>/dev/null &
   wmswallow -geometry 70x80 docked  docked.lua &
   exec fluxbox 2>/dev/null  
 ;;
 jwm )
   ./.background
   sleep 2
   exec jwm 2>/dev/null
 ;;
 * )
   exec fluxbox 2>/dev/null
 ;;
esac

-----------------------------------

Here are some of the errors that I'm getting:
I'm getting command not found errors for

1) ./etc/init.d/dsl-functions
2)cat/proc/cmdline
3)getbootparam  - both of them
4)noblank

an 888 floating point exception to the line with torsmo.

I've got this .xinitrc off a website and had it working---or atleast recognizing the getbootparam so that It could start the frame script before I hard coded the directory in.

Any ideas?

I'm guessing your "pasting" got messed up, or maybe these are really the cause of the problems:
1) missing a space between the first "." and "/"
2) missing a space between "cat" and "/proc/cmdline"
3) this is due to #1
4) is this included in DSL? Looks like a custom script/binary

torsmo: which version? maybe its due to your other errors

Thanks!! The mistakes you caught fixed my most worrisome issues.

I still get an error on noblank and with torsmo. I guess I should do a little reading and find out what those two are doing for me and test whether or not I need them.

I've got ver 3.4.3 that I'm working with.

Thanks again.

noblank: The person you got it from probably had that to turn off some screen blanking or screensaver.  I have no idea why you would need 2 invocations of xset.

torsmo: DSL v3.4.3 used torsmo v0.18 and is known for having noswap errors... but DSL v3.4.4 is out now so you may want to try that instead if you plan to upgrade anyways.

Upgrading should be trivial, right?

If I understand how the frugal install is working, everything important is being backed up for me with exception to the menu.lst file. I should be able to format/install 3.4.4 without a problem.

Out of curiosity is v4.x going to be upgradeable as seamlessly?

Next Page...
original here.