MetaTrader 5 Help

Installation on Linux

How to Install the Platform 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 MS Windows series.

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 or not work at all.

Before installation, preliminary setup is required. All applications are installed under Ubuntu from the packages contained in repositories. To install Wine, add the path to WineHQ PPA repository. Open Ubuntu Software Center and select "Software Sources" in the Edit menu.

Open Ubuntu Software Center and select "Software Sources" in the Edit menu

Click "Add" in the new window.

Specify the repository to install Wine

Specify the following data in APT (Advanced Package Tool) line: ppa:ubuntu-wine/ppa. Click "Add Source". This completes the pre-configuration procedure.

To install Wine, open its official web page at http://www.winehq.org, go to the Downloads section and select Ubuntu package. Click the appropriate link to install the latest Wine version. Wine 1.8 is the latest stable version at the moment. Wine 1.9.0 beta release containing many improvements is also available for download. However, it may be less stable. The system will prompt you to open the link via Ubuntu Software Center. On the net step the Software Center will prompt to start Wine installation:

Wait for Wine installation to complete

Click "Install" and wait for the installation to complete. After the installation you can run executables for Microsoft Windows under Ubuntu.

Installing Wine from the Command Line

You can use command line (which is called Terminal in Ubuntu) to install Wine without using Ubuntu GUI.

Run the below command to add WineHQ PPA repository, from which Wine will be installed:

sudo add-apt-repository ppa:ubuntu-wine/ppa

Wine can be installed via the command line

Upon completion, update APT package data using the following command:

sudo apt-get update

After that you can start Wine installation. Run the following command:

sudo apt-get install wine1.8

Wine version 1.8 will be installed. After that, Wine is ready for use.

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".

Opening installation package via Wine

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

Follow the platform installation wizard prompts

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 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 terminal.exe file of the platform. The file is automatically opened by Wine.

Known Issues

As mentioned above, Wine is not a completely stable application. Thus, some functions of the platform may work improperly. The following issues have been discovered:

Except for the above problem, you can enjoy all the features of the trading platform under Ubuntu.

Platform Data Directory

Wine creates a virtual logical drive with necessary environment for installed programs. The default path of the installed platform's data folder is as follows:

 Home\.wine\drive_c\Program Files\Client Terminal