Archives / Snippets / Projets

dd if=/dev/zero of=root.fs bs=1024k count=2048 mkefs2 root.fs

mkdir loop sudo mount -o loop root.fs loop/

cd loop sudo apt-get install debootstrap sudo debootstrap squeeze .

chroot sudo .

INSIDE CHROOT

mount /proc ldconfig locale-gen fr

create a user HOME dir (needed for some softwares)

mkdir /home/ljouhet

apt-get update

apt-get install wget

cd /dev

wget http://recycle.lbl.gov/~ldoolitt/embedded/make_minimal_dev

chmod +x make_minimal_dev

./make_minimal_dev

Ptet mettre proc dans fstab

mount /proc /sbin/MAKEDEV pty

echo "deb http://archive.ubuntu.com/ubuntu/ precise universe" | tee /etc/apt/sources.list.d/universe.list apt-get update

ATTENTION : pas scilab tout court

apt-get install python scilab-cli