在openSUSE-Leap-15.5-DVD-x86_64中使用deepin-wine-6.0.0.62再使用微信3.9.5

2023-12-19 06:44:00

在openSUSE-Leap-15.5-DVD-x86_64中使用deepin-wine-6.0.0.62再使用微信3.9.5

参考文章:
《记录-下fedora 33安装deepin qq和微信 ,不需要安装deepinwine》
https://tieba.baidu.com/p/7279470269

《opensuse使用virtualbox安装win10》
https://blog.csdn.net/inxunxun/article/details/128178351?spm=1001.2014.3001.5506

《virtualbox增强功能-VBoxGuestAdditions安装》
https://blog.csdn.net/MR_Zhan_C/article/details/113247332?spm=1001.2014.3001.5506

总体思路是在openSUSE-Leap-15.5-DVD-x86_64中安装virtualbox-7.0.8再安装deepin-desktop-community23-Beta2-amd64.iso得到deepin-wine-6.0.0.62和微信3.9.5
再回到openSUSE-Leap-15.5-DVD-x86_64中安装deepin-wine-6.0.0.62和微信3.9.5

一、到深度官网下载deepin-desktop-community-23-Beta2-amd64.iso
到深度官网https://www.deepin.org/zh/download/下载deepin-desktop-community-23-Beta2-amd64.iso,大小为4.2GB
https://cdimage.deepin.com/releases/23-Beta2/

二、在openSUSE-Leap-15.5-DVD-x86_64中安装virtualbox-7.0.8
应用程序——工具——终端
ruhong@localhost:~> su -
密码:
localhost:~ #
由普通用户ruhong切换到root用户
localhost:~ # zypper search virtualbox
localhost:~ # zypper install virtualbox virtualbox-guest-desktop-icons virtualbox-kmp-default virtualbox-host-source virtualbox-guest-source virtualbox-guest-tools virtualbox-vnc
localhost:~ # usermod -a -G vboxusers ruhong
重启opensuse15.5

三、启动virtualbox-7.0.8再安装deepin-desktop-community-23-Beta2-amd64.iso
应用程序——系统工具——Oracle VM VirtualBox——新建
名称填写deepin23beta2
文件夹选择C盘/mnt/sda1 虽然C盘是ntfs格式,也是可以被linux使用的,主要是C盘有20GB以上的磁盘空间可用
虚拟光盘选择已经下载好的deepin-desktop-community-23-Beta2-amd64.iso
在这里插入图片描述

内存大小和处理器数量都不用修改,勾选启用EFI(只针对某些操作系统)

单击现在创建虚拟硬盘,磁盘空间大小为21GB,不用勾选预先分配全部空间

启动——选择Install Deepin 23 kernel 5.15 desktop——黑屏并等待2分钟左右——简体中文,勾选我已仔细阅读并同意——自定义安装——单击空闲21.5Gib右边的加号图标——格式化整个磁盘,单击确定——再次单击空闲21.5Gib右边的加号图标——系统空间调到最大值21.5Gib,数据空间为0,单击确定——自动出现EFI、Roota和SWAP三个分区,都不用调整,单击下一步——开始安装,整个过程大约是15分钟左右
在这里插入图片描述

创建普通用户suozhang和密码,是不需要设置root用户的密码的——以普通用户suozhang登录并输入密码——选择高效模式和普通模式

四、安装增强功能VBoxGuestAdditions_7.0.8.iso
到http://download.virtualbox.org/virtualbox下载,大小为52MB
http://download.virtualbox.org/virtualbox/7.0.8/VBoxGuestAdditions_7.0.8.iso
关机deepin23beta2——设置——存储——单击分配光驱最右边蓝色圆形图标——选择虚拟盘——选择VBoxGuestAdditions_7.0.8.iso——确定
在这里插入图片描述

启动deepin23beta2——单击左下角图标——终端
物理机opensuse15.5能够上网,虚拟机deepin23beta2也能跟着上网的,不需要额外设置的

suozhang@suozhang-PC:~$ sudo su -
请输入密码: 输入普通用户suozhang的密码再按回车键
验证成功
root@suozhang-PC:~# apt install console-setup
root@suozhang-PC:~# df
文件系统 1K的块 已用 可用 已用% 挂载点
udev 952220 0 952220 0% /dev
tmpfs 201420 2728 198692 2% /run
/dev/sda2 19945072 14541900 4364684 77% /
tmpfs 1007084 0 1007084 0% /dev/shm
tmpfs 5120 4 5116 1% /run/lock
/dev/sda1 306572 9260 297312 4% /boot/efi
tmpfs 201416 40 201376 1% /run/user/1000
/dev/sr0 52232 52232 0 100% /media/suozhang/VBox_GAs_7.0.8

