52: 2023-07-17 (月) 19:52:18 iseki |
現: 2023-12-04 (月) 11:30:44 iseki |
| (jupyterhub) # conda install -c conda-forge voila -y | | (jupyterhub) # conda install -c conda-forge voila -y |
| (jupyterhub) # conda install jupyter_client -y | | (jupyterhub) # conda install jupyter_client -y |
| + | |
| (jupyterhub) # git clone https://github.com/jupyterhub/nativeauthenticator.git | | (jupyterhub) # git clone https://github.com/jupyterhub/nativeauthenticator.git |
| (jupyterhub) # pip install -e nativeauthenticator (認証モジュール:オプション) | | (jupyterhub) # pip install -e nativeauthenticator (認証モジュール:オプション) |
| #br | | #br |
| **** pip を使用する. [#d08d0c8f] | | **** pip を使用する. [#d08d0c8f] |
- | - CentOS7 の場合は nodejs はバージョンが古くて,configurable-http-proxy でエラーが出るので,nodejs をバージョンアップする. | + | - nodejs: CentOS7 の場合は nodejs はバージョンが古くて,configurable-http-proxy でエラーが出るので,nodejs をバージョンアップする. |
| curl -sL https://rpm.nodesource.com/setup_14.x | bash - | | curl -sL https://rpm.nodesource.com/setup_14.x | bash - |
| yum remove nodejs npm -y | | yum remove nodejs npm -y |
| node -v | | node -v |
| -- nodejs のバージョンがアップしない場合は,/var/tmp/yum-root-* を消す | | -- nodejs のバージョンがアップしない場合は,/var/tmp/yum-root-* を消す |
| + | -- https://rpm.nodesource.com/setup_##.x は非推奨となった.(2023/12/4) |
| + | --- see https://github.com/nodesource/distributions |
| | | |
| npm install -g configurable-http-proxy | | npm install -g configurable-http-proxy |
| # openssl x509 -in server.csr -days 3650 -req -signkey private/key.pem -out certs/server.pem | | # openssl x509 -in server.csr -days 3650 -req -signkey private/key.pem -out certs/server.pem |
| # vi /usr/local/etc/jupyterhub/jupyterhub_config.py | | # vi /usr/local/etc/jupyterhub/jupyterhub_config.py |
| + | |
| # mkdir /var/lib/jupyterhub | | # mkdir /var/lib/jupyterhub |
| | | |
| **** Docker [#t87b07eb] | | **** Docker [#t87b07eb] |
| - nvidia-container-toolkit が必要 | | - nvidia-container-toolkit が必要 |
| + | -- コンテナ内からホストのGPUを使う |
| + | -- %%nvidia-smi などのコマンドがインストールされる.%% |
| #br | | #br |
| | | |
| - CUDA Toolkit : https://developer.nvidia.com/cuda-toolkit-archive | | - CUDA Toolkit : https://developer.nvidia.com/cuda-toolkit-archive |
| - Tool Kit をインストールするとドライバもインストールされる? (未確認) | | - Tool Kit をインストールするとドライバもインストールされる? (未確認) |
| + | #br |
| + | |
| + | *** Docker [#xa8f93e3] |
| + | - docker run --gpus all nvidia/cuda:12.2.0-devel-ubuntu20.04 nvidia-smi |
| + | -- Failed to initialize NVML: Unknown Error |
| + | -- ホストの /etc/nvidia-container-runtime/config.toml を編集して,no-cgroups = false にする. |
| #br | | #br |
| | | |