Русский 中文 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
678 129 105
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 (105)
Chris Oz
Chris Oz | 25 Jul 2024 at 13:01

Hey All.. Basically, I am using WINE and everything works including the marketplace. And this is on a virtual machine in the cloud. If anyone is having trouble with MT5 on Linux here are my tips: 


1.  I use XUbuntu.  Only because I am using a Virtual Machine and it uses less RAM than GNOME.  But any Ubuntu distro should be fine including the main release with GNOME.  If you don't know much about Linux then don't use the minimal version.

2. Install PlayonLinux.  Now if you are using Ubuntu you should get the old version which is great.  Avoid "Phoenicis PlayonLinux" if you are using another Distro like ARCH - it is harder to use.

3.  Once PlayonLinux is installed then go to TOOLS/MANAGE WINE VERSIONS  and install the latest amd64 version.

4.  Now select install and in the bottom left select the option of "install a non-listed program" then select Install a program in a new Virtual drive" and give it a name like MT5_1 (you can install multiple instances which are called ****).

5.  Now here something weird happens where I didn't get offered the 64 bit version I downloaded.  Just select "System" then "64 bits windows installation"

6. Afterwards in the configuration change the version from "system" to "8.1 staging" and you will find that the marketplace will work.


- The only thing I have trouble doing is changing colours of things on the charts.  The colour drop down box doesn't work in linux but hitting F4 fixes this.


Happy Trading.

crawf1
crawf1 | 28 Jul 2024 at 19:21

After updating to the latest version of Linux Mint (22)  I am experiencing a strange chart behaviour. 

when I left click and hold on the price axis I can only compress the chart image, I cannot expand it.

How can I left click and hold on the price axis and expand the chart image?


Is this a bug? 

Robert Ciechonski
Robert Ciechonski | 14 Aug 2024 at 20:27

The best experience and stability of MT5 on Linux is by installing under Steam as a non-steam-game with Proton Experimental compatibility enabled ;-). This method also consumes less system resources (virtual machine, etc..) and works like a native application in Windows without any problems. I personally recommend it.

My system: Fedora Linux 40 (Cinnamon), Intel© Core™ i7-5820K CPU @ 3.30GHz × 6, 15.5 GiB RAM.

manni meck
manni meck | 12 Dec 2024 at 08:03
I installed it using the installer provided and it works. I neither was able to install via Playonlinux nor steam, I could not find the packages. 

The only weird thing is that the strategy tester is keeping crashing after some time. 

Does anybody have similar issues?
Robert Donovan
Robert Donovan | 22 Feb 2025 at 22:26

I tried to install mt4 from my broker in wine on Linux Mint 22 and it wirkd, but when I tried to install MT5, which I downloaded from the metaquotes website, something strange happened.

MT5 installed and I opened it. 

The initial setup screen comes up and I pick Metaquotes as the company and click next.

On the next screen I choose Open a demo account and click next.

In the past this just opens the program and all is well.

This time, I am asked for name, email, birthday,  and phone number as required information. Why this is needed for a demo account I don't know, but OK.

I enter the information and agree to terms of service, but the next button remains greyed out and I can't proceed.

Is this a glitch or am I missing something?

Thanks in advance for any help.

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!