root@suozhang-PC:~# cd /media/suozhang/VBox_GAs_7.0.8/
root@suozhang-PC:/media/suozhang/VBox_GAs_7.0.8# ./VBoxLinuxAdditions.run
要等待3分钟才能完成安装——重启deepin23beta2

五、设置共享文件夹opensuse15.5
在opensuse15.5中在普通用户ruhong的家目录/home/ruhong里创建文件夹opensuse15.5
ruhong@localhost:~> pwd
/home/ruhong
ruhong@localhost:~> mkdir opensuse15.5
ruhong@localhost:~> cd opensuse15.5
ruhong@localhost:~/opensuse15.5> touch 20231217.txt
ruhong@localhost:~/opensuse15.5> ls
20231217.txt
ruhong@localhost:~/opensuse15.5>

设备——共享粘贴板——双向
设备——共享文件夹——单击最右边的蓝色加号图标——选择/home/ruhong/opensuse15.5——确定
在这里插入图片描述

在deepin23beta2创建挂载点vboxsf01并挂上opensuse15.5
root@suozhang-PC:~# mkdir /mnt/vboxsf01
root@suozhang-PC:~# mount -t vboxsf opensuse15.5 /mnt/vboxsf01/
root@suozhang-PC:~# ls /mnt/vboxsf01/
20231217.txt
root@suozhang-PC:~#

六、下载deepin-wine-6.0.0.62和微信3.9.5
单击左下角的应用商店——找到微信并单击安装
在这里插入图片描述

root@suozhang-PC:~# dpkg -l |grep wine
iU deepin-wine-helper 5.2.31-1 amd64 Deepin Wine Helper
iU deepin-wine-runtime 0.1.6 amd64 Deepin Wine runtime
iU deepin-wine6-stable 6.0.0.62-1 amd64 WINE Is Not An Emulator - runs MS Windows programs Wine is a program which allows running Microsoft Windows programs (including DOS, Windows 3.x and Win32 executables) on Unix. . This package contains the files needed to support 64-bit Windows programs.
ii libdeepin-kwineffects13 4:5.25.11-kwin.5.24.3 amd64 KDE window manager effects library
root@suozhang-PC:~# dpkg -l |grep weixin
ii com.qq.weixin.deepin:i386 3.9.5.80deepin10 i386 Tencent WeChat Client on Deepin Wine6

下载与微信相关的软件包并移动到vboxsf01文件夹中
root@suozhang-PC:~# apt download deepin-wine-helper
root@suozhang-PC:~# apt download deepin-wine-runtime
root@suozhang-PC:~# apt download deepin-wine6-stable
root@suozhang-PC:~# apt download com.qq.weixin.deepin
root@suozhang-PC:~# apt download fonts-noto-cjk
root@suozhang-PC:~# ls
com.qq.weixin.deepin_3.9.5.80deepin10_i386.deb 大小为198MB
deepin-wine6-stable_6.0.0.62-1_amd64.deb 大小为51MB
deepin-wine-helper_5.2.31-1_amd64.deb 大小为668KB
deepin-wine-runtime_0.1.6_amd64.deb 大小为135MB
fonts-noto-cjk_1%3a20201206-cjk+repack1-1_all.deb 大小为53MB
root@suozhang-PC:~# mv *.deb /mnt/vboxsf01/

七、在opensuse15.5中安装deepin-wine-6.0.0.62和微信3.9.5
ruhong@localhost:~> su -
密码:
localhost:~ # cd /home/ruhong/opensuse15.5/
localhost:/home/ruhong/opensuse15.5 # ls
20231217.txt
com.qq.weixin.deepin_3.9.5.80deepin10_i386.deb
deepin-wine-helper_5.2.31-1_amd64.deb
deepin-wine-runtime_0.1.6_amd64.deb
deepin-wine6-stable-6.0.0.62-2.x86_64.rpm
deepin-wine6-stable_6.0.0.62-1_amd64.deb
fonts-noto-cjk_1%3a20201206-cjk+repack1-1_all.deb
localhost:/home/ruhong/opensuse15.5 # dpkg --install *.deb
最后因为缺少依赖未能装上deepin-wine6-stable_6.0.0.62-1_amd64.deb,只能强制安装了
localhost:/home/ruhong/deepin-wine-6.0.0.62 # dpkg --install --force-depends deepin-wine6-stable_6.0.0.62-1_amd64.deb

