Comment 54 for bug 994309

Revision history for this message
Egor (gluk47) wrote :

I failed to find a workaround for this bug and installed 32bit-chroot as follows. May be it'll help somene experiencing this bug.

sudo -s
mkdir /home/32bit
debootstrap --arch i386 precise /home/32bit/ http://archive.ubuntu.com/ubuntu
mkdir /32bit
cat <<< '
/home/32bit /32bit none auto,bind 0 0
/dev /32bit/dev none bind 0 0
/sys /32bit/sys none bind 0 0
/proc /32bit/proc none bind 0 0
/home /32bit/home none bind 0 0
/mnt /32bit/mnt none bind 0 0
/media /32bit/media none bind 0 0
' >> /etc/fstab
mount -a
linux32 chroot /32bit
apt-get install python-software-properties # you may add ppa manually, I'm just too lazy
add-apt-repository ppa:ubuntu-wine/ppa
add-apt-repository ppa:upubuntu-com/chat # skype ppa
apt-get install -y wine skype
exit # leave chroot
echo '32bit /32bit linux32' >> /etc/dchroot.conf
cat <<< '#!/bin/bash
if [[ "${1:0:1}" == / ]]; then
  cmd="$1" # absolute path detected
else
  cmd="\"$PWD\"/$1"
fi
shift
dchroot "LANG=$LANG DISPLAY=$DISPLAY $0 $cmd $@"
' > /usr/bin/wine && chmod a+x /usr/bin/wine
ln /usr/bin/wine /usr/bin/winecfg
ln /usr/bin/wine /usr/bin/wineboot
exit # leave root shell
# from non-root user:
dchroot "DISPLAY=$DISPLAY LANG=$LANG skype"
dchroot "cd ~/.wine/drive_c/h3; LANG=$LANG DISPLAY=$DISPLAY wine ./Heroes3.exe" # or anything else