- Moodle+JupyterHub/Debian (8d)
- 2023-03-13 (月) 18:30:21 by iseki
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
- 2023-03-13 (月) 18:30:21 by iseki
- Moodle+JupyterHub (12d)
- 2023-03-09 (木) 10:41:30 by iseki
Setup
Example
- Rocky Linux
- Debian
- 2023-03-09 (木) 10:41:30 by iseki
- netstat (43d)
- 2023-02-06 (月) 11:39:33 by iseki
Linux:
特定のポートを使用しているプロセスを調べる
- netstat -apn | grep ポート番号
Windows:
- netstat -apn | grep ポート番号
- 2023-02-06 (月) 11:39:33 by iseki
- openvas (43d)
- 2023-02-06 (月) 11:37:17 by iseki
- 9080に変更,またはリダイレクトしないようにする
または OPTIONS="--listen=0.0.0.0 --port=9392 --no-redirect"
- 9080に変更,またはリダイレクトしないようにする
- 2023-02-06 (月) 11:37:17 by iseki
- GitLab (53d)
- 2023-01-27 (金) 18:19:52 by iseki
- 順にバージョンを上げる必要がある.
# gitlab-ctl reconfigure # yum install gitlab-ce-5.2.* # gitlab-ctl reconfigure # yum install gitlab-ce-5.3.* # gitlab-ctl reconfigure # ........
- gitlab-ce-5.18 で蹴躓く
- 順にバージョンを上げる必要がある.
- 2023-01-27 (金) 18:19:52 by iseki
- Docker (63d)
- 2023-01-17 (火) 10:13:52 by iseki
2023 1/17 CentOS8 の update で Docker が動かなくなったので上記の方法で入れ直し.(containerd.io が runc と競合する場合)
- 2023-01-17 (火) 10:13:52 by iseki
- Dovecot (88d)
- 2022-12-23 (金) 10:51:09 by iseki
- /etc/dovecot
- 2022-12-23 (金) 10:51:09 by iseki
- Rocky Linux (102d)
- 2022-12-08 (木) 23:22:03 by iseki
- 後でチェック(2022/12/8)
- https://cbs.centos.org/koji/buildinfo?buildID=37021
- https://cbs.centos.org/koji/buildinfo?buildID=37021
- 後でチェック(2022/12/8)
- 2022-12-08 (木) 23:22:03 by iseki
- Sakura Saki's Memo (121d)
- 2022-11-20 (日) 01:59:22 by macsatou
RHEL8以降TCP Wrapper はない
Firewalldで対処すること
# firewall-cmd --permanent --zone=public --add-rich-rule="rule family="ipv4" source address="xxx.xxx.xxx.xxx" port protocol="tcp" port="22" accept" # firewall-cmd --remove-service=ssh --zone=public --permanent # firewall-cmd --reload # firewall-cmd --list-all --zone=public
- 2022-11-20 (日) 01:59:22 by macsatou
- ASN.1 (153d)
- 2022-10-19 (水) 13:23:25 by iseki
- 0x30:構造型シーケンス(SEQUENCE)
- 2022-10-19 (水) 13:23:25 by iseki
- LDAP/protocol (153d)
- 2022-10-19 (水) 13:20:37 by iseki
APPLICATION Constructed 0x60[0x40+0x20] (55)
- 2022-10-19 (水) 13:20:37 by iseki
- 389 Directory Server (153d)
- 2022-10-19 (水) 11:57:17 by iseki
NSL
- 2022-10-19 (水) 11:57:17 by iseki
- LDAP (153d)
- 2022-10-19 (水) 11:55:51 by iseki
- 389 Directory Server (NSLで使用 with phpLDAPadmin)
- 2022-10-19 (水) 11:55:51 by iseki
- OpenLDAP (153d)
- 2022-10-19 (水) 11:52:30 by iseki
- 389DS
- 2022-10-19 (水) 11:52:30 by iseki
- FrontPage (185d)
- 2022-09-17 (土) 13:26:34 by iseki
- http://polaris.star-dust.jp/pukiwiki/
- 2022-09-17 (土) 13:26:34 by iseki
- PHP/PHP8 (197d)
- 2022-09-05 (月) 16:19:32 by iseki
Install
dnf module list php dnf module reset php dnf module enable php:8.0 -y dnf module list php dnf rm php* dnf install php
- 2022-09-05 (月) 16:19:32 by iseki
- PHP/PHP7 (197d)
- 2022-09-05 (月) 16:18:12 by iseki
dnf module reset php
- 2022-09-05 (月) 16:18:12 by iseki
- Pecl (197d)
- 2022-09-05 (月) 16:17:22 by iseki
Install
- yum install php-pear
Command
- pecl install ...
- pecl uninstall ...
- pecl serach ...
- yum install php-pear
- 2022-09-05 (月) 16:17:22 by iseki
- PHP Extension (197d)
- 2022-09-05 (月) 16:13:42 by iseki
- undefined symbol: php_XML_GetCurrentColumnNumber のエラー
- 2022-09-05 (月) 16:13:42 by iseki
- PHP (197d)
- 2022-09-05 (月) 13:37:35 by iseki
Version
- PHP8
- 2022-09-05 (月) 13:37:35 by iseki
- CentOS8 (197d)
- 2022-09-05 (月) 12:52:35 by iseki
yum でアップデートできない
- 2022-09-05 (月) 12:52:35 by iseki
- Cockpit (201d)
- 2022-09-01 (木) 10:06:15 by iseki
- OS(RHEL8)の管理用 Webインターフェイス
- 2022-09-01 (木) 10:06:15 by iseki
- HP ProLiant (215d)
- 2022-08-18 (木) 17:23:53 by iseki
- ドライブの識別時に F8 を押し,論理パーティションを作り直す(ドライブの内容は消えない)
- 単体使用は RAID0を選択
- 2022-08-18 (木) 17:23:53 by iseki
- Docker_Crane (243d)
- 2022-07-21 (木) 14:12:49 by iseki
- http://www.nsl.tuis.ac.jp:5011/login
- 2022-07-21 (木) 14:12:49 by iseki
- JupyterHub/API/users_username (246d)
- 2022-07-18 (月) 12:10:49 by iseki
"tool_consumer_instance_guid": "5#########################0 ",
- 2022-07-18 (月) 12:10:49 by iseki
- JupyterHub/API/users_username_deocde_php (246d)
- 2022-07-18 (月) 12:10:23 by iseki
[tool_consumer_instance_guid] => 5#########################0
- 2022-07-18 (月) 12:10:23 by iseki
- JupyterHub/API (246d)
- 2022-07-18 (月) 11:47:03 by iseki
/users/{username}
- Results of /users/{username}
- decode by PHP
- 2022-07-18 (月) 11:47:03 by iseki
- JupyterHub/API/users_deocde_php (250d)
- 2022-07-14 (木) 15:17:32 by iseki
by json_decode()
- 2022-07-14 (木) 15:17:32 by iseki
- JupyterHub/API/users (250d)
- 2022-07-14 (木) 15:16:38 by iseki
Result of JupyterHub API /users
- 2022-07-14 (木) 15:16:38 by iseki
- JupyterHub (251d)
- 2022-07-13 (水) 14:15:06 by iseki
- API
- 2022-07-13 (水) 14:15:06 by iseki
- mod_lticontainer (259d)
- 2022-07-05 (火) 11:43:15 by iseki
- Webサーバの実効ユーザのホームディレクトリを調べて,そのディレクトリを実効ユーザの持ち物にする.
vipw /etc/passwd cd /usr/share/httpd/ chown apache.apache .
- Webサーバの実効ユーザのホームディレクトリを調べて,そのディレクトリを実効ユーザの持ち物にする.
- 2022-07-05 (火) 11:43:15 by iseki
- nbgrader (266d)
- 2022-06-28 (火) 11:12:59 by iseki
git clone https://github.com/ocordes/jupyterlab_nbgrader.git
- 2022-06-28 (火) 11:12:59 by iseki
- Python (284d)
- 2022-06-10 (金) 17:37:52 by iseki
* はデフォルト --auto でデフォルトになる + は現在の選択
- 2022-06-10 (金) 17:37:52 by iseki
- Podman (302d)
- 2022-05-23 (月) 18:52:11 by iseki
あるユーザの環境で動かない
/.config, ~/.local を消す.
- 2022-05-23 (月) 18:52:11 by iseki
- Sloodle (305d)
- 2022-05-20 (金) 14:35:11 by iseki
for OpemSim
Setup
- 2022-05-20 (金) 14:35:11 by iseki
- sort (308d)
- 2022-05-16 (月) 22:58:50 by iseki
先頭に - が付いた文字列を含んだデータのソート
- Rocky Linux (CentOS) の sort は - を無視しない.
- Debian, Ubuntsu の sort は - を無視する.(デフォルトで -d が有効?)
- 2022-05-16 (月) 22:58:50 by iseki
- Robocode (314d)
- 2022-05-11 (水) 12:45:42 by iseki
- 2022 5/11 JDK18 では Robocode で使用されている Security Manager が非推奨になっており,Robocodeが起動しない
- 2022-05-11 (水) 12:45:42 by iseki
- Moodle/recyclebin (329d)
- 2022-04-26 (火) 09:17:17 by iseki
- 2022-04-26 (火) 09:17:17 by iseki
- Moodle (329d)
- 2022-04-26 (火) 09:16:21 by iseki
- recyclebin
- 2022-04-26 (火) 09:16:21 by iseki
- Let's Encrypt (334d)
- 2022-04-21 (木) 08:58:21 by iseki
00 3 * * * /usr/bin/certbot renew 1>/dev/null 2>&1 && /etc/init.d/httpd restart 1>/dev/null 2>&1
- 2022-04-21 (木) 08:58:21 by iseki
- Debian (379d)
- 2022-03-07 (月) 14:56:58 by iseki
- 2022-03-07 (月) 14:56:58 by iseki
- yum (382d)
- 2022-03-04 (金) 09:24:33 by iseki
yum/dnf
- 2022-03-04 (金) 09:24:33 by iseki
- KVM (396d)
- 2022-02-18 (金) 15:49:43 by iseki
Install
- 2022-02-18 (金) 15:49:43 by iseki
- Ltictr_Proxy (400d)
- 2022-02-14 (月) 14:52:25 by iseki
- configurable-http-proxy との併用も可.
- mod_lticontainer で Charts機能を使用する場合に必要.
- 2022-02-14 (月) 14:52:25 by iseki
- mod_lticontainer/DB/mdl_lticontainer_tags (400d)
- 2022-02-14 (月) 11:49:52 by iseki
- 2022-02-14 (月) 11:49:52 by iseki
- mod_lticontainer/DB/mdl_lticontainer_session (400d)
- 2022-02-14 (月) 11:48:34 by iseki
- 2022-02-14 (月) 11:48:34 by iseki
- mod_lticontainer/DB/mdl_lticontainer_server_data (400d)
- 2022-02-14 (月) 11:47:30 by iseki
- 2022-02-14 (月) 11:47:30 by iseki
- mod_lticontainer/DB/mdl_lticontainer_client_data (400d)
- 2022-02-14 (月) 11:46:35 by iseki
- 2022-02-14 (月) 11:46:35 by iseki
- mod_lticontainer/DB/mdl_lticontainer (400d)
- 2022-02-14 (月) 11:45:10 by iseki
MariaDB [moodle_db]> show columns from mdl_lticontainer;
- 2022-02-14 (月) 11:45:10 by iseki
- mod_lticontainer/DB (400d)
- 2022-02-14 (月) 11:43:06 by iseki
- mdl_lticontainer
- mdl_lticontainer_client_data
- mdl_lticontainer_server_data
- mdl_lticontainer_session
- mdl_lticontainer_tags
- 2022-02-14 (月) 11:43:06 by iseki
- JupyterHub/LTIDockerSpawner (400d)
- 2022-02-14 (月) 11:38:34 by iseki
- see also. Moodle+JupyterHub, and 対応Moodleモジュール(mod_lticontainer)
- 2022-02-14 (月) 11:38:34 by iseki
- mod_ltids (400d)
- 2022-02-14 (月) 11:36:16 by iseki
- 2022-02-14 (月) 11:36:16 by iseki
- LTI (408d)
- 2022-02-06 (日) 13:21:13 by iseki
v1.3.0
- pip install jupyterhub-ltiauthenticator==1.3.0
- pip install jupyterhub-ltiauthenticator==1.3.0
- 2022-02-06 (日) 13:21:13 by iseki
- configurable-http-proxy (410d)
- 2022-02-04 (金) 10:30:12 by iseki
Hack
- 2022-02-04 (金) 10:30:12 by iseki
- pip (439d)
- 2022-01-06 (木) 08:50:38 by iseki
パッケージの確認
# pip list
- 2022-01-06 (木) 08:50:38 by iseki
- Anaconda (439d)
- 2022-01-06 (木) 08:50:00 by iseki
- パッケージの確認
(base) # conda list
- 2022-01-06 (木) 08:50:00 by iseki
- Moodle/Programming (448d)
- 2021-12-28 (火) 02:58:53 by iseki
Capability
- RISK_SPAM - ユーザーがサイトに目に見えるコンテンツを追加したり,他のユーザーにメッセージを送ることができます.
- RISK_PERSONAL - 個人情報へのアクセス - 例:ユーザー詳細のバックアップ,プロフィールの非公開情報(隠しメール)等;本来は isteacher() で保護されています.
- RISK_XSS - ユーザーがクリーンアップされていないコンテンツ (アクティブなコンテンツを含む HTML と保護されていないファイルの両方) を送信することができます.
- RISK_CONFIG - ユーザーがグローバルな設定を変更できる,アクションにサニティチェックがない
- RISK_MANAGETRUST - 他ユーザーのトラストビットマスクを管理する.
- RISK_DATALOSS - 容易に復元できない大量の情報を破壊する可能性があります.
- Capability が正常に反映されない場合は,一旦 db/access.php の設定部分をコメントアウトして,更新する(version を上げる)
- その後コメントを外して,更新する(version を上げる)
- 2021-12-28 (火) 02:58:53 by iseki
- IPython (466d)
- 2021-12-10 (金) 17:56:59 by iseki
- https://matsubara0507.github.io/posts/2017-04-18-create-io-kernel-for-jupyter.html
- https://jupyter-client.readthedocs.io/en/latest/wrapperkernels.html
- https://qiita.com/antimon2/items/7d9c084b142d38b67b1f
- https://qiita.com/SaitoTsutomu/items/3c996bde01ef2637aadc
- 2021-12-10 (金) 17:56:59 by iseki
- Swift (480d)
- 2021-11-26 (金) 16:34:41 by iseki
Docker error: failed to launch REPL process: process launch failed: 'A' packet returned an error: 8
- 2021-11-26 (金) 16:34:41 by iseki
- JupyterHub/DockerSpawner (521d)
- 2021-10-16 (土) 14:22:59 by iseki
import sys
- 2021-10-16 (土) 14:22:59 by iseki