How to Install MetaTrader on Linux

Linux is a Unix-like computer operating system assembled under the model of free and open-source software development and distribution. Linux systems are widely used in smartphones and server hardware. Many home PC users prefer it to the MS Windows series.  These instructions can also be found here on the MetaTrader 5 website.

One of the Linux features is the absence of a unified distribution kit. Different groups of developers work simultaneously on several Linux versions including Debian, Mint, Ubuntu, OpenSUSE, Gentoo, etc. In this article, we will consider one of the most popular distribution kits - Ubuntu.

The trading platform can be installed and used on computers that run Ubuntu using Wine. Wine is a free and open-source software application that aims to allow applications designed for Microsoft Windows to run on Unix-like operating systems. One of the Wine versions is designed for Ubuntu.

Note that Wine is not a fully stable application. This means that some functions in the applications you start under it may work improperly.

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.

All applications under Ubuntu are installed from the packages contained in repositories. In the latest versions of Ubuntu, the required Wine installation repository is already available in the system without additional settings. Therefore, to install Wine, you only need to execute one command on the command line (called "Terminal" in Ubuntu):

sudo apt-get install wine-stable

This command installs the latest stable version of Wine.

Installing Wine from the Command Line

You can also install the Wine version for developers. This version may contain various improvements, but be less stable. To install it, run the following command:

sudo apt-get install wine-development

If your Ubuntu version does not provide a repository and you get an error during Wine installation, run the following commands one by one:

wget -nc<br>sudo apt-key add Release.key<br>sudo apt-add-repository

Next, update the package information by executing the following command:


After the command execution, install Wine using the following command:

sudo apt-get install --install-recommends winehq-stable

For details on installation under Ubuntu, please visit the official Wine site.

How to Start the Trading Platform

To install the platform, download its installer "mt5setup.exe". When the download completes, run the setup file. The system automatically detects that you are trying to run a file designed for Microsoft Windows, and offers to open it with Wine. Select this option and click "OK".

Installing MT5 via Wine
Installing MT5 via Wine

The platform installer is launched after that. Complete all installation steps:

Installing MT5 on Linux
Installing MT5 on Linux

After installation, you can proceed to working with the trading platform, by running its executable terminal.exe. Another way to start using the platform in Ubuntu is by copying the folder with the pre-installed platform from Microsoft Windows:

Instead of installing, you can copy a previously installed platform

After copying is complete, run the terminal.exe file of the platform. The file is automatically opened by Wine.

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

MT5 Data Directory on Linux

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\.wine\drive_c\ProgramFiles\Client Terminal