export PIP_ROOT_USER_ACTION=ignore apt update apt install python3.11 python3.11-distutils python3.11 -m ensurepip --upgrade python3.11 -m pip install --upgrade pip # これで pip 使用可 apt -y install npm npm install -g configurable-http-proxy@4
apt remove python3-jsonschema pip install jupyterhub==4.* # JupyterHub5 は未サポート pip install jupyterhub-ltiauthenticator pip install dockerspawner pip install notebook pip install jupyterlab pip install jupyterlab-language-pack-ja-JP pip install jupyter_server_fileid pip install jupyter_server_ydoc
mkdir -p /etc/apt/keyrings curl -fsSL https://download.docker.com/linux/ubuntu/gpg \ | gpg --dearmor -o /etc/apt/keyrings/docker.gpg chmod a+r /etc/apt/keyrings/docker.gpg
echo \ "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] \ https://download.docker.com/linux/ubuntu noble stable" \ | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
podman pull ghcr.io/jupyter-fumihax/jupyterhub-ltictr.singleuser
groupadd podman git clone https://github.com/jupyter-fumihax/lticontainerspawner cd lticontainerspawner/ make
openssl req -x509 -newkey rsa:2048 -sha256 -days 365 -nodes \ -keyout /etc/pki/tls/private/jh_test.key \ -out /etc/pki/tls/certs/jh_test.crt \ -subj "/CN=localhost"
vi /usr/local/etc/ltictr/jupyterhub_lticontainer_config.py # change my_ip_addr
firewall-cmd --add-port=443/tcp --permanent firewall-cmd --reload
systemctl start jupyterhub
pip install wheel pip install pycurl wget https://raw.githubusercontent.com/jupyterhub/jupyterhub/a6b7e303df03865d6420f6bccdf627b39f1d0dc1/examples/cull-idle/cull_idle_servers.py cp cull_idle_servers.py /usr/local/bin chmod a+rx /usr/local/bin/cull_idle_servers.py vi /usr/local/etc/ltictr/jupyterhub_lticontainer_config.py # Culler を有効にする
jupyterhub upgrade-db
または
\rm /var/lib/jupyterhub/*