How to install Cloud 9 IDE on Ubuntu 12.04 LTS (Precise Pangolin)

Out of date content ahead!

This post is from 2012 and is now very out of date.

The easiest way to use Cloud 9 is to simply use it online (in the Cloud) at c9.io.

But if like me you want to run it on your own computer with Ubuntu 12.04, here’s how.

1. Install the prerequisites

sudo apt-get install -y build-essential g++ curl libssl-dev apache2-utils git libxml2-dev
# Remove any previous version of node
sudo apt-get remove nodejs

2. Install node using nvm
Nvm makes it easy to install and switch between multiple version of Node. Currently Cloud9 works with Node version 0.6.19, which unfortunately means you can’t use the version provided in the Ubuntu repositories.

To install nvm along with Node 0.6.19, simply do:

git clone git://github.com/creationix/nvm.git ~/nvm
echo '. ~/nvm/nvm.sh' >> ~/.bashrc && . ~/.bashrc
nvm install v0.6.19
nvm use v0.6.19

3. Install sourcemint

sudo npm install -g sm

4. Install Cloud 9

cd ~/
git clone https://github.com/ajaxorg/cloud9.git cloud9
cd cloud9
sudo sm install

Finished!
That’s it, you can now run it!

nvm use 0.6.19 && cd ~/cloud9 && bin/cloud9.sh

To start it in a directory do:

nvm use 0.6.19 && cd ~/cloud9 && bin/cloud9.sh -w ~/path/to/edit

Then go to http://localhost:3131

You need JavaScript enabled to see comments.