Skip to content

Instantly share code, notes, and snippets.

@bradfa
Last active December 17, 2015 04:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bradfa/5551890 to your computer and use it in GitHub Desktop.
Save bradfa/5551890 to your computer and use it in GitHub Desktop.
Debian Wheezy schroot in Arch
# Install schroot via pacman
# Install gnupg1, debootstrap, ubuntu-keyring, and debian-archive-keyring from AUR
# Create the "staff", "uucp", and "crontab" groups, some Debian/Ubuntu packages need them present
$ sudo mkdir -p /opt/chroot/${CHROOT_NAME}
# Use `--variant=buildd` to install build-essential, use `--include=` to install those packages (like depends for buildroot)
$ sudo debootstrap --arch=amd64|i386 [--variant=buildd] [--include=bison,flex,gettext,patch,bzip2,cpio,python,rsync,unzip,texinfo,wget,sudo,aptitude] wheezy /opt/chroot/${CHROOT_NAME} http://mirror.rit.edu/debian
# Edit /etc/schroot/schroot.conf as below
# Edit /etc/schroot/default/nssdatabases to comment out networks line
# If you want to run X apps: `$ xhost +` and then once inside the schroot `$ export DISPLAY=:0.0`
$ schroot -c ${CHROOT_NAME}
# Install desired additional packages
# Exit chroot, create tarball for quick recovery
# System databases to copy into the chroot from the host system.
#
# <database name>
passwd
shadow
group
gshadow
services
protocols
#networks <- Comment this out!
hosts
#/etc/schroot/schroot.conf
[wheezy]
description=Wheezy
type=directory
directory=/opt/chroot/wheezy
users=andrew
root-users=andrew
preserve-environment=true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment