meta données pour cette page
  •  

Lancer un binaire windows avec Wine

WINE_VERSION="stable"

dpkg --add-architecture i386
wget -nc https://dl.winehq.org/wine-builds/winehq.key
mv winehq.key /usr/share/keyrings/winehq-archive.key

OS_VER=$(lsb_release -r |cut -f2 |cut -d "." -f1)

if (( $OS_VER >= 12)); then
  wget -nc https://dl.winehq.org/wine-builds/debian/dists/bookworm/winehq-bookworm.sources
  sudo mv winehq-bookworm.sources /etc/apt/sources.list.d/
elif (( $OS_VER < 12 )) && (( $OS_VER >= 11 )); then
  wget -nc https://dl.winehq.org/wine-builds/debian/dists/bullseye/winehq-bullseye.sources
  sudo mv winehq-bullseye.sources /etc/apt/sources.list.d/
elif (( $OS_VER <= 10 )); then
  wget -nc https://dl.winehq.org/wine-builds/debian/dists/buster/winehq-buster.sources
  sudo mv winehq-buster.sources /etc/apt/sources.list.d/
fi

apt update && apt upgrade && apt install --install-recommends winehq-$WINE_VERSION

Lancer le programme avec wine :

  • Set environment to Windows 10

WINEPREFIX=~/.mt4 WINEARCH=win32 winecfg -v=win10

  • Start MetaTrader installer in 32 bit environment

WINEPREFIX=~/.mt4 WINEARCH=win32 wine mt4setup.exe