安装wine

// 查看:
apt-cache policy wine
// 支持32位程序:
sudo dpkg --add-architecture i386
// 安装:
sudo apt-get -y install wine

中文乱码处理
1、下载:simsun.ttc 百度网盘链接 提取码:1234

其实可以在window系统里:C:\Windows\Fonts下面找到自己需要的字体,然后复制过来就行了
simkai.ttf 楷体、stsong.ttf 华文宋体、simsun.ttc 宋体 …

2、复制:cp simsun.ttc ~/.wine/drive_c/windows/Fonts/
(没有目录情创建:sudo mkdir -p ~/.wine/drive_c/windows/Fonts)
3、Fonts目录下创建:vim 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"

4、执行 regedit zh.reg
成功是没有提示的!第一次可能会出现如下:

kong8@kong:~/.wine/drive_c/windows/Fonts$ regedit zh.reg

0012:err:ole:marshal_object couldn't get IPSFactory buffer for interface {00000}
0012:err:ole:marshal_object couldn't get IPSFactory buffer for interface {6d51}
0012:err:ole:StdMarshalImpl_MarshalInterface Failed to create ifstub, hres=0x800
0012:err:ole:CoMarshalInterface Failed to marshal the interface {6d5140}, 80004002
0012:err:ole:get_local_server_stream Failed: 80
0014:err:ole:marshal_object couldn't get IPSFactory buffer for interface {00000}
0014:err:ole:marshal_object couldn't get IPSFactory buffer for interface {6d514}
0014:err:ole:StdMarshalImpl_MarshalInterface Failed to create ifstub, hres=0x
0014:err:ole:CoMarshalInterface Failed to marshal the interface {6d514}, 80
0014:err:ole:get_local_server_stream Failed: 80
Could not load wine-gecko. HTML rendering will be disabled.
Could not load wine-gecko. HTML rendering will be disabled.
wine: configuration in '/home/kong8/.wine' has been updated.

kong8@kong:~/.wine/drive_c/windows/Fonts$ regedit zh.reg 

kong8@kong:~/.wine/drive_c/windows/Fonts$ regedit zh.reg 

5、可以执行winecfg进行配置

winecfg
Logo

为开发者提供学习成长、分享交流、生态实践、资源工具等服务,帮助开发者快速成长。

更多推荐