安装Wine
1.命令行方式
1.1添加软件源ppa
(1)Ubuntu软件中心>编辑>软件源>其他>添加 输入apt行:ppa:ubuntu-wine/ppa或者ppa:wine-cn/ppa
1.2更新
sudo apt-get update
1.3安装
sudo apt-get install wine
1.4解决中文乱码问题
ln -s /usr/share/fonts/truetype/wqy/wqy-microhei.ttc ~/.wine/drive_c/windows/Fonts/
gedit zh.reg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
| REGEDIT4 [HKEY_CURRENT_USER\Software\Wine] "Version" = "win7" [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\FontSubstitutes] "Tahoma" = "WenQuanYi Micro Hei" [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\FontLink\SystemLink] "Lucida Sans Unicode" = "wqy-microhei.ttc,wqy-microhei" "Microsoft Sans Serif" = "wqy-microhei.ttc,wqy-microhei" "SimSun" = "wqy-microhei.ttc,wqy-microhei" "Tahoma" = "wqy-microhei.ttc,wqy-microhei" [HKEY_CURRENT_USER\Control Panel\Desktop] "FontSmoothing" = "2" |
1.5处理中文汉字前二个子为方块的 BUG
复制oleaut32.dll,msvcirt.dll
cp C:\WINDOWS\system32\{oleaut32.dll,msvcirt.dll} ~/.wine/drive_c/windows/system32/
在 wine 的配置中,加入一个 oleaut32.dll 的原装先于内建
2.另外可以通过软件中心安装 Microsoft Windows Compatibility Layer (meta package)来安装wine(慢)
wget http://winetricks.org/winetricks
chmod +x winetricks
chmod +x winetricks
sh winetricks msxml3 gdiplus riched20 riched30 ie6 vcrun6 vcrun2005sp1
注意会提示需要手动下载msxml3.msi然后保存到~/.cache/winetricks/msxml3目录
继续执行
sh winetricks msxml3 gdiplus riched20 riched30 ie6 vcrun6 vcrun2005sp1
继续执行
sh winetricks msxml3 gdiplus riched20 riched30 ie6 vcrun6 vcrun2005sp1
没有评论:
发表评论