Skip to content

Instantly share code, notes, and snippets.

@naniwaKun
Last active September 21, 2017 14:05
Show Gist options
  • Save naniwaKun/054a7f2d5ddb133d01b57c25a24ab2b6 to your computer and use it in GitHub Desktop.
Save naniwaKun/054a7f2d5ddb133d01b57c25a24ab2b6 to your computer and use it in GitHub Desktop.
Install.sh
sudo apt update
sudo apt upgrade
sudo apt install gcc make python2.7 nodejs npm git
git clone git://github.com/c9/core.git c9sdk
cd c9sdk
scripts/install-sdk.sh
cd ~
sudo mv c9sdk /opt/
mkdir workspace
echo " /usr/bin/node /opt/c9sdk/server.js -l 127.0.0.1 -w $home/workspace" > cloud9
sudo mv cloud9 /usr/local/bin/
sudo chmod 755 /usr/local/bin/cloud9
echo 'var ws = new ActiveXObject("WScript.Shell");ws.Run("C:\\Windows\\System32\\bash.exe -c \"/usr/local/bin/cloud9 -D\"", 0);' > cloud9.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment