在Ubuntu20.04使用微信和企业微信

在Ubuntu20.04使用微信和企业微信

  1. 安装deepin
    修改软件源为阿里镜像仓库:
    1) 备份原始文件 sudo cp /etc/apt/sources.list /etc/apt/sources.list,bak
    2) 修改文件 通过sudo gedit /etc/apt/sources.list打开文件,将以下内容拷贝至文件后保存关闭
deb http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse

3)执行sudo apt-get update
4)新建一个临时文件夹,用来存放deepin-wine的安装包

	  mkdir deepin-wine
	  cd deepin-wine

5)使用wget 下载deepin-wine安装包

	wget http://mirrors.aliyun.com/deepin/pool/non-free/d/deepin-wine/deepin-wine_2.18-22~rc0_all.deb
	wget http://mirrors.aliyun.com/deepin/pool/non-free/d/deepin-wine/deepin-wine32_2.18-22~rc0_i386.deb
	wget http://mirrors.aliyun.com/deepin/pool/non-free/d/deepin-wine/deepin-wine32-preloader_2.18-22~rc0_i386.deb
	wget http://mirrors.aliyun.com/deepin/pool/non-free/d/deepin-wine-helper/deepin-wine-helper_1.2deepin8_i386.deb
	wget http://mirrors.aliyun.com/deepin/pool/non-free/d/deepin-wine-plugin/deepin-wine-plugin_1.0deepin2_amd64.deb
	wget http://mirrors.aliyun.com/deepin/pool/non-free/d/deepin-wine-plugin-virtual/deepin-wine-plugin-virtual_1.0deepin3_all.deb
	wget http://mirrors.aliyun.com/deepin/pool/non-free/d/deepin-wine-uninstaller/deepin-wine-uninstaller_0.1deepin2_i386.deb
	wget http://mirrors.aliyun.com/deepin/pool/non-free/u/udis86/udis86_1.72-2_i386.deb
	wget http://mirrors.aliyun.com/deepin/pool/non-free/d/deepin-wine/deepin-fonts-wine_2.18-22~rc0_all.deb
	wget http://mirrors.aliyun.com/deepin/pool/non-free/d/deepin-wine/deepin-libwine_2.18-22~rc0_i386.deb
	wget https://mirrors.aliyun.com/deepin/pool/main/libj/libjpeg-turbo/libjpeg62-turbo_1.5.1-2_amd64.deb
	wget https://mirrors.aliyun.com/deepin/pool/main/libj/libjpeg-turbo/libjpeg62-turbo_1.5.1-2_i386.deb

6)添加32位支持

	sudo dpkg --add-architecture i386
	sudo apt-get update

7)开始安装

	sudo dpkg -i *.deb

8)修复依赖关系,若出现错误,请执行 sudo apt install -fy --fix-missing

	sudo apt install -fy
  1. 安装微信和企业微信
    1. 下载安装包:
	wget "https://mirrors.aliyun.com/deepin/pool/non-free/d/deepin.com.wechat/deepin.com.wechat_2.6.8.65deepin0_i386.deb"
	wget "https://mirrors.aliyun.com/deepin/pool/non-free/d/deepin.com.weixin.work/deepin.com.weixin.work_2.8.10.2010deepin0_i386.deb"

2)安装软件包

	sudo dpkg -i deepin.com.wechat_2.6.8.65deepin0_i386.deb
	sudo dpkg -i deepin.com.weixin.work_2.8.10.2010deepin0_i386.deb

https://mirrors.aliyun.com/deepin/pool/non-free/d中还有很多其他可使用软件,安装方法同上。
3. 解决中文显示乱码的问题 转自(https://blog.csdn.net/hymanjack/article/details/100168300)
1) 界面乱码
使用以下命令打开两个文件,将文中的WINE_CMD="deepin-wine"替换为WINE_CMD="LC_ALL=zh_CN.UTF-8 deepin-wine"并保存退出

	sudo gedit /opt/deepinwine/tools/run.sh
	sudo gedit /opt/deepinwine/tools/run_v2.sh

2)中文输入乱码问题
i:下载字体msyh.ttc
下载地址一:蓝奏云 (推荐)https://www.lanzous.com/i5wivmd
下载地址二:百度网盘 链接: https://pan.baidu.com/s/1rkjkmGJlpdaijCEWi7TZIw 提取码: btxw
ii:将下载的字体解压,然后:

	cp msyh.ttc ~/.deepinwine/Deepin-WeChat/drive_c/windows/Fonts
	cp msyh.ttc ~/.deepinwine/Deepin-WXWork/drive_c/windows/Fonts

iii:修改系统注册表

	gedit ~/.deepinwine/Deepin-WeChat/system.reg

通过上述命令打开文件更改以下两行内容为:

	"MS Shell Dlg"="msyh"
	"MS Shell Dlg 2"="msyh"

iiii:字体注册

	gedit msyh_config.reg

在文件msyh_config.reg内添加如下内容:

	REGEDIT4
	[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\FontLink\SystemLink]
	"Lucida Sans Unicode"="msyh.ttc"
	"Microsoft Sans Serif"="msyh.ttc"
	"MS Sans Serif"="msyh.ttc"
	"Tahoma"="msyh.ttc"
	"Tahoma Bold"="msyhbd.ttc"
	"msyh"="msyh.ttc"
	"Arial"="msyh.ttc"
	"Arial Black"="msyh.ttc"

注册

	deepin-wine regedit msyh_config.reg

完成上述内容后,那么恭喜你,你已经完成所有操作步骤了,打开程序搜索框搜索程序尽情享用吧!!!

©️2020 CSDN 皮肤主题: 数字20 设计师:CSDN官方博客 返回首页