HOWTO: (Easily) install the latest Metatrader 4 (MT4) on Linux Mint 19

jack

Administrator
Staff member
Previous versions of Linux Mint HOWTOs:
HOWTO: (Easily) install the latest Metatrader 4 (MT4) on Linux Mint 18.2

----------------------

Written for Linux Mint 19.3

MetaTrader 4 is a Windows based application, however, it can be installed on Linux Mint 19 and other Linux distributions with the use of software called Wine.

Wine aims to reproduce the Windows libraries required to run Windows apps on non-windows platforms.

Getting MT4 to run on Linux with Wine is relatively easy, however, the instructions below are for Linux Mint 19.. your mileage may very on other Linux distros, but do check the Execution Platforms forum for more HOWTOs with other distros.

Unlike previous versions of Linux Mint, Linux Mint 19's default version of Wine can run MetaTrader 4. In the past we had to add our own source for Wine, but that's no longer needed.

Let's start by installing wine.

Launch a terminal instance by pressing your home key (or clicking the "LM" menu button on your task bar,) and typing in Terminal. (Or, use the Ctrl+Alt+T desktop shortcut.)

In the terminal, type the following command:
Code:
sudo apt-get update
sudo apt-get install winehq-stable
(There will be a lot of dependencies listed, just type 'Y' for yes, or press enter.)



Once wine is installed, it's time to download and install MT4: Grab your desired broker's MT4 installer package. (The broker I'll be using in this tutorial is Pepperstone Financial, but this process should work with any MT4 broker.) If you don't already have a live account, you can create a demo and download MT4 here. (Note: You will need to go this route through a broker, as MetaQuotes / MetaTrader will try and install MT5 instead if you download it directly from them.)

Linux Mint 19's Cinnamon does not seem to automatically associate '.exe' files with Wine once Wine is installed, so we will have to use the terminal to launch the MT4 installer. Open another terminal window if you don't still have the one we used to install Wine open, and type the following:

Code:
cd Downloads/
wine pepperstone4setup.exe
Note: If you're not using Pepperstone, you will need to change the name to the name of your MT4 installer file.



The first time Wine runs, it takes a moment to setup the Wine environment. Wine's setup progress is likely going to ask you to download and install additional components during this process:



This might happen two or three times, just click install each time it asks.

After that completes, you should be greeted with the MT4 install wizard (or, if after waiting a minute the wizard does not launch, then double click the MT4 setup file again.)



After going through the MT4 install wizard, the installer will launch MT4 upon completion and it sets an icon on your desktop. Wine knows to put the icon on your desktop and you can now launch MT4 from there moving forward.

NOTE: There might be some trouble creating a new demo account from within MT4 on Wine. If you run into this problem, just create a demo account through Pepperstone's website with this link and use the login credentials to login within MT4 once it has launched.

Your desktop will now have MT4 icons on it for quick access to the application and Linux Mint 19 should associate them with Wine and launch things without an issue by just double clicking as you would expect.

And that's it! Enjoy MetaTrader 4!

 

rod178

Well-Known Member
I've found running MT4 under Cinnamon Mint 19.3 to be a better experience than under Windows 7. As for Windows 10, I would rather eat broken glass. The only small issue was that the M$ True Type fonts (I use WingDings in my charts) were missing, which I later installed after recovering from an old Windows 7 install. Windows is now a distant memory and a bad one at that.

PS A positive on installing MT4 under Wine is that, due to not using Windows kludge user account control, is is very easy to copy and back up the entire MT4 directory, eg scripts history etc, which is found in -
/home/yourusername/.wine/dosdevices/c:/Program Files (x86)/MetaTrader - brokername
 

jack

Administrator
Staff member
I've found running MT4 under Cinnamon Mint 19.3 to be a better experience than under Windows 7. As for Windows 10, I would rather eat broken glass. The only small issue was that the M$ True Type fonts (I use WingDings in my charts) were missing, which I later installed after recovering from an old Windows 7 install. Windows is now a distant memory and a bad one at that.

PS A positive on installing MT4 under Wine is that, due to not using Windows kludge user account control, is is very easy to copy and back up the entire MT4 directory, eg scripts history etc, which is found in -
/home/yourusername/.wine/dosdevices/c:/Program Files (x86)/MetaTrader - brokername
Great idea.. I'll add how to include windings since quite a few indicators use it.
 

rod178

Well-Known Member
In LM there is a package available, for M$ True Type Fonts, Ttf-mscorefonts-installer.
It contains a limited number of TT fonts, including Arial, Impact and Webdings etc etc, although when I last looked about six months ago, not Wingdings.

1590730802722.png

The Windings fonts are contained within the Windows/FONTS folder, for me within an old Windows 7 install. Copy the FONTS folder to a LM folder, open and double click on the desired font, eg Wingdings. The LM font installer will then provide a prompt and then properly install the selected font.
 

rod178

Well-Known Member
Jack

Have you had a look at PlayOnLinux as an alternative to Wine?

I have a concern that Wine has the potential to introduce Windows exe virus vulnerabilities into Linux.
PoL seems to encapsulate MT4 ie it will not facilitate rouge exe without explicit "sudo" permissions
 

Jencks40

Member
Thank you so much for your valuable information, it really helpful for me.
I support your thinking and suggestion.
 
Top