Open account
Open accountLog In
Open account

Aug 14, 2025

Basics

How to Install MT4 on Linux (Ubuntu)

In this article
What is MetaTrader 4?How to download and install MT4 on Linux DesktopHow to download and install MT4 using only one command

How to Install MT4 on Linux (Ubuntu)

This article will guide you through getting started with MetaTrader 4 on Linux, from downloading to installing. Your trading journey begins now!

What is MetaTrader 4?

MetaTrader 4 is a renowned trading platform that can connect you to a reliable online broker like FBS. MT4 is especially popular among Forex traders, but you can trade other markets too (e.g. indices). It offers a whole range of valuable tools: automated trading, advanced charts, round-the-clock support, and much more.

Although MT4 was originally developed for Windows, Linux users can access it using compatibility tools like Wine. Note that some compatibility issues may occur, as Wine is a reliable, but not ideal software.

This guide walks you through everything you need to know to install and run MT4 on Linux — either on your desktop, or a virtual private server (VPS).

How to download and install MT4 on Linux Desktop

Step 1: Install a compatibility tool

A compatibility tool allows you to run MT4 on Linux. We recommend Wine, so you can trade from a lightweight, open-source system (often faster and more stable than Windows on older machines).

1. Open a terminal window and type the following command to install the latest version of Wine Stable:

sudo apt-get install wine-stable

2. To install a version for developers, type in:

sudo apt-get install wine-development

3. You can see an error when installing if your Ubuntu version lacks a repository. To fix it, type in the following commands one by one:

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/

4. The next command will help you update the package information:

sudo apt-get update

5. Finally, install Wine:

sudo apt-get install --install-recommends winehq-stable

6. Confirm Wine is installed:

wine --version

You should see wine-6.0 or newer.

Step 2: Download MetaTrader from FBS

Download the Windows version (an .exe file) of MT4 from the Trading Platforms section of fbs.com.

Step 3: Install MetaTrader using Wine

You’ve downloaded the setup file, now it’s time to run it. There are two options:

  1. Open it with Wine Windows Program Loader, follow the installation steps in the Windows-style setup window and run terminal.exe.

  2. Copy the folder containing the terminal’s previously installed files from a Windows system. Once copied, simply launch the terminal’s executable file, terminal.exe — it will automatically open using Wine.

If you can’t install MT4 on Linux using the methods we’ve described, try a web version of MT4 or a mobile version. To learn how to trade from your mobile device, read the FBS article Three Steps to Start Trading on Your Mobile Device.

Once you register with FBS, create a trading account and log in (if you haven’t already).

How to download and install MT4 using only one command

If you want to make the installation process even easier, type this into your terminal command line:

wget

https://download.mql5.com/cdn/web/metaquotes.software.corp/mt4/mt4ubuntu.sh ;

chmod +x mt4ubuntu.sh ; ./mt4ubuntu.sh

The script will be downloaded and run automatically, just enter your password.

Share with friends:

Open an FBS account

By registering, you accept FBS Customer Agreement conditions and FBS Privacy Policy and assume all risks inherent with trading operations on the world financial markets.

FBS at social media

iconhover iconiconhover iconiconhover iconiconhover icon

Contact us

iconhover iconiconhover iconiconhover iconiconhover icon
store iconstore icon
Get on the
Google Play
store iconstore icon
Get MT4 on the
App Store
store iconstore icon
Get MT5 on the
App Store

Trading

Company

About FBS

Our social impact

Legal documents

Company news

FC Leicester City

Help Center

Partnership programs

The website is operated by FBS Markets Inc.; Registration No. 000001317; FBS Markets Inc. is registered by the Financial Services Commission under the Securities Industry Act 2021, license number 000102/31. Office Address: The Bentley, #16 Cor A Street & Princess Margaret Drive, Belize City, Belize.

FBS Markets Inc. does not offer financial services to residents of certain jurisdictions, including, but not limited to: the USA, the EU, the UK, Israel, the Islamic Republic of Iran, Myanmar.

Payment transactions are managed by HDC Technologies Ltd.; Registration No. HE 370778; Legal address: Arch. Makariou III & Vyronos, P. Lordos Center, Block B, Office 203, Limassol, Cyprus. Additional address: Office 267, Irene Court, Corner Rigenas and 28th October street, Agia Triada, 3035, Limassol, Cyprus.

Contact number: +357 22 010970; additional number: +501 611 0594.

For cooperation, please contact us via [email protected].

Risk Warning: Before you start trading, you should completely understand the risks involved with the currency market and trading on margin, and you should be aware of your level of experience.

Any copying, reproduction, republication, as well as on the Internet resources of any materials from this website is possible only upon written permission.

The information on this website does not constitute investment advice, a recommendation, or a solicitation to engage in any investment activity.