Last active
February 28, 2022 09:18
-
-
Save anton-petrov/f31ac8b8504ab9ed99c4e152ffec11be to your computer and use it in GitHub Desktop.
Installing JupyterHub on Linux Ubuntu (Debian)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [Unit] | |
| Description=JupyterHub | |
| [Service] | |
| Type=simple | |
| Environment="PATH=/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/opt/anaconda3/bin" | |
| ExecStart=/usr/bin/env jupyterhub --port=10001 | |
| User=root | |
| Group=root | |
| Restart=on-failure | |
| RestartSec=5s | |
| [Install] | |
| WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
First install Anaconda3, then NodeJS, Jupyter Hub, configurable-http-proxy.
Change permissions:
'ds' means Data Science.
Activate conda:
Install JupyterHub:
sudo python3 -m pip install jupyterlab notebook jupyterhubTest your installation. If installed, these commands should return the packages’ help contents:
Start the Hub server
To start the Hub server, run the command:
jupyterhubVisit http://localhost:8000 in your browser, and sign in with your unix credentials.
To allow multiple users to sign in to the Hub server, you must start jupyterhub as a privileged user, such as root:
sudo jupyterhubCreate JupyterHub.service file and copy paste content to it from this gist:
sudo nano /etc/systemd/system/JupyterHub.serviceStart a systemd service named JupyterHub and autostart it on boot. It is running on port 10001.
If the config file needs to be edited, run
sudo systemctl daemon-reloadafter that.