Linux工具篇 | Ubuntu利用deepin-wine安装企业微信
原创
©著作权归作者所有:来自51CTO博客作者Neutionwei的原创作品,请联系作者获取转载授权,否则将追究法律责任
一、下面讲讲在ubuntu 环境下如何安装企业版微信:
(1)打开terminal:
第一步:新建一个目录并克隆deepin-wine
git clone https://gitee.com/wszqkzqk/deepin-wine-for-ubuntu.git
第二步:cd 到 deepin-wine-for-ubuntu 文件夹下面,执行下列命令
第三步:在 home 目录下新建一个文件夹,我命名的是 deepin,然后 cd 进入 deepin,执行如下命令
wget http://mirrors.aliyun.com/deepin/pool/non-free/d/deepin.com.weixin.work/deepin.com.weixin.work_2.4.16.1347deepin0_i386.deb
sudo dpkg -i deepin.com.weixin.work_2.4.16.1347deepin0_i386.deb
(2)若要装其他应用,可以参考:Index of /deepin/pool/non-free/d/
二、解决打开应用后中文乱码
第一步:上网搜索并下载 simsun.ttc 字体
第二步:将字体放入 ~/.deepinwine/XXX/drive_c/windows/Fonts 里面(XXX指 deepin 下的你安装的程序,如企业微信为 Deepin-WXWork )
cp simsun.ttc ~/.deepinwine/Deepin-WXWork/drive_c/windows/Fonts
第三步:编写 zh.reg 文件
cd ~/.deepinwine/Deepin-WXWork
vim zh.reg
zh.reg的内容:
REGEDIT4
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\FontSubstitutes]
"Arial"="simsun"
"Arial CE,238"="simsun"
"Arial CYR,204"="simsun"
"Arial Greek,161"="simsun"
"Arial TUR,162"="simsun"
"Courier New"="simsun"
"Courier New CE,238"="simsun"
"Courier New CYR,204"="simsun"
"Courier New Greek,161"="simsun"
"Courier New TUR,162"="simsun"
"FixedSys"="simsun"
"Helv"="simsun"
"Helvetica"="simsun"
"MS Sans Serif"="simsun"
"MS Shell Dlg"="simsun"
"MS Shell Dlg 2"="simsun"
"System"="simsun"
"Tahoma"="simsun"
"Times"="simsun"
"Times New Roman CE,238"="simsun"
"Times New Roman CYR,204"="simsun"
"Times New Roman Greek,161"="simsun"
"Times New Roman TUR,162"="simsun"
"Tms Rmn"="simsun"