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

MetaTrader 5 on Linux

MetaTrader 5Trading | 18 January 2013, 07:18
755 657 299
MetaQuotes
MetaQuotes

In this article, we demonstrate how to install MetaTrader 5 on popular Linux versions, Ubuntu and Debian. 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, based on which 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) and specify the relevant command:

For Ubuntu:

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

For Debian:

wget https://download.mql5.com/cdn/web/metaquotes.software.corp/mt5/mt5debian.sh ; chmod +x mt5debian.sh ; ./mt5debian.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. Once you complete the standard steps, 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 (299)
Edgar Akhmadeev
Edgar Akhmadeev | 6 May 2025 at 19:02
These variants of WINE mainly improve 3D gaming graphics, with a strong Steam focus. DirectX 12 and VULCAN. For 2D there are minuscule improvements. But in different versions could not break what worked before.
Aleksey Nikolayev
Aleksey Nikolayev | 8 May 2025 at 16:48

The beta version of MT5 installed and ran in Lux Wine with a totally creepy dark theme.

But the funny thing is that it detected wine version 9.0, which is called outdated and unstable and that I need version 10.0 or later. It would be funny if....

Michel Paes
Michel Paes | 17 May 2025 at 15:27
MetaQuotes:

New article MetaTrader 5 on Linux has been published:

Author: MetaQuotes Software Corp.

Can anyone tell if the MetaTrader5 Python library can communicate with MT5 running on Linux under wine? Can anyone who has managed to do so shed some light?
Vinicius Pereira De Oliveira
Vinicius Pereira De Oliveira | 18 May 2025 at 14:46
Michel Paes # Can anyone tell if the Python MetaTrader5 library can communicate with MT5 running on Linux under wine? Can anyone who has managed to do so shed some light?

I found this guide on the English forum: https: //www.mql5.com/en/forum/457940. I suggest you read the whole thread before starting, as some corrections were added later.

encoder
encoder | 9 Jun 2025 at 01:24

What the hell happened for the 5100 build on Linux/wine? It doesn't maximise without a massive failed black screen.

Can you downgrade?

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!