From 639c77ec5b39dbb05f5a1f5c789700341683a7b8 Mon Sep 17 00:00:00 2001 From: manetta Date: Mon, 20 Sep 2021 19:20:58 +0200 Subject: [PATCH] adding more details to the README while setting up the sandbol --- README.md | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 7df602d..6638dc9 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,25 @@ -We use the make_user_accounts.py script with the following scripts: +First jupyterlab needs to be installed: + +`pip3 install jupyterlab` + +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 * `--servername`: sandbol -- a string + +The script generates: + +* `users.csv`: a list of all the users, their personal ports, their passwords +* `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: + +`sudo cp templates/jupyterlab@.service /etc/systemd/system` + +This service file is a template for all the jupyter lab services that are running, which is one for each user. + +Now try to start one jupyterlab instance with: + +`sudo systemctl start jupyter@murtaugh` \ No newline at end of file