因为课业的问题,需要使用Dreamweaver和photoshop,所以按照我一贯的思路在linux下用wine模拟。运气很好,都成功了。

wine Dreamweaver

那么简单的记录一下wine模拟PhotoShop和Dreamweaver的过程。我使用的wine版本是arch linux源里的0.9.61。

一、wine安装PhotoShop: 和CS1.6一样,ps基本无须设置就可以用; 根据wine的wiki里的步骤,首先下载 http://kegel.com/wine/winetricks,执行winetricks( sh winetricks),找到vcrun6按钮,安装vcrun6; 最后用wine命令运行photoshop的安装文件既可。(随便说一句,wine的应用几乎不需要root权限,而且使用root权限运行wine容易破坏系统)

二、wine安装Dreamweaver:

  1. 首先把windows下安装Dreamweaver的目录(假设安装目录是C:Program FilesAdobe, C盘的分区是/dev/sdb1,挂载在/mnt/sdb1)复制到linux的用户目录下,
    user@localhost:~$ cp -R /mnt/sdb1/Program Files/Adobe /home/$USER/.wine/drive_c/Program Files/
  2. 复制”c:Documents and settingsAll usersApplication Data”下的许可证书
    user@localhost:~$ cp -R /mnt/sdb1/Documents and settings/All users/Application Data/Macromedia /home/$USER/.wine/drive_c/window/profiles/all users/Application Data/
  3. 复制必要的3个数据目录”c:Windowssystem32Macromed” 、”c:Program FilesCommon Files”、”c:WINDOWSWinSxS”
    user@localhost:~$ cp -R /mnt/sdb1/Windows/system32/Macromed /home/$USER/.wine/drive_c/window/system32/
    user@localhost:~$ cp -R /mnt/sdb1/Program Files/Common Files /home/$USER/.wine/drive_c/Program Files/
    user@localhost:~$ cp -R /mnt/sdb1/Windows/WinSxS /home/$USER/.wine/drive_c/window/
  4. 最后在windows中导出dreamweaver的注册表,在”开始菜单”->”运行”->”输入 regedit”,打开注册表编辑器后,导出”HKEY_LOCAL_MACHINE/Software/Macromedia/”,用记事本打开保存的*.reg文件,另存为一个reg文件(同时把文件编码改成ascii),最后在linux下导入wine,例如 “wine regedit dreamweaver.reg”。可以了,直接wine /your_Dreamweaver_Path/Dreamweaver.exe 既可使用了。

如果wine不能显示中文,可以参考我的”wenquanyi_bitmap_song.reg”文件,下载 wenquanyi_bitmap_song.reg ,或者你也可以参考下面自己修改想要的字体

REGEDIT4

[HKEY_LOCAL_MACHINESystemCurrentControlSetHardware ProfilesCurrentSoftwareFonts]

“FIXEDFON.FON”=”"

“FONTS.FON”=”"

LogPixels”=dword:00000060

“OEMFONT.FON”=”"

[HKEY_CURRENT_USERSoftware\Wine\Fonts\Replacements]

@=”WenQuanYi Bitmap Song”

“Arial”=”WenQuanYi Bitmap Song”

“Fixedsys”=”WenQuanYi Bitmap Song”

“Microsoft Sans Serif”=”WenQuanYi Bitmap Song”

“MingLiU”=”WenQuanYi Bitmap Song”

“MS UI Gothic”=”WenQuanYi Bitmap Song”

“PMingLiU”=”WenQuanYi Bitmap Song”

“Simsun”=”WenQuanYi Bitmap Song”

“Songti”=”WenQuanYi Bitmap Song”

“System”=”WenQuanYi Bitmap Song”

“Tahoma”=”WenQuanYi Bitmap Song”

“Terminal”=”WenQuanYi Bitmap Song”

“宋体”=”文泉驿点阵宋体”

[HKEY_CURRENT_USERSoftware\Wine\X11 Driver]

“ClientSideAntiAliasWithRender”=”N”

[HKEY_LOCAL_MACHINESoftwareMicrosoftWindows NTCurrentVersionFontSubstitutes]

“MS Shell Dlg”=”WenQuanYi Bitmap Song”

“MS Shell Dlg 2″=”WenQuanYi Bitmap Song”

“System”=”WenQuanYi Bitmap Song”

[HKEY_CURRENT_USERControl Panel\Colors]

“ActiveBorder”=”239 235 230″

“ActiveTitle”=”0 153 11″

“AppWorkspace”=”128 128 128″

“Background”=”58 110 165″

“ButtonAlternateFace”=”180 180 180″

“ButtonDkShadow”=”64 64 64″

“ButtonFace”=”232 227 221″

“ButtonHilight”=”255 255 255″

“ButtonLight”=”239 235 230″

“ButtonShadow”=”128 128 128″

“ButtonText”=”0 0 0″

“GradientActiveTitle”=”166 202 240″

“GradientInactiveTitle”=”192 192 192″

“GrayText”=”128 128 128″

“Hilight”=”0 153 11″

“HilightText”=”255 255 255″

“HotTrackingColor”=”0 0 255″

“InactiveBorder”=”192 192 192″

“InactiveTitle”=”232 227 221″

“InactiveTitleText”=”0 0 0″

“InfoText”=”0 0 0″

“InfoWindow”=”255 255 225″

“Menu”=”232 227 221″

“MenuBar”=”232 227 221″

“MenuHilight”=”0 0 0″

“MenuText”=”0 0 0″

“Scrollbar”=”239 235 230″

“TitleText”=”255 255 255″

“Window”=”255 255 255″

“WindowFrame”=”0 0 0″

“WindowText”=”0 0 0″

wine确实可以解决大部分的零时win2lin应用,但是如果长期的使用这些工具,建议还是开一个vmware或vbox装一个winedows比较实际。毕竟稳定才是使用者需要的。