在 openSUSE-Leap-15.2-DVD-x86_64 下安装 wine5.0 再使用微信最新版本
其实是非常简单的,不需要安装 deepin-wine 的,也不需要安装旧版本微信,只用 zypper 安装 wine5.0,不需要最新版本 wine,但需要安装最新版本微信 3.3.5.50 就可以发送图片也可以播放小视频了
一、安装 wine
localhost:~ # zypper install wine
就一条命令就可以了,会自动下载和安装 104 多个包
Loading repository data…
Reading installed packages…
Resolving package dependencies…
The following 4 NEW packages are going to be installed:
wine wine-32bit wine-mono winetricks
The following 2 recommended packages were automatically selected:
wine-mono winetricks
4 new packages to install.
Overall download size: 121.8 MiB. Already cached: 0 B. After the operation, additional 505.8 MiB will be used.
Continue? [y/n/v/…? shows all options] (y):
Retrieving package wine-32bit-5.0-lp152.1.2.x86_64 (1/4), 23.1 MiB (213.9 MiB unpacked)
Retrieving: wine-32bit-5.0-lp152.1.2.x86_64.rpm …[done (361.4 KiB/s)]
Retrieving package wine-5.0-lp152.1.2.x86_64 (2/4), 23.9 MiB (215.1 MiB unpacked)
ruhong@localhost:~> wine --version
wine-5.0
二、安装最新版本微信 3.3.5.50
到腾讯微信官网 https://pc.weixin.qq.com/?t=win_weixin&lang=en 下载
https://dldir1.qq.com/weixin/Windows/WeChatSetup.exe
一定要以普通用户身份运行 wine WeChat3.3.5.50_setup.exe
ruhong@localhost:~> cd /home/ruhong/下载/
ruhong@localhost:~/下载> wine WeChat3.3.5.50_setup.exe
出现登录二维码,用手机微信扫描登录,这时是可以输入文字发送文字,但是在输入框中不会显示出来光标和文字的
三、安装 riched20 让在输入框中显示光标和文字
参考这篇博文的解决方法:https://blog.csdn.net/Ivansyi/article/details/105616383
ruhong@localhost:~> winetricks riched20
运行一次 winetricks riched20 产生/home/ruhong/.cache/winetricks/win2ksp4/文件夹,提示无法下载成功,使用别人提供的网址能下载成功大小为 129MB
https://saimei.ftp.acc.umu.se/mirror/archive/ftp.sunet.se/pub/security/vendor/microsoft/win2000/Service_Packs/usa/W2KSP4_EN.EXE
https://whp-aus2.cold.extweb.hp.com/pub/softlib/software/msi/InstMsiW.exe
ruhong@localhost:~> cp /home/ruhong/download/W2KSP4_EN.EXE /home/ruhong/.cache/winetricks/win2ksp4/
将 W2KSP4_EN.EXE 复制到/home/ruhong/.cache/winetricks/win2ksp4/文件夹,再运行 winetricks riched20 就成功了
ruhong@localhost:~> winetricks riched20
四、到 C 盘 Windwos/Fonts 下将所有字体文件复制到/home/ruhong/.wine/drive_c/windows/Fonts/
ruhong@localhost:~> cp /mnt/sda1/Windows/Fonts/* /home/ruhong/.wine/drive_c/windows/Fonts/
ruhong@localhost:~> ls /home/ruhong/.wine/drive_c/windows/Fonts/
8514fixe.fon cambriab.ttf dosapp.fon lvnm.ttf serifft.fon upcei.ttf
8514fix.fon cambriai.ttf ebrimabd.ttf majallab.ttf Shonarb.ttf upcel.ttf
8514fixg.fon cambria.ttc ebrima.ttf majalla.ttf Shonar.ttf upcfbi.ttf
8514fixr.fon CAMBRIA.TTf ega40737.fon malgunbd.ttf shrutib.ttf upcfb.ttf