Sie sind auf Seite 1von 1

1) 2) 3) 4)

sudo apt-get install debootstrap schroot sudo mkdir /sid sudo debootstrap sid /sid http://ftp.fi.debian.org/debian Add the following to /etc/schroot/schroot.conf

[sid] description=Debian sid (unstable) location=/sid aliases=unstable,default users=user1,user2 where user1 and user2 are users that are allowed to use the chroot (change them!). 5) Add the following to /etc/fstab /home /dev /dev/pts /dev/shm /proc /sys /tmp /var/run/dbus /var/lib/dbus /sid/home /sid/dev /sid/dev/pts /sid/dev/shm /sid/proc /sid/sys /sid/tmp /sid/var/run/dbus /sid/var/lib/dbus none none none none none none none none none bind bind bind bind bind bind bind bind bind 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

5.1) sudo mkdir /sid/var/run/dbus 5.2) sudo mkdir /sid/var/lib/dbus 6) sudo mount -a 7) sudo cp /etc/sudoers /etc/hosts /etc/hostname /etc/passwd /etc/shadow /etc/gr oup /sid/etc 8) Create /usr/local/bin/sid with the following lines #!/bin/sh schroot -c sid -p -q -- "$@" 8.1) sudo chmod a+x /usr/local/bin/sid 9) Create /sid/usr/sbin/policy-rc.d to prevent daemons from starting accidentally inside the chroot with the following lines #!/bin/sh logger "sid $0 invoked with $@" exit 101 9.1) sudo chmod a+x /sid/usr/sbin/policy-rc.d 10) (just an example) sudo sid apt-get install openoffice.org 11) (just an example) sid openoffice.org

Das könnte Ihnen auch gefallen