| To get backspace to work during an X-session started
by root, copy .xinitrc from the templates directory
(the default location is /System/Users/Template/.xinitrc)
and copy it to /root or create a file in /root called
.xinitrc and put this in it:
#!/bin/sh
# $XConsortium: xinitrc.cpp,v 1.4 91/08/22 11:41:34 rws Exp $
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
# start some nice programs
#Fix backspace
xmodmap -e "keysym Delete = 0xFF08"
geo=`/usr/X11R6/bin/xdpyinfo -display :0.0 | grep dimensions: | awk '{print $2}'`
geo=`echo $geo | awk '{split($1, a, /x/); a[1]=a[1] - 8; a[2]=a[2] - 98; printf("%dx%d", a[1], a[2])}'`
netscape -geometry $geo+0+25 &
startkde
address-suppressed |