Skip to content

Instantly share code, notes, and snippets.

@dirkk0
Created July 12, 2013 09:57
Show Gist options
  • Save dirkk0/5983271 to your computer and use it in GitHub Desktop.
Save dirkk0/5983271 to your computer and use it in GitHub Desktop.
Installing Cloud9 on Amazon EC2 (revisted, Cloud9 v0.7)
sudo apt-get update
# get ec2 ip and hostname
sudo apt-get install -y build-essential g++ libssl-dev apache2-utils git libxml2-dev screen
#install node
git clone https://github.com/joyent/node.git
# git checkout v0.10.13 did work once, but I couldn't work again, so I fell back to 0.8
#compilation takes over 30 minutes on a t1.micro
cd node; git checkout v0.8.22; ./configure; make; sudo make install; cd ..
sudo npm install -g sm
sudo /usr/local/lib/node_modules/sm/bin/sm install-command
# version 0.7
git clone https://github.com/ajaxorg/cloud9.git
cd cloud9; sudo npm install
screen -S cloud9server -L -dm bash -c "cd cloud9; sudo ./bin/cloud9.sh -l 0.0.0.0 -p 8000"
# now browse to http://[EC2_EXERNAL_IP]:8000
@bbecker88
Copy link

Hi, thanks for the install steps! very useful! I'm running an ubuntu instance, and in my case before start the server I needed to run the following commands:

  • npm install formidable@latest
  • npm install gnu-tools@latest

If not, the cloud9 server won't start because of the missing modules.
After few hours, the cloud9 server went down, but the process was still running.

@nadavsn
Copy link

nadavsn commented Jul 27, 2013

That's great. Thanks

@rojagit
Copy link

rojagit commented Feb 22, 2015

Hi, thanks for this post, I followed a couple others that didnt work so gave this a shot.

This did not work as they moved the c9 repo

so I followed the instructions in the moved page.
Everything seemed to run without a hitch

Then I ran this
screen -S cloud9server -L -dm bash -c "cd c9sdk; sudo ./bin/c9 -l 0.0.0.0 -p 8000"

and http://my-ec2-ip:8000/ just times out

This is what I see -
hduser@ip-172-..-37-22:$ ps -fe|grep c9
hduser 3848 1 0 15:41 ? 00:00:00 SCREEN -S cloud9server -L -dm bash -c cd c9sdk; sudo ./bin/c9 -l 0.0.0.0 -p 8000
hduser 3849 3848 0 15:41 pts/9 00:00:00 bash -c cd c9sdk; sudo ./bin/c9 -l 0.0.0.0 -p 8000
root 3850 3849 0 15:41 pts/9 00:00:00 sudo ./bin/c9 -l 0.0.0.0 -p 8000
hduser 3924 3363 0 15:42 pts/5 00:00:00 grep --color=auto c9
and
hduser@ip-172-..7-22:
$ ls c9sdk/
bin configs LICENSE node_modules package.json README.md scripts settings
build docs local npm-debug.log plugins screenlog.0 server.js test

I also tried borisbecker's suggestions still no avail.

Would appreciate any response to my predicament...thanks in advance !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment