5 Installation eines Druckers
5.2 Vorbereitungen für i386er Software auf ARM-Prozessoren
Ermöglichen, dass unter ARM-Architektur auch Binaries i386 von Treibern (z.B. Drucker) laufen.
Quelle: https://www.lhinderberger.de/pi/2016/01/27/raspberry-pi-binary-x86-drivers.html
Step 1: Set up dpkg
$ sudo dpkg --add-architecture i386
Step 2: Edit your apt sources.list and sources.list.d
You have to edit your /etc/apt/sources.list file and every file in /etc/apt/sources.d, adding [arch=armhf] behind each occurence of dep to prevent confusion of apt-get.
So for example the line
deb http://archive.raspbian.org/raspbian jessie main contrib non-free
would become
deb [arch=armhf] http://archive.raspbian.org/raspbian jessie main contrib non-free
Step 3: Add i386 repositories
To do that, you create the file /etc/apt/sources.list.d/i386.list and insert the following:
deb [arch=i386] http://ftp.debian.org/debian/ jessie main contrib non-free
deb [arch=i386] http://ftp.debian.org/debian/ jessie-updates main contrib non-free
deb [arch=i386] http://security.debian.org/ jessie/updates main contrib non-free
Step 4: Update your local apt cache
$ sudo apt-get update
(Jeweils ca. 5MB 3x, wegen eines gemachten Fehlers bei Step 2)
Retrieve GPG public keys for the newly added repositories (man-in-the-middle attacks).
Step 5: Install qemu-user and binfmt-support
$ sudo apt-get install binfmt-support qemu-user
(Need to get 3,788 kB of archives. After this operation, 29.4 MB of additional disk space will be used.)
Alternativ wurde bei anderen auf den Seiten folgende Pakete angegeben:
sudo apt-get install binfmt-support qemu-user-static
Need to get 5,155 kB of archives.
After this operation, 54.4 MB of additional disk space will be used.
sudo apt-get install qemu binfmt-support qemu-user-static
Need to get 16.5 MB/16.5 MB of archives.
After this operation, 89.3 MB of additional disk space will be used.
Step 6: Install x86 libc
Most (if not all) modern binary programs require the C standard library installed on your system to work properly. For ARM, Raspbian ships libc by default, but for x86 we have yet to install it:
$ sudo apt-get install libc6:i386
Notice the :i386 suffix? This tells apt-get to explicitly go and fetch the package for x86, rather than for ARM.
If you made it this far: Congratulations! You can now run x86 binaries on your Raspberry Pi!