Systemvoraussetzungen & Performance-Skalierung
Um eine stabile Performance (Latenz < 10ms, keine UI-Hänger) zu gewährleisten, gelten folgende Richtwerte pro Instanz:
| Komponente | Erste Instanz | Jede weitere Instanz |
| vCPU | 1 Core (min. 2.5 GHz) | + 0.5 – 1 Core |
| RAM | 2 – 4 GB | + 1 – 2 GB |
| Speicher | 20 GB NVMe/SSD | + 2 GB (Logs/History) |
Empfehlung: Ab 10 Instanzen sollte auf einen dedizierten Server mit min. 32 GB RAM und 8-16 Cores gewechselt werden.
Guide (Deutsch)
1. System vorbereiten & Desktop-Umgebung (XFCE)
XFCE ist aufgrund des geringen Overheads die stabilste Wahl für Trading-Server.
# Update repositories and install XFCE with xRDP
sudo apt update && sudo apt upgrade -y
sudo apt install xfce4 xfce4-goodies xorg dbus-x11 x11-xserver-utils xrdp -y
# Configure xRDP to use XFCE
echo "xfce4-session" > ~/.xsession
sudo systemctl restart xrdp
2. Benutzerverwaltung & Zugangskontrolle
Wir erstellen eine Gruppe ts-users, um den Zugriff auf RDP einzuschränken.
# Create a management group for RDP access
sudo groupadd ts-users
# Create a new trader user
sudo adduser trader1
sudo usermod -aG ts-users trader1
# Restrict xRDP access to this group
# Edit /etc/xrdp/sesman.ini -> TerminalServerUsers=ts-users
sudo sed -i 's/TerminalServerUsers=ts-users/TerminalServerUsers=ts-users/g' /etc/xrdp/sesman.ini
sudo systemctl restart xrdp
3. MetaTrader 5 Installation (via Wine)
Das offizielle Skript automatisiert die Wine-Konfiguration.
# Download and run official MetaQuotes installer
# Run as the user who will use MT5, NOT as root
wget https://download.mql5.com/cdn/web/metaquotes.software.corp/mt5/mt5linux.sh
chmod +x mt5linux.sh
./mt5linux.sh
Guide (English)
1. System Preparation & Desktop Environment (XFCE)
XFCE provides the best stability and lowest resource footprint for terminal servers.
# Update repositories and install XFCE with xRDP
sudo apt update && sudo apt upgrade -y
sudo apt install xfce4 xfce4-goodies xorg dbus-x11 x11-xserver-utils xrdp -y
# Configure xRDP to use XFCE session
echo "xfce4-session" > ~/.xsession
sudo systemctl restart xrdp
2. User Management & Access Control
Using a dedicated group ts-users to manage RDP permissions.
# Create a management group for RDP access
sudo groupadd ts-users
# Create a new trader user
sudo adduser trader1
sudo usermod -aG ts-users trader1
# Restrict xRDP access to members of the specific group
# Modify the sesman configuration for access control
sudo sed -i 's/TerminalServerUsers=ts-users/TerminalServerUsers=ts-users/g' /etc/xrdp/sesman.ini
sudo systemctl restart xrdp
3. MetaTrader 5 Installation (via Wine)
Using the official automated script for optimized Wine settings.
# Download and run official MetaQuotes installer script
# Execute this as the specific user, avoid using sudo for the script itself
wget https://download.mql5.com/cdn/web/metaquotes.software.corp/mt5/mt5linux.sh
chmod +x mt5linux.sh
./mt5linux.sh