Created
August 9, 2018 16:00
-
-
Save Jarrioja/2fb63280f54dcc88339f5de6793a6bb8 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| #!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/946cd833494f84a03fbd1b02704158b5/raw/675b607f619075206f32455c5efe9e58910d2941/jupyterhub_config.py | |
| pip3 install jupyterlab | |
| jupyter serverextension enable --py jupyterlab --sys-prefix | |
| jupyter labextension install @jupyterlab/hub-extension --dev | |
| jupyter lab build --dev | |
| #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