广告

本站里的文章大部分经过自行整理与测试

2017年10月13日星期五

wine - TIM

1) 安装 wine + winetricks

http://jasonmun.blogspot.my/2017/10/wine-microsoft-office-2013-32-bit.html

2) 创建 ~/.wine/TIM

$ env LC_ALL=zh_CN.UTF-8 WINEPREFIX=~/.wine/TIM WINEARCH=win32 winecfg

将 App -> Windows ver. -> 改为 Windows 7 (如果中英文显示有问题, 可以先跳过)

3) wine 和 winetricks 如果显示的是中文 (需要安装字型)

$ cp /usr/share/fonts/truetype/wqy/wqy-microhei.ttc ~/.wine/TIM/drive_c/windows/Fonts/
$ sudo chown <userID>:<userID> ~/.wine/TIM/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/TIM WINEARCH=win32 wine regedit

将 /wqy.reg 导入到注册表中后退出, 然后再运行以上看看, 
这时候应该可以正常显示中英文了

$ WINEPREFIX=~/.wine/TIM WINEARCH=win32 winecfg

将 App -> Windows ver. -> 改为 Windows 7

4) 需要的字型和 library

$ WINEPREFIX=~/.wine/TIM WINEARCH=win32 winetricks

安装字体: corefonts cjkfonts
安装 Windows DLL 或组件: winetricks msxml6 riched20 riched30 vcrun6

5) 加入 [函数库] - [DLL 顶替] - [新增函数库顶替]

$ WINEPREFIX=~/.wine/TIM WINEARCH=win32 winecfg

msxml6
riched20
riched32

6) 创建连接文件 TIM.sh

$ sudo gedit ~/.wine/TIM/TIM.sh

#!/usr/bin/env bash

EXEPATH=$(cd `dirname $0`;pwd)

export WINEPREFIX=$EXEPATH
export WINEDEBUG=-all
export LANG=zh_CN.UTF-8
export LC_ALL=zh_CN.UTF-8

cd "$EXEPATH/drive_c/Program Files/Tencent/TIM/Bin"
wine TIM.exe

给予执行权限
$ sudo chmod +x TIM.sh
$ bash TIM.sh

2017年10月11日星期三

wine - Adobe Photoshop CS6

尝试安装了 Adobe Photoshop CC 和 Adobe Photoshop CC 2017
但用得都有些问题存在.. 

1) 安装 wine + winetricks

$ 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

2) 创建 ~/.wine/photoshopCS6

$ env LC_ALL=en_US.UTF-8 WINEPREFIX=~/.wine/photoshopCS6 WINEARCH=win32 winecfg

3) 选择默认的 wine 容器 (default wineprefix), 安装 Windows DLL 或组件里的..

$ env LC_ALL=en_US.UTF-8 WINEPREFIX=~/.wine/photoshopCS6 WINEARCH=win32 winetricks

atmlib
gdiplus
gdiplus_winxp
msxml3
msxml6
vcrun2005 - 2015

4) wine 和 winetricks 如果显示的是中文 (需要安装字型)

$ cp /usr/share/fonts/truetype/wqy/wqy-microhei.ttc ~/.wine/photoshopCS6/drive_c/windows/Fonts/
$ sudo chown <userID>:<userID> ~/.wine/photoshopCS6/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"

$ env LC_ALL=en_US.UTF-8 WINEPREFIX=~/.wine/photoshopCS6 WINEARCH=win32 wine regedit

将 /wqy.reg 导入到注册表中后退出, 然后再运行以上看看, 
这时候应该可以正常显示中英文了

$ env LC_ALL=en_US.UTF-8 WINEPREFIX=~/.wine/photoshopCS6 WINEARCH=win32 winecfg

去 winecfg 从 windows XP 转成 windows 7

5) 安装 Adobe PhotoShop CS6 (32 bit)

$ env LC_ALL=en_US.UTF-8 WINEPREFIX=~/.wine/photoshopCS6 WINEARCH=win32 wine "/home/{USER}/Downloads/photoshop CS6/Setup.exe"

2017年10月10日星期二

wine / CrossOver + Microsoft Office 2013 (32 bit)

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 掉