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

MetaTrader 5 on Linux

MetaTrader 5 — Trading |
1 298 037 410
MetaQuotes
MetaQuotes

In this article, we demonstrate how to install MetaTrader 5 on popular Linux versions, Ubuntu, Debian, 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.terminal.free/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 (410)
JRandomTrader
JRandomTrader | 21 Nov 2026 at 08:15

And what if we could ‘smartify’ the auto-update a bit more, so that it doesn’t update on those versions of Wine/Windows where the update wouldn’t work...

But that’s too complicated a task; no AI could manage it )

Yasuaki Kimushigeru
Yasuaki Kimushigeru | 29 Nov 2026 at 05:48
I have found a potential clue regarding the Webview2 issue.

The EA installer for transmitting trading history—distributed via the Myfxbook website —was recently updated. It now requires Webview2 when installed on Linux (please see the attached image).

After installing Webview2 using `MicrosoftEdgeWebview2Setup.exe` on both Ubuntu 26.04 and Debian 13, the application displayed only a blank, white screen upon relaunch.

It is important to note that this installer does not run on MT5; in other words, the blank screen may occur independently of MT5.

I am not certain if this is the same issue as the one affecting the MQL5 Market within MT5, but I hope this information proves helpful in finding a solution.


Konstantin Efremov
Konstantin Efremov | 3 Dec 2026 at 19:26
I managed, with great difficulty, to get MT5 up and running on Ubuntu 26.04. What can I say – it works! And it’s much more stable than on Windows; for example, it doesn’t freeze the whole computer when loading quotes – 1,500 characters per year – it only freezes itself. I had a bit of a struggle with Webview2 as well ; I had to disable GPU rendering, but I reckon that’s just a problem specific to my graphics card. The editor works too. The point of switching to Ubuntu is that it’s easier to integrate the terminal with the external environment, which is growing like wildfire and has apocalyptic plans (I hope that whatever I create doesn’t go mad and turn on its creator, like in the films) :) I’ll be testing it; if I notice anything, I’ll let you know.
Konstantin Efremov
Konstantin Efremov | 3 Dec 2026 at 19:34
Miguel Angel Vico Alba #:
If I rely on MT5 for trading with real money, I use the platform that causes me the least trouble.
I don’t rely on Windows – it’s too unstable, especially on a VPS, and it guzzles more resources than necessary. Even a complete clean-up, removing everything I can, doesn’t help much. After all, UNIX is all about stability; Windows is for housewives.
Miguel Angel Vico Alba
Miguel Angel Vico Alba | 4 Dec 2026 at 07:49
Konstantin Efremov #: I don’t rely on Windows – it’s too unstable, especially on a VPS, and it guzzles more resources than necessary. Even a complete clean-up, removing everything I can, doesn’t help much. After all, UNIX is all about stability; Windows is for housewives.
For a Windows-based VPS, the appropriate choice is Windows Server rather than a consumer edition of Windows. It comes without much of the unnecessary software found in desktop editions, so there is no need to spend time removing it. Windows Server has proven to be extremely stable and reliable.

I can certainly understand the enthusiasm for Linux, and I do not dispute its merits. However, as I said before, if Windows currently offers me more advantages when it comes to running MetaTrader 5, I see little reason to devote time and effort to an alternative operating system.

That is time I would rather invest in more productive and profitable activities. For me, it is simply a matter of pragmatism, not a question of loyalty to one operating system or another.
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!