Discussion of article "MetaTrader 5 on Linux" - page 23

 
Wasin Thonkaew #:
Latest build breaks and mt5 shortly closes itself.
My solution is to use winehq-devel package whose version is 8.0-rc1 as seen on Ubuntu 20.04.

You might want to back up your wine prefix directory in case you have important settings there, and for safety.

Thanks, that worked.

 
Using wine-devel or wine-staging instead of wine-stable solves the issue
 
Minkai Yang #:

Just install the corresponding font file.

Or use font replacement.

How do I do it? I used to use window to write the code, there is Chinese in the code, now I changed to linux system, the code in the square, can't use ah!

 
Adegbenga Omotowoju #:
hi team please can any help, i'm having issues with my mt5 terminal [ Always closing itself ]

Same here.

Running with WINE on ubuntu system.

[Deleted]  
Does this works in ARM Linux??
 

All those who say that all terminal functions work under Wine, but not only the terminal itself starts.

Please tell me, if you would be so kind, what should be stuffed into Wine via winetricks, what should be done in order to display not only news headlines in the "Tools">"News" panel, but also the content of the news with all the text (both Russian and English) and images.

No one has ever clarified this issue.

Feedback, those who say: "and I have everything works fine".

I tried on all distributions (Debian, Fedora, OpenSUSE, Arch) under all Wine variants (stable and staging), but I couldn't solve the described problem.

If you know how it is solved, please share the way, your config please.

 

I have 41 robots in combat mode and ~16500 in test mode on real charts.

But my robots don't use news, and I don't trade by hand, so the lack of news doesn't bother me at all, but rather makes me happy - it doesn't take resources.

So yes, everything I need works for me (Ubuntu 18.04 and Debian 11 - virtualisations in Debian 10, on i5-2500K).

 
i need help on the last part of data directory guys how do u go about that
 

Unfortunately, on the date that I posted this, the Debian script was not worked for Debian 11 Bullseye

I noticed that there is a code line need to be modified.

You can make your own shell script by using your text editor first.

nano mt5debian.sh

Then, type/insert below lines.

#!/bin/bash

# Copyright 2022, MetaQuotes Ltd.
# edited 2023, Fatchul Bari Hikmawan.

# MetaTrader download url
URL="https://download.mql5.com/cdn/web/metaquotes.software.corp/mt5/mt5setup.exe"
# Wine version to install: stable or devel
WINE_VERSION="stable"

# Prepare: switch to 32 bit and add Wine key
sudo dpkg --add-architecture i386
wget -nc https://dl.winehq.org/wine-builds/winehq.key
sudo mkdir /etc/apt/keyrings
sudo mv winehq.key /etc/apt/keyrings/winehq-archive.key

# Get Debian version and trim to major only
OS_VER=$(lsb_release -r |cut -f2 |cut -d "." -f1)
# Choose repository based on Debian version
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

# Update package and install Wine
sudo apt update
sudo apt upgrade
sudo apt install --install-recommends winehq-$WINE_VERSION

# Download MetaTrader
wget $URL

# Set environment to Windows 10
WINEPREFIX=~/.mt5 winecfg -v=win10
# Start MetaTrader installer
WINEPREFIX=~/.mt5 wine mt5setup.exe

Save the shell script, then make it executable

chmod +x mt5debian.sh

Done, 

Finally you can install the Metatrader 5 on Debian 11 Bullseye.

./mt5debian.sh

Note:

If MetaQuotes's admin read this post, the failure is because winehq repository sources are looking the public key to directory `/etc/apt/keyrings` instead of `/usr/share/keyrings`.

So we need to pass it to correct directory in order the winehq can be installed successfully.

 

Hello,


After entering the password, it returns that there are failures on line 41 and 43

./mt5ubuntu.sh: line 41: winecfg: command not found
./mt5ubuntu.sh: line 43: wine: command not found


What could it be?