Installing Adobe Photoshop CS4 on Jaunty

Some people need Adobe Photoshop, and CS4 actually seems to work perfectly. Unfortunately, it's a massive pain to install. We're going to need to compile Wine 1.1.25 (patched) and then add a bunch of things to it. You'll also need a legal version of Photoshop CS4.

This tutorial is Jaunty only (it might work on others, but I doubt it).

Programs you'll need

Before we start, get some generic compiling stuff:

sudo aptitude install build-essential checkinstall

Get rid of Wine

You want to remove your current Wine install:

sudo aptitude remove wine

Compiling Wine

First off, add the Wine PPA to your sources:

sudo sh -c "echo 'deb http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu jaunty main' \
>> /etc/apt/sources.list"
sudo sh -c "echo 'deb-src http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu jaunty main' \
>> /etc/apt/sources.list"

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

Move into the wine folder:

cd wine*

Download the

  • patch to make the installer work (This bug):

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

Apply the patch:

patch -p1 < msi_start_dummy_MTA_thread.diff

Compile:

./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

You should now have the latest version of Wine patched and installed. You'll also have a .deb file in your current folder if you need to use it on another machine.

Installing Photoshop's Dependencies

We need a script called winetricks to install some things for us:

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

Get some things like MS XML, ie6, etc (this will start a bunch of installers, just click next):

./winetricks msxml6 gdiplus gecko vcrun2005 ie6 

Get some Windows fonts:

sudo apt-get install msttcorefonts

Note: My windows partition is mounted at /windows. Modify the following command accordingly.

If you have a Windows install, copy everything from C:\WINDOWS\Fonts to ~/.wine/drive_c/windows/Fonts. For me the command looked like this:

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

Download atmlib.dll. You can search Google for this, or copy it from an existing Windows install (C:\WINDOWS\system32\atmlib.dll). Put the file in ~/.wine/drive_c/windows/system32. For me this was the command:

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. Go to the directory with the installer and run:

wine Setup.exe

You won't be able to choose components because of a bug in the installer, but besides that everything should work normally. Once it's done, just run Photoshop. it should work normally (except OpenGL rendering won't work). Woohoo!

Note: Although the check boxes don't show up because of the installer bug noted above, you can use Tab to cycle through input options and the check boxes will appear as you select them, allowing you to change options as needed.

Smooth fonts

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

If the fonts look funny to you, try the same command but with fontsmooth-bgr.

Fixing the Icon

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

AdobePhotoshop (last edited 2010-03-03 18:05:35 by doublerebel)