What's another x86 binary which can be run? WINE!

First get a version of i386 WINE from WineHQ - you can pick from wine-stable, wine-staging, or wine-devel. Don't get distracted by the ARM versions - those will only run binaries for ARM Windows which is not what is wanted.

If you're using Raspberry Pi OS, you'll need a Pi 4 - earlier models need a 3G/1G memory split custom kernel. Check the Resources page for more info.

wget https://dl.winehq.org/wine-builds/debian/dists/bullseye/main/binary-i386/wine-stable-i386_7.0.0.0~bullseye-1_i386.deb
wget https://dl.winehq.org/wine-builds/debian/dists/bullseye/main/binary-i386/wine-stable_7.0.0.0~bullseye-1_i386.deb

The i386 file and the other shared file are needed. This method will install wine in your user directory so that you can have multiple versions if you want.

dpkg-deb -xv wine-stable-i386_7.0.0.0~bullseye-1_i386.deb wine-installer
dpkg-deb -xv wine-stable_7.0.0.0~bullseye-1_i386.deb wine-installer
mv wine-installer/opt/wine-stable ~/wine

Now to get needed symlinks to make everything work. The first line will create a script to ensure WINE is called properly as a 32-bit binary.

echo -e '#!/bin/bash\nsetarch linux32 -L '"$HOME/wine/bin/wine "'"$@"' | sudo tee -a /usr/local/bin/wine >/dev/null

sudo ln -s ~/wine/bin/wineboot /usr/local/bin/wineboot
sudo ln -s ~/wine/bin/winecfg /usr/local/bin/winecfg
sudo ln -s ~/wine/bin/wineserver /usr/local/bin/wineserver

sudo chmod +x /usr/local/bin/wine /usr/local/bin/wineboot /usr/local/bin/winecfg /usr/local/bin/wineserver

You may need libfaudio - this will get the latest version:

wget -r -l1 -np -nd -A "libfaudio0_*~bpo10+1_i386.deb" http://ftp.us.debian.org/debian/pool/main/f/faudio/

dpkg-deb -xv libfaudio0*.deb libfaudio
sudo cp -TRv libfaudio/usr/ /usr/

Now to boot wine in order to create the new wineprefix:

wine wineboot

Here it will ask you to install Wine Mono - do that so that you can run .NET programs.

Once that's finished, test things out by running winemine!

wine winemine

Translating a Windows executable into an x86 Linux binary into ARM - nice! Now to get even more ambitious.

This guide was first published on Jun 08, 2022. It was last updated on Mar 08, 2024.

This page (Using WINE) was last updated on Mar 08, 2024.

Text editor powered by tinymce.