Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen Revision Vorhergehende Überarbeitung | |||
playground:about:coworking:jupyterhub [2025/05/16 01:23] 47.128.30.25 alte Version wiederhergestellt (2025/04/16 05:30) |
playground:about:coworking:jupyterhub [2025/05/16 06:52] (aktuell) 47.128.126.250 alte Version wiederhergestellt (2025/04/19 19:34) |
||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
+ | ====== JupyterLabServer als Web-Jupyter-Hub mit Docker ====== | ||
+ | |||
+ | |||
+ | http:// | ||
+ | |||
+ | |||
+ | https:// | ||
+ | |||
+ | https:// | ||
+ | |||
offizielle Doku: https:// | offizielle Doku: https:// | ||
+ | |||
+ | 18 Minuten Multiuser JupyterLab Server mit JupyterHub in Docker Video {{ : | ||
+ | |||
+ | [[https:// | ||
+ | Als Download die drei Dateien zur Startkonfiguration. | ||
+ | |||
+ | öffentliche Beispielseite: | ||
+ | |||
+ | * {{ : | ||
+ | * {{ : | ||
+ | * {{ : | ||
+ | * Repository enthält die Dateien https:// | ||
Installations PresentationsPDF + Youtube https:// | Installations PresentationsPDF + Youtube https:// | ||
+ | ===== berlincreators.de ===== | ||
+ | |||
+ | https:// | ||
+ | |||
+ | http:// | ||
+ | [[cowork: | ||
+ | |||
+ | https:// | ||
+ | |||
+ | |||
+ | <note tip> | ||
+ | |||
+ | This quay.io/ | ||
+ | |||
+ | </ | ||
===== Jupyter Server aus lokalen Verzeichnisen starten ===== | ===== Jupyter Server aus lokalen Verzeichnisen starten ===== | ||
This launches a Tornado-based Jupyter Server. \\ | This launches a Tornado-based Jupyter Server. \\ | ||
Zeile 55: | Zeile 92: | ||
Nun noch folgenden Befehl ausführen um JupyterHub-Server zu starten. | Nun noch folgenden Befehl ausführen um JupyterHub-Server zu starten. | ||
- | docker compose up -d | + | docker compose up -d --build |
| | ||
Öffne `http:// | Öffne `http:// | ||
Zeile 87: | Zeile 124: | ||
Falls noch eine zweite Subdomain möglich ist sozusagen als Meisterstückadresse wäre ibex.spielwiese.bergemann-hoehne.com super wobei spielwiese auch durch beliebige Domainnamensyntax variabel sein kann. Diese zweite geht auf die IP 185.89.38.58 | Falls noch eine zweite Subdomain möglich ist sozusagen als Meisterstückadresse wäre ibex.spielwiese.bergemann-hoehne.com super wobei spielwiese auch durch beliebige Domainnamensyntax variabel sein kann. Diese zweite geht auf die IP 185.89.38.58 | ||
// | // | ||
+ | |||
+ | ==== Authentifikation mit GitHub ==== | ||
+ | |||
+ | https:// | ||
+ | |||
+ | https:// | ||
+ | |||
+ | https:// | ||
+ | |||
+ | benötigt: | ||
+ | - Application name Something users will recognize and trust. | ||
+ | * ibex-tljh | ||
+ | - Homepage URL The full URL to your application homepage. | ||
+ | * http:// | ||
+ | - Application description This is displayed to all users of your application. | ||
+ | * The Littlest JupyterHub Server auf dem IBEX Laptop wenn dieser im Büro-Netzwerk der Synology angeschlossen ist. | ||
+ | - Authorization callback URL Your application’s callback URL. Read our OAuth documentation for more information. | ||
+ | * http:// | ||
+ | |||
+ | |||
+ | |||
+ | Client ID 5fd0150ba241c0c8fde1 | ||
+ | Client secrets f889d2ef26ca21b758db34ae868ecb9a6ddc9b6c | ||
+ | Added Jan 8, 2024 by itbsStefan Never used | ||
+ | You cannot delete the only client secret. Generate a new client secret first. | ||
+ | |||
+ | bearbeite die Konfiguration: | ||
+ | < | ||
+ | sudo tljh-config set auth.GitHubOAuthenticator.client_secret '< | ||
+ | sudo tljh-config set auth.GitHubOAuthenticator.oauth_callback_url ' | ||
+ | sudo tljh-config set auth.type oauthenticator.github.GitHubOAuthenticator | ||
+ | sudo tljh-config reload | ||
+ | </ | ||
+ | |||
+ | ==== Authentifikation zurück setzen ==== | ||
+ | |||
+ | the FirstUseAuthenticator is enabled by default in TLJH. | ||
+ | < | ||
+ | sudo tljh-config set auth.type firstuseauthenticator.FirstUseAuthenticator | ||
+ | sudo tljh-config reload | ||
+ | </ | ||
+ | Users who are currently logged in will continue to be logged in. When they log out and try to log back in, they will be asked to provide a username and password. | ||
+ | Users changing their own password | ||
+ | |||
+ | Users can change their password by first logging into their account and then visiting the url < | ||
+ | |||
+ | Allowing anyone to log in to your JupyterHub | ||
+ | |||
+ | By default, you need to manually create user accounts before they will be able to log in to your JupyterHub. If you wish to allow any user to access the JupyterHub, run the following command. | ||
+ | < | ||
+ | tljh-config set auth.FirstUseAuthenticator.create_users true | ||
+ | tljh-config reload | ||
+ | </ | ||
+ | |||
+ | |||
+ | ---- | ||
+ | $ docker network create --subnet=255.255.255.0/ | ||
====== Startvoraussetzungen ====== | ====== Startvoraussetzungen ====== | ||
intrepid-ibex@intrepid-ibex: | intrepid-ibex@intrepid-ibex: |