Skip to content

Instantly share code, notes, and snippets.

@x5engine
Last active July 4, 2016 19:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save x5engine/70c4db76b59eaec64e047825b93d9e59 to your computer and use it in GitHub Desktop.
Save x5engine/70c4db76b59eaec64e047825b93d9e59 to your computer and use it in GitHub Desktop.
On Click instal Cloud9 with script
# Up-To-Date script as of July 4, 2016
# Tested on: "Linux Ubuntu 14.04 LTS 64-bit"
# Tested on: "Linux Mint 17.2 Cinnamon 32-bit"
# Oracle VirtualBox v5.0.16 r105871
# [- Prepare System -]
sudo apt-get update
sudo apt-get install -y python-software-properties
sudo apt-get install -y python make build-essential g++ curl
sudo apt-get install -y libssl-dev apache2-utils git libxml2-dev
sudo apt-get upgrade # I feel like this line may be optional
# [- Create Central Git Repo -]
# (or use your own location)
mkdir ~/GitHub
cd ~/GitHub
git clone https://github.com/c9/core # clone Cloud9
git clone https://github.com/creationix/nvm.git ~/.nvm # clone nvm
# Cloud 9 v3 is currently developed with Node.js v0.10 and v0.12
source ~/.nvm/nvm.sh
nvm install 0.10
# [- Setup Cloud9 -]
cd core
# sudo is omitted because npm is owned by <user>
npm install packager
npm install
./scripts/install-sdk.sh
sudo npm install forever -g
#use this to keep it alive forever `forever start server.js -w ~/git/ -l my.host.name -p 8181 --username riaEvangelist --password is4MyYsOnly`
#add a port like 8181
echo "- END OF LINE -"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment