- Install jupyter
conda activate base
which pip
pip install notebook==6.0.3
jupyter-notebook --generate-config
- Configure jupyter
gedit ~/.jupyter/jupyter_notebook_config.py
c.NotebookApp.ip = '192.168.xxx.1' # IP address of pritunl VPN server
c.NotebookApp.password_required = False
c.NotebookApp.port = 1312
c.NotebookApp.token = ''
- Install service
sudo cp jupyter.service /etc/systemd/system/
sudo systemctl enable jupyter.service
sudo systemctl daemon-reload
sudo systemctl start jupyter.service
systemctl status jupyter.service
Reference:
https://naysan.ca/2019/09/07/jupyter-notebook-as-a-service-on-ubuntu-18-04-with-python-3/