Skip to content

Instantly share code, notes, and snippets.

@wjordan
Last active July 10, 2021 15:10
Show Gist options
  • Save wjordan/11104188 to your computer and use it in GitHub Desktop.
Save wjordan/11104188 to your computer and use it in GitHub Desktop.
installs blockly onto ubuntu server
cat <<END_ROOT_SCRIPT | sudo /bin/bash -s
set -e # exit if any command exits with nonzero
export DEBIAN_FRONTEND=noninteractive
# run as root
apt-get update
apt-get install -y software-properties-common
apt-add-repository -y ppa:chris-lea/node.js
apt-get update
apt-get install -y git nodejs libcairo2-dev libjpeg8-dev libpango1.0-dev libgif-dev build-essential g++
npm install -g grunt-cli
END_ROOT_SCRIPT
# run as user
git clone https://github.com/code-dot-org/blockly.git $HOME/blockly
cd $HOME/blockly
npm install
MOOC_DEV=1 grunt build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment