Tuesday, August 4, 2015

Building an Arch Linux Docker base image for your Raspberry Pi 2

So I wanted to toy around a bit with my Raspberry Pi 2 running some Docker containers.

I did not, however, wanted to download some ready made base image. First of all, I don't know where it has been, who made it and whether what's in there is legit. Second, the base images out there seem to be based on the Raspberry Pi 2 operating system images and about twice the size they should be (over 500MiB instead of about 250MiB).

So I set off to create my own Raspberry Pi 2 base image (armv7h) for Arch Linux. These are my notes to make this a bit easier you than it was for me.

There is this file you need to download, together with this file. Put them in a directory together. I like to edit the second one to show the correct architecture (armv7h on line 22), but that's not strictly necessary.

What *is* strictly necessary though, is to edit the first file and edit line 56, which currently reads 
set timeout 60
 and change that to something like
set timeout 300
This is because the 60 second timeout that is there by default is fine for fast disks in x86_64 machines, but will not do for your Pi 2. The timeout should accomodate for the pacstrap command to finish, which installs about 86 packages. Even with a fast SD card in your Pi 2, 60 seconds will not cut it.

If you up the timeout to 300, the process will complete nicely, giving you a proper armv7h Docker base image!

Second thing you will want to do, is to edit the file again and change line 71 where it reads
Server = https://mirrors.kernel.org/archlinux/\$repo/os/\$arch
Server = http://mirror.archlinuxarm.org/\$arch/\$repo
If you don't make that change, you'll never be able to install packages from the armv7h repositories.

Now go and run
Happy containering! :)

Sunday, March 23, 2014

Belastingaangifte 2013 op Fedora

Wat een verademing :)

Dit jaar is het de belastingdienst in Nederland voor het eerst gelukt om een nette (althans, redelijke nette) RPM te maken voor het aangifteprogramma op Linux!

RPM downloaden, installeren en hoppa! Nou ja, dat zou het zijn althans, als dat programma vlak voor het verzenden van je aangifte niet ongegeneerd zou segfaulten met
libgcc_s.so.1 must be installed for pthread_cancel to work
Aborted (core dumped)
Beetje slordig, maar redelijk simpel op te lossen met
sudo dnf -y install libgcc.i686
Kan natuurlijk ook met yum ;)

De foutmelding treedt alleen op als je je aangifte op een x86_64 systeem in wilt vullen, waarop libgcc niet in 32-bit variant geinstalleerd is.

Wednesday, August 14, 2013

"Windows is unable to install to the selected location. Error: 0x80300001"

So I was playing with RHEV the other day and having some problems installing Windows 7 in a VM.

The error I received was:

"Windows is unable to install to the selected location. Error: 0x80300001"


The cause apparently is the fact that the install disk is missing from the drive. Ok, my bad: I had to take it out (virtually) to install the Virtio drivers. But is it really that difficult to write an understandable error message? What is wrong with: "The install disk is not in the drive.". Sheesh.


Tuesday, March 5, 2013

Belastingaangifte doen met Fedora 18

Als je belastingaangifte wilt doen op Linux, op Fedora 18 x86_64 om meer precies te zijn, en je hebt een vrij minimale installatie gedaan, krijg je allerlei foutmeldingen tijdens het starten van het aangifte programma omtrent missende libraries. Vooral de eerste is cryptisch:

bash: ./ib2012ux: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory

Die duidt doorgaans op het ontbreken van 32-bits libraries op een 64-bits systeem. Los het hele probleem op door het volgende commando uit te voeren:

sudo yum -y install glibc.i686 libXext.i686 libSM.i686

Hierna is alle software die nodig is om ib2012ux uit te voeren, aanwezig.