个人工具

UbuntuHelp:AdobePhotoshop/zh

来自Ubuntu中文

跳转至: 导航, 搜索

在Ubuntu9.04上安装Adobe Photoshop CS4

有些人需要使用Adobe Photoshop, and CS4 actually seems to work perfectly. Unfortunately, it's a massive pain to install. 我们需要先编译Wine 1.1.25 (patched) and then add a bunch of things to it. You'll also need a legal version of Photoshop CS4. 本教程只适用于Ubuntu9.04(在其他版本系统上也许可行, 但我对此表示怀疑).

必要程序

在开始之前, get some generic compiling stuff:

sudo aptitude install build-essential checkinstall

卸载Wine

你需要重新安装Wine:

sudo aptitude remove wine

编译Wine

首先, 将Wine的源加入你的源列表:

deb http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu jaunty main 
deb-src http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu jaunty main

Add its key and update:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys F9CB8DB0
sudo apt-get update

Now we need to grab some dependencies and the source:

sudo apt-get build-dep wine
apt-get source wine

移动到wine 文件夹:

cd wine*

下载补丁并进行安装 (This bug):

wget http://bugs2.winehq.org/attachment.cgi?id=22139 -O msi_start_dummy_MTA_thread.diff

允许补丁安装:

patch -p1 < msi_start_dummy_MTA_thread.diff

编译:

./configure && make depend && make

Note: if you have multiple processors, add -j(number_of_processors+1) to each make the command. For my 4 core system I used: ./configure && make -j5 depend && make -j5 Install (this will install Wine as a package):

sudo checkinstall

你需要有最新版的wine补丁并安装. You'll also have a .deb file in your current folder if you need to use it on another machine.

安装 Photoshop 的依赖关系

我们需要一个叫做winetricks的脚本来为我们安装一些东西:

wget http://www.kegel.com/wine/winetricks
chmod 777 winetricks

安装 MS XML, ie6, 等等(这将会安装许多东西, 只需要按next):

./winetricks msxml6 gdiplus gecko vcrun2005 ie6 

安装一些Windows字体:

sudo apt-get install msttcorefonts

小贴士: 我的Windows分区挂载在 /windows下. Modify the following command accordingly. 如果你有安装了Windows操作系统, 复制这个目录下的所有文件 C:\WINDOWS\Fonts to ~/.wine/drive_c/windows/Fonts. 例如对于我就用如下命令:

cp /windows/WINDOWS/Fonts/* ~/.wine/drive_c/windows/Fonts

下载atmlib.dll. Google 上可以搜索到, 或者从一个现有的Windows中拷贝一下(C:\WINDOWS\system32\atmlib.dll). Put the file in ~/.wine/drive_c/windows/system32. 以我为例,命令如下:

cp /windows/WINDOWS/system32/atmlib.dll ~/.wine/drive_c/windows/system32

Remove the Z: drive from wine:

winecfg

Go to the "drives" tab. Remove Z:. You can't have a / drive available to wine for some reason. You'll probably need to add a drive that points to your home directory though. Wine can't run the installer if it can't find it. Install Photoshop. 转到安装目录并执行:

wine Setup.exe

由于安装过程中的bug,我们不能选择组件, 除此之外都工作正常. Once it's done, just run Photoshop. it should work normally (除了无法 OpenGL 渲染). Woohoo!

平滑字体

You might have noticed by now that the fonts look terrible. Winetricks can also install font smoothing. There are 3 packages: fontsmooth-gray, fontsmooth-rgb, and fontsmooth-bgr. Most likely you need fontsmooth-rgb. Get into the winetricks directory (wherever you downloaded it before), and run:

./winetricks fontsmooth-rgb

如果你的字体看起来不对, 试着用命令

./winetricks fontsmooth-bgr

修复图标

By default the icon doesn't always seem to work right (I got it to show up in the menu, but not on Gnome Do). The icon is embedded in photoshop.exe, so you can use a program like IconsExtract to extract the .ico program. Use the GIMP to save the .ico as a png (but hide all layers except the biggest one). (Photoshop doesn't support .ico files by default) Then rename the .png file photoshop.png and copy it to /usr/share/pixmaps:

sudo cp photoshop.png /usr/share/pixmaps