(ps. another way to get wine working is to compile the pi's kernel with a 3g/1g memory split)
qemu only uses one core, so it might be a good idea to overclock.
instructions:
Code: Select all
sudo suCode: Select all
apt-get update && apt-get install qemu qemu-user qemu-user-static binfmt-support debootstrap binutilsCode: Select all
mount -t binfmt_misc none /proc/sys/fs/binfmt_misc
echo -1 > /proc/sys/fs/binfmt_misc/status
echo ':i386:M::\x7fELF\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x03:\xff\xff\xff\xff\xff\xfe\xfe\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfb\xff\xff:/usr/bin/qemu-i386-static:' > /proc/sys/fs/binfmt_misc/register
Code: Select all
debootstrap --arch=i386 --foreign wheezy chroot-wheezy-i386 http://ftp.de.debian.org/debianCode: Select all
(as user) cd chroot-wheezy-i386Code: Select all
cp /usr/bin/qemu-i386-static usr/bin/Code: Select all
id (need for later)Code: Select all
cdCode: Select all
sudo suCode: Select all
DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true LC_ALL=C LANGUAGE=C LANG=C chroot chroot-wheezy-i386 /debootstrap/debootstrap --second-stageCode: Select all
echo "deb http://ftp.ca.debian.org/debian/ wheezy main" > chroot-wheezy-i386/etc/apt/sources.list.d/wheezy.list (or mirror of your choice)Code: Select all
env -i TERM=xterm /usr/sbin/chroot chroot-wheezy-i386 /bin/su -l root (welcome to your new debian wheezy chroot!) Code: Select all
apt-get update && apt-get install libsm6 libxext6 libfreetype6 libpng12-0 libmpg123-0 sudo(ignore errors)Code: Select all
adduser --uid (insert uid here) piCode: Select all
exitCode: Select all
mount --bind /home/pi /home/pi/chroot-wheezy-i386/home/pi mount --bind /dev /home/pi/chroot-wheezy-i386/dev mount --bind /proc /home/pi/chroot-wheezy-i386/procCode: Select all
exitnext part:
to use the chroot:
Code: Select all
sudo su
mount -t binfmt_misc none /proc/sys/fs/binfmt_misc
echo -1 > /proc/sys/fs/binfmt_misc/status
echo ':i386:M::\x7fELF\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x03:\xff\xff\xff\xff\xff\xfe\xfe\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfb\xff\xff:/usr/bin/qemu-i386-static:' > /proc/sys/fs/binfmt_misc/registerCode: Select all
mount --bind /home/pi /home/pi/chroot-wheezy-i386/home/pi
mount --bind /dev /home/pi/chroot-wheezy-i386/dev
mount --bind /proc /home/pi/chroot-wheezy-i386/procCode: Select all
xhost +Code: Select all
env -i TERM=xterm /usr/sbin/chroot chroot-wheezy-i386 /bin/su -l root (or pi)Code: Select all
export DISPLAY=:0.0I may have made a few mistakes, and all thanks goes to bernhardu @ the WineHQ Forums (link to original post by bernhardu -https://forum.winehq.org/viewtopic.php? ... =25#p84325)
have fun!
(and bye-bye exagear)