
Copyright © 2002 Jim Brooks
linux root=/dev/hda5mount -o remount,rw -n / to remount as read/write.linux single at the LILO prompt.shutdown -F nowshutdown -cbadblocks.chattr:chattr -i myfilestty sanevga=normal to vga=extended in /etc/lilo.conf and then type lilo.SVGATextMode program, eg: SVGATextMode 132x50x8cd yourFontdir ttmkfdir -m 100 > fonts.dir- Tell the X server the path to your fonts:
xset fp+ yourFontDir xset fp rehash
#-- xhost +host1 xhost +host2 xrdb ~/.Xdefaults xset dpms 3600 4800 5600 # Delay to override default mouse settings. sleep 10 && xset m 4 4 & #--
UNAME=`uname -r`
KERNVER=${UNAME:0:3}
if [ "$KERNVER" = "2.6" ]; then
# Kernel 2.6.
# Load sound driver.
modprobe EDITME_YOUR_SOUND_CARD_KERNEL_MODULE
# Load sound mixer drivers (used for playing music CDs).
modprobe snd-mixer-oss
modprobe snd-pcm-oss
# 90 means 90% volume
aumix -v 90 -c 90 -o 90 -s 90 -w 90 -b 90 -t 90
fi
# If sfq is a kernel module. modprobe sch_sfq # sfq for eth0. tc qdisc add dev eth0 root sfq perturb 10
# See "15.4. Prioritizing interactive traffic" # http://lartc.org/howto/lartc.cookbook.interactive-prio.html iptables -A PREROUTING -t mangle -p tcp --sport telnet -j TOS --set-tos Minimize-Delay iptables -A PREROUTING -t mangle -p tcp --sport ftp -j TOS --set-tos Minimize-Delay iptables -A PREROUTING -t mangle -p tcp --sport http -j TOS --set-tos Minimize-Delay iptables -A PREROUTING -t mangle -p tcp --sport ssh -j TOS --set-tos Minimize-Delay # 8000 = your http proxy port iptables -A PREROUTING -t mangle -p tcp --sport 8000 -j TOS --set-tos Minimize-Delay iptables -A PREROUTING -t mangle -p tcp --sport ftp-data -j TOS --set-tos Maximize-Throughput
#!/bin/sh
# USB modem
if [ ! -c /dev/ttyACM0 ]; then
mknod /dev/ttyACM0 c 166 0
fi
UNAME=`uname -r`
KERNVER=${UNAME:0:3}
if [ "$KERNVER" = "2.4" ]; then
# kernel 2.4
DEV=/dev/ttyACM0
modprobe usbcore
modprobe usb-uhci
modprobe acm
else
# kernel 2.6
DEV=/dev/ttyACM0
modprobe pppox
modprobe ppp_synctty
modprobe ppp_deflate
modprobe ppp_async
if ! ( lsmod | grep -q cdc_acm ); then
modprobe usbcore
if ! ( grep -q usbdevfs /etc/mtab ); then
mount -t usbdevfs usbdevfs /proc/bus/usb
fi
echo "(patience)"
# uhci-hcd is for Intel.
modprobe uhci-hcd
# cdc_acm is USB modem driver
modprobe cdc_acm
# Give time to driver to probe USB modem (flickers LEDs).
# With no delay, an invalid device error will happen.
sleep 5
# echo 2 is to tell the driver to use a vendor-neutral protocol.
# In kernels after 2.6.0-test2 this is necessary.
#DIR=/sys/bus/usb/devices/1-1
# ^^^ EDITME find which subdir correlates to your USB modem
# VVV EDITME "Supra" is the product name of my modem
if ( grep -q Supra $DIR/product ); then
echo 2 > $DIR/bConfigurationValue
fi
sleep 5
fi
fi
# --- CHANGE editme FOR YOUR ISP ---
#pppd -detach connect 'chat -s -v "" ATZ OK ATL1DTeditme ogin: editme ssword: editme' $DEV 115200 debug crtscts modem defaultroute