Getting Twhirl and Other Adobe AIR Apps Working on Ubuntu 64

Jul
14
2008

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.

 

Comments on this post

Feedback is always welcome. Read some from other folks or leave your own below. Just keep things civil and remember that what you post lives on in public. Forever.

Thanks,
J

14 Responses to “Getting Twhirl and Other Adobe AIR Apps Working on Ubuntu 64”

  1. Getting Twhirl and Other Adobe AIR Apps Working on Ubuntu 64 « Rich Internet Applications Says:

    [...] Source [...]

  2. Curtis Cross Says:

    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!

  3. Ryan Stewart - Rich Internet Application Mountaineer » Blog Archive » Getting AIR Applications Running in Ubuntu 64bit Says:

    [...] 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 [...]

  4. lokis Says:

    I followed the guide and keep getting the error echoed "initial content not found" also get it from the command line. Ubuntu Hardy x64

  5. lokis Says:

    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.

  6. J Wynia Says:

    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.

  7. mark Says:

    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.

  8. mark Says:

    Sorry. I fired off my message before I read down to see you had already responded.

  9. J Wynia Says:

    Fixed.

  10. mark Says:

    I see! I just reloaded by mistake and freaked for a sec. Thanks!

  11. Prova su strada: Adobe Air 1.1 BETA per Linux Says:

    [...] 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. [...]

  12. Mark Says:

    I almost got it! I get the following error though:

    libgnome-keyring.so: cannot open shared object file: No such file or directory
    Error: EncryptedLocalStore database access error

    Any ideas?

  13. GreyDuck Says:

    Oh, this is exactly what I needed. It's working! It's ALIVE!

    Er. Sorry, mad scientist moment there.

  14. greyduck.net » Give it a Twhirl Says:

    [...] Twitter interactions. I'm a big, big fan so far of Twhirl… and now, thanks to these instructions, I can run Twhirl under Kubuntu (the current Linux installation on my [...]

Leave Your Own Comment

By submitting a comment, you agree to license it under the terms of the Creative Commons Attribution license.

People who post comments get the added benefit of visiting the site without advertising.

© 2003-2008 J Wynia. All original content is licensed under the terms of the Creative Commons Attribution license unless otherwise noted. Content from other sources is licensed under its original terms.