Jump to content

Recommended Posts

Posted

Probably the easiest and fastest way to set up an Ubuntu Xenial build environment (needed by the armbian build scripts) is using a chroot jail. This thread should be a quick copy paste "tutorial" to create your own chroot jail and on an Debian based linux installation.

 

1.) Install debootstrap

$ sudo apt install debootstrap

 

2.) Chreate chroot jail using debootstrap

$ sudo debootstrap --variant=buildd --arch=amd64 xenial ./system/ http://archive.ubuntu.com/ubuntu/

 

3.) Mount your local system into the chroot

$ for f in dev dev/pts proc sys ; do sudo mount -o bind /$f ./system/$f ; done

4.) Mount resolv.conf from host system into chroot

$ sudo mount --bind /etc/resolv.conf ./system/etc/resolv.conf

 

5.) Enter the chroot and install some important packages

$ sudo chroot ./system
$ apt install -y sudo nano git

6.) Add universe to your chroots repo list (needed by the build scripts)

$ sudo nano /etc/apt/sources.list

change from:
deb http://archive.ubuntu.com/ubuntu xenial main

to:
deb http://archive.ubuntu.com/ubuntu xenial main universe

then:
$ sudo apt update

7.) Download and start build script in root users home directory

$ cd
$ git clone https://github.com/armbian/build
$ cd build
$ service apt-cacher-ng start
( $ export EXPERT=yes )
$ ./compile.sh

Now you can start building your images from source :)

I know this is not rocket science, but I think this might help some people getting into Armbian!

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines