微信,大到简直让人发指,估计功能已经不只是个.....那么简单。奈何大家都还用。

在本教程中,我们将说明如何在ubuntu 20.04以及ubuntu 18.04上安装微信

添加GPG key

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 425956BB3E31DF51
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 1C30362C0A53D5BB

添加deepin源

echo "deb [by-hash=force] https://community-packages.deepin.com/deepin apricot main contrib non-free" | sudo tee  /etc/apt/sources.list.d/deepin.list
echo "deb https://community-store-packages.deepin.com/appstore eagle appstore" | sudo tee  /etc/apt/sources.list.d/deepin_appstore.list

安装deepin-wine微信

codename=`cat /etc/lsb-release |grep DISTRIB_CODENAME|awk -F '=' '{print $2}'`
sudo dpkg --add-architecture i386
sudo apt update
sudo apt install -t $codename deepin-wine5 -fy
sudo apt install -t $codename com.qq.weixin.deepin fonts-wqy-microhei

解决Ubuntu 微信字体框框的问题

微信自带字体,理论上你不会遇到字体框框的问题,如果如何这个问题可以尝试设置环境变量LC_ALL=zh_CN.UTF-8到微信启动脚本,执行下面命令的将会自动添加环境变量LC_ALL=zh_CN.UTF-8到微信启动脚本中

sed -i.bak '2i export LC_ALL=zh_CN.UTF-8' /opt/apps/com.qq.weixin.deepin/files/run.sh

完全退出微信

如果你启动微信然后退出,别以为真的就退出,你可以执行以下命令的查看输出

ps aux | grep WeChat  | grep -v grep

输出如下:

myfreax+   22029  3.9  1.3 2914588 224916 pts/0  SLl  16:23   0:04 c:/Program Files/Tencent/WeChat/WeChat.exe
myfreax+   22214  3.0  1.1 2014600 186008 pts/0  Sl   16:24   0:02 c:\Program Files\Tencent\WeChat\WeChatApp.exe --applet_init_config={"appId":"preload_1617092662538_0","appVersion":0,"brandName":"","clientVersion":1644758313,"debugType":0,"deviceType":"Windows+7","iconUrl":"","isMiniGame":false,"isNativeView":false,"isPreload":true,"isTest":false,"moduleListInfo":"","orientation":"","originalFlag":0,"originalRedirectUrl":"","productId":1000,"referrer":{"agentId":"","appId":"","launchScene":10086,"sourceType":0},"remote_debug_endpoint":"","shareKey":"","shareName":"","uin":"2752111660","username":"","versionState":0,"wxIconUrl":""} --applet_init_config_ex={"clientJsExtInfo":"","commonJsInfo":"{\"publicVer\":317}\n","dataPath":"C:\\users\\huangyanxiong\\My Documents\\WeChat Files\\huangyanxiong-Lsmile\\Applet\\","enterPath":"","extraData":"","logPath":"C:\\users\\HUAN~PA1\\APPL~JHT\\Tencent\\WeChat\\log\\","messageExtraData":"","nickName":"","openapiInvokeData":"","operationInfo":"","pkgDirPath":"","privateExtraData":"","publicPkgDirPath":"C:\\users\\huangyanxiong\\My Documents\\WeChat Files\\Applet\\publicLib\\317\\clientPublicLib.wxapkg","publicVer":0,"signature":"","tmpPath":"","transitiveData":"","url":"","wxNickName":""}

可以看出微信还存在两个进程,我们不知道它还在干什么,一条命令送走它。别占用系统资源,留着没用。

pkill -i wechat