Skip to content

Instantly share code, notes, and snippets.

@lequanghuylc
Last active November 18, 2020 08:02
Show Gist options
  • Save lequanghuylc/eb87cad0e8b3445d57cbdabc00b1ab35 to your computer and use it in GitHub Desktop.
Save lequanghuylc/eb87cad0e8b3445d57cbdabc00b1ab35 to your computer and use it in GitHub Desktop.
[bash snippet to install c9sdk to ubuntu server]
sudo apt-get update
echo "Install nodejs 12..."
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
sudo apt-get install -y nodejs
echo "Install yarn..."
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt update && sudo apt install yarn -y
echo "Install pm2..."
sudo npm i -g pm2
echo "Install nginx..."
sudo apt install nginx -y
echo "Install git..."
sudo apt install git -y
echo "Install c9sdk..."
git clone https://github.com/c9/core.git c9sdk
cd c9sdk
sudo apt install build-essential -y
sudo apt install python2-minimal -y
scripts/install-sdk.sh
echo "DONE"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment