1: 2023-03-09 (木) 10:42:19 iseki  |
現: 2023-03-13 (月) 18:30:21 iseki  |
| ** Setup Example for Debian [#yb9a33d9] | | ** Setup Example for Debian [#yb9a33d9] |
| + | apt update |
| + | apt upgrade |
| + | |
| + | vi /etc/exports |
| + | exportfs -rav |
| + | |
| + | |
| + | /etc/hosts |
| + | /etc/fstab |
| + | apt install nfs-common |
| + | |
| + | |
| + | |
| + | apt install docker |
| + | |
| + | apt install docker.io |
| + | /lib/systemd/systemd-sysv-install enable docker |
| + | |
| + | python3 -V |
| + | apt install python3-pip |
| + | pip3 -V |
| + | |
| + | pip3 install --upgrade pip |
| + | apt install npm |
| + | |
| + | |
| + | 74 pip3 install --upgrade pip |
| + | 75 apt install npm |
| + | 76 npm install -g configurable-http-proxy |
| + | 78 pip install setuptools_rust |
| + | 79 pip install jupyterhub |
| + | 80 pip install dockerspawner |
| + | 81 pip install --upgrade notebook |
| + | 82 pip install --upgrade jupyterlab |
| + | 83 jupyterhub --version |
| + | 84 jupyter --version |
| + | 85 jupyter notebook --version |
| + | 86 jupyter lab --version |
| + | |
| + | |
| + | 90 git clone https://github.com/aperezdc/nss-altfiles.git |
| + | 91 ls -l |
| + | 92 cd nss-altfiles/ |
| + | 93 cd .. |
| + | 94 mv nss-altfiles/ /usr/local/src |
| + | 95 cd /usr/local/src/nss-altfiles/ |
| + | 96 ls -l |
| + | 97 ./configure --prefix=/usr --datadir=/usr/local/etc --with-type=pwd,grp |
| + | 98 make |
| + | 99 make install |
| + | 100 ls -l /usr/lib64 |
| + | 101 ln -s /usr/lib/libnss_altfiles.so.2 /usr/lib64/libnss_altfiles.so |
| + | 102 ls -l /usr/lib64 |
| + | 103 ldconfig |
| + | |
| + | /usr/local/etc/passwd |
| + | |
| + | vi /etc/nsswitch.conf |
| + | passwd: files altfiles |
| + | |
| + | |
| + | |
| + | pip install --upgrade jupyterhub-ltiauthenticator |
| + | |
| + | |
| + | pip install wheel |
| + | pip install pycurl (pthon3-devel が必要) |
| + | 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 |
| + | |
| + | git clone https://gitlab.nsl.tuis.ac.jp/iseki/lticontainerspawner.git |
| + | 218 cd lticontainerspawner/ |
| + | 221 make install |
| + | |
| + | |
| + | # vi /usr/local/etc/jupyter_docker_config.py |
| + | |
| + | # vi /usr/lib/systemd/system/jupyterhub.service |
| + | # systemctl enable jupyterhub.service |
| + | # systemctl start jupyterhub.service |
| + | |
| + | Executing: /lib/systemd/systemd-sysv-install enable docker |
| + | [root@aldebaran etc]:252# systemctl start docker |
| + | |
| + | adduser --gid 112 --home /home/users/docker --disabled-login docker |
| + | |
| + | chown docker.docker /var/run/docker |
| + | |
| + | |
| + | [root@aldebaran etc]:265# cd /var/lib/docker/ |
| + | [root@aldebaran docker]:266# ls -l |
| + | 合計 44 |
| + | drwx--x--x 4 root root 4096 3月 9 12:29 buildkit/ |
| + | drwx--x--- 2 root root 4096 3月 9 12:29 containers/ |
| + | drwx------ 3 root root 4096 3月 9 12:29 image/ |
| + | drwxr-x--- 3 root root 4096 3月 9 12:29 network/ |
| + | drwx--x--- 3 root root 4096 3月 9 12:29 overlay2/ |
| + | drwx------ 4 root root 4096 3月 9 12:29 plugins/ |
| + | drwx------ 2 root root 4096 3月 9 12:29 runtimes/ |
| + | drwx------ 2 root root 4096 3月 9 12:29 swarm/ |
| + | drwx------ 2 root root 4096 3月 9 12:29 tmp/ |
| + | drwx------ 2 root root 4096 3月 9 12:29 trust/ |
| + | drwx-----x 2 root root 4096 3月 9 12:29 volumes/ |
| + | [root@aldebaran docker]:267# mv volumes volumes- |
| + | [root@aldebaran docker]:268# ln -s /home/containers/volumes . |
| + | [root@aldebaran docker]:269# |
| + | systemctl enable ltictr_proxy.service |
| + | systemctl enable jupyterhub.service |
| + | apt install apache2 |
| + | |
| + | systemctl start apahce2 |
| + | certbot certonly --webroot -w /var/www/html -d aldebaran.nsl.tuis.ac.jp |
| + | |
| + | |
| + | |
| + | chown podman.podman -R /var/run/podman |
| + | |
| + | |
| + | https://antares.nsl.tuis.ac.jp/hub/lti/launch |
| + | |
| + | b18e82ec683724743236fade71350720029a29144a585c66f6741d8e9c6e0d83 |
| + | c0fe2924dbb0f4701d898d36aaf9fd89c7a3ed3a7db6f0003d0e825a7eccb41c |