20 lines
376 B
Bash
20 lines
376 B
Bash
#!/bin/bash
|
|
|
|
# Install Python & pip
|
|
apt update
|
|
apt upgrade
|
|
apt install -y python3 python3-pip
|
|
pip3 install --upgrade pip
|
|
|
|
# Install Proxy
|
|
apt install -y npm
|
|
npm install -g configurable-http-proxy
|
|
|
|
# Install JupyterHub & Notebook
|
|
pip3 install notebook jupyterhub --break-system-packages
|
|
|
|
# Generate config & move
|
|
jupyterhub --generate-config
|
|
mv jupyterhub_config.py /root
|
|
|