knoppix-post-hdd
#!/bin/bash
# dpkg-hold -- command line tool to flag package(s) as held.
#
# by Craig Sanders, 1998-10-26. This script is hereby placed into the
# public domain.
#
# BUGS: this script has absolutely no error checking. this is not good.
if [ -z "$*" ] ; then
echo "Usage:"
echo " dpkg-hold <package...>"
exit 1
fi
for i in $@ ; do
echo "$i hold"
done | dpkg --set-selections
su - # become root
pump # get a damn IP address
dpkg-hold esound #until debian fixes there problem with no control file for esound-common 0.2.36-1
dpkg-hold esound-common
dpkg-hold libesd0
dpkg-hold libesd0-dev
dpkg-reconfigure locales # remove unused locales
nano /etc/apt/sources.list # replace ftp.de.debian.org with a local debian mirror
aptitude update; aptitude upgrade # update packages
When encountering errors about no control files:
extract the offending package to root and then rerun... i.e.
dpkg -x /var/cache/apt/archives/x11-common_6.8.2.dfsg.1-6_all.deb / ; aptitude upgrade
Upgrade Monotone
su -aptitude -t unstable install monotone
exit
screen
mkdir -p ~/slug
cd ~/slug
wget --cache=off http://www.nslu2-linux.org/Makefile
make setup-host-debian
cd /usr/include
mv asm asm-libc6
ln -s /usr/src/linux/include/asm-i386 asm
aptitude install linux-kernel-headers
Stop stupid service
/etc/init.d/gkrellmd stopDistCC
/etc/init.d/distcc restart# link all cc
make -j4 CC=distcc unslung
compilers:
/home/ged/slug/unslung/tmp/cross/bin