updating the readme

master
manetta 10 months ago
parent a92eb00da1
commit d0f3093680

@ -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:

Loading…
Cancel
Save