安裝語言字體支持
- 中文字體支持
apt install ttf-wqy-zenhei
apt install fonts-wqy-microhei
- 安裝字體
- 從 Windows 7 系統(tǒng)下字體文件夾(C:\Windows\Fonts) 蕊连,拷貝如下文件到當(dāng)前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
- 修改權(quán)限扇谣,并更新字體緩存
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
- 重啟下系統(tǒng)吧昧捷!
sudo reboot
安裝相關(guān)應(yīng)用
具體流程請參考: https://elementaryos.cn/storage.html
- 導(dǎo)入軟件倉庫密匙串
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
- 執(zhí)行
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
修復(fù)微信黑色小方塊
具體流程請參考: 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
- 給腳本添加可執(zhí)行權(quán)限
chmod +x ./run-wechat.sh
此時腳本設(shè)置完成,可以嘗試執(zhí)行此腳本罐寨。腳本會在微信成功登錄之后關(guān)閉黑色色塊.
找到微信的快捷方式靡挥,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
該流程非本人編輯, 并不是所有流程都需要. 如有侵權(quán), 請聯(lián)系刪除!
參考文獻:
軟件源添加
https://elementaryos.cn/storage.html
修復(fù)黑色方塊
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