也可以使用alien命令将deb格式转换为rpm格式,但是耗时比较长,如果个人时间允许,最好还是转换为rpm格式最好,使用zypper能够补上缺少的依赖软件包
localhost:~ # date ; alien --to-rpm /home/ruhong/deepin-wine-6.0.0.62/deepin-wine6-stable_6.0.0.62-1_amd64.deb ; date
Mon Dec 18 23:15:56 CST 2023
deepin-wine6-stable-6.0.0.62-2.x86_64.rpm generated
Mon Dec 18 23:53:03 CST 2023
处理51MB的deb软件包就耗时38分钟

八、启动微信3.9.5
localhost:~ # dpkg -l
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
++±=---==========================================
iU com.51dzt.deepin:i386 22057.12012.0dee i386 TypeEasy Client on Deepin Wine6
ii com.alibabainc.dingtalk 7.0.40.30829 amd64 钉钉
iU com.cchess2010.deepin:i 1.31.2010deepin1 i386 Chinese Chess on Deepin Wine
iU com.qq.weixin.deepin:i3 3.9.5.80deepin10 i386 Tencent WeChat Client on Deepin Wine6
iU deepin-wine-helper 5.2.31-1 amd64 Deepin Wine Helper
iU deepin-wine-runtime 0.1.6 amd64 Deepin Wine runtime
ii deepin-wine6-stable 6.0.0.62-1 amd64 WINE Is Not An Emulator - runs MS Windows programs W
ii fonts-noto-cjk 1:20201206-cjk+r all “No Tofu” font families with large Unicode coverage
localhost:~ # dpkg -L com.qq.weixin.deepin
/.
/opt
/opt/appscom.qq.weixin.deepin:i3 3.9.5.80deepin10 i386 Tencent WeChat Client on Deepin Wine6
iU deepin-wine-helper 5.2.31-1 amd64 Deepin Wine Helper
iU deepin-wine-runtime 0.1.6 amd64 Deepin Wine runtime
ii deepin-wine6-stable 6.0.0.62-1 amd64 WINE Is Not An Emulator - runs MS Windows programs W
ii fonts-noto-cjk
/opt/apps/com.qq.weixin.deepin
/opt/apps/com.qq.weixin.deepin/entries
/opt/apps/com.qq.weixin.deepin/entries/applications
/opt/apps/com.qq.weixin.deepin/entries/applications/com.qq.weixin.deepin.desktop
/opt/apps/com.qq.weixin.deepin/entries/icons
/opt/apps/com.qq.weixin.deepin/entries/icons/hicolor
/opt/apps/com.qq.weixin.deepin/entries/icons/hicolor/48x48
/opt/apps/com.qq.weixin.deepin/entries/icons/hicolor/48x48/apps
/opt/apps/com.qq.weixin.deepin/entries/icons/hicolor/48x48/apps/com.qq.weixin.deepin.svg

localhost:~ # cat /opt/apps/com.qq.weixin.deepin/entries/applications/com.qq.weixin.deepin.desktop
#!/usr/bin/env xdg-open

[Desktop Entry]
Encoding=UTF-8
Type=Application
X-Created-By=Deepin WINE Team
Categories=chat;
Icon=com.qq.weixin.deepin
Exec=“/opt/apps/com.qq.weixin.deepin/files/run.sh” -f %f
Name=WeChat
Name[zh_CN]=微信
Comment=Tencent WeChat Client on Deepin Wine6
StartupWMClass=WeChat.exe
MimeType=

要以普通用户ruhong运行/opt/apps/com.qq.weixin.deepin/files/run.sh启动微信,跳出二维吗,使用手机微信扫描登录
ruhong@localhost:~> /opt/apps/com.qq.weixin.deepin/files/run.sh

localhost:~ # cp /opt/apps/com.qq.weixin.deepin/entries/applications/com.qq.weixin.deepin.desktop /usr/share/applications/
localhost:~ # vim /usr/share/applications/com.qq.weixin.deepin.desktop
将这行
Icon=com.qq.weixin.deepin
改为
Icon=/opt/apps/com.qq.weixin.deepin/entries/icons/hicolor/48x48/apps/com.qq.weixin.deepin.svg

应用程序——其它——微信——手机扫码登录——左下角三根横线——设置——通用设置——勾选使用系统默认浏览器打开网页

九、卸载deepin-wine-6.0.0.62和微信3.9.5
localhost:~ # dpkg --purge com.qq.weixin.deepin
localhost:~ # dpkg --purge deepin-wine-helper
localhost:~ # dpkg --purge deepin-wine-runtime
localhost:~ # dpkg --purge deepin-wine6-stable
localhost:~ # dpkg --purge fonts-noto-cjk

十、已经出现的问题
报错——could not LoadLibrary: msmpeg2vdec.dll: 找不到模块。
不能播放微信中的视频
在这里插入图片描述

文章来源:https://blog.csdn.net/weixin_42145772/article/details/135074804
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。