Changes

Debian distro

66 bytes added, 20:46, 21 October 2017
Pbuilder
<pre>sudo apt-get install pbuilder qemu-user-static</pre>
Create ~/.pbuilderrc file with your own pbuilder setup like this:
<codepre class="brush: bash; highlight: [5, 15]; html-script: true"> #!/bin/sh
set -e
if [ "$OS" == "debian" ]; then
 
MIRRORSITE="http://ftp.no.debian.org/debian/"
COMPONENTS="main contrib non-free"
fi
elif [ "$OS" == "raspbian" ]; then
 
MIRRORSITE="http://ftp.acc.umu.se/mirror/raspbian/raspbian/"
COMPONENTS="main contrib non-free"
: ${ARCH:="armhf"}
elif [ "$OS" == "ubuntu" ]; then
 
MIRRORSITE="http://no.archive.ubuntu.com/ubuntu/"
COMPONENTS="main restricted universe multiverse"
"--keyring=/usr/share/keyrings/ubuntu-archive-keyring.gpg")
else
 
echo "Unknown OS: $OS"
exit 1
if [ "$DIST" == "" ]; then
 
echo "DIST is not set"
exit 1
if [ "$ARCH" == "" ]; then
 
echo "ARCH is not set"
exit 1
if [ "$ARCH" == "armel" ] && [ "$(dpkg --print-architecture)" != "armel" ]; then
 
DEBOOTSTRAP="qemu-debootstrap"
fi
if [ "$ARCH" == "armhf" ] && [ "$(dpkg --print-architecture)" != "armhf" ]; then
 
DEBOOTSTRAP="qemu-debootstrap"
fi
BUILDPLACE="/var/cache/pbuilder/build"
HOOKDIR="/var/cache/pbuilder/hook.d/"
</codepre>