Getting Twhirl and Other Adobe AIR Apps Working on Ubuntu 64
There's been some pretty fun and interesting stuff coming out of the Adobe AIR platform. I've tinkered with building some stuff on the platform myself, but most of my use of AIR-related has been using the wide array of Twitter apps. That's probably the biggest category of AIR apps at the moment.
I've been using Twhirl pretty heavily and prefer it to the web interfaces. However, while Twhirl and AIR run on my Windows boxes and my Mac, my primary laptop/workstation runs Ubuntu, which isn't a first class citizen in the AIR world.
I like to have the same tools available on all of my workstations whenever possible. So, when an alpha for Linux was announced, I took note, planning to get it installed when I got a chance.
Just before I left for Ireland, I gave it a shot, downloading the .bin file, running it and getting about half way through the installer before the install dying. I looked up the error only to find that I was out of luck. While Adobe supports many Linux distributions, including the one I use, what it *doesn't* support is the 64 bit version that I'm running.
So, today at lunch, I went looking for a way to get it running, despite Adobe's lack of support. So many of the apps that claim not to work on 64 bit Linux actually work just fine if you do it right.
What I found on several sites all boiled down to the same answer/solution. There are some glitches that are kind of a pain (like Twhirl not saving my passwords), but I've got Twhirl running on Ubuntu 64. Here's how to do it.
First, rather than the regular AIR for Linux, download the AIR SDK at the bottom of this page. I extracted that archive to the following path:
/home/j/Software/AdobeAIRSDK
Second, get an app like Twhirl. You need to save the .air file somewhere. It, like so many things these days, is a ZIP file.
So, I unzipped it to the path:
/home/j/Software/twhirl
with the following command:
unzip /home/j/Downloads/twhirl-0.8.3.air
Then, you need to run a complicated commandline to actually launch the AIR app. That, of course, calls for a shell script.
So, I created the file:
/home/j/Software/twhirl/twhirl.sh
and put the following contents in it, all on one line:
/home/j/Software/AdobeAIRSDK/bin/adl -nodebug /home/j/Software/twhirl/META-INF/AIR/application.xml /home/j/Software/twhirl
Then, to make that script executable, you have to run:
chmod +x /home/j/Software/twhirl/twhirl.sh
From there, you can either just run it from a command prompt or create a launcher up in the task bar. Right click and "Add to Panel". Choose "Custom Application Launcher".
In the "Name" box, put "Twhirl".
In the "Command" box, put "/home/j/Software/twhirl/twhirl.sh" (obviously adjust for your username).
If you want a different icon, click the springy icon in the top left and click OK when you're done.
Click your new launcher icon and you'll see the Twhirl app launch.
There you are. It's working. Sort of.
There's still problems and I expect that eventually, it will work the "normal" way. Until then, this will get the job done without having to boot up a virtual machine.

July 16th, 2008 at 1:44 am
[...] Source [...]
July 19th, 2008 at 5:43 am
Thanks for making this how to and making it so easy to understand. Only problem I had was user error.. typing lowercase instead of upper where appropriate and putting it all in the wrong directories. Not being able to use twhirl has kept me using windoes. Now I can spend more time on ubuntu! Woot!
July 20th, 2008 at 2:22 am
[...] Wynia posted a pretty good (if semi-hacky) tutorial on how to get AIR applications running in Ubuntu 64. Like every other 64 bit question aimed at Adobe, I have no idea what the status of official 64 bit [...]
August 12th, 2008 at 6:03 am
I followed the guide and keep getting the error echoed "initial content not found" also get it from the command line. Ubuntu Hardy x64
August 12th, 2008 at 6:06 am
nm. when i posted that comment i saw the last bit of the script that was cut off.!!! /home/j/Software/twhirl was cut off by the comment box.
August 12th, 2008 at 12:48 pm
Sorry about that, I'm still trying to work out the best way to do code samples on this site. Every method I've tried has some problems that I'm not happy with.
September 8th, 2008 at 11:18 am
loki's comment is important. I have the same problem. The large font used for commands does not behave wrap appropriately (firefox 3) and is overwritten by text in the comments column.
hmm.
September 8th, 2008 at 11:20 am
Sorry. I fired off my message before I read down to see you had already responded.
September 8th, 2008 at 12:22 pm
Fixed.
September 8th, 2008 at 12:33 pm
I see! I just reloaded by mistake and freaked for a sec. Thanks!
September 15th, 2008 at 11:07 pm
[...] Permane invece l'impossibilità di installare le applicazioni tramite il badge sui siti che lo espongono e l'impossibilità di usare AIR su distribuzioni che non supportano la pacchettizzazione deb o rpm se non attraverso complicati accrocchi. Anche chi sceglie linux a 64 bit non se la vede ancora tanto bene. [...]