Line 5: |
Line 5: |
| There are lots of ways to create appropriate chroots; e.g. by hand, with debootstrap, with mock, etc. | | There are lots of ways to create appropriate chroots; e.g. by hand, with debootstrap, with mock, etc. |
| | | |
− | ==== debootstrap ==== | + | Here are some ideas to help you get started: |
| + | |
| + | ==== Ubuntu jaunty chroot ==== |
| + | With ''recent'' versions of debootstrap, in order to get a working chroot, you want something like: |
| + | |
| + | export CHROOT=`pwd`/jaunty-root |
| + | sudo debootstrap --arch i386 jaunty $CHROOT http://ubuntu.media.mit.edu/ubuntu/ |
| + | sudo chroot $CHROOT /bin/bash -l |
| + | mount -t proc proc /proc |
| + | mount -t devpts devpts /dev/pts |
| + | |
| + | ==== Debian sid chroot ==== |
| With debootstrap, in order to get a working chroot, you want something like: | | With debootstrap, in order to get a working chroot, you want something like: |
| | | |
− | export CHROOT=`pwd`/sid-root
| + | export CHROOT=`pwd`/sid-root |
− | sudo debootstrap --arch i386 sid $CHROOT http://debian.lcs.mit.edu/debian
| + | sudo debootstrap --arch i386 sid $CHROOT http://debian.lcs.mit.edu/debian |
− | sudo chroot $CHROOT /bin/bash -l
| + | sudo chroot $CHROOT /bin/bash -l |
− | # and some of the following:
| + | # and some of the following: |
− | mount -t proc proc $CHROOT/proc
| + | mount -t proc proc $CHROOT/proc |
− | mount -t devpts devpts $CHROOT/dev/pts
| + | mount -t devpts devpts $CHROOT/dev/pts |
− | mount -t selinuxfs selinux $CHROOT/selinux
| + | mount -t selinuxfs selinux $CHROOT/selinux |
| | | |
| ''Reference: http://www.debian.org/doc/manuals/reference/ch-tips.en.html '' | | ''Reference: http://www.debian.org/doc/manuals/reference/ch-tips.en.html '' |
| | | |
− | ==== mock ==== | + | ==== Fedora rawhide chroot ==== |
| With mock, it would be more like: | | With mock, it would be more like: |
| | | |
− | mock -r fedora-devel-i386 --init
| + | mock -r fedora-devel-i386 --init |
− | mock -r fedora-devel-i386 --shell
| + | mock -r fedora-devel-i386 --shell |
| | | |
| === X11 === | | === X11 === |