pip install requests==2.29.0
--- base.py- 2023-05-07 01:44:18.173130119 -0400 +++ base.py 2023-05-07 01:44:31.750265669 -0400 @@ -235,7 +235,8 @@ def check_xsrf_cookie(self): try: - return super().check_xsrf_cookie() + return True + #return super().check_xsrf_cookie() except Exception as e: # ensure _juptyerhub_user is defined on rejected requests if not hasattr(self, "_jupyterhub_user"):
(base) # dnf config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo (base) # dnf -y install docker-ce docker-ce-cli containerd.io --nobest --allowerasing (base) # systemctrl enable docker (base) # systemctrl start docker (base) # docker pull jupyterhub/singleuser (base) # docker pull jupyter/datascience-notebook
(base) # dnf -y install podman (base) # dnf -y install podman-remote (base) # dnf -y install podman-docker
# yum install python39 # alternatives --config python3 # /usr/bin/pip3.9 install --upgrade pip # yum install npm # npm install -g configurable-http-proxy # pip install setuptools_rust # pip install jupyterhub # pip install dockerspawner # pip install jupyter # pip install --upgrade notebook # pip install --upgrade jupyterlab # pip install jupyterlab-language-pack-ja-JP # jupyterhub --version # jupyter --version # jupyter notebook --version # jupyter lab --version
# pip install --upgrade pip # pip install --upgrade jupyter # pip install --upgrade jupyterhub # pip install --upgrade dockerspawner # pip install --upgrade notebook # pip install --upgrade jupyterlab
(base) # conda create -n jupyterhub python=3.8 -y (base) # conda activate jupyterhub (jupyterhub) # conda install -c conda-forge notebook -y (jupyterhub) # conda install -c conda-forge jupyterlab -y (jupyterhub) # conda install -c conda-forge jupyterhub==1.4.2 -y (jupyterhub) # conda install -c conda-forge voila -y (jupyterhub) # conda install jupyter_client -y (jupyterhub) # pip --no-cache-dir install git+https://github.com/jupyterhub/dockerspawner.git #(必要なら)
# git clone https://github.com/aperezdc/nss-altfiles.git # cd nss-altfiles/ # ./configure --prefix=/usr --datadir=/usr/local/etc --with-type=pwd,grp # make # make install # ln -s /usr/lib/libnss_altfiles.so.2 /usr/lib64/libnss_altfiles.so # ldconfig
# cd /usr/local/etc # wget https://XXXX/.../passwd # wget https://XXXX/.../group (group は 必要な物だけ /etc/group を編集しても良い)
passwd: files altfiles group: files altfiles
(jupyterhub)# pip install --upgrade jupyterhub-ltiauthenticator
# for LTI v1.2.0 c.JupyterHub.authenticator_class = 'ltiauthenticator.LTIAuthenticator' c.LTI11Authenticator.consumers = { "b18e82ec683724743236fade71350720029a29144a585c66f6741d8e9c6e0d83" : "c0fe2924dbb0f4701d898d36aaf9fd89c7a3ed3a7db6f0003d0e825a7eccb41c" } c.LTI11Authenticator.username_key = 'ext_user_username'
pip install jupyterhub-ltiauthenticator cd ......./ltiauthenticator patch -p1 < ~/mdldockerspawner/etc/ltiauthenticator-1.0.0.path
pip3 install wheel pip3 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 cd lticontainerspawner/ make
[Unit] Description=Podman API Socket Documentation=man:podman-system-service(1) [Socket] ExecStartPre=/usr/bin/chgrp podman /var/run/podman ExecStartPre=/usr/bin/chmod g+rwxs /var/run/podman ListenStream=%t/podman/podman.sock SocketMode=0660 [Install] WantedBy=sockets.target
# adduser podman # passwd podman # vi /usr/lib/systemd/system/podman.socket # mkdir /var/run/podman # systemctl enable podman # systemctl start podman
# svn co http://www.nsl.tuis.ac.jp/svn/linux/JunkBox_Lib/trunk JunkBox_Lib # cd JunkBox_Lib # ./config.sh # ./configure --enable-ssl # make # cd .. # svn co http://www.nsl.tuis.ac.jp/svn/linux/feserver/trunk feserver # cd feserver # make # vi nbsw.conf # ./fesvr ...... -m feplg_nbws.so --conf nbsw.conf