debootstrap

Install Ubuntu / debian 'a la mano'

prepare disk

mke2fs -j /dev/sda1 mkdir /mnt/ubuntu mount /dev/sda1 /mnt/target

get debootstrap

wget http://archive.ubuntu.com/ubuntu/pool/main/d/debootstrap/debootstrap_1.0.10ubuntu3.tar.gz tar -xvzf debootstrap_1.0.10ubuntu3.tar.gz /usr/sbin/debootstrap --arch i386 edgy /mnt/target http://archive.ubuntu.com/ubuntu mount -t proc proc /mnt/target/proc LANG= chroot /mnt/target /bin/bash

create fstab

# /etc/fstab: static file system information. # # file system mount point type options dump pass /dev/sda1 / ext3 defaults 0 1 proc /proc proc defaults 0 0 sys /sys sysfs defaults 0 0

network

    • /etc/network/interfaces

auto lo iface lo inet loopback # To use dhcp: # # auto eth0 # iface eth0 inet dhcp # An example static IP setup: (broadcast and gateway are optional) # # auto eth0 # iface eth0 inet static # address 192.168.0.42 # network 192.168.0.0 # netmask 255.255.255.0 # broadcast 192.168.0.255 # gateway 192.168.0.1

LINUX

apt-cache search linux-image apt-get install linux-image-...

GRUB

Accounts

passwd root adduser patrick addgroup --system admin adduser patrick admin # visudo %admin ALL=(ALL) ALL

-- PatrickNomblot - 06 Feb 2009