JupyterHub/Install/Ubuntu Server 24
をテンプレートにして作成
[
トップ
] [
タイトル一覧
|
ページ一覧
|
新規
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
* JupyterHub for Ubuntu Server 24
- [[Ubuntu Server]]
** Install & Setup
*** Install
**** Python 3.11 (pip)
add-apt-repository ppa:deadsnakes/ppa
apt -y install python3.11 python3.11-distutils
apt -y install python3-pip
python3.11 -m pip install --ignore-installed --break-sys...
pip --version
apt -y remove python3-jsonschema
**** configurable-http-proxy 4.x.x
apt -y install npm
npm install -g configurable-http-proxy@4
**** Jupyter
export PIP_ROOT_USER_ACTION=ignore
pip install jupyterhub==4.* # Ju...
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
pip install jnotice # メッセージ表示用
**** リポジトリ
- 鍵
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=/et...
https://download.docker.com/linux/ubuntu noble stable...
| sudo tee /etc/apt/sources.list.d/docker.list > /dev...
**** docker
apt update
apt install -y docker-ce docker-ce-cli containerd.io doc...
systemctl start docker # or systemctl enable --now d...
ps ax|grep docker
**** docker image
docker pull ghcr.io/jupyter-fumihax/jupyterhub-ltictr.si...
**** LTIContainerSpawner
apt -y install build-essential autoconf automake autotoo...
git clone https://github.com/jupyter-fumihax/lticontaine...
cd lticontainerspawner/
make jp
*** 最小セットアップ
**** openssl (TEST用のサーバ証明書)
openssl req -x509 -newkey rsa:2048 -sha256 -days 365 -no...
-keyout /etc/ssl/private/jupyterhub.key \
-out /etc/ssl/certs/jupyterhub.crt \
-subj "/CN=localhost"
**** Configure of LTIContainerSpawner
vi /usr/local/etc/ltictr/jupyterhub_lticontainer_config....
*** 接続テスト
vipw # ユーザのグループを 100 辺りにしてお...
systemctl start jupyterhub
ps ax|grep jupyterhub
- https://IPアドレス/ # システムに存在するユーザで...
*** Install of Options
**** Culler
pip install wheel
pip install pycurl
wget https://raw.githubusercontent.com/jupyterhub/jupyte...
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....
** Trouble Shooting
*** JupyterHub のログ
- journalctl -u jupyterhub
*** JupyterHub のバージョンを変更
jupyterhub upgrade-db
または
\rm /var/lib/jupyterhub/*
終了行:
* JupyterHub for Ubuntu Server 24
- [[Ubuntu Server]]
** Install & Setup
*** Install
**** Python 3.11 (pip)
add-apt-repository ppa:deadsnakes/ppa
apt -y install python3.11 python3.11-distutils
apt -y install python3-pip
python3.11 -m pip install --ignore-installed --break-sys...
pip --version
apt -y remove python3-jsonschema
**** configurable-http-proxy 4.x.x
apt -y install npm
npm install -g configurable-http-proxy@4
**** Jupyter
export PIP_ROOT_USER_ACTION=ignore
pip install jupyterhub==4.* # Ju...
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
pip install jnotice # メッセージ表示用
**** リポジトリ
- 鍵
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=/et...
https://download.docker.com/linux/ubuntu noble stable...
| sudo tee /etc/apt/sources.list.d/docker.list > /dev...
**** docker
apt update
apt install -y docker-ce docker-ce-cli containerd.io doc...
systemctl start docker # or systemctl enable --now d...
ps ax|grep docker
**** docker image
docker pull ghcr.io/jupyter-fumihax/jupyterhub-ltictr.si...
**** LTIContainerSpawner
apt -y install build-essential autoconf automake autotoo...
git clone https://github.com/jupyter-fumihax/lticontaine...
cd lticontainerspawner/
make jp
*** 最小セットアップ
**** openssl (TEST用のサーバ証明書)
openssl req -x509 -newkey rsa:2048 -sha256 -days 365 -no...
-keyout /etc/ssl/private/jupyterhub.key \
-out /etc/ssl/certs/jupyterhub.crt \
-subj "/CN=localhost"
**** Configure of LTIContainerSpawner
vi /usr/local/etc/ltictr/jupyterhub_lticontainer_config....
*** 接続テスト
vipw # ユーザのグループを 100 辺りにしてお...
systemctl start jupyterhub
ps ax|grep jupyterhub
- https://IPアドレス/ # システムに存在するユーザで...
*** Install of Options
**** Culler
pip install wheel
pip install pycurl
wget https://raw.githubusercontent.com/jupyterhub/jupyte...
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....
** Trouble Shooting
*** JupyterHub のログ
- journalctl -u jupyterhub
*** JupyterHub のバージョンを変更
jupyterhub upgrade-db
または
\rm /var/lib/jupyterhub/*
ページ名: