安装语言字体支持
- 中文字体支持
apt install ttf-wqy-zenhei
apt install fonts-wqy-microhei
- 安装字体
- 从 Windows 7 系统下字体文件夹(C:\Windows\Fonts) ,拷贝如下文件到当前Ubuntu用户目录 ~/xx/
宋体:simsunb.ttf 和 simsun.ttc
微软雅黑:msyhbd.ttf
Courier New:courbd.ttf、courbi.ttf、couri.ttf 和 cour.ttf
WPS Office 所需字体:wingding.ttf、webdings.ttf、symbol.ttf、WINGDNG3.TTF、INGDNG2.TTF、MTExtra.ttf
- 新建字体存放目录 windows-font
sudo mkdir /usr/share/fonts/truetype/windows-font
- 拷贝字体到wiondow-font目录下
sudo cp ~/xx/* /usr/share/fonts/truetype/windows-font
- 修改权限,并更新字体缓存
sudo chmod -R 777 /usr/share/fonts/truetype/windows-font
cd /usr/share/fonts/truetype/windows-font
sudo mkfontscale
sudo mkfontdir
sudo fc-cache -fv
- 重启下系统吧!
sudo reboot
安装相关应用
具体流程请参考: https://elementaryos.cn/storage.html
- 导入软件仓库密匙串
sudo wget -O - http://package.elementaryos.cn/bionic/key/package.gpg.key | sudo apt-key add -
- 编辑文件
sudo vim /etc/apt/sources.list
添加deb http://package.elementaryos.cn/bionic/ bionic main
- 执行
sudo apt update
- 安装软件包:
sudo apt install 软件包
sudo apt install deepin.com.qq.im
sudo apt install deepin.com.wechat
sudo apt install deepin.com.weixin.work
修复微信黑色小方块
具体流程请参考: https://www.diqigan.cn/posts/wine-wechat-black-square-fix.html
- 安装 xdotool
sudo apt-get install xdotool
- wine 微信启动脚本
#!/bin/bash
"/opt/deepinwine/apps/Deepin-WeChat/run.sh">/dev/null 2>&1
start_succ=false
for i in {1..5}
do
xdotool search --onlyvisible --classname "WeChat.exe"
if [ $? == 0 ]
then
start_succ=true
break
fi
sleep 10
done
if [ $start_succ == false ]
then
exit 1
fi
windowclose=false
while :
do
retval=$(xdotool search --onlyvisible --classname "WeChat.exe")
if [ $? != 0 ]
then
exit 0
fi
login=true
for id in $retval
do
windowname=$(xdotool getwindowname $id)
if [ "$windowname" == "登录" ]
then
login=false
fi
if [ $windowclose == true ] && ([ "$windowname" == "" ] || [ "$windowname" == "ChatContactMenu" ])
then
xdotool windowclose $id
fi
done
if [ $windowclose == true ]
then
exit 0
fi
if [ $login == true ]
then
windowclose=true
fi
sleep 2
done
- 给脚本添加可执行权限
chmod +x ./run-wechat.sh
此时脚本设置完成,可以尝试执行此脚本。脚本会在微信成功登录之后关闭黑色色块.
找到微信的快捷方式,deepin-wine-wechat 的快捷方式为 /usr/share/applications/deepin.com.wechat.desktop, 将 desktop 文件中 Exec 一行修改为:
Exec="${path}/run-wechat.sh" -u %u
顶部程序托盘
sudo apt install gnome-shell-extension-top-icons-plus
该流程非本人编辑, 并不是所有流程都需要. 如有侵权, 请联系删除!
参考文献:
软件源添加
https://elementaryos.cn/storage.html
修复黑色方块
https://www.diqigan.cn/posts/wine-wechat-black-square-fix.html
https://github.com/wszqkzqk/deepin-wine-ubuntu/issues/207
字体安装
https://www.cnblogs.com/52php/p/5678005.html