Русский 中文 Español Deutsch 日本語 Português 한국어 Français Italiano Türkçe
MetaTrader 5 on Linux

MetaTrader 5 on Linux

MetaTrader 5Trading |
927 525 327
MetaQuotes
MetaQuotes

In this article, we demonstrate how to install MetaTrader 5 on popular Linux versions, UbuntuDebian, Linux Mint and Fedora. These systems are widely used on companies’ server hardware as well as on traders’ personal computers.


Installing the platform with one command

MetaTrader 5 runs on Linux using Wine. Wine is a free compatibility layer that allows application software developed for Microsoft Windows to run on Unix-like operating systems.

We have prepared a special script to make the installation process as simple as possible. The script will automatically detect your system version, it supports Ubuntu, Debian, Linux Mint and Fedora distributions. Based on it, it will download and install the appropriate Wine package. After that, it will download and run the platform installer.

To start the installation, open the command line (Terminal) without the administrator privileges (no sudo) and specify the relevant command:

wget https://download.mql5.com/cdn/web/metaquotes.software.corp/mt5/mt5linux.sh ; chmod +x mt5linux.sh ; ./mt5linux.sh

This command downloads the script, makes it executable and runs it. You only need to enter your account password to allow installation.

Installing Wine and MetaTrader 5 with a single command


If you are prompted to install additional Wine packages (Mono, Gecko), please agree, as these packages are required for platform operation. The MetaTrader 5 installer will launch after that, proceed with the standard steps. Once the installation is complete, restart your operating system, and the platform is ready to go.

The MetaTrader 5 platform is ready to run on Linux


Install updates in a timely manner

It is highly recommended to always use the latest versions of the operating system and Wine. Timely updates increase platform operation stability and improve performance.

To update Wine, open a command prompt and type the following command:

sudo apt update ; sudo apt upgrade

For further information, please visit the official Wine website.


MetaTrader 5 Data Directory

Wine creates a separate virtual logical drive with the necessary environment for every installed program. The default path of the installed terminal data folder is as follows:

Home directory\.mt5\drive_c\Program Files\MetaTrader 5


Use MetaTrader 5 on Linux: install with a single command and enjoy all the platform features.

Translated from Russian by MetaQuotes Ltd.
Original article: https://www.mql5.com/ru/articles/625

Last comments | Go to discussion (327)
Federico Quintieri
Federico Quintieri | 11 Dec 2025 at 17:28
Federico Quintieri #:

In fact, I made it work with these steps (I am on CachyOS) and I am new to Linux

1. Installed Bottles and created a bottle (application)

2. Downloaded the mt5 setup for windows from the original mql5 site (other versions gave proxy errors during installation).

3. In the bootle the "runner" is "ge-proton10-25", which I downloaded from the bootle's home (Preferences => Runner).

4. In the metatrader5 bottle settings I switched to windows 11

5. The bootle dependencies I downloaded are: dotnet48 - allfonts - vcredist2019 - vcredist2015

6. Run mt5.exe in the metatrader5 bottle I just created.

7. Then in the bottle settings you can open a terminal, type "winecfg", in the new window go to graphics and adjust the "dpi" according to how much you want your mt5 to zoom, mine is at 96 (I had the same zoom problem when I tried to install it with lucris, now it works fine).

This is what worked for me, I'm trying and coding different things and it seems to work fine.

If you have hyprland the solution is to use a virtual machine with windows11 installed, I have tried various things but metatrader5 on hyprland just doesn't work.

For the virtual machine I have used, KVM, Qemu and virt-manager

wy1998
wy1998 | 12 Dec 2025 at 18:34

Fault phenomenon: the text on the coordinate axes (horizontal and vertical axes) is missing.

Reason for failure: reboot after upgrading mt5.

Tried and true:

1) Upgrade debian v12 to v13. upgrade failed, reinstall debian v13.

2) Downloaded mt5linux.sh from mql5.com and installed it, the failure is still the same. But at this point, it's a little different.

Just after installation, eur/usd, xau/usd, usd/rmb are able to display the text on the axes.

After importing the custom currency "CSI 300" .json file, loading the interface template, copying the historical data file, and entering mt5, the fault appears.

3) Move ~/.mt5 directory, reinitialise winecfg, re-execute mt5linux.sh. Failure reappears.


Missing text on axes


Current working environment:

Debian GNU/Linux 13.2.0 _Trixie

kde plasma v6.36

kernel 6.12.57+debian13-amd64 (64-bit)

wine64 v10.0~repack-6

wy1998
wy1998 | 15 Dec 2025 at 06:14

Problem found: windows/Fonts problem.


Clear files in Fonts, problem solved.

Restore files in Fonts, problem resumed.

Alain Verleyen
Alain Verleyen | 15 Dec 2025 at 10:22
Tobias Johannes Zimmer #:

This Test EA should show four Rectangles in a line when thrown on a EURUSD chart. Only the last it rectangle visible. I also hat problems changing colors and filling of the rectangles. This came to my attention when I was trying to build a little EA with two rectangles and a few buttons. The buttons were not visible either. 

Strangely the test Expert "Controls" shows all buttons beautifully.

In bottles I tried fixing the problem by installing different dependencies, namely directx, since I remember thinking that directx might have something to do with MT5 graphical objects but I am not sure if that is correct.

Your code is buggy. How can you hope to have 4 rectangles all with the same name ?

Also please report here issues which are related SPECIFICALLY to Wine/Linux.

wy1998
wy1998 | 15 Dec 2025 at 12:02

Problem solved.

1) Empty the files in the windows/Fonts directory

2) Copy simsun.ttc into it!

Then, the problem is restored.

Neural Networks: From Theory to Practice Neural Networks: From Theory to Practice
Nowadays, every trader must have heard of neural networks and knows how cool it is to use them. The majority believes that those who can deal with neural networks are some kind of superhuman. In this article, I will try to explain to you the neural network architecture, describe its applications and show examples of practical use.
General information on Trading Signals for MetaTrader 4 and MetaTrader 5 General information on Trading Signals for MetaTrader 4 and MetaTrader 5
MetaTrader 4 / MetaTrader 5 Trading Signals is a service allowing traders to copy trading operations of a Signals Provider. Our goal was to develop the new massively used service protecting Subscribers and relieving them of unnecessary costs.
Order Strategies. Multi-Purpose Expert Advisor Order Strategies. Multi-Purpose Expert Advisor
This article centers around strategies that actively use pending orders, a metalanguage that can be created to formally describe such strategies and the use of a multi-purpose Expert Advisor whose operation is based on those descriptions
Interview with Alexey Masterov (ATC 2012) Interview with Alexey Masterov (ATC 2012)
We do our best to introduce all the leading Championship Participants to our audience in reasonable time. To achieve that, we closely monitor the most promising contestants in our TOP-10 and arrange interviews with them. However, the sharp rise of Alexey Masterov (reinhard) up to the third place has become a real surprise!