How to run Flash CS5 on Ubuntu (with Wine)
Updated on 2011-05-24
After a couple of days testing and examining, finally, I have managed to run Adobe Flash CS5 on my Ubuntu machine. As I say "run", I mean that I did not succeed installing the application but I had to copy the installed files from Windows. However, it is worth noting that this is the first Adobe Flash version that runs with workable quality since Macromedia Flash 8. The last 2 versions (CS3 & CS4) is known to be useless when trying to run with Wine.
No more wandering, let's me show you the how to first and then comments later.
1. Install Adobe Flash CS5 on Windows permalink
I installed Adobe Flash CS5 on my Windows XP virtual machine (32-bit). You can get the trial version of Flash CS5 here. I suggest you install everything in the package in the default installation path.
2. Export Adobe registry branch permalink
- Go to Start > Run… > input regedit > OK
- In Regitry Editor, navigate to HKEY_LOCAL_MACHINE/SOFTWARE
- Select Adobe branch > File > Export… > save the file as adobe.reg > store it some where so you can access from Ubuntu later.
Now, let’s get back to Ubuntu. I’m using Ubuntu 10.04 Lucid.
3. Installing Wine 1.3 permalink
By the time of this post, the official repository of Ubuntu only update Wine to version 1.1.34. So you need to add the ppa repository from WineHQ to get the latest version. Open the terminal and enter these commands:
~$ sudo add-apt-repository ppa:ubuntu-wine/ppa
~$ sudo apt-get update
~$ sudo apt-get install wine1.3
By installing this version, you will also get winetricks installed. If you’re using other distro, go to this link to get your version of Wine.
4. Install subordinate Windows native libraries permalink
It is recommended that you reset your wineprefix by deleting ~/.wine folder if you have testing something else before with wine. Then, use winetricks to install these libaries:
~$ winetricks vcrun2008 msxml3 atmlib gdiplus
The atmlib is kept in a large cab file so it is normal that you will experience a long progress downloading the 120MB cab file.
5. Replicate the installation in Ubuntu permalink
Copy from Windows to Ubuntu :
- “C:\Program Files\Adobe\" to "$HOME/.wine/drive_c/Program Files/Adobe"
- “C:\Program Files\Common Files\Adobe" to “$HOME/.wine/drive_c/Program Files/Common Files/Adobe"
- “C:\Documents and Settings\All Users\Application Data\Adobe\CS5” to “$HOME/.wine/drive_c/users/Public/Application Data/Adobe/CS5”
(this is required for Java Runtime Environment)
Import the registry branch for Adobe:
~$ wine regedit adobe.reg
(assuming the file adobe.reg has been placed at your home folder)
Then you’re done. Here you can run the application from command line:
~$ cd "$HOME/.wine/drive_c/Program Files/Adobe/Adobe Flash CS5"
~/.wine/drive_c/Program Files/Adobe/Adobe Flash CS5$ wine Flash.exe
During the initialization, you may come across this error message:
Just click Close and Flash CS5 will continue to start up.
For convenience, you can create a launcher to run Flash CS5 from your desktop:
6. Create desktop launcher permalink
Right click on desktop and select Create Launcher
Enter the command as in the image:
You can find the logo of Flash CS5 in: …Adobe Flash CS5/Common/First Run/StartPage/resources/images/appicon_xl.png
7. How to: resolve “Error initializing Java Runtime Environment” permalink
When starting Flash CS5, you may experience this error message:
There are a few reasons that I can identify up to now:
- The bundled JRE of CS5 is missing:
Make sure you copy the jre folder from:
C:\Documents and Settings\All Users\Application Data\Adobe\CS5
- Error reserving the memory for the Java Virtual Machine:
When you run Flash CS5 with command line, you may notice these error messages together with above message box:
Error occurred during initialization of VM
Could not reserve enough space for object heap
This is related to the –Xmx###m parameter in the JVM initial config.
To fix, open the jvm.ini file located at:
$HOME/.wine/drive_c/users/$USER/Local Settings/Application Data/Adobe/Flash CS5/en_US/Configuration/ActionScript 3.0/jvm.ini
(Assuming $USER is current user name)
Try editing the default line –Xmx128m NOT to a higher value BUT to a LOWER value.
When I set it to –Xmx64m, the problem is gone (my RAM is 2GB on a 32-bit Ubuntu)!
8. How to: Built applications cannot access online resources permalink
(This solution is still in progress and can only resolve the issue partially)
When you build your application, the application will not be able to access online resources. This is because of the security sandbox which prevent local file access internet location. To solve, you can add trusted location to the Flash Player’s global settings.
There are 2 ways to do this:
- Using the Global Security Settings panel to add your working folder. However, this requires you install IE6 and Flash Player to your wineprefix. (How to do this is long and out of this post’s scope)
- Create new .cfg file at this location:
$HOME/.wine/drive_c/users/$USER/Application Data/Macromedia/Flash Player/#Security/FlashPlayerTrust/
If the folders are not there, create them manually.
Each .cfg is a plain text document containing the path to your trusted folder. For e.g.: C:\
However, this just allow the application to access internet when testing in debug mode! There is still something wrong with the normal run.
Other comments: permalink
Thanks to this how to for Photoshop CS5 in AppDB, I have come up with this procedure. However, you can use this procedure to run Photoshop CS5 as well. (I have tried)
Here’s my test report so far (deeper test update to come):
What works: most of the normal functionalities
- All the drawing tools including 3D transform
- All Panels: library, color, align, transform, AS editor…
- Time line, layers, tweens
- TLF text, Classic text
- Open, Save, Build, Test run
What does not work:
- If Java Runtime Environment fails to initialize, some components will not work
- New TLF TextField
- New AS editor (fall back to old one)
- ActionScript will be ignored in the output application
(See How to resolve “Error initializing Java Runtime Environment” above)
- In the workspace, the contents are sometime clipped or hidden. But when I try scrolling or zooming, the contents appear fully again. This looks like being caused by the rendering library. (UPDATE FIX: View > Preview Mode > select Fast)
- The application can only start debug session once. If you attempt debug your application again, the application will notice that the debug socket is being used!
What was not tested:
- Build a AIR
- iPhone Packager
- Some other unpopular functions
I will post my report to AppDB when getting some more test results.
Adobe Media Encoder CS5 permalink
I also tried Adobe Media Encoder CS5. It ran but I could only open videos in some kind of format (3GP, MP4). Others (MPG, AVI…) failed to open. It seems like this program requires some default encoders available in Windows (which are not in Wine).
I will investigate further to improve the usability but this progress is very satisfactory to me. Now I can work with most projects without starting the virtual machine.
Update 2010-08-16: Added …/CS5/ to the folders need to copy, added 7. How to: resolve “Error initializing Java Runtime Environment” and 8. How to: Built applications cannot access online resources.
Update 2010-11-22: Flash CS5 stops at "building workspace" while initializing if Wine version is 1.3.7. I have no work around yet so if you want to run Flash CS5, please stay at Wine 1.3.6. (Photoshop CS5 may start normally)
Update 2010-12-02: The startup issue discussed above was fixed since Wine 1.3.8. Wine 1.3.8 was released at the end of Nov ‘10. You can now upgrade Wine to latest version to enjoy Flash CS5 on Linux. It is not likely that this issue will occur again in future version of Wine.
- I have just found out that if you switch Preview Mode to Fast (menu View > Preview Mode > Fast or Ctrl-Shift-Alt-F), the authoring stage will render much faster and virtually no more clipping issue.
- I have tried to run Flash CS 5.5 and Photshop CS 5.1 trial on Ubuntu 11.04 using the same procedure. They both started as expected with the trial reminder window as well. However, during working session, an error popup keep appearing after a while. To tackle this, use the winetrick suggested by a commenter below (thanks Endur)
$ winetricks nocrashdialog
[Vietnamese tags: Hướng dẫn chạy Adobe Flash CS5 trên Ubuntu (với Wine) | Làm sao để chạy Flash CS5 trên Ubuntu]