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

MetaTrader 5 on Linux

MetaTrader 5Trading |
1 166 636 355
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 (355)
Victor Barboza
Victor Barboza | 24 Jul 2026 at 14:35
Mymtornos #:
Hi, Victor. I’m also using Ubuntu 26.04, with the latest version of Wine-11.12 Staging. I’ve tried both webview2.exe and MicrosoftEdgeWebView2RuntimeInstallerX64.exe… but I still can’t see the ‘Market’ window or log in to MQL5. I’ve installed corefonts and a few other fonts, but I still can’t get it to work. Do you have any tips on how to get this working?
I couldn’t get it to work either; I’ve tried loads of things, but it didn’t work, so I’ve given up on it. To install indicators here, the only way I can do it is via the source code.
vladimir “lada72”
vladimir “lada72” | 25 Jul 2026 at 10:19
Victor Barboza #:
I couldn’t get it to work either; I’ve tried loads of things, but it didn’t work, so I’ve given up on it. To install indicators here, the only way I can do it is via the source code.
Working on archlinux + bottles + flatpak
Thiago Ferreira
Thiago Ferreira | 29 Jul 2026 at 18:29

It’s a lot of effort for very little, guys! Just install it on a Windows VM and be happy!

Until there’s a native MT5 version for Linux, we’ll always have problems.

Ilya Filatov
Ilya Filatov | 29 Jul 2026 at 20:25
Thiago Ferreira #:

It’s too much effort for nothing, lads! Just install it on a Windows virtual machine and be happy!

Until there’s a native version of MT5 for Linux, we’ll always have problems.

There’s no joy in a virtual machine! It’s a right faff to copy and paste code, or switch between terminal and browser windows, for example. I’ve got Wine 11.11 (Windows 11) running the latest terminal builds without any issues.
Thiago Ferreira
Thiago Ferreira | 5 Aug 2026 at 19:37
Ilya Filatov #:
There’s nothing good about a virtual machine! It’s a right faff to copy and paste code, and switch between terminal and browser windows, for example. My Wine 11.11 (Windows 11) works fine with the latest versions of the terminal.
Ah… but it’s up to you. I, for one, am fed up with all these little workarounds. I’ve used Bottles before; I had to reformat my system, and after reinstalling Bottles, I couldn’t get it to work again.

Regarding the points you mentioned, with a basic tweak to the VM you can sort all this out without getting frustrated:

1. Copy and paste: By enabling bidirectional clipboard sharing, Ctrl+C and Ctrl+V work normally and seamlessly between Linux and Windows.
2. Switching between windows: Using Seamless Mode or RDP, MT5 and MetaEditor appear as separate windows on your Linux desktop, integrated directly into your taskbar, without having to keep switching the entire VM screen.
3. Shared folders: You can map the MQL5 code folder directly on Linux and edit it using your preferred editor.

Wine 11.11 may well work fine today, but the advantage of a VM is its predictability. An update from MetaQuotes or to the operating system won’t suddenly break your working environment in the middle of the day. For those seeking stability and zero maintenance, a VM is still the better option.
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!