Last active
December 17, 2015 04:39
-
-
Save bradfa/5551890 to your computer and use it in GitHub Desktop.
Debian Wheezy schroot in Arch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# System databases to copy into the chroot from the host system. | |
# | |
# <database name> | |
passwd | |
shadow | |
group | |
gshadow | |
services | |
protocols | |
#networks <- Comment this out! | |
hosts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/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