Installing and Running Aptana on Ubuntu 8.10 (Ubuntu Intrepid)

by andrew

Since Linux distributions started shipping with Firefox 3 Aptana has become harder and harder to get running error free. After getting a nice fresh Ubuntu 8.10 install running my first task was to get Aptana running so that in a pinch I could belt out some code and get myself paid.

There are only a couple of steps required to get Aptana running on Ubuntu 8.10. Install Java and install Firefox 2. Don’t panic I have never had trouble doing this despite the warning bells you are probably hearing. Firefox 2 and 3 can happily be installed on the same machine without argument.

Step 1: Install Java on Ubuntu

Simple, hardly requires a step.

  1. Go to Applications -> Add/Remove
  2. Change the Show drop down to read “All Available Applications”
  3. Search for Java
  4. Tick and Install Sun Java 6 Runtime – feel free to use one of the others, your choice but I can’t vouch for them working – Aptana says they prefer Sun and that is good enough for me.

Step 2: Install Firefox 2 on Ubuntu 8.10

The theory here is simple. Change your package sources to Ubuntu 7.10 (Gusty Gibbon) ones, which make Firefox 2 available, install Firefox 2, and then revert your package sources.

Back up our existing source list to make it easy to revert later.

sudo mv /etc/apt/sources.list /etc/apt/sources.list.original

Create a new package source list

gksudo gedit /etc/apt/sources.list

Paste the following list of package sources into this new file and save and close it.

deb http://archive.canonical.com/ubuntu hardy partner
deb http://br.archive.ubuntu.com/ubuntu/ hardy main universe restricted multiverse
deb http://security.ubuntu.com/ubuntu/ hardy-security universe main multiverse restricted
deb http://br.archive.ubuntu.com/ubuntu/ hardy-updates universe main multiverse restricted
deb http://packages.medibuntu.org/ hardy free non-free

Update using the new (well technically old) package source and install Firefox Two.

sudo apt-get update
sudo apt-get install firefox-2

Step 3: Cleaning up the mess and getting the system back to usable

Copy back our original package source list

sudo mv /etc/apt/sources.list.original /etc/apt/sources.list

Update your package sources for next time.

sudo apt-get update

Step 4: Downloading and Running Aptana on Ubuntu 8.10

  1. Download Aptana from http://aptana.com/studio/download
  2. Create a script to launch it with the correct settings
    1. Create a new text file called startAptana in your home directory
    2. Add the following
    3. #!/bin/bash
      export MOZILLA_FIVE_HOME=/usr/lib/firefox
      /usr/local/aptana/AptanaStudio
    4. Make the file executable by running
    5. sudo chmod a+x startAptana
    6. from the Terminal

All things being equal you should now be able to ./startAptana and away you go.

Troubleshooting

If you get Java errors and can not find JRE messages change

/usr/local/aptana/AptanaStudio

to

/usr/local/aptana/AptanaStudio -vm /usr/lib/jvm/java-6-sun-1.6.0.10/jre/bin/java

(or whatever the path to your Java runtime is) in your startAptana file

{ 25 comments… read them below or add one }

timmy November 2, 2008 at 4:44 am

Thanks for this tutorial. Now I can go slang some code too!

Reply

btain2xml November 3, 2008 at 10:24 pm

I just moved on U8.10 and had problem with missing FireFox2 package. Now. thanks to you it’s ok!

Reply

Brandon Eubanks November 4, 2008 at 5:45 pm

Weird I’ve had no problems just upgraded to 8.10, CSS, HTML, Java editing seemed to work just fine
Ubuntu 8.10 AMD64
Eclipse Ganymede SDK 3.41 Build ID:M20080911-1700
Aptana Pro (trial) 1.2.0.018696_200810230202
Subversion 1.2.4
WTP 1.2.0.018852
No errors whatsoever here in intrepid, nor before in hardy

Reply

andrew November 4, 2008 at 7:13 pm

I think the key for you was upgrading – the issue with Aptana is that is requires files (and files in locations) that the Firefox 2 install provides. If you are upgrading form a system that has previously had Firefox 2 (even if you upgraded to 3) you should be OK.

Reply

web design November 12, 2008 at 1:58 am

so straight forward, and easy to follow

Reply

jsjsjs November 21, 2008 at 11:05 am

excellent thanks for sharing… i got stuck with the JRE (on Hardy) and wasn't sure what to do until I read this!!!

Reply

bran2xml December 3, 2008 at 10:12 am

wery well

Reply

King Louie December 7, 2008 at 11:46 am

Cheers! Worked a treat.

Reply

Stefan Andersson December 18, 2008 at 10:32 am

Great, it worked! Thanx a lot!

Reply

Moobles January 4, 2009 at 7:18 am

Excellent! Worked a treat first. Cheers. :)

Reply

Joren Six January 5, 2009 at 10:11 am

Thanks

Reply

atom January 21, 2009 at 10:18 pm

thank you very much, this was the most reasonable guide I found on doing this. Now how about one that details adding PDT to Aptana ;)

Reply

Amitava January 27, 2009 at 11:34 am
Xavier Gómez February 3, 2009 at 6:53 pm

thanks you. It works perfectly for me.

Just one more thing to improve the post, it may mean that you must move the aptana folder (that you downloaded) to "/usr/local/aptana"

Cheers from barcelona!

Reply

morion4000 February 28, 2009 at 7:59 pm

thank you for your help. works perfect.

Reply

Tuan Anh March 3, 2009 at 1:25 am

Thank you for this tutorial. I've read many tuts on net, but no one says about Firefox-2. No i have Aptana on my computer.

Thanks a lot

Reply

Gagan March 17, 2009 at 7:43 am

Thank you for providing valuable information

Reply

Tihomir Petkov March 19, 2009 at 8:11 pm

Great! Thank you so much!

Reply

Dementrio Macias March 24, 2009 at 3:35 pm

Muchas gracias!
Me funcionó a la perfección

Reply

Alvaro Brange March 27, 2009 at 12:58 am

Thank you, I followd another tutorials, but just it help me. ;)

Reply

morion4000 April 9, 2009 at 9:06 am

hello! me again… can I translate your tutorial into romanian and post it to my web blog (with a back-link to your post, of course)?

thank you in advance!

Reply

andrewbleakley April 13, 2009 at 6:23 am

no worries, be my guest

Reply

AlSayed Gamal April 10, 2009 at 7:59 pm

Great :)
My notes are:
1- sudo mv aptana /usr/local
2- It must not be br.* repos I'm from Egypt and it's eg :)

Thank you :)

Reply

mustafa ekicim April 23, 2009 at 10:53 am

i can't install plugin aptana on ubuntu

Reply

Peter Severin July 14, 2009 at 12:40 pm

Aptana and Ubuntu make for a great web development platform. Perhaps you and your readers would be interested to find out about WireframeSketcher wireframing/prototyping plugin. I've recently added support for Aptana Studio 1.5 so give it a try. I should mention that it's a commercial product but I give away free licenses to open-source developers, bloggers, non-profits and others.

Reply

Leave a Comment

Previous post:

Next post: