MetaTrader 5 on Ubuntu Linux 10.04

This tutorial will show how to install MetaTrader 5 from MetaQuotes on Ubuntu 10.04 Linux operating system. Hopefully this will make Linux users happy and finally enable using MT5 on Linux.

For a long time I have been trying to use standard Wine 1.2 provided with Ubuntu distribution. At first there were errors during installation, or no installation at all could be performed. Finally after some time this was fixed but still a message  'A debugger has been found' was shown after installation and terminal.exe was terminated.

The solution to install and run MetaTrader 5 in Ubuntu 10.04 is to use a non-standard Wine 1.3 packet from Launchpad PPA repository. In order to enable this repostory enter the following command:


inv@investeo:~/Pobrane$ sudo add-apt-repository ppa:ubuntu-wine/ppa
[sudo] password for inv:
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --secret-keyring /etc/apt/secring.gpg --trustdb-name /etc/apt/trustdb.gpg --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver keyserver.ubuntu.com --recv 883E8688397576B6C509DF495A9A06AEF9CB8DB0
gpg: zapytanie o klucz F9CB8DB0 z hkp serwera keyserver.ubuntu.com
gpg: klucz F9CB8DB0: zaimportowano klucz publiczny ,,Launchpad PPA for Ubuntu Wine Team''
gpg: Ogółem przetworzonych kluczy: 1
gpg: dołączono do zbioru: 1 (RSA: 1)


After the repository is added update the repositories list with:

inv@investeo:~/Pobrane$ sudo apt-get update


Next step is to install Wine 1.3. It will should remove older Wine 1.2 if it was already installed:

inv@investeo:~/Pobrane$ sudo apt-get install wine1.3
Czytanie list pakietów... Gotowe
Budowanie drzewa zależności
Odczyt informacji o stanie... Gotowe
Następujące pakiety zostały zainstalowane automatycznie i nie są już więcej wymagane:
libtasn1-3-dev libgpg-error-dev libgcrypt11-dev libgnutls-dev
Aby je usunąć należy użyć "apt-get autoremove".
Zostaną zainstalowane następujące dodatkowe pakiety:
ttf-symbol-replacement-wine1.3 wine1.3-gecko winetricks wisotool
Następujące pakiety zostaną USUNIĘTE:
ttf-symbol-replacement wine1.2 wine1.2-gecko
Zostaną zainstalowane następujące NOWE pakiety:
ttf-symbol-replacement-wine1.3 wine1.3 wine1.3-gecko winetricks wisotool
0 aktualizowanych, 5 nowo instalowanych, 3 usuwanych i 95 nieaktualizowanych.
Konieczne pobranie 19,8MB archiwów.
Po tej operacji zostanie dodatkowo użyte 12,9MB miejsca na dysku.
Kontynuować [T/n]? t
Pob: 1 http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu/ lucid/main ttf-symbol-replacement-wine1.3 1.3.3-0ubuntu1~lucidppa1 [40,1kB]
Pob: 2 http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu/ lucid/main wine1.3 1.3.3-0ubuntu1~lucidppa1 [10,8MB]
Pob: 3 http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu/ lucid/main wine1.3-gecko 1.1.0-0ubuntu1~lucidppa1 [8865kB]
Pob: 4 http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu/ lucid/main winetricks 0.0+20100917-0ubuntu1~lucidppa1 [49,4kB]
Pob: 5 http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu/ lucid/main wisotool 0.0+20100731 [56,0kB]
Pobrano 19,8MB w 1min 41s (195kB/s)
Prekonfiguracja pakietów ...
(Odczytywanie bazy danych ... 216396 plików i katalogów obecnie zainstalowanych.)
Usuwanie ttf-symbol-replacement ...
Usuwanie wine1.2 ...
Usuwanie wine1.2-gecko ...
Przetwarzanie wyzwalaczy dla fontconfig...
Przetwarzanie wyzwalaczy dla desktop-file-utils...
Przetwarzanie wyzwalaczy dla python-gmenu...
Rebuilding /usr/share/applications/desktop.pl_PL.utf8.cache...
Przetwarzanie wyzwalaczy dla hicolor-icon-theme...
Przetwarzanie wyzwalaczy dla man-db...
Przetwarzanie wyzwalaczy dla libc-bin...
ldconfig deferred processing now taking place
Przetwarzanie wyzwalaczy dla python-support...
Zaznaczenie poprzednio niezaznaczonego pakietu ttf-symbol-replacement-wine1.3.
(Odczytywanie bazy danych ... 215270 plików i katalogów obecnie zainstalowanych.)
Rozpakowanie ttf-symbol-replacement-wine1.3 (z .../ttf-symbol-replacement-wine1.3_1.3.3-0ubuntu1~lucidppa1_all.deb) ...
Zaznaczenie poprzednio niezaznaczonego pakietu wine1.3.
Rozpakowanie wine1.3 (z .../wine1.3_1.3.3-0ubuntu1~lucidppa1_i386.deb) ...
Zaznaczenie poprzednio niezaznaczonego pakietu wine1.3-gecko.
Rozpakowanie wine1.3-gecko (z .../wine1.3-gecko_1.1.0-0ubuntu1~lucidppa1_i386.deb) ...
Zaznaczenie poprzednio niezaznaczonego pakietu winetricks.
Rozpakowanie winetricks (z .../winetricks_0.0+20100917-0ubuntu1~lucidppa1_i386.deb) ...
Zaznaczenie poprzednio niezaznaczonego pakietu wisotool.
Rozpakowanie wisotool (z .../wisotool_0.0+20100731_i386.deb) ...
Przetwarzanie wyzwalaczy dla man-db...
Przetwarzanie wyzwalaczy dla desktop-file-utils...
Przetwarzanie wyzwalaczy dla python-gmenu...
Rebuilding /usr/share/applications/desktop.pl_PL.utf8.cache...
Przetwarzanie wyzwalaczy dla hicolor-icon-theme...
Przetwarzanie wyzwalaczy dla python-support...
Konfigurowanie ttf-symbol-replacement-wine1.3 (1.3.3-0ubuntu1~lucidppa1) ...
Konfigurowanie wine1.3 (1.3.3-0ubuntu1~lucidppa1) ...
procps stop/waiting
procps stop/waiting

Konfigurowanie wine1.3-gecko (1.1.0-0ubuntu1~lucidppa1) ...
Konfigurowanie winetricks (0.0+20100917-0ubuntu1~lucidppa1) ...
Konfigurowanie wisotool (0.0+20100731) ...
Przetwarzanie wyzwalaczy dla libc-bin...
ldconfig deferred processing now taking place


After that we should be equipped with fresh Wine 1.3 installation. You may check the version by executing wine --version command:


inv@investeo:~/Pobrane$ wine --version
wine-1.3.3


The next step is to download MetaTrader 5 installation binary:

http://files.metaquotes.net/metaquotes.software.corp/mt5/mt5setup.exe

and install MetaTrader 5 by entering wine mt5setup:

inv@investeo:~/Pobrane$ wine mt5setup

Installation is not much different than in Windows operating system:



After installation finished you can enter your credentials in order to sign up for a new account or enter your account details if you already have any.


You should get MetaTrader 5 up and running in a few minutes. You can enjoy trading, using indicators and expert advisors. For now there is still one problem with Strategy tester:



but I hope it will be soon resolved. The terminal itself and metaeditor do work properly:




I hope that my tutorial was useful. Enjoy!

25 comments:

AJC said...

Hi,
When i try to install mt5 shows this message:

$ wine mt5setup.exe
fixme:mountmgr:harddisk_ioctl unsupported ioctl 560000

investeo said...

Hi,
This may have happened if there is a clash between older wine you used. Please remove .wine folder from your home directory, or rename it to e.g. .wine_old if you use other windows software already installed, this will help. After you run

$ wine mt5setup.exe

new .wine folder will be created and installation should go smooth.

Anonymous said...

" A debugger has been found running in your system. Please, unload it from memory and restart your program."

what is this error?

investeo said...

The Error is because you use Wine version older than 1.3, please upgrade according to instructions.

danh said...

Hi,
I've followed your instructions - wine-1.3.11 - metatrader 5.00 Build 375 (28 Dec 2010)

It all runs up ok (shows charts etc) but the navigator window keeps flashing and a sound keeps being played repeatedly.

Anyone else finding this?

Anonymous said...

danh yes I'm having that problem too. It's because MetaTrader is disconnecting from the server, then reconnecting, then disconnecting... check the Journal. Makes it unusable.

Anyone have an idea how to fix this?

investeo said...

Try this:
http://mql5.blogspot.com/2010/10/better-linux-compatibility-with.html

Anonymous said...

MT4 instalation fails on ubuntu 10.10 and 11.04 with latest version of WINE.... :(

tested with a lot of different MT4.. program won't run after instalation and it's impossible to uninstall it automatically

The Amazing Spider-Man said...

when metatrader support linux platform :(

Andrew Collier said...

hi,

i have had MT4 working under wine for ages and it is brilliant. i have just tried to install MT5 under wine-1.3.26 and it breaks as follows:

$ wine alpari_uk_mt5setup.exe
fixme:mountmgr:harddisk_ioctl returning zero-filled buffer for IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS
fixme:mountmgr:harddisk_ioctl Unsupported ioctl 74080 (device=7 access=1 func=20 method=0)
fixme:mountmgr:harddisk_ioctl Unsupported ioctl 2d1400 (device=2d access=0 func=500 method=0)
fixme:mountmgr:harddisk_ioctl Unsupported ioctl 2d0c10 (device=2d access=0 func=304 method=0)
wine: Unhandled page fault on read access to 0x0044e000 at address 0xb763079b (thread 0045), starting debugger...
err:ole:CoGetClassObject class {e2b3c97f-6ae1-41ac-817a-f6f92166d7dd} not registered
err:ole:CoGetClassObject no class object {e2b3c97f-6ae1-41ac-817a-f6f92166d7dd} could be created for context 0x1
fixme:hnetcfg:fw_app_put_Enabled 0x14c780, -1
Unhandled exception: page fault on read access to 0x0044e000 in 32-bit code (0xb763079b).
Register dump:
CS:0073 SS:007b DS:007b ES:007b FS:0033 GS:003b
EIP:b763079b ESP:0033d980 EBP:0033da00 EFLAGS:00210206( R- -- I - -P- )
EAX:0044dfa4 EBX:b7674ff4 ECX:3b8e78fa EDX:2e8726c0
ESI:003fd5c6 EDI:000000c9
Stack dump:
0x0033d980: 7effeff4 7efed492 2e80a020 003e5904
0x0033d990: 3b95001a 7bc62daa 003d0001 00401860
0x0033d9a0: 0033d9e4 00000000 003e5904 006e0069
0x0033d9b0: 00000000 7b86a8b9 00178680 2e80a020
0x0033d9c0: 0033d9e4 00000001 0033d9f0 00000000
0x0033d9d0: 003e5904 003d0001 00000000 0000000e

and there is a whole lot more of the same...

i have no idea what these error messages imply. does anyone have an idea how to fix this?

thanks,
andrew.

Anonymous said...

MT5 under Ubuntu 12.04 and wine 1.4-rc6 installs perfectly, but when starting, i can only fill in the login details until wine hangs up the terminal.exe

Anybody experiences similar problems and has solutions for this?

Anonymous said...

I got a phone call on last week.
I asked them in oder to work with MT5 on Linux .

The answer was easy :
"We make the software for windows only and we know that it don't work on linux. At least, we will not look after the pb because we don't take care of Linux".

The only way for us is to wait after a new Wine software version.

See you later,
Loulou

Anonymous said...

Or we become crossover customers and ask them to fix this. I think we need at least 100 licenses in order to make them do anything.

Unknown said...

Hi! I´d like to know if it´s possible to run metatester agents on linux...My main machine, where I run strategy tester, is windows. I have a few linux machines at home, it will be nice if i can use it to increase my optimization tests.
Thanks!

Hits said...

Thanks alot for sharing, it worked perfectly and now MT is running.
Here are the VPSs ready made: https://instantcpanelhosting.com/knowledgebase/21/MetaTrader-Forex-VPS-servers-from-9.html

Forex Fund Management said...

I was facing the problem at the installation time of MetaTrader 5 on Ubuntu. Thanks to this article that I learned the correct procedure. I used the command which is told here. Thanks again.

Unknown said...
This comment has been removed by the author.
Unknown said...
This comment has been removed by the author.
Unknown said...

Trade with us on all MT5 trading platforms. We provide- Trader Platform MT5 for PC | Trader MT5 for iPhone

Unknown said...

This market determines the foreign exchange rate. It includes all aspects of buying, selling and exchanging currencies at current or determined prices. For more update visit
Mt5 demo account


Maya Aaliyah said...

Your post is very helpful!
It’s really amazing to have great stuff.
thanks a lot for sharing it.

I would like to offer a great topic for you. Once check it for valuable information.

Forex
Forex
Currency Trading
Currency Trading

Maya Aaliyah said...

Your post is very helpful!
It’s really amazing to have great stuff.
thanks a lot for sharing it.

I would like to offer a great topic for you. Once check it for valuable information.

Forex
Forex
Currency Trading
Currency Trading

Maya Aaliyah said...

Your post is very helpful!
It’s really amazing to have great stuff.
thanks a lot for sharing it.

I would like to offer a great topic for you. Once check it for valuable information.

Forex
Forex
Currency Trading
Currency Trading

Maya Aaliyah said...

Excellent Post. I just bookmarked your blog and I have really enjoyed reading your blog posts. Stocks Hit 52-Week Low On NSE Visit our website for more stocks related information.Thanks
SBI Card IPO Subscription Details
Foreign Exchange Market
Foreign Exchange Market

Unknown said...

Win Real Money with JackpotCity Casino - Get a 100% Bonus
Jackpot City 출장안마 Casino is an instant-play and mobile ford fusion titanium casino, launched in goyangfc 2017. It is a new online gambling site that features slots, poker, gri-go.com bingo, septcasino.com

Post a Comment