文章 "Linux 上的 MetaTrader 5" - 页 23

 
Wasin Thonkaew #:
最新版本出现故障,mt5 很快就会自动关闭。
我的解决办法是使用版本为 8.0-rc1 的 winehq-devel 软件包,如 Ubuntu 20.04 所示。

为了安全起见,你可能需要备份你的 wine prefix 目录,以防里面有重要设置。

谢谢,成功了。

 
使用 wine-devel 或 wine-staging 而不是 wine-stable 可以解决问题
 
Minkai Yang #:

安装对应字体文件即可。

或者使用字体替换。

具体怎么操作???我之前用window写的代码,里边有中文,现在换了linux系统,代码中方块,没法儿用啊

 
Adegbenga Omotowoju #:
嗨,团队,请帮帮我,我的 mt5 终端有问题 [ 总是自动关闭 ]。

我也一样。

在 ubuntu 系统上使用 WINE 运行。

 
这是否适用于 ARM Linux?
 

有人说所有终端功能都能在 Wine 下运行,但不仅终端本身不能启动。

如果你们愿意,请告诉我, 应该通过 winetricks 把 什么 塞进 Wine,应该怎么做才能在 "工具">"新闻 "面板中不仅显示新闻标题,而且显示包含所有文字(俄文和英文)和图片的新闻内容。

没有人澄清过这个问题。

有人反馈说:"我的系统一切正常"。

我尝试了所有发行版(Debian、Fedora、OpenSUSE、Arch)的所有 Wine 变体(稳定版和暂存版),但无法解决所述问题。

如果您知道如何解决这个问题,请与我分享您的方法和配置。

 

我有 41 个机器人处于战斗模式,约 16500 个机器人处于真实图表上的测试模式。

但我的机器人不使用新闻,我也不手工交易,所以缺乏新闻完全不会困扰我,反而让我很高兴--这不会占用资源。

是的,我所需要的一切都能满足我的需求(Ubuntu 18.04 和 Debian 11 - Debian 10 中的虚拟化,i5-2500K)。

 
我在数据目录的最后一部分需要帮助,你们怎么做?
 

不幸的是,在我发布这篇文章的当天,Debian 脚本还不能在 Debian 11 Bullseye 上运行。

我注意到有一行代码需要修改。

你可以先使用文本编辑器制作自己的 shell 脚本。

nano mt5debian.sh

然后,键入/插入以下行。

#!/bin/bash

#  Copyright 2022, MetaQuotes Ltd.
#  edited 2023, Fatchul Bari Hikmawan.

#  MetaTrader download url
URL="https://download.mql5.com/cdn/web/metaquotes.software.corp/mt5/mt5setup.exe"
#  Wine version to install: stable or devel
WINE_VERSION="stable"

#  Prepare: switch to 32 bit and add Wine key
sudo dpkg --add-architecture i386
wget -nc https://dl.winehq.org/wine-builds/winehq.key
sudo mkdir /etc/apt/keyrings
sudo mv winehq.key /etc/apt/keyrings/winehq-archive.key

#  Get Debian version and trim to major only
OS_VER=$(lsb_release -r |cut -f2 |cut -d "." -f1)
#  Choose repository based on Debian version
if (( $OS_VER >= 12)); then
  wget -nc https://dl.winehq.org/wine-builds/debian/dists/bookworm/winehq-bookworm.sources
  sudo mv winehq-bookworm.sources /etc/apt/sources.list.d/
elif (( $OS_VER < 12 )) && (( $OS_VER >= 11 )); then
  wget -nc https://dl.winehq.org/wine-builds/debian/dists/bullseye/winehq-bullseye.sources
  sudo mv winehq-bullseye.sources /etc/apt/sources.list.d/
elif (( $OS_VER <= 10 )); then
  wget -nc https://dl.winehq.org/wine-builds/debian/dists/buster/winehq-buster.sources
  sudo mv winehq-buster.sources /etc/apt/sources.list.d/
fi

#  Update package and install Wine
sudo apt update
sudo apt upgrade
sudo apt install --install-recommends winehq-$WINE_VERSION

#  Download MetaTrader
wget $URL

#  Set environment to Windows 10
WINEPREFIX=~/.mt5 winecfg -v=win10
#  Start MetaTrader installer
WINEPREFIX=~/.mt5 wine mt5setup.exe

保存 shell 脚本,然后使其可执行

chmod +x mt5debian.sh

完成、

最后,您就可以在 Debian 11 Bullseye 上安装 Metatrader 5 了。

./mt5debian.sh

注意:

如果 MetaQuotes 的管理员读到了这篇文章,失败的原因是 winehq 版本库的源代码将公钥放到了 `/etc/apt/keyrings` 目录,而不是 `/usr/share/keyrings`。

因此,我们需要将公钥传递到正确的目录,这样才能成功安装 winehq。

 

你好、


输入密码后,返回 41 和 43 行出现故障

./mt5ubuntu.sh: line 41: winecfg: command not found
./mt5ubuntu.sh: line 43: wine: command not found


会是什么原因呢?