1) 安装 wine + winetricks + winbind
$ sudo add-apt-repository ppa:wine/wine-builds
$ sudo apt-get update
$ sudo apt-get install --install-recommends winehq-devel
或
$ wget https://dl.winehq.org/wine-builds/Release.key
$ sudo apt-key add Release.key
$ sudo apt-add-repository https://dl.winehq.org/wine-builds/ubuntu/
$ sudo apt-get update
$ sudo apt-get install --install-recommends winehq-stable
$ wget https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks
$ chmod +x winetricks
$ sudo cp winetricks /usr/local/bin
$ sudo apt install winbind
2) 创建 ~/.wine/Office2013
$ env LC_ALL=en_US.UTF-8 WINEPREFIX=~/.wine/Office2013 WINEARCH=win32 winecfg
将 App -> Windows ver. -> 改为 Windows 7 (如果中英文显示有问题, 可以先跳过)
3) wine 和 winetricks 如果显示的是中文 (需要安装字型)
$ cp /usr/share/fonts/truetype/wqy/wqy-microhei.ttc ~/.wine/Office2013/drive_c/windows/Fonts/
$ sudo chown <userID>:<userID> ~/.wine/Office2013/drive_c/windows/Fonts/wqy-microhei.ttc
$ sudo gedit /wqy.reg
REGEDIT4
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\FontLink\SystemLink]
"Lucida Sans Unicode"="wqy-microhei.ttc"
"Microsoft Sans Serif"="wqy-microhei.ttc"
"MS Sans Serif"="wqy-microhei.ttc"
"Tahoma"="wqy-microhei.ttc"
"Tahoma Bold"="wqy-microhei.ttc"
"SimSun"="wqy-microhei.ttc"
"Arial"="wqy-microhei.ttc"
"Arial Black"="wqy-microhei.ttc"
$ WINEPREFIX=~/.wine/Office2013 WINEARCH=win32 wine regedit
将 /wqy.reg 导入到注册表中后退出, 然后再运行以上看看,
这时候应该可以正常显示中英文了
$ WINEPREFIX=~/.wine/Office2013 WINEARCH=win32 winecfg
将 App -> Windows ver. -> 改为 Windows 7
4) 解决黑屏问题 (添加 Registry Key)
$ WINEPREFIX=~/.wine/Office2013 WINEARCH=win32 wine regedit
HKEY_CURRENT_USER\Software\Wine\
Direct3D\
Key 名字: MaxVersionGL (REG_DWORD, 30002, Hexadecimal)
或
$ sudo gedit /black_screen.reg
REGEDIT4
[HKEY_CURRENT_USER\Software\Wine\Direct3D]
"MaxVersionGL"=dword:00030002
像以上一样导入..
5) 先安装 msxml6, 然后挂载 Microsoft Office 2013 的 iso (32 bit), 安装之
$ WINEPREFIX=~/.wine/Office2013 WINEARCH=win32 winetricks
选择默认的 wine 容器 (default wineprefix), 安装 Windows DLL 或组件里的 msxml6
$ WINEPREFIX=~/.wine/Office2013 WINEARCH=win32 wine /media/<userID>/2013-x86-Aug2013/setup.exe
6) 安装与设置 ie8 (解决 Power Point 不能打开的问题)
$ WINEPREFIX=~/.wine/Office2013 WINEARCH=win32 winetricks
选择默认的 wine 容器 (default wineprefix), 安装 Windows DLL 或组件里的 ie8
也加上 riched20 和 riched30
打开 ie8, Settings - Internet Options - Programs tab - Manage add-ons
- Toolbars and Extensions - 将 Office Document Cache Handle 这插件 disable 掉
7) 检查所安装的 Microsoft Office 2013
如果还有问题, 在 [安装 Windows DLL 或组件] 处检查有没有安装以下
ie8
msls31
msxml6
pngfilt
riched20
riched30
vcrun2010
wininet
xmllite
8) 有关 KMSPico 的安装
$ WINEPREFIX=~/.wine/Office2013 WINEARCH=win32 winetricks
选择默认的 wine 容器 (default wineprefix), [运行卸载程序] 中安装..
9) 其它: 可以用 CrossOver 取代 wine
要注意的是 Microsoft Office 2013 和 IE8 都要安装到同一个 bottle 中
CCleaner 也是
安装 IE8, 如果不能打开 Settings - Internet Options 页,
你可以多安装一个 CCleaner, 然后在里面的 Tools - Startup - Internet Explorer
将 Office Document Cache Handle 这插件 disable 掉
没有评论:
发表评论