Search:  
Gentoo Wiki

Photoshop

Contents

Introduction

Most people who have experience working with Photoshop on MacOS or Windows, do not like The Gimp that much because of other names for functions, other menus or simply because they are not used to it.

Then pixel could be a solution. It is a Photoshop-clone that runs on all kinds of operating systems, but again its not free. Another try would be the use of gimpshop which uses The Gimp but tries to look just like you are used to it from Photoshop.


But sometimes The Gimp, or other open-source applications don't offer all the features Photoshop offers - So why not install Photoshop in Linux? There are several methods how this can be done, starting from using wine, over the possibility of using the (non-free) program crossover-office.

Using Photoshop Alternatives

Pixel

Needs to be written by someone who uses it ;) link to pixel homepage

ebuild: pixel ebuild on bugs.gentoo.org

Krita

Gimpshop

Gimpshop is not included in the portagetree, so first of all we have to download a makefile and place it in a portage-overlay (in my case /usr/local/portage). Other possibility is to use Zugaina Overlay - Portage Overlay Listing#Zugaina, but this overlay does not give the most recent version of gimpshop.

Needs to be updated with current file locations.

# mkdir /usr/local/portage/media-gfx/gimpshop
# cd /usr/local/portage/media-gfx/gimpshop
# wget http://gentoo.zugaina.org/portage/media-gfx/gimpshop/gimpshop-2.2.11.ebuild
# mkdir files 
# wget http://gentoo.zugaina.org/portage/media-gfx/gimpshop/files/gimpshop-2.2.11-libpng-1.2.10.patch -O /usr/local/portage/media-gfx/gimpshop/files/gimpshop-2.2.11-libpng-1.2.10.patch
# wget http://www.plasticbugs.com/blogimg/gimpshop-2.2.11.tar.bz2 -O /usr/portage/distfiles/gimpshop-2.2.11.tar.bz2
# touch /usr/portage/distfiles/gimp-help-2.4.0.tar.gz

Ok now let's start fixing the ebuild. Open gimpshop-2.2.11.ebuild and change this line:

RDEPEND="virtual/x11

to

RDEPEND="

This one just require x11 to be installed, I hope you have xorg installed already =) anyway we should remove or change this because virtual/x11 no longer exists in portage tree.

I have an error on 67 line when emerging this ebuild. I think it have a wrong directory name here change this:

mv ${PORTAGE_TMPDIR}/portage/gimpshop-${PV}/work/gimp-${PV} ${PORTAGE_TMPDIR}/portage/gimpshop-${PV}/work/gimpshop-${PV}

to

mv ${PORTAGE_TMPDIR}/portage/media-gfx/gimpshop-${PV}/work/gimp-${PV} ${PORTAGE_TMPDIR}/portage/media-gfx/gimpshop-${PV}/work/gimpshop-${PV}


# ebuild gimpshop-2.2.11.ebuild manifest
# ebuild gimpshop-2.2.11.ebuild digest
# emerge flagedit -av
# flagedit media-gfx/gimpshop -- ~x86

If you have gimp installed first remove it

# emerge -C gimp

Now execute this command:

Code: emerge gimpshop -av
localhost gimpshop # emerge gimpshop -av

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  NS   ] x11-libs/gtk+-1.2.10-r12  USE="nls -debug" LINGUAS="-az -ca -cs -da -de -el -es -et -eu -fi -fr -ga -gl -hr -hu -it -ja -ko -lt -nl -nn -no -pl -pt -pt_BR -ro -ru -sk -sl -sr -sv -tr -uk -vi" 2,881 kB 
[ebuild  N    ] media-gfx/gimp-print-4.2.7  USE="cups gtk nls readline -foomaticdb -ppds" 5,057 kB 
[ebuild  N    ] media-gfx/gimpshop-2.2.11  USE="aalib gimpprint jpeg mmx png python sse svg tiff wmf (-altivec) -debug -doc -gtkhtml -mng" 0 kB [1]

Total: 3 packages (2 new, 1 in new slot), Size of downloads: 7,938 kB
Portage tree and overlays:
 [0] /usr/portage
 [1] /usr/local/portage

Would you like to merge these packages? [Yes/No] 

We have tons of use flags here. I assume that you have a gentoolkit package, if not then emerge gentoolkit it's a perfect tool for use flag editing:

# euse -E "jpeg png tiff"

euse -E "flagname" enables useflags in your make.conf and euse -D "flagname" disable useflags. A great tool isn't it =)?


Note: libgtkhtml package is renamed to gtkhtml, so if you need that use flag than edit ebuild and change that package name and use flag from libgtkhtml to gtkhtml. mng use flag depends on gtkhtml too so if you need that one dont' forget to rename libgtkhtml to gtkhtml Note: If you need gimpprint don't forget to enable ppds useflag it install automatically his drivers for cups Note: There can be more conflicts in the future but now you know how to handle this =)

Raw Pictures

Gimpshop has no native support for raw files, but there is a real good gimp-plugin that we can use by editing the makefile a little.

# emerge ufraw -av

If it doesn't work try this one [from old manual]:

# cp -r /usr/portage/media-gfx/ufraw/ /usr/local/portage/media-gfx/
# cd /usr/local/portage/media-gfx/ufraw
# wget http://gertp.studentenweb.org/gentoo/portage/media-gfx/ufraw/ufraw-0.10.ebuild
# ebuild ufraw-0.10.ebuild manifest
# echo "media-gfx/ufraw" >> /etc/portage/package.keywords
# echo "media-gfx/ufraw -gimp gimpshop" >> /etc/portage/package.use
# emerge -DuNav ufraw

Gimpshop and raw fully edited by holms (2007-01-21).

Install Photoshop in Linux

Using Wine to install Photoshop CS2

What is Wine?

Wine is a piece of software written to provide Windows API over *nix API and thus run Windows binaries (.exe executable files) on your Linux machine.

Installing Wine

Wine is already in portage, so just fire up a terminal and type:

# emerge --ask wine

Install Photoshop on your linux box

In order to install Photoshop CS2 on a Linux machine, you will need Wine-0.9.46 or later.

and unpack it with

unzip Photoshop_CS2.exe
cd "Photoshop CS2/Adobe(R) Photoshop(R) CS2"
wine setup.exe
wine "$HOME/.wine/drive_c/Program Files/Adobe/Photoshop CS2/Photoshop.exe"

(To avoid having to type that every time, you might want to create a launcher.)

See also http://wiki.winehq.org/AdobePhotoshop

Crossover Office

Photoshop CS1 running on Gentoo
Photoshop CS1 running on Gentoo

To install Photoshop you first need to install CodeWeavers crossover-office. This program is included in the portage-tree, but to emerge it you will need to assign the official (non-free) installation file. Once you installed crossover office you can start it by running:

#  /opt/cxoffice/bin/cxsetup

now click on Install Software, in the next window the method of installation depends on wich photoshop you want to install.

Photoshop 6 & 7

from the list with software packages, choose your version of photoshop, and click next >>, if your installation-disk is located in your master-cd-drive click next >> again, else chose the right location of your installation files. Now the windows-installation will start. after the installation do the following:

# cd /usr/bin/
# nano photoshop
File: /usr/src/linux/drivers/usb/storage/unusual.devs
#! bin/sh

# for photoshop 6:
/opt/cxoffice/bin/cxstart --bottle Unsupported .cxoffice/Unsupported/drive_c/Program\ Files/Adobe/Photoshop\ 6/Photoshop.exe

# for photoshop 7:
/opt/cxoffice/bin/cxstart --bottle Unsupported .cxoffice/Unsupported/drive_c/Program\ Files/Adobe/Photoshop\ 7/Photoshop.exe
#  chmod +x photoshop

now you can start photoshop with the command

#  photoshop

Photoshop CS

Warning! Currently, nobody has stated CS2 over wine/crossover.

To get one of these working, you will need version 6 of Crossover-Office!

Select Install unsupported software and click on next >> two times. If your installation-disk is located in your master-cd-drive click next >> again, or else chose the correct location of your installation files. In the next window choose an Winxp bottle and click on next >>. Now the Windows installation will start. After the installation do the following:

# cd /usr/bin/
# nano photoshop
File: /usr/bin/photoshop
#! bin/sh

# for photoshop CS:
/opt/cxoffice/bin/cxstart --bottle Unsupported .cxoffice/Unsupported/drive_c/Program\ Files/Adobe/Photoshop\ CS/Photoshop.exe
# chmod +x photoshop

now you can start photoshop with the command

# photoshop

External Links

Retrieved from "http://www.gentoo-wiki.info/Photoshop"

Last modified: Thu, 02 Oct 2008 08:51:00 +0000 Hits: 16,381