Last active
August 2, 2016 01:47
-
-
Save dmvianna/be6bf737b97893bb912e43c80d712459 to your computer and use it in GitHub Desktop.
Installing the necessary tools to start a JupyterHub instance
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
#!/bin/bash | |
# | |
# set up JupyterHub in a Debian instance | |
# | |
sudo apt-get update | |
echo 'export TERM=xterm' >> $HOME/.profile | |
sudo apt-get -y install bzip2 gcc libdigest-sha-perl libgmp-dev make python3 python3-pip python3-venv npm nodejs-legacy libzmq3-dev | |
sudo useradd -r rhea | |
sudo pip3 install jupyterhub sudospawner jsonschema ipywidgets | |
sudo groupadd shadow | |
sudo chgrp shadow /etc/shadow | |
sudo chmod g+r /etc/shadow | |
sudo usermod -a -G shadow rhea | |
sudo setcap 'cap_net_bind_service=+ep' /usr/bin/nodejs | |
sudo mkdir /etc/jupyterhub | |
sudo chown rhea /etc/jupyterhub | |
cd /etc/jupyterhub | |
# sudo -u rhea openssl req -x509 -newkey rsa:2048 -keyout key.pem -out cert.pem -days XXX |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment