JupyterHub for Rocky Linux 9[edit]
Install[edit]
dnf install python3.11
dnf install python3.11-pip
pip3.11 install --upgrade pip
yum install npm
npm install -g configurable-http-proxy@4
Jupyter[edit]
export PIP_ROOT_USER_ACTION=ignore
# pip install jupyterhub==4.*
pip install jupyterhub
pip install jupyterhub-ltiauthenticator
pip install dockerspawner
pip install --upgrade notebook
pip install --upgrade jupyterlab
pip install jupyterlab-language-pack-ja-JP
pip install jupyter_server_fileid
pip install jupyter_server_ydoc
dnf install podman
dnf install podman-remote
dnf install podman-docker
systemctl start podman.socket
podman pull ghcr.io/jupyter-fumihax/jupyterhub-ltictr.singleuser
LTIContainerSpawner[edit]
groupadd podman
git clone https://github.com/jupyter-fumihax/lticontainerspawner
cd lticontainerspawner/
make
openssl[edit]
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"
Curler (Option)[edit]
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
Configure of LTIContainerSpawner[edit]
cd /usr/local/etc/ltictr
vi jupyterhub_lticontainer_config.py # change IP
firewall[edit]
firewall-cmd --add-port=443/tcp --permanent
firewall-cmd --reload