How to install metatrader 5 on linux ubuntu xenial

There is 2 basics steps to install Metatrader 5 on linux.

  1. You need to install right version of wine and ubuntu xenial does not have the right version in its repository. The one that comes with Ubuntu is missing the mono packages that is needed to run .NET application and it is also missing the Gecko package which is needed for applications embedding HTML.

Installing wine

1
2
3
4
5
6
7
8
9
10
11
yes Y | sudo apt-get update
echo ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true | sudo debconf-set-selections
yes Y | udo apt-get install ttf-mscorefonts-installer
yes Y | sudo apt-get install xauth
yes Y | sudo dpkg --add-architecture i386
wget -nc https://dl.winehq.org/wine-builds/Release.key
sudo apt-key add Release.key
sudo apt-add-repository https://dl.winehq.org/wine-builds/ubuntu/
yes Y | sudo apt-get update
yes Y | sudo apt-get install --install-recommends winehq-stable
WINEPREFIX="$HOME/.wine" WINEARCH=win32 wine wineboot

Installing metatrader 5

1
2
3
cd /tmp
wget https://download.mql5.com/cdn/web/metaquotes.software.corp/mt5/mt5setup.exe
wine /tmp/mt5setup.exe