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

MetaTrader 5 on Linux

MetaTrader 5Trading |
1 042 164 343
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 (343)
Tobias Johannes Zimmer
Tobias Johannes Zimmer | 5 Apr 2026 at 14:00
Alain Verleyen #:

I can't reproduce that. 

Please post your Journal log.

OK


LM    0    02:08:22.097    Network    '62113150': scanning network for access points
KK    0    02:08:29.174    Network    '62113150': scanning network finished
ES    1    04:14:13.167    Network    '62113150': connection to PepperstoneUK-Demo lost
KK    0    04:14:13.584    Network    '62113150': authorized on PepperstoneUK-Demo through LD2-WT (ping: 35.86 ms, build 5370)
OG    0    04:14:13.584    Network    '62113150': previous successful authorization performed from 47.64.115.2 on 2026.04.04 22:17:50
LI    0    04:14:14.176    Network    '62113150': terminal synchronized with Pepperstone Limited: 1 positions, 0 orders, 1710 symbols, 0 spreads
KG    0    04:14:14.176    Network    '62113150': trading has been enabled - hedging mode
CN    0    08:08:23.466    Network    '62113150': scanning network for access points
IF    0    08:08:30.457    Network    '62113150': scanning network finished
FO    1    09:56:17.413    Network    '62113150': connection to PepperstoneUK-Demo lost
MJ    0    09:56:47.209    Network    '62113150': authorized on PepperstoneUK-Demo through LD1-O (ping: 75.16 ms, build 5370)
QK    0    09:56:47.209    Network    '62113150': previous successful authorization performed from 47.64.115.2 on 2026.04.05 05:14:13
ID    0    09:56:48.038    Network    '62113150': terminal synchronized with Pepperstone Limited: 1 positions, 0 orders, 1710 symbols, 0 spreads
RK    0    09:56:48.038    Network    '62113150': trading has been enabled - hedging mode
JR    0    09:56:49.492    Network    '62113150': scanning network for access points
OR    0    09:56:57.940    Network    '62113150': scanning network finished
JJ    0    09:56:57.940    Network    '62113150': auto connecting to a better access point with 94 % quality (previous: 87 %)
DL    1    09:56:57.941    Network    '62113150': connection to PepperstoneUK-Demo lost
OP    0    09:56:58.730    Network    '62113150': authorized on PepperstoneUK-Demo through LD2-WT (ping: 33.89 ms, build 5370)
FH    0    09:56:58.730    Network    '62113150': previous successful authorization performed from 47.64.115.2 on 2026.04.05 10:56:46
OF    0    09:56:59.311    Network    '62113150': terminal synchronized with Pepperstone Limited: 1 positions, 0 orders, 1710 symbols, 0 spreads
HI    0    09:56:59.311    Network    '62113150': trading has been enabled - hedging mode
DJ    1    10:00:22.034    Network    '62113150': connection to PepperstoneUK-Demo lost
EN    0    10:01:12.843    Network    '62113150': authorized on PepperstoneUK-Demo through LD1-O (ping: 77.10 ms, build 5370)
FN    0    10:01:12.843    Network    '62113150': previous successful authorization performed from 47.64.115.2 on 2026.04.05 10:56:58
DP    0    10:01:14.094    Network    '62113150': terminal synchronized with Pepperstone Limited: 1 positions, 0 orders, 1710 symbols, 0 spreads
KO    0    10:01:14.094    Network    '62113150': trading has been enabled - hedging mode
OG    0    10:01:16.082    Network    '62113150': scanning network for access points
RN    1    10:01:24.266    Network    '62113150': connection to PepperstoneUK-Demo lost
NG    0    10:01:24.491    Network    '62113150': scanning network finished
CO    0    10:01:24.491    Network    '62113150': auto connecting to a better access point with 94 % quality (previous: 87 %)
LN    0    10:01:28.317    Network    '62113150': authorized on PepperstoneUK-Demo through LD1 (ping: 32.06 ms, build 5370)
HL    0    10:01:28.317    Network    '62113150': previous successful authorization performed from 47.64.115.2 on 2026.04.05 11:01:12
DQ    0    10:01:28.930    Network    '62113150': terminal synchronized with Pepperstone Limited: 1 positions, 0 orders, 1710 symbols, 0 spreads
KL    0    10:01:28.930    Network    '62113150': trading has been enabled - hedging mode
FE    2    15:45:14.124    WebView    couldn't find WebView2 Runtime


I am going to copy the last two directly from the journal line so it contains at least a date:

2026.04.05 10:01:28.930    Network    '62113150': trading has been enabled - hedging mode
2026.04.05 15:45:14.124    WebView    couldn't find WebView2 Runtime


If I want to hit a button, I have to click a few cms to the left of it. I am using Ubuntu with the wine version of MT5, using the installation script.

Ilya Filatov
Ilya Filatov | 6 Apr 2026 at 07:58
Thiago Ferreira #:
Has this problem been resolved?
The colours are still not customisable. And yes, for those who use foreign and closed source code -- this can be a big inconvenience.
Thiago Ferreira
Thiago Ferreira | 6 Apr 2026 at 14:22
Ilya Filatov #:
The colours still can't be customised. And yes, for those who use foreign and closed source code, this can be a major inconvenience.
I didn't understand "foreign and closed source code". What did you mean?
Alain Verleyen
Alain Verleyen | 6 Apr 2026 at 15:41
Tobias Johannes Zimmer #:

OK


If I want to hit a button, I have to click a few cms to the left of it. I am using Ubuntu with the wine version of MT5, using the installation script.

What you posted is missing essential information about your exact config.
Alain Verleyen
Alain Verleyen | 6 Apr 2026 at 15:43
Ilya Filatov #:
The colours are still not customisable. And yes, for those who use foreign and closed source code -- this can be a big inconvenience.
Colours can be customized. What is the problem ?
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!