Benutzer-Werkzeuge

Webseiten-Werkzeuge


playground:about:coworking:jupyterhub

Dies ist eine alte Version des Dokuments!


Startvoraussetzungen

intrepid-ibex@intrepid-ibex:~$ cat /etc/issue.net 

Ubuntu 22.04.3 LTS

$ git --version

git version 2.34.1

$ python3 --version

Python 3.10.12

$ node --version

v21.1.0

$ npm --version

10.2.0

$ nvm --version

0.39.1

Es wird zur Installation auch Root-Zugriff benötigt. (mit su) conda in /opt installieren jupyterhub

$ sudo chown intrepid-ibex:users /srv/
$ ls -la /srv/
insgesamt 8
drwxr-xr-x  2 intrepid-ibex users 4096 Aug  8 00:52 .
drwxr-xr-x 20 root          root  4096 Okt 26 22:12 ..
$ sudo usermod -aG users intrepid-ibex 
$ sudo usermod -aG www-data intrepid-ibex 
$ git clone https://github.com/minrk/jupyterhub-pydata-2016 /srv/jupyterhub
$ cd /srv/jupyterhub
srv/jupyterhub$ ls -la
insgesamt 156
drwxrwxr-x 5 intrepid-ibex intrepid-ibex  4096 Nov 16 13:20 .
drwxr-xr-x 3 intrepid-ibex users          4096 Nov 16 13:20 ..
-rw-rw-r-- 1 intrepid-ibex intrepid-ibex  8374 Nov 16 13:20 authenticators.ipynb
-rw-rw-r-- 1 intrepid-ibex intrepid-ibex   215 Nov 16 13:20 env
-rw-rw-r-- 1 intrepid-ibex intrepid-ibex   215 Nov 16 13:20 environment.yml
drwxrwxr-x 8 intrepid-ibex intrepid-ibex  4096 Nov 16 13:20 .git
-rw-rw-r-- 1 intrepid-ibex intrepid-ibex    84 Nov 16 13:20 .gitattributes
-rw-rw-r-- 1 intrepid-ibex intrepid-ibex    43 Nov 16 13:20 .gitignore
drwxrwxr-x 2 intrepid-ibex intrepid-ibex  4096 Nov 16 13:20 img
-rw-rw-r-- 1 intrepid-ibex intrepid-ibex   895 Nov 16 13:20 jupyterhub_config.py-docker
-rw-rw-r-- 1 intrepid-ibex intrepid-ibex   590 Nov 16 13:20 jupyterhub_config.py-localgithub
-rw-rw-r-- 1 intrepid-ibex intrepid-ibex   233 Nov 16 13:20 jupyterhub_config.py-ssl
-rw-rw-r-- 1 intrepid-ibex intrepid-ibex   132 Nov 16 13:20 JupyterHub.key
-rw-rw-r-- 1 intrepid-ibex intrepid-ibex   131 Nov 16 13:20 JupyterHub.pdf
-rw-rw-r-- 1 intrepid-ibex intrepid-ibex   590 Nov 16 13:20 README.md
-rw-rw-r-- 1 intrepid-ibex intrepid-ibex  5372 Nov 16 13:20 rest-api.ipynb
-rw-rw-r-- 1 intrepid-ibex intrepid-ibex 70164 Nov 16 13:20 spawners.ipynb
drwxrwxr-x 2 intrepid-ibex intrepid-ibex  4096 Nov 16 13:20 supervisor
-rw-rw-r-- 1 intrepid-ibex intrepid-ibex  2053 Nov 16 13:20 timeline.md

conda installieren

https://learnubuntu.com/install-conda/

https://docs.conda.io/en/latest/miniconda.html?ref=learnubuntu.com#linux-installers

$ chmod -v +x ~/Downloads/Miniconda*.sh
$ /Downloads/Miniconda3-py310_23.9.0-0-Linux-x86_64.sh 
... installation finished.
Do you wish to update your shell profile to automatically initialize conda?
This will activate conda on startup and change the command prompt when activated.
If you'd prefer that conda's base environment not be activated on startup,
   run the following command when conda is activated:

conda config --set auto_activate_base false

You can undo this by running `conda init --reverse $SHELL`? [yes|no]
[no] >>> 
You have chosen to not have conda modify your shell scripts at all.
To activate conda's base environment in your current shell session:

eval "$(/home/intrepid-ibex/miniconda3/bin/conda shell.YOUR_SHELL_NAME hook)" 

To install conda's shell functions for easier access, first activate, then:

conda init

Thank you for installing Miniconda3!
intrepid-ibex@intrepid-ibex:~/Downloads$ 
intrepid-ibex@intrepid-ibex:/srv/jupyterhub$ pip --version

pip 23.2.1 from /home/intrepid-ibex/miniconda3/lib/python3.10/site-packages/pip (python 3.10)

(base) intrepid-ibex@intrepid-ibex:~$ conda --version

conda 23.9.0 (update $ conda update -n base -c defaults conda install conda=23.10.0)

$ conda install -c conda-forge jupyterhub
$ conda install notebook
$ cd /srv/jupyterhub/
$ conda env create -f environment.yml

(base) intrepid-ibex@intrepid-ibex:/srv/jupyterhub$ jupyterhub –version 3.1.1

$ openssl req -x509 -nodes -days 365 -newkey rsa:1024 -keyout ssltest.key -out ssltest.crt
...............................................++++++++++++++ 
-----
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [AU]:DE
State or Province Name (full name) [Some-State]:Berlin
Locality Name (eg, city) []:Berlin
Organization Name (eg, company) [Internet Widgits Pty Ltd]:localAkademie
Organizational Unit Name (eg, section) []:B&H
Common Name (e.g. server FQDN or YOUR name) []:spielwiese.itbs.selfhost.me
Email Address []:ibex@quantentunnel.de

trusted ssl certificate ist notwendig 1) Nur mit einer echten Domain kann man Let'sEncryt verwenden.

https://letsencrypt.org/de/getting-started/

(base) intrepid-ibex@intrepid-ibex:~/bhCode/certbotletsencrypt$ ./letsencrypt-auto-source/letsencrypt-auto certonly –standalone -d itbs.selfhost.co Requesting to rerun ./letsencrypt-auto-source/letsencrypt-auto with root privileges… [sudo] Passwort für intrepid-ibex: Skipping bootstrap because certbot-auto is deprecated on this system. Your system is not supported by certbot-auto anymore. Certbot cannot be installed. Please visit https://certbot.eff.org/ to check for other alternatives.


ibex:/srv/jupyterhub$ jupyterhub --generate-config
$ nano jupyterhub_config.py
1)
xsplit
/volume1/web/dokuwiki/data/attic/playground/about/coworking/jupyterhub.1742013039.txt.gz · Zuletzt geändert: 2025/03/15 05:30 von 20.171.207.209