Skip to main content
All CollectionsVPSVPS OS and Templates
How to run MetaTrader 5 on Hostinger VPS
How to run MetaTrader 5 on Hostinger VPS

Running MetaTrader 5 on a Hostinger Linux-based VPS using XFCE and RDP

Updated this week

MetaTrader 5 (MT5) is a popular Forex trading platform that allows users to perform technical analysis and trading operations in the Forex, CFD, and futures markets. Hostinger's Ubuntu 22.04 with Desktop VPS template, which includes the XFCE environment and RDP for remote desktop access, makes it easy to set up and run MetaTrader 5. This guide will walk you through the process.

Prerequisites

  • A Hostinger VPS with the Ubuntu 22.04 with Desktop template.

  • Basic understanding of using a remote desktop connection and terminal commands.

If you don't have a VPS yet, check the available options here: VPS Hosting 🚀

Accessing your VPS via remote desktop

  1. Open the Remote Desktop Connection application on your Windows PC. You can find it using the search bar in the start menu.

  2. Connect to Your VPS:

    1. Enter the IP address of your VPS in the Computer field and click Connect.

    2. Log in using the username rdpuser and the password provided during template installation.

For more detailed instructions, refer to the following guide: How to Use the Ubuntu 22.04 Template With Desktop on VPS.

Installing MetaTrader 5

  1. Once logged into your VPS desktop environment, open a terminal window. You can do this by navigating to the Applications menu and selecting Terminal Emulator.


  2. Run the following command on the terminal to download and install the MetaTrader 5 script:

wget https://download.mql5.com/cdn/web/metaquotes.software.corp/mt5/mt5ubuntu.sh ; chmod +x mt5ubuntu.sh ; ./mt5ubuntu.sh

Running MetaTrader 5

  1. Launch MetaTrader 5 – After the installation is complete, launch MetaTrader 5 from the applications menu or by running the metatrader5 command in the terminal

  2. Set up your trading account – Follow the on-screen instructions to set up your trading account or log in with your existing account.

Optimizing remote desktop performance

To ensure a smooth remote desktop experience, follow these recommendations:

  • Use lightweight settings and disable any unnecessary visual effects on XFCE.

  • Monitor your VPS resources using tools like htop to keep CPU and memory usage within optimal usage levels.

  • Ensure your VPS can handle the workload. If your project is growing and needs more resources, you can always upgrade your VPS.

To further customize and optimize your trading experience, explore the additional settings within MetaTrader 5 and your VPS configuration.

Additional resources

Did this answer your question?