Report, Experiment: How to setup a Debian "unstable"/sid chroot with X11. bernhard@intevation.de 20070727 (Just my experiments, this might contain the wrong solutions.) Found important hints in: [1] http://www.debian.org/doc/manuals/reference/ch-tips.en.html [2] http://kanotix.com/index.php?module=pnWikka&tag=ChrootEinrichten [3] The Debian amd64-howto. [4] A search engine. Hostsystem: Debian Sarge on powerpc Chrootsystem: Debian sid a) Creating a partition /devel with enough space and a filesystem. b) starting the chroot installed backported cdebootstrap 0.3.11, as the Sarge one seems to be quite old. cdebootstrap -v sid /devel http://ftp2.de.debian.org/debian/ c) get network to work. echo "proc-devel /devel/proc proc none 0 0" >> /etc/fstab mount proc-devel /devel/proc -t proc cp /etc/hosts /devel/etc/hosts cp /etc/resolv.conf /devel/etc/resolv.conf # MAKEDEV did not seem to be necessary Test as root: chroot /devel /bin/bash d) get apt-get to work and install vital packages for me chroot in vi /etc/apt/sources.list deb http://ftp2.de.debian.org/debian sid main deb-src http://ftp2.de.debian.org/debian sid main apt-get install gnupg openssh-client vim Installing Intevation's logbook tools. e) making sure a user can call the chroot install dchroot add entries "ber" for /devel/etc/passwd /devel/etc/shadow Hint: there is a bug in dchroot 0.11, Debian #360604 if you want to run a command directly, try setting SU_NO_SHELL_ARGS SU_NO_SHELL_ARGS=1 dchroot rxvt f) try to get rxvt as X11 client to work as a user "ber" in the chroot: apt-get install rxvt extend the mounted filesystems, see my section in /etc/fstab: ## for the /devel chroot proc-devel /devel/proc proc none 0 0 # some tools might need it: sys-devel /devel/sys sysfs none 0 0 # needed for X11, as /tmp/.X11.. has the pipes /tmp /devel/tmp none bind 0 0 # probably needed for X11 or rxvt, unsure why exactely /home /devel/home none bind 0 0 # to be able to aquire pseudo ttys, e.g. for running rxvt: none /devel/dev/pts devpts none 0 0