Sunday, May 31, 2009

Installing Aptana Studio on Ubuntu

Aptana Studio is one my favorite IDEs for Web Development. It has excellent Syntax Highlighting and Code Completion for HTML, CSS, Javascript, PHP, Ruby, etc.

I have been using it for more than 2 years on Windows. I recently installed Ubuntu 9.04 Linux on my machine. I tried installing Aptana Studio on Ubuntu but to my surprise, installing Aptana on Ubuntu is not as easy as it is on Windows and Mac. I searched online alot and finally found the solution at http://maketecheasier.com/install-aptana-studio-in-ubuntu-intrepid/2009/03/23

Here are the steps to install it...

1. Download and install all dependencies. Open Terminal and enter this command
sudo apt-get install sun-java6-jre sun-java6-plugin xulrunner

2. Download Aptana for Linux from http://72.3.219.182/studio/download/thanks?platform=standalone&os=linux&ev=3.4

2. Save it in your Home Directory and Unzip it there.

3. Create one executable file. (eg. launchAptana.sh)

4. Write this in that file.
#!/bin/bash
export MOZILLA_FIVE_HOME=/usr/lib/xulrunner
/home/damien/aptana/AptanaStudio #filepath to Aptana folder
5. Right Click on that file and give it execute permission.


Now you can run Aptana Studio
by double clicking on that newly created file.

Upgrading to newer Version

I had to uninstall Ubuntu from my machine due to some reason. I again installed Ubuntu 7.10 on my last night. I wanted to upgrade it to 9.04 (Jaunty Jackalope). I tried doing to using Upgrade Manager (System -> Administration -> Upgrade Manager) but it upgraded it to 8.04. I then came to know that I can not upgrade directly to 9.04. I have to pass through all the versions in between. So, I upgraded to 8.04. After upgrading to 8.04, I tried to upgrade it to 8.10 (next release after 8.04) but it did not work. I always said "System is up to date".

I googled online but found no luck (May be I did not try hard. I am a lazy ass ;-) ). Finally I got solution from http://twitter.com/be3 on Twitter.

It's very simple. Go to Console and type update-manager -d

It then upgraded to 8.10 (as I said, we need to pass through all intermediate releases). I should hopfully be able to upgrade to version 9.04. :-)