个人工具
登录
查看“UbuntuHelp:AdobePhotoshop/zh”的源代码 - Ubuntu中文
UbuntuHelp
讨论
查看源代码
历史
搜索
导航
首页
最近更改
随机页面
页面分类
帮助
编辑
编辑指南
沙盒
新闻动态
字词处理
工具
链入页面
相关更改
特殊页面
页面信息
查看“UbuntuHelp:AdobePhotoshop/zh”的源代码
来自Ubuntu中文
←
UbuntuHelp:AdobePhotoshop/zh
跳转至:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
{{Translation}} {{From|https://help.ubuntu.com/community/AdobePhotoshop}} {{Translator|JuneAugust}} {{Languages|UbuntuHelp:AdobePhotoshop}} === 在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: <pre><nowiki> sudo aptitude install build-essential checkinstall </nowiki></pre> ==== 卸载Wine ==== 你需要重新安装Wine: <pre><nowiki> sudo aptitude remove wine </nowiki></pre> ==== 编译Wine ==== 首先, 将Wine的源加入你的源列表: <pre><nowiki> deb http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu jaunty main deb-src http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu jaunty main </nowiki></pre> Add its key and update: <pre><nowiki> sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys F9CB8DB0 sudo apt-get update </nowiki></pre> Now we need to grab some dependencies and the source: <pre><nowiki> sudo apt-get build-dep wine apt-get source wine </nowiki></pre> 移动到wine 文件夹: <pre><nowiki> cd wine* </nowiki></pre> 下载补丁并进行安装 ([http://bugs.winehq.org/show_bug.cgi?id=18070 This bug]): <pre><nowiki> wget http://bugs2.winehq.org/attachment.cgi?id=22139 -O msi_start_dummy_MTA_thread.diff </nowiki></pre> 允许补丁安装: <pre><nowiki> patch -p1 < msi_start_dummy_MTA_thread.diff </nowiki></pre> 编译: <pre><nowiki> ./configure && make depend && make </nowiki></pre> 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): <pre><nowiki> sudo checkinstall </nowiki></pre> 你需要有最新版的wine补丁并安装. You'll also have a .deb file in your current folder if you need to use it on another machine. ==== 安装 Photoshop 的依赖关系==== 我们需要一个叫做winetricks的脚本来为我们安装一些东西: <pre><nowiki> wget http://www.kegel.com/wine/winetricks chmod 777 winetricks </nowiki></pre> 安装 MS XML, ie6, 等等(这将会安装许多东西, 只需要按next): <pre><nowiki> ./winetricks msxml6 gdiplus gecko vcrun2005 ie6 </nowiki></pre> 安装一些Windows字体: <pre><nowiki> sudo apt-get install msttcorefonts </nowiki></pre> 小贴士: 我的Windows分区挂载在 /windows下. Modify the following command accordingly. 如果你有安装了Windows操作系统, 复制这个目录下的所有文件 C:\WINDOWS\Fonts to ~/.wine/drive_c/windows/Fonts. 例如对于我就用如下命令: <pre><nowiki> cp /windows/WINDOWS/Fonts/* ~/.wine/drive_c/windows/Fonts </nowiki></pre> 下载atmlib.dll. Google 上可以搜索到, 或者从一个现有的Windows中拷贝一下(C:\WINDOWS\system32\atmlib.dll). Put the file in ~/.wine/drive_c/windows/system32. 以我为例,命令如下: <pre><nowiki> cp /windows/WINDOWS/system32/atmlib.dll ~/.wine/drive_c/windows/system32 </nowiki></pre> Remove the Z: drive from wine: <pre><nowiki> winecfg </nowiki></pre> 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. 转到安装目录并执行: <pre><nowiki> wine Setup.exe </nowiki></pre> 由于安装过程中的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: <pre><nowiki> ./winetricks fontsmooth-rgb </nowiki></pre> 如果你的字体看起来不对, 试着用命令 <pre><nowiki> ./winetricks fontsmooth-bgr </nowiki></pre> ==== 修复图标 ==== 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 [http://www.nirsoft.net/utils/iconsext.html 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: <pre><nowiki> sudo cp photoshop.png /usr/share/pixmaps </nowiki></pre> [[category:UbuntuHelp]]
该页面使用的模板:
模板:From
(
查看源代码
)
模板:Languages
(
查看源代码
)(受保护)
模板:Languages/Lang
(
查看源代码
)(受保护)
模板:Translation
(
查看源代码
)
模板:Translator
(
查看源代码
)
返回至
UbuntuHelp:AdobePhotoshop/zh
。