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

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

  • http://twitter.com/fthomas_fr Frédéric Thomas

    Nice tutorial, it works for me. Thanks !

  • Eugen Soloviov

    sm: command not found

    • Michael Stuhr

      let sudo go:

      “sm install” should do it.

  • http://twitter.com/singalongwithme Anthony Singhavong

    I followed these instructions but when i go to localhost:3131, nothing shows up. I just get an Oops eror when I visit my localhost:3131, even though my shell is telling me that the IDE server has already been initialized.

  • Andrew

    Appears to be broken now, specifically with version 0.6.19:

    npm ERR! Error: No compatible version found: jsftp@’>=0.5.4- <0.6.0-'

    • Will

      I got round this by cloning the git repo for jsDAV (which is where the jsFTP issue lies) and changing the dependency in the package.json file to require 0.5.3. Seems to be building ok now, but not sure if Cloud9 will work as intended. Guessing that a minimum version of 0.5.4 was required for a reason!!

  • Dean Dunn

    This doesnt work anymore, issue with install sm. An update would be welcome.

    • kjaklik

      I’ve got it working just yesterday by using node version 0.6.21, it helps wih jsFTP issue, and is not that far away from proposed version. After sm-installing cloug9 runns ok on version 0.6.21 and on 0.6.19

  • Arvind Gupta

    Thanks for the tutorial, working with Node version 0.8.18 also on ubuntu 12.10.

  • Spencer Hall

    A couple things to note, because I was trying to set this up on an absolutely clean LAMP/OpenSSL ubuntu server.

    First, it appears to no longer work with the version mentioned, and I tried v0.8.18

    I also needed to install libxml2-dev, but other than that it’s working just fine.

    I’m planning on doing this plus some other things to make a virtual machine that I can always have available with the tools and editor I need, so thanks.