====== How-to chroot into Debian ======
===== Files needed =====
* [[http://download.dsmg600.info/bzip2-1.0.3.tar.bz2|bzip2]]
* [[http://download.dsmg600.info/tar-1.15.92.tar.bz2|tar]]
* [[http://download.dsmg600.info/busybox-1.00.tgz|busybox binary to replace missing tools]]
* [[http://download.dsmg600.info/people/sala/debootstrap-0.3.3.1_uclibc_powerpc.tar.bz2|debootstrap-0.3.3.1 uclibc powerpc version]]
===== Installing steps =====
- ''mkdir /mnt/HD_a2/work && cd /mnt/HD_a2/work''
- ''ln -s /mnt/HD_a2/bzip2 /mnt/HD_a2/bzcat''
- ''/mnt/HD_a2/bzcat debootstrap-0.3.3.1_uclibc_powerpc.tar.bz2 | /mnt/HD_a2/tar -xvf -''
- ''export DEBOOTSTRAP_DIR=`pwd`/usr/lib/debootstrap''
- Extract busybox-1.00.tgz and add extracted bin and sbin directory to a PATH. For example ''export PATH=/mnt/HD_a2/bin:/mnt/HD_a2/sbin:$PATH''
- ''%%/mnt/HD_a2/bin/sh ./usr/sbin/debootstrap --arch powerpc sid /mnt/HD_a2/debian http://ftp.nl.debian.org/debian%%''
- ''cp /etc/resolv.conf /mnt/HD_a2/debian/etc/resolv.conf''
- ''mount -t proc proc /mnt/HD_a2/debian/proc''
- ''cd /''
- ''chroot /mnt/HD_a2/debian /bin/bash''
- ''apt-get update''
- ''apt-get install locales''
- ''dpkg-reconfigure locales''
- ''passwd root''
- ''apt-get install dropbear''
- ''apt-get install hotplug''
==== /etc/fstab ====
/dev/sda3 / ext3 noatime 0 0
/dev/sda1 none swap sw 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
==== /etc/network/interfaces ====
mapping hotplug
script grep
map eth0 eth0
auto eth0
iface eth0 inet static
address 192.168.1.2
netmask 255.255.255.0
gateway 192.168.1.1
dns-nameservers 192.168.1.1
FIXME This wiki page is writing in progress - 90% done 8-)
===== Links =====
* [[http://forum.dsmg600.info/t17-Debian-howto.html|Forum thread]]