Installing Photoshop CS4 under Ubuntu 9.04 Jaunty

Original author: Ubuntu Documentation Community
  • Transfer
Dear colleagues, let me offer you my first post on the hub - the translation of the publication on installing Adobe PhotoShop CS4 under Ubuntu 9.04 Jaunty.

A considerable number of users use Adobe PhotoShop, and CS4 seems to work (under Ubuntu - approx. Per.). However, installing it is not trivial, and requires some actions: We need to compile the patched assembly of Wine 1.1.25, and then add a bunch of utilities to the system.
It is also not superfluous to recall that you need legal (or trial :) - approx. Per.) version of Adobe PhotoShop CS4.
This instruction is for Ubuntu Jaunty only (it might work for other builds too, but I doubt it)

Before you start


We will need to install the build-essential package created to compile other Debian packages from source:

sudo aptitude install build-essential checkinstall

Uninstall the current installed version of Wine


For this installation, we need to remove the current version of Wine (if it has already been installed):

sudo aptitude remove wine

We collect the patched package Wine


First, we need to add the PPA * Wine repositories (system-> Administration-> Synaptic Package Manager-> Repositories - approx. Lane): Add the public key and update the package lists: Now we need to download the dependencies and get the Wine sources: (Warning - on a clean system, the traffic volume was 180 Mb - approx. per.) Now we move to the Wine directory: Here we upload the Patch for the installer to work under Wine: And apply it to the code: After that we compile Wine (Create a Debian package): Note: for multiprocessor systems nduetsya to make each command to indicate parameter -j (chislo_CPU + 1). In this case, physically existing processor cores are meant, and not the number of occupied sockets.

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




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




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






cd wine*



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



sudo patch -p1 < msi_start_dummy_MTA_thread.diff



sudo ./configure && make depend && make



For example, for a 4-core processor (or 2 installed processors with 2 cores), the compilation command should look like:

sudo ./configure && make -j5 depend && make -j5

For a 2-core processor, respectively:

sudo ./configure && make -j3 depend && make -j3

After that, install the package we assembled:

sudo checkinstall

Now, if you did everything right, you have The system has the latest version of Wine, specially patched for normal operation with PS CS4. Also in the current directory is the already compiled Debian package .deb, which you can use to install, for example, on another machine.

Installing Photoshop Dependencies


Now we need to install for additional packages necessary for normal work with PhotoShop.
To do this, we need a winetricks script: With which we can install the necessary Windows Packages in Wine :), such as MS XML, ie6 and so on: Now download the necessary Windows fonts: Note: My Windows partition is mounted as / windows. Change the command depending on your Windows partition path. If you have Windows installed, copy all the contents from C: \ WINDOWS \ Fonts to ~ / .wine / drive_c / windows / Fonts. In my case, this is the command: (In my case, Windows is missing and it's okay, besides, to use All Windows Fonts, you need an OS License - approx. Author)

sudo wget www.kegel.com/wine/winetricks
sudo chmod 777 winetricks




./winetricks msxml6 gdiplus gecko vcrun2005 ie6



sudo apt-get install msttcorefonts





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



Download the atmlib.dll library. You can find it for downloading via Google, or copy it from the directory with Windows Installed (C: \ WINDOWS \ system32 \ atmlib.dll) and put it at ~ / .wine / drive_c / windows / system32. In my case, for copying from Windows it was a command:

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

Remove Disk Z: in Wine:

winecfg

Go to the Disks tab, Remove Disk Z. You cannot use Disk "/" in Wine for certain reasons. You will probably need to create a Drive that links to your Home directory. Wine will not be able to launch the Installer if it cannot find it.

Now run the PhotoShop Installer - go to the directory with the installer and run the command:

wine Setup.exe

(If you use a Language version of Ubuntu other than English, the command should look like this:

lang=c wine Setup.exe

approx. per.)
Unfortunately, the choice of installation components is not available to you, since this is an Installer error, but besides this, everything should work fine (Also in the checkbox installer to the left of the phrase “I want to install and use Adobe PhotoShop CS4 in trial mode” I’m invisible. with the mouse, or find Tab, and set the Spacebar - approx.
After the installation is finished, just start PhotoShop. It should work fine (except for OpenGL rendering - it doesn't work).
Woohoo! (The emotions of the author. “I’ll bite the dictionary now!” - the emotions of the translator).

Font Smoothing


We should have noticed that fonts look awful (and how! - approx. Per.). Winetricks also allows us to enable font smoothing in Wine. There are 3 packages in total: fontsmooth-gray, fontsmooth-rgb, and fontsmooth-bgr. Of these, the most acceptable fontsmooth-rgb. Go to the winetricks directory (if you have not forgotten where it is located), and execute the following code:

./winetricks fontsmooth-rgb

If the font looks too funny for you (yeah, you will have a good laugh - approx. Per.) Run the command to install the fontsmooth-bgr package:

./winetricks fontsmooth-bgr

Eliminate the Bug with Icons


By default, icons are not always displayed correctly. For the normal operation of the icons, it is recommended to convert from PNG to format. By default, they are embedded in photoshop.exe, but you can extract them from there with a utility such as IconsExtract . After extraction, re-save with GIMP .ico to PNG (but hiding all layers except the largest) (PhotoShop cannot process Icon files).
After that, rename this file as photoshop.png and copy it to the address / usr / share / pixmaps:

sudo cp photoshop.png /usr/share/pixmaps

Also popular now: