MetaTrader 4 Help
Install on Linux

Install Terminal 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 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 client terminal can be installed and run on computers with Linux using Wine. Wine is a free software that allows users of the Unix-based systems to run an application developed for the Microsoft Windows systems. Among all the Wine versions there is one for Ubuntu.

Note that Wine is not a fully stable application. Thus, some functions in the applications you start under it may work improperly or not work at all.

Preliminary setup should be performed before the installation. All applications are installed on Ubuntu from the packages contained in repositories. The path to WineHQ PPA repository should be added to install Wine. Open Ubuntu Software Center and execute "Software Sources" command in "Edit" menu.

Software Sources

Click "Add" in the new window.

Adding Repository

The following data should be specified in АРТ (Advanced Package Tool) line: ppa:ubuntu-wine/ppa. Click "Add Source". This completes the preliminary setup.

To install Wine, open its official website http://www.winehq.org, go to Downloads section and choose the distribution kit for Ubuntu. Click the appropriate link to install the latest Wine version. Currently, the latest stable version is Wine 1.4.1. You can also download beta version Wine 1.5.21, which has many improvements but may appear less stable. The system will prompt you to open the link via Ubuntu Software Center. Agree to that and the Software Center will prompt to start Wine installation:

Installing Wine

Click "Install" and wait for the installation to complete. Once the installation is complete, it will already be possible to run Microsoft Windows executable files in 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.

Execute the following command to add WineHQ PPA repository, from which Wine will be installed:

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

Installing Wine via the command line

After its execution, update APT package data using the following command:

sudo apt-get update

Upon its execution, you can start Wine installation. Execute the following command:

sudo apt-get install wine1.5

Wine version 1.5 will be installed. After the execution, Wine is ready for use.

Starting Client Terminal

To install the terminal, download the installer "mt4setup.exe". After the download is complete, launch the setup file. The system will automatically determine that you are trying to run a file designed for Microsoft Windows and will offer to open it with Wine. Select this option and click "OK".

Opening MetaTrader 5 installation package via Wine

The client terminal installer will be launched. Complete all installation steps:

Installing the client terminal

After installation is complete, you can start using the terminal by running its terminal.exe file.

Another way to start using the trade terminal in Ubuntu is copying the entire folder of the client terminal previously installed in Microsoft Windows:

Copying previously installed terminal

After copying is complete, simply run terminal.exe file of the terminal. Wine will be used automatically to open the file.

Known Issues

As was already mentioned above, Wine is not a completely stable software. Thus, some functions of the client terminal may work improperly. Currently the following issues are discovered:

Except for the above problem, you can enjoy all the features of the trade terminal on Ubuntu.

Terminal Data Directory

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

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