You can run MT4 and MT5 on a Linux VPS by following our guide on how to VNC into your VPS securely over an SSH tunnel here.
Once you’re logged in via VNC you can continue with the rest of this guide.
Login to your VPS with the root user and run the following commands:
dpkg --add-architecture i386 mkdir -pm755 /etc/apt/keyrings wget -O /etc/apt/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key apt update
Now login via VNC, open a terminal and then run the following to install Metatrader 4 on Ubuntu 22.04:
wget https://download.mql5.com/cdn/web/metaquotes.software.corp/mt4/mt4ubuntu.sh ; chmod +x mt4ubuntu.sh ; ./mt4ubuntu.sh
Wait a few moments and follow the installation prompts.
Similarly, to install Metatrader 5 on Ubuntu 22.04, you can paste the following in the terminal window once logged in via VNC:
wget https://download.mql5.com/cdn/web/metaquotes.software.corp/mt5/mt5ubuntu.sh ; chmod +x mt5ubuntu.sh ; ./mt5ubuntu.sh