Skip to content

Instantly share code, notes, and snippets.

@Jarrioja
Created August 8, 2018 15:33
Show Gist options
  • Select an option

  • Save Jarrioja/3e326ea9814d9db96148d46aa4e428e2 to your computer and use it in GitHub Desktop.

Select an option

Save Jarrioja/3e326ea9814d9db96148d46aa4e428e2 to your computer and use it in GitHub Desktop.
#!bin/bash
# quietly add a user without password
adduser --quiet --disabled-password --shell /bin/bash --home /home/adminhub --gecos "User" adminhub
# set password
echo "adminhub:adminhub" | chpasswd
wget https://repo.anaconda.com/archive/Anaconda3-5.2.0-Linux-x86_64.sh
bash Anaconda3-5.2.0-Linux-x86_64.sh -b
#Install NodeJS
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
apt-get -y install nodejs
#Install Java Runtime Environment
sudo apt-get -y install default-jre
#Install Python 3
apt-get -y install python3-pip
#Install configurable-http-proxy
npm install -g configurable-http-proxy
#Install Optimus & Spark
pip3 install optimuspyspark
#Install JupyterHub
pip3 install jupyterhub
#Upgrade notebook
pip3 install --upgrade notebook
#Generate Config File
mkdir /etc/jupyterhub
cd /etc/jupyterhub
wget https://gist.github.com/Jarrioja/e139370b824405b849efa830cd773444/raw/f3bb7a98a019291690700dd083396ce364890a5c/jupyterhub_config.py
#Run Jupyterhub
jupyterhub --config /etc/jupyterhub/jupyterhub_config.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment