* create partitions / filesystems
cfdisk /dev/hdc
mkfs.ext2 /dev/hdc1
mount -o rw,suid,dev /dev/hdc1 /mnt
mkswap -f /dev/hdc2
swapon /dev/hdc2
* bootstrap (with a deb proxy like approx)
cdebootstrap -v sid /mnt http://proxy:9999/debian
install cdebootstrap from hardy if something went wrong
wget [mirror]cdebootstrap_0.4.4ubuntu1_i386.deb
dpkg --force-all -i cdebootstrap_0.4.4ubuntu1_i386.deb
* enter chroot
mount --bind /proc /mnt/proc/
mount --bind /dev /mnt/dev
chroot /mnt
export LANG=C
* install kernel and bootloader
apt-get install grub linux-image-2.6.24-1-486
cat /etc/kernel-img.conf<<EOF
# Kernel Image management overrides
# See kernel-img.conf(5) for details
do_symlinks = yes
relative_links = yes
do_bootloader = no
do_bootfloppy = no
do_initrd = yes
link_in_boot = no
postinst_hook = update-grub
postrm_hook = update-grub
EOF
* config bootloader
echo "/dev/hdc1 / ext2 rw 0 0" > /etc/mtab
grub-install /dev/hdc
update-grub
change in /boot/grub/menu.lst root=/dev/hdc1 with UUID
sed "s|root=/dev/hdc1|root=UUID=$(/lib/udev/vol_id --uuid /dev/hdc1)|" /boot/grub/menu.lst
* create /etc/fstab
echo "UUID=$(/lib/udev/vol_id --uuid /dev/hdc1) / auto defaults,noatime 0 1" > /etc/fstab
echo "UUID=$(/lib/udev/vol_id --uuid /dev/hdc2) none swap sw 0 0" >> /etc/fstab
* add a user
shadowconfig on
adduser USERNAME
* setup network, timezone
echo "nameserver NAMESERVERIP" > /etc/resolv.conf
echo HOSTNAME >/etc/hostname
cat > /etc/network/interfaces <<EOF
auto lo eth0
iface lo inet loopback
iface eth0 inet dhcp
EOF
* individual configs
tzselect
/etc/default/rcS:
TMPTIME=0
SULOGIN=no
DELAYLOGIN=no
UTC=yes
VERBOSE=no
FSCKFIX=yes
RAMRUN=yes
RAMLOCK=yes
/etc/default/syslogd:
SYSLOGD="-m 0"
* cleanup
apt-get clean
apt-get install deborphan
apt-get remove --purge $(deborphan)
* search for unused packages
dpkg -l | grep ^ii | less
* remove unused packages
apt-get remove --purge aptitude cdebootstrap-helper-diverts laptop-detect nano tasksel-data tasksel vim-common vim-tiny
[ view entry ] ( 9304 views ) | print article
<<First <Back | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | Next> Last>>