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

Discussion in 'Execution Platforms' started by jack, Jul 30, 2016.

  1. jack

    jack Administrator Staff Member

    Joined:
    Mar 29, 2013
    Messages:
    2,345
    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:
    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:

    [​IMG]

    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.)

    [​IMG]

    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!

    [​IMG]
     
  2. sqa

    sqa Village Scribe

    Joined:
    Jan 29, 2014
    Messages:
    2,201
    Re: How to (easily) install the latest builds of MT4 on Ubuntu 16.04 LTS

    Always useful to keep around, especially with Microsoft's further descent into Total Information Awareness-mode.
     
  3. jack

    jack Administrator Staff Member

    Joined:
    Mar 29, 2013
    Messages:
    2,345
    Re: How to (easily) install the latest builds of MT4 on Ubuntu 16.04 LTS

    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.
     
  4. rod178

    rod178 Well-Known Member

    Joined:
    Jul 16, 2013
    Messages:
    3,109
    Re: How to (easily) install the latest builds of MT4 on Ubuntu 16.04 LTS

    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/
     

Share This Page