flagflag  
1: 2023-03-09 (Thu) 10:42:19 iseki source Cur: 2023-03-13 (Mon) 18:30:21 iseki source
Line 1: Line 1:
** 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/jupyte​rhub/jupyterhub/a6b7e303df03865d6420f6bc​cdf627b39f1d0dc1/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/ltic​ontainerspawner.git
 +  218  cd lticontainerspawner/
 +  221  make install
 +
 +
 +# vi /usr/local/etc/jupyter_docker_config.py
 +
 +# vi /usr/lib/systemd/system/jupyterhub.servi​ce
 +# 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/l​aunch
 +
 +b18e82ec683724743236fade71350720029a2914​4a585c66f6741d8e9c6e0d83
 +c0fe2924dbb0f4701d898d36aaf9fd89c7a3ed3a​7db6f0003d0e825a7eccb41c


Front page   New List of Pages Search Recent changes   Help   RSS of recent changes (RSS 1.0) RSS of recent changes (RSS 2.0) RSS of recent changes (RSS Atom)

Site Search

Login

Username:

Password:


Lost Password?
Register now!!

Sub Menu

mini Calendar

Last MonthMay 2024Next Month
Su Mo Tu We Th Fr Sa
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
Today

Who's Online

35 user(s) are online (2 user(s) are browsing xpwiki)

Members: 0
Guests: 35

more...

Access Counter

Today : 2292229222922292
Yesterday : 6761676167616761
Total : 2371474923714749237147492371474923714749237147492371474923714749
Powered by XOOPS Cube 2.1© 2001-2006 XOOPS Cube Project
Design by XoopsDesign.com