Skip to content

How to build a dev environment

Amir Hassan edited this page Mar 25, 2015 · 2 revisions

This document is a work in progress and by no means complete or functional.

Following commands will be executed as root user.

Debootstrap a debian wheezy with build essentials

debootstrap --variant=buildd --arch amd64 wheezy ScreenInvaderBuild/ http://ftp.de.debian.org/debian

Setup the chroot environment

mount --bind /dev ScreenInvaderBuild/dev
chroot ScreenInvaderBuild
mount -t proc none proc
mount -t sysfs none sysfs
mount -t tmpfs none tmp
mount -t devpts none dev/pts

Install additional dependencies

apt-get install binfmt-support qemu qemu-user-static debootstrap
git clone https://github.com/screeninvader/ScreenInvader.git

Boostrap a ScreenInvader file system

cd ScreenInvader
mkdir sifs
./bootstrap.sh -d sifs