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

MetaTrader 5 on Linux

MetaTrader 5Trading |
992 662 331
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.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 (331)
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.

6ulpycpi
6ulpycpi | 1 Feb 2026 at 23:29

Hello,

UPDATE 01/02/2026 - SERIOUS MT5 crash under Linux Wine 10 - impossible to restart = mandatory restore!

leompinheiro
leompinheiro | 5 Mar 2026 at 16:49

I read the discussion, the comments and everything I could find on how to run MT5 on linux.

My conclusion is that it doesn't always work and when it does, it doesn't provide the security to operate in the real financial market.

Locally I'm still using linux mint, but I'm going to run MT5 on windows, inside a docker container.

I hope that with docker (win11) I'll get more stability.


Cheers.

JRandomTrader
JRandomTrader | 5 Mar 2026 at 22:36
leompinheiro #:

I have read discussions, comments and everything I could find about how to run MT5 on linux.

I have come to the conclusion that it doesn't always work, and when it does, it doesn't provide the security to run on the real financial market.

Locally I am still using linux mint, but am going to run MT5 on windows, inside a docker container.

I'm hoping to get more stability with docker (win11).

I moved MT5 to linux (Debian) back when MT5 stopped working on 32-bit WinXP. Since then I haven't had Windows at all. And algo trading in MT5 on MOEX is my only source of income for over 3 years now. So it works.
Thiago Ferreira
Thiago Ferreira | 5 Mar 2026 at 23:19
"Your post "### INSTABILITY..." has been removed from topic "Discussion of article "MetaTrader 5 on Linux"" by a moderator. Reason: AI-generated answer"

Well... Now this? When we plan to write a quality comment, down to the smallest detail, our post is deleted? They deleted my post.

But the summary is: Don't waste your time trying to run MT5 on Linux until you have a native installer for Linux.

The current recommendation for Linux users is to create a VM with Windows 11, which can also be Windows LTSC or even a Windows Server (in my case I use Windows Server 2019 configured as a desktop).

For those who don't have a good PC with at least 6GB of RAM, the alternative is to hire a VPS.
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!