A refresh of this HOWTO thread: How to (easily) install the latest builds of MT4 on Ubuntu 14.04 LTS -- Now working for Ubuntu 16.04 LTS!
For Ubuntu 18.04 LTS, click here!
--------------------------------------------------------------------
MetaTrader 4 is a Windows based application, however, it can be installed on Ubuntu 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 Ubuntu 16.04 LTS.. your mileage may very on other Linux distros.
With Ubuntu 16.04, and when using a 64bit version of the OS, the default Wine package just doesn't cut it and will get you stuck on the MT4 installation wizard with an error that suggests MT4 can't get online. So instead, we have to install the latest development release of Wine from the Ubuntu repositories.
Launch a terminal instance by pressing your home key (or clicking the Ubuntu menu button on your task bar,) and typing in Terminal.
From within the terminal, type the following commands in order:
First, let's remove any previous version of Wine that might be installed:
Next enable i386 (32bit) sources:
Next add the wine-builds repository:
Now update apt and install the latest development release of Wine:
Note: it is not required to go to Wine's website or download any package from a 3rd party source. Ubuntu's own package manager (apt-get) will pull the correct and trusted installer files you need automatically.
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.) You can download MT4 here.
Ubuntu 16.04 LTS automatically associates '.exe' files with Wine once Wine is installed, so no further config of Wine is needed.
Time to double click on the MT4 installer package and install the trading platform.
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.
And that's it! Enjoy your MT4!
For Ubuntu 18.04 LTS, click here!
--------------------------------------------------------------------
MetaTrader 4 is a Windows based application, however, it can be installed on Ubuntu 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 Ubuntu 16.04 LTS.. your mileage may very on other Linux distros.
With Ubuntu 16.04, and when using a 64bit version of the OS, the default Wine package just doesn't cut it and will get you stuck on the MT4 installation wizard with an error that suggests MT4 can't get online. So instead, we have to install the latest development release of Wine from the Ubuntu repositories.
Launch a terminal instance by pressing your home key (or clicking the Ubuntu menu button on your task bar,) and typing in Terminal.
From within the terminal, type the following commands in order:
First, let's remove any previous version of Wine that might be installed:
Code:
sudo apt-get autoremove wine
Next enable i386 (32bit) sources:
Code:
sudo dpkg --add-architecture i386
Next add the wine-builds repository:
Code:
sudo add-apt-repository ppa:wine/wine-builds
Now update apt and install the latest development release of Wine:
Code:
sudo apt-get update
sudo apt-get install --install-recommends winehq-devel
Note: it is not required to go to Wine's website or download any package from a 3rd party source. Ubuntu's own package manager (apt-get) will pull the correct and trusted installer files you need automatically.
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.) You can download MT4 here.
Ubuntu 16.04 LTS automatically associates '.exe' files with Wine once Wine is installed, so no further config of Wine is needed.
Time to double click on the MT4 installer package and install the trading platform.
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.
And that's it! Enjoy your MT4!
Last edited: