Skip to content

Instantly share code, notes, and snippets.

@matheusmota
Created September 11, 2019 20:54
Show Gist options
  • Save matheusmota/8fedfbce13aef40754282633cb47c818 to your computer and use it in GitHub Desktop.
Save matheusmota/8fedfbce13aef40754282633cb47c818 to your computer and use it in GitHub Desktop.

Installation

sudo apt-get -y install python3-pip
sudo apt-get -y install npm nodejs
sudo npm install -g configurable-http-proxy
sudo pip3 install jupyterhub jupyterlab

Running jupyterhub as a system service

https://github.com/jupyterhub/jupyterhub/wiki/Run-jupyterhub-as-a-system-service

wget https://gist.githubusercontent.com/lambdalisue/f01c5a65e81100356379/raw/ecf427429f07a6c2d6c5c42198cc58d4e332b425/jupyterhub
sudo mv jupyterhub /etc/init.d/jupyterhub
sudo chmod +x /etc/init.d/jupyterhub
# Create a default config to /etc/jupyterhub/jupyterhub_config.py
sudo jupyterhub --generate-config -f /etc/jupyterhub/jupyterhub_config.py
# Reload systemctl daemon to notice the init.d script
sudo systemctl daemon-reload
# Start jupyterhub
sudo service jupyterhub start
# Stop jupyterhub
sudo service jupyterhub stop
# Start jupyterhub on boot
sudo update-rc.d jupyterhub defaults
# Or use rcconf to manage services http://manpages.ubuntu.com/manpages/natty/man8/rcconf.8.html
sudo rcconf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment