Created
July 12, 2013 09:57
-
-
Save dirkk0/5983271 to your computer and use it in GitHub Desktop.
Installing Cloud9 on Amazon EC2 (revisted, Cloud9 v0.7)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
git clone https://github.com/ajaxorg/cloud9.git
cd cloud9; sudo npm install
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 -
[email protected]:
$ ps -fe|grep c9$ ls c9sdk/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
[email protected]:
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 !