There is a way to pack windows apps on linux. Maybe this could be implemented https://forum.snapcraft.io/t/call-for-testing-snap-windows-apps-with-sommelier-core/18728
How about flatpak?
Linux is a Unix-like computer operating system assembled under the model of free and open source software development and distribution. Linux systems are widely used in smartphones and server hardware. Many home PC users prefer it to MS Windows series.
In this article, you will find out how to work in MetaTrader 5 via one of the Linux versions - Ubuntu.
One of the Linux features is the absence of a unified distribution kit. Different groups of developers work on several Linux versions including Debian, Mint, Ubuntu, OpenSUSE, Gentoo, etc. In this article we will consider one of the most popular distribution kits - Ubuntu.
Wine is a free software that allows users of the Unix-based systems to run an application developed for the Microsoft Windows systems. Among all the Wine versions there is one for Ubuntu.
All applications under Ubuntu are installed from the packages contained in repositories. In the latest versions of Ubuntu, the required Wine installation repository is already available in the system without additional settings. Therefore, to install Wine, you only need to execute one command on the command line (called "Terminal" in Ubuntu):
sudo apt-get install wine-stable
This command installs the latest stable version of Wine.
You can also install the Wine version for developers. This
version may contain various improvements, but be less stable. To install
it, run the following command:
sudo apt-get install wine-development
If your Ubuntu version does not provide a repository and you get an error during Wine installation, run the following commands one by one:
wget -nc https://dl.winehq.org/wine-builds/Release.key
sudo apt-key add Release.key
sudo apt-add-repository https://dl.winehq.org/wine-builds/ubuntu/
Next, update the package information by executing the following command:
sudo apt-get update
After the command execution, install Wine using the following command:
sudo apt-get install --install-recommends winehq-stable
For details on installation under Ubuntu, please visit the official Wine site.
To install the platform, download its installer "mt5setup.exe". When the download completes, run the setup file. The system automatically detects that you are trying to run a file designed for Microsoft Windows, and offers to open it with Wine. Select this option and click "OK".
MetaTrader 5 installer will be launched. Complete all installation steps:
After installation is complete, you can start using MetaTrader 5 by running its terminal.exe file.
Another way to start using MetaTrader 5 in Ubuntu is copying the entire folder of the client terminal previously installed in Microsoft Windows:
After copying is complete, simply run terminal.exe file of MetaTrader 5 terminal. Wine will be used automatically to open the file. The screenshot below shows MetaTrader 5 terminal in Ubuntu system:
As was already mentioned above, Wine is not a completely stable software. Thus, some functions of the MetaTrader 5 terminal may work improperly. Currently the following issues are discovered:
Except for the above problem, you can enjoy all the features of MetaTrader 5 on Ubuntu.
Wine creates a virtual logical drive with necessary environment for installed programs. The default path of the installed terminal's data folder is as follows:
In the present article, we described an easy way to run MetaTrader 5 under Ubuntu operating system. All basic terminal functions are available to traders. We hope that this article, or to be more precise, the comments to it, will become a good place for accumulating useful information about running Meta Trader 5 on Linux OS series.
Translated from Russian by MetaQuotes Software Corp.
Original article: https://www.mql5.com/ru/articles/625
How about flatpak?
Hello everyone,
Do you have any idea how I can fix the proxy problem?
I have ubuntu18.043.5 LTS 64bit
Here's a little guide on how to install metatrader on different distributions. Feel free to add to the list.
Arch 5.16.0+ (Wine 7):
sudo pacman -S wine // Installs wine
sudo pacman -S lib32-gnutls // Installes libarry to prevent proxy question
cd Downloads
wine64 icmarketssc5setup.exe // Or whatever your metatrader installer file is called
Ubuntu 20.04+ / Mint 20.1+ / Popos 20.04+ / ZorinOs 16+:
sudo apt install wine // Installs older stable wine.
cd Downloads
wine64 icmarketssc5setup.exe // Or whatever your metatrader installer file is called
Fedora 35+:
sudo dnf install wine
cd Downloads
wine64 icmarketssc5setup.exe // Or whatever your metatrader installer file is called
In case of missing wine32u.dll or similar. The few missing dlls are located in another place in the /home/.wine folder.
Because not all the missing dll's are actually required, getting the first one(s?) will fix the rest.
Copy them one by one into the .wine/drive_c/windows/syswow64/ folder until it works. (mark show hidden files to see .wine directory in home folder)
MT5 with MQL5 Market is working perfectly fine on modern Wine versions. It's been years since you wrote this article, update it to reflect changes. Everything works.
sudo dnf install wine
In respect of Fedora and other yum/dnf based distro's one would normally add a repo, such as below - otherwise you may end up with the distro vendors default version of wine, which most likely is outdated.
sudo dnf -y install dnf-plugins-core
sudo dnf config-manager --add-repo https://dl.winehq.org/wine-builds/fedora/36/winehq.repo # pay attention to version!
sudo dnf -y install winehq-stable
You agree to website policy and terms of use