Last active
July 10, 2021 15:10
-
-
Save wjordan/11104188 to your computer and use it in GitHub Desktop.
installs blockly onto ubuntu server
This file contains 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
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