HOWTO: Install the latest builds of MT4 on Ubuntu 16.04 LTS

Offline Jack

  • *****
  • User post count 1,228
    • View Profile
    • FXGears
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!

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

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: [Select]
sudo apt-get autoremove wine

Next enable i386 (32bit) sources:
Code: [Select]
sudo dpkg --add-architecture i386
Next add the wine-builds repository:
Code: [Select]
sudo add-apt-repository ppa:wine/wine-builds
Now update apt and install the latest development release of Wine:

Code: [Select]
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.

And that's it! Enjoy your MT4!

« Last Edit: July 31, 2016, 11:07:13 pm by Jack »

Offline sqa

  • *****
  • User post count 1,109
  • Village Scribe
    • View Profile
Always useful to keep around, especially with Microsoft's further descent into Total Information Awareness-mode.

Offline Jack

  • *****
  • User post count 1,228
    • View Profile
    • FXGears
Always useful to keep around, especially with Microsoft's further descent into Total Information Awareness-mode.

Yup. Though I've made my peace with Windows 10 in general..

Another good reason to run MT4 on linux is the availability of dirt cheap Linux VPS' out there vs their Windows VPS counterparts.

Offline rod178

  • *****
  • User post count 1,503
    • View Profile
Yup. Though I've made my peace with Windows 10 in general..

Another good reason to run MT4 on linux is the availability of dirt cheap Linux VPS' out there vs their Windows VPS counterparts.

Another reason to run Linux VPS is performance. A short explanation
http://www.forexperiments.com/2013/02/what-if-mt4-runs-better-on-linux-server.html


I have an intense dislike of M$, although am still running Win7, I will probable transition all to Linux and run Crossover, especially now that M$ seems to be forcing upgrades to Win10.
http://www.forexperiments.com/2013/03/how-does-mt4-runs-in-linux.html
https://www.codeweavers.com/


Better a Goat than a Sheep. Better a Shark than a Fish