Installing Adobe Dreamweaver CS4 using Wine 1.40 on Fedora 12 x64

These are the steps I used to install Adobe Dreamweaver CS4 with Wine 1.40 on Fedora 12 x64.

I don’t have a ton of time to go into the details, but I’ll show you the commands and annotate them quickly now and update the page when I get a second.

This is not for inexperienced users at this point — hopefully in the future it will be — however currently it is very rough and should only be attempted by those familiar with their Linux distro (hopefully if you’re reading this, F12 x64_86).

NOTE: The code below does not wrap long lines. There is a considerable amount of text that extends past the right side of the code viewer. To get the entire line, hover over the top right of the code viewer and click the far left button that says “view source”.

# Ensure you have the right packages to do this
sudo yum install git cabextract util-linux-ng

# Install Libraries
# -- x86_64 Libraries
sudo yum install arts audiofile bison bzip2-libs cairo compat-expat1-1.95.8-4 compat-libstdc++-33-3.2.3-63 compiz cups-devel cyrus-sasl-lib dbus dbus-devel dbus-glib dbus-libs directfb esound-devel esound-libs flex fltk fontconfig-devel freeglut freetype-devel giflib-devel glib2-devel glibc-devel gnutls-devel gphoto2 gpm-libs gsm gsm-devel gtk2 gvfs-gphoto2 hal hal-devel hal-libs imlib isdn4k-utils-devel jack-audio-connection-kit jack-audio-connection-kit-devel kernel-devel lcms-devel lcms-libs lesstif libacl libaio-0.3.106-4.2 libao libattr libcap libdrm libexif libgcrypt-1.4.0-3 libgnomecanvas libgphoto2 libgphoto2-devel libICE libICE-devel libieee1284 libjpeg-devel libmpeg2-devel libmpeg3-devel libmpeg3-utils libogg libogg-devel libpng libpng-devel libsigc++20 libSM libSM-devel libstdc++-devel libtool-ltdl libusb libusb-devel libv4l libv4l-devel libwmf libwmf-lite libX11 libX11-devel libXau libXau-devel libXaw libxcb-devel libXcomposite libXcomposite-devel libXcursor-devel libXdamage libXdmcp libXext libXext-devel libXfixes libXi-devel libXinerama-devel libxkbfile libxml2 libxml2-devel libXmu libXp libXpm libXrandr-devel libXrender-devel libXScrnSaver libxslt libxslt-devel libXt libXt-devel libXtst libXv libXv-devel libXxf86vm libXxf86vm-devel lzo mesa-libGL mesa-libGL-devel mesa-libGLU mesa-libGLU-devel mesa-libGL mesa-libGLw-devel mpg321 nas-libs ncurses-devel nss_ldap openal openal-devel opencdk openldap openldap-devel openssl-devel pam pkgconfig popt pulseaudio-libs sane-backends-devel sane-backends-libs sane-backends-libs-gphoto2 SDL svgalib unixODBC xine-lib xmms xmms-devel xmms-mp3 xorg-x11-proto-devel zlib zlib-devel
# Compile and Install Wine
setarch i686
# Install libraries
# -- i868 Libraries
sudo yum install ...

# Download and Install libmpg123
# http://sourceforge.net/projects/mpg123/files/
# !!-- This actually doesn't work -- !!
# Skip these steps and continue at "Download and Patch Wine"
# !!
mkdir /tmp/mpgsrc
cd /tmp/mpgsrc
wget http://downloads.sourceforge.net/project/mpg123/mpg123/1.10.1/mpg123-1.10.1.tar.bz2?use_mirror=cdnetworks-us-2
tar -xvf mpg123-1.10.1.tar.bz2
cd mpg123-1.10.1
setarch i686
./configure CC="gcc -m32"

# Download and Patch Wine
mkdir /tmp/winesrc
cd /tmp/winesrc
git clone git://source.winehq.org/git/wine.git ./
wget http://bugs2.winehq.org/attachment.cgi?id=22139 -O patch.diff
patch -p1 < patch.diff
cat dlls/msi/action.c.rej
echo "Consider lines 7282 and 7316"
gedit dlls/msi/action.c &>/dev/null &

# Compile and Install Wine
cd /tmp/winesrc
./configure
./make
sudo ./make install

# Install Winetricks
cd /usr/local/bin
sudo wget http://www.kegel.com/wine/winetricks
sudo chmod +x winetricks
cd ~

# Install Gecko
# Alternatively, you can try to automatically install Gecko by running winecfg and accepting the auto-install option.
# The first time I tried that, it didn't work, the second time, it worked perfectly.
rm -rf ~/.wine/drive_c/windows/system32/gecko/
sudo mkdir -p /usr/share/wine/gecko
cd /usr/share/wine/gecko
sudo wget http://downloads.sourceforge.net/wine/wine_gecko-1.0.0-x86.cab
cd ~

# Install other stuff
#   XML Parser
#   gdiplus.dll
#   MSVC++ 2005 SP1 Redistributable
#   MS Core Fonts
#   MSIE6
winetricks msxml6 gdiplus vcrun2005 corefonts ie6

# Install CS4 Specific Needs
winetricks atmlib

# Install DreamWeaver
cd ~/.wine/drive_c/...
wine Setup.exe

# Fix Fonts
# http://ubuntuforums.org/showthread.php?t=1009930
cd /tmp
vi settings.txt
# Alternatively, gedit settings.txt
# In this file, enter:
#   [HKEY_CURRENT_USER\Software\Wine\X11 Driver]
#   "ClientSideWithRender"="N"
regedit settings.txt

# Change gdiplus from native to built-in
winecfg

# Start Dreamweaver!
cd ~/.wine/drive_c/Program\ Files/Adobe/Adobe\ Dreamweaver\ CS4/
wine Dreamweaver.exe

Good luck and check back soon for a better explanation!

Screenshots

Posted Wednesday, March 17th, 2010 under linux, tips and tricks, web design.

One comment so far

  1. Been looking at doing some site optimization and bettering the design on my site for a while, so this post has been really helpful. Easy read as well, so thank you!

Leave a Reply