From d0f3093680859984cade30add4ad638231adc18c Mon Sep 17 00:00:00 2001 From: manetta Date: Sun, 14 Jan 2024 11:18:45 +0100 Subject: [PATCH] updating the readme --- README.md | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 08bf4c0..5f52d2b 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,16 @@ First the following software needs to be installed: `pip3 install jupyterlab notebook` -You can use the make_user_accounts.py script with the following scripts: +First copy the service file template: + +`sudo cp templates/jupyterlab@.service /etc/systemd/system` + +And the lab.conf nginx configuration file: + +`sudo mkdir /etc/nginx/includes` +`sudo cp templates/lab.conf /etc/nginx/includes/` + +Now you can use the make_user_accounts.py script with the following scripts: * `--passwords`: words.txt -- a txt file with ingredient words on each line to generate passwords with * `--from_file`: users.txt -- a txt file with a username on each line @@ -14,11 +23,16 @@ The script generates: * `users.md`: a bulletpoint list with a link to the `/__LAB__/` link for each user * `users.nginx.conf`: snippets of nginx configuration that can be added to the main nginx config file -Then the service file template is copied: +This service file is a template for all the jupyter lab services that are running, which is one for each user. -`sudo cp templates/jupyterlab@.service /etc/systemd/system` +Now add the generated nginx configurations for each jupyterlab instance: -This service file is a template for all the jupyter lab services that are running, which is one for each user. +`cat users.nginx.conf` +`sudo nano /etc/nginx/sites-available/default` + +And convert the markdown into HTML to add links to the index page: + +`pandoc users.md -o users.html` Now try to start one jupyterlab instance with: