Debootstrap HOWTO by glevand (
[email protected])
(Redone by snowy)
(Updated by thom)
-------------------------------------------------------
Installing Ubuntu Lucid (10.04) with debootstrap on petitboot
--------------------------------------------------------
For different versions of Ubuntu, just change all occurrences of lucid, to natty or whatever build you would like.
You can also edit the config files in whatever text editor you would like. Nano and Vi are the preferred text editors
- Configuring the base system
1. umount /dev/ps3dd2
2. mkdir /mnt/ubuntu
3. mkfs.ext3 /dev/ps3dd2
4. mount /dev/ps3dd2 /mnt/ubuntu
5. rm -rf /mnt/ubuntu/*
6. debootstrap --arch powerpc lucid /mnt/ubuntu Index of /
7. mount -t proc none /mnt/ubuntu/proc
8. mount --rbind /dev /mnt/ubuntu/dev
9. LANG=C chroot /mnt/ubuntu /bin/bash
10. export TERM=xterm-color
- Mounting partitions
if you want to use nano editor you will need to type "apt-get install nano" without quotes
File /etc/fstab
----------------
/dev/ps3dd2 / ext3 defaults 0 1
/dev/ps3vram none swap sw 0 0
/dev/ps3dd1 none swap sw 0 0
/dev/sr0 /mnt/cdrom auto noauto,ro 0 0
proc /proc proc defaults 0 0
shm /dev/shm tmpfs nodev,nosuid,noexec 0 0
- Setting timezone
1. dpkg-reconfigure tzdata
- Configuring networking
1. echo "Name of your computer here" > /etc/hostname
File /etc/network/interfaces
-----------------------------
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
File /etc/resolv.conf (cat /etc/resolv.conf, if you see nameservers already skip this step)
----------------------
nameserver 192.168.1.1
- Configuring apt
File /etc/apt/sources.list
---------------------------
deb Index of /ubuntu-ports lucid-updates main restricted
deb-src Index of /ubuntu-ports lucid-updates restricted
deb Index of /ubuntu-ports lucid universe
deb Index of /ubuntu-ports lucid-updates universe
deb Index of /ubuntu-ports lucid multiverse
deb Index of /ubuntu-ports lucid-updates multiverse
deb Index of /ubuntu-ports lucid-security main restricted
deb-src Index of /ubuntu-ports lucid-security main restricted
deb Index of /ubuntu-ports lucid-security universe
deb-src Index of /ubuntu-ports lucid-security universe
deb Index of /ubuntu-ports lucid-security multiverse
deb-src Index of /ubuntu-ports lucid-security multiverse
OR (Use the following if you have trouble with above sources.)
deb Index of /ubuntu-ports lucid main restricted
deb-src Index of /pub/ubuntu lucid main restricted
deb Index of /ubuntu-ports lucid-updates main restricted
deb-src Index of /pub/ubuntu lucid-updates main restricted
deb Index of /ubuntu-ports lucid universe
deb-src Index of /pub/ubuntu lucid universe
deb Index of /ubuntu-ports lucid-updates universe
deb-src Index of /pub/ubuntu lucid-updates universe
deb Index of /ubuntu-ports lucid multiverse
deb-src Index of /pub/ubuntu lucid multiverse
deb Index of /ubuntu-ports lucid-updates multiverse
deb-src Index of /pub/ubuntu lucid-updates multiverse
deb Index of /ubuntu-ports lucid-backports main restricted universe multiverse
deb Index of /ubuntu-ports lucid-security main restricted
deb-src Index of /ubuntu-ports lucid-security main restricted
deb Index of /ubuntu-ports lucid-security universe
deb-src Index of /ubuntu-ports lucid-security universe
deb Index of /ubuntu-ports lucid-security multiverse
deb-src Index of /ubuntu-ports lucid-security multiverse
deb Index of /ubuntu-ports lucid-proposed restricted main multiverse universe
1. apt-get update
- Configuring locales and keyboard
1. apt-get install locales
2. dpkg-reconfigure locales
3. apt-get install console-data
4. dpkg-reconfigure console-data
- Finishing touches
1. tasksel install standard
2. apt-get clean
3. passwd
4. apt-get install build-essential ncurses-dev git-core gitosis
5. mkswap /dev/ps3dd1
6. swapon /dev/ps3dd1