Linux Mint 20 安装微信

最近 Linux Mint 20 发布了,手痒又折腾了一下。体验了几天,个人感觉非常好,就是国产那堆应用安装麻烦了一点。感谢 deepin 对很多国产应用做了移植,适配工作,让我们可以直接在 debian 系的系统上直接安装使用。下面以安装微信为例说明一下在 debian 系的系统上怎么安装 deepin 适配过的部分国产应用。

1. 添加 apt source

在 /etc/apt/sources.list.d/ 目录下新建文件 deepin-wine.list,内容如下:

1
deb [trusted=yes] https://deepin-wine.i-m.dev /

deepin 把QQ/微信之类的 deepin wine 应用打包放在了 deepin 仓库中,因此先提取出这些应用及依赖的软件包,再减去 Debian/Ubuntu 等发行版官方仓库中固有的软件包,就可以打包成一个移植于对应发行版的“差量仓库”。感谢这个仓库的作者 https://github.com/zq1997/deepin-wine ,想了解更多的细节的话,可以去这个仓库看看。

2. 刷新软件源

1
sudo apt update

3. 查看 deepin-wine 相关的软件包

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
mint@mint-pc:~$ apt search deepin
p deepin-calculator - Calculator for DDE (Deepin Desktop Environment)
p deepin-deb-installer - Deepin Package Manager
i A deepin-fonts-wine - Windows API implementation - fonts
v deepin-fonts-wine:i386 -
p deepin-gettext-tools - Deepin Internationalization utilities
p deepin-icon-theme - Icon Theme for Deepin software and Deepin Desktop Environment
p deepin-image-viewer - Image Viewer for Deepin Desktop Environment
i A deepin-libwine:i386 - Windows API implementation - library
p deepin-menu - Deepin menu service
p deepin-movie - Deepin movie player
p deepin-music - music player with brilliant and tweakful UI
p deepin-notifications - System notifications for Deepin Desktop Environment
p deepin-picker - Color picker tool for deepin
p deepin-screen-recorder - Simple recorder tools for deepin 视频录制工具
p deepin-screenshot - Advanced screen shoting tool 截图工具
p deepin-shortcut-viewer - Pop-up shortcut viewer for Deepin applications
p deepin-terminal - Deepin terminal emulator application
p deepin-voice-recorder - Deepin's Voice recorder 录音工具
i A deepin-wine - Windows API implementation - standard suite
v deepin-wine:i386 -
i A deepin-wine-helper:i386 - Deepin Wine Helper
v deepin-wine-plugin -
i A deepin-wine-plugin:i386 - Deepin Wine plugin
i A deepin-wine-plugin-virtual - Deepin Wine plugin virtual package
v deepin-wine-plugin-virtual:i386 -
i A deepin-wine-uninstaller:i386 - Deepin Wine Uninstaller Tool
v deepin-wine32 -
i A deepin-wine32:i386 - Windows API implementation - 32-bit binary loader
i A deepin-wine32-preloader:i386 - Windows API implementation - prelinked 32-bit binary loader
p deepin.cn.360.yasuo:i386 - 360zip on Deepin Wine
p deepin.cn.com.winrar:i386 - WinRAR on Deepin Wine
p deepin.com.95579.cjsc:i386 - CHANGJIANG SECURITIES Client on Deepin Wine
p deepin.com.aaa-logo:i386 - SWGSoft AAALogo on Deepin Wine
p deepin.com.baidu.pan:i386 - Baidu net disk client on Deepin Wine 百度网盘
p deepin.com.cmbchina:i386 - CMBChina Client on Deepin Wine
i deepin.com.foxmail:i386 - Tencent Foxmail Client on Deepin Wine
p deepin.com.gtja.fuyi:i386 - GUOTAI JUNAN SECURITIES RichEasy Client on Deepin Wine
p deepin.com.qq.b.crm:i386 - Tencent bizQQ Client on Deepin Wine
p deepin.com.qq.b.eim:i386 - Tencent QQEIM Client on Deepin Wine
p deepin.com.qq.im:i386 - Tencent QQ Client on Deepin Wine QQ
p deepin.com.qq.im.light:i386 - Tencent QQ Client on Deepin Wine TIM
p deepin.com.qq.office:i386 - Tencent TIM Client on Deepin Wine
p deepin.com.qq.rtx2015:i386 - Tencent QQ Client on Deepin Wine
p deepin.com.taobao.aliclient.qianniu:i386 - Ali Qian Niu Client on Deepin Wine 阿里千牛
p deepin.com.taobao.wangwang:i386 - Ali WangWang Client on Deepin Wine 阿里旺旺
p deepin.com.thunderspeed:i386 - Thunder Speed Client on Deepin Wine 迅雷下载
i deepin.com.wechat:i386 - Tencent WeChat Client on Deepin Wine 微信
p deepin.com.weixin.work:i386 - Tencent WeChat Work Client on Deepin Wine 企业微信
p deepin.net.263.em:i386 - 263 EM Client on Deepin Wine
p deepin.org.7-zip:i386 - 7-Zip on Deepin Wine
p deepin.org.foobar2000:i386 - Foobar2000 on Deepin Wine
v deepinwine-cmbchina:i386 -
v libqt5deepintheme-plugin -
mint@mint-pc:~$

根据包名大概可以知道是哪些软件。

4. 安装微信

只要执行以下命令即可

1
2
3
sudo apt install deepin.com.wechat
sudo apt install deepin-screenshot
sudo apt install libjpeg62:i386

deepin-screenshot :深度截图
libjpeg62:i386 :不安装这个包的话,发送不了截图。

之前旧版本安装完之后,就可以直接从应用列表里面看到了,但 2020-10 月之后更新了新版本,新版本的安装位置变成了 /opt/apps,这个路径不在标准的应用 desktop 配置搜索路径。
所以新版本还要做些设置才能在应用列表里面显示。
在 ~/.profile 文件最后面添加以下配置:

1
2
3
4
5
6
7
XDG_DATA_DIRS=${XDG_DATA_DIRS:-/usr/local/share:/usr/share}
for deepin_dir in /opt/apps/*/entries; do
if [ -d "$deepin_dir/applications" ]; then
XDG_DATA_DIRS="$XDG_DATA_DIRS:$deepin_dir"
fi
done
export XDG_DATA_DIRS

然后重启就行了

5. 截图

默认的截图快捷键是 Alt + A,但这个快捷键只有焦点在微信界面的时候才可以使用。
为了能够全局截图,我们可以使用深度截图。打开 系统设置 –> 键盘 –> 快捷键 –> 自定义快捷键
设置如下:
添加全局截图快捷键1
添加全局截图快捷键2

然后就可以全局使用 Ctrl + Alt + A 来截图啦。