From 6587123f0158f20a0734b6886d09d2c962abc2c4 Mon Sep 17 00:00:00 2001 From: Kay0u Date: Fri, 10 Apr 2020 19:25:39 +0200 Subject: [PATCH] Adding update_config_files.md --- conf/jupyter_notebook_config.py | 2 +- conf/jupyterhub_config.py | 8 ++++---- update_config_files.md | 30 ++++++++++++++++++++++++++++++ 3 files changed, 35 insertions(+), 5 deletions(-) create mode 100644 update_config_files.md diff --git a/conf/jupyter_notebook_config.py b/conf/jupyter_notebook_config.py index 9cb14eb..3f2398f 100644 --- a/conf/jupyter_notebook_config.py +++ b/conf/jupyter_notebook_config.py @@ -873,4 +873,4 @@ c.NotebookApp.terminals_enabled = bool(__ENABLE_TERMINAL__) ## The websocket url of the Kernel or Enterprise Gateway server. If not # provided, this value will correspond to the value of the Gateway url with 'ws' # in place of 'http'. (JUPYTER_GATEWAY_WS_URL env var) -#c.GatewayClient.ws_url = None \ No newline at end of file +#c.GatewayClient.ws_url = None diff --git a/conf/jupyterhub_config.py b/conf/jupyterhub_config.py index 3ae7b71..6003979 100644 --- a/conf/jupyterhub_config.py +++ b/conf/jupyterhub_config.py @@ -91,9 +91,9 @@ # e.g. `c.JupyterHub.authenticator_class = 'pam'` # # Currently installed: -# - dummy: jupyterhub.auth.DummyAuthenticator -# - pam: jupyterhub.auth.PAMAuthenticator # - default: jupyterhub.auth.PAMAuthenticator +# - pam: jupyterhub.auth.PAMAuthenticator +# - dummy: jupyterhub.auth.DummyAuthenticator c.JupyterHub.authenticator_class = 'ldapauthenticator.LDAPAuthenticator' ## The base URL of the entire application. @@ -108,7 +108,7 @@ c.JupyterHub.authenticator_class = 'ldapauthenticator.LDAPAuthenticator' ## The public facing URL of the whole JupyterHub application. # # This is the address on which the proxy will bind. Sets protocol, ip, base_url -c.JupyterHub.bind_url = 'http://:__PORT____PATH__' +#c.JupyterHub.bind_url = 'http://:8000' ## Whether to shutdown the proxy when the Hub shuts down. # @@ -466,8 +466,8 @@ c.ConfigurableHTTPProxy.api_url = 'http://127.0.0.1:__PORT_HTTP_PROXY__' # e.g. `c.JupyterHub.spawner_class = 'localprocess'` # # Currently installed: -# - simple: jupyterhub.spawner.SimpleLocalProcessSpawner # - default: jupyterhub.spawner.LocalProcessSpawner +# - simple: jupyterhub.spawner.SimpleLocalProcessSpawner # - localprocess: jupyterhub.spawner.LocalProcessSpawner #c.JupyterHub.spawner_class = 'jupyterhub.spawner.LocalProcessSpawner' diff --git a/update_config_files.md b/update_config_files.md new file mode 100644 index 0000000..c781ac6 --- /dev/null +++ b/update_config_files.md @@ -0,0 +1,30 @@ +# Updating configuration files + +Install the new version of the app with: + +```bash +sudo yunohost app install https://github.com/YunoHost-Apps/jupyterlab_ynh/tree/testing +``` + +Navigate to the installation path (`/opt/jupyterlab` by default), and run : + +```bash +pipenv shell +``` + +You are now in the virtual environment of jupyterlab. You can execute these two commands: + +- To generate the `jupyterhub_config.py` file: + +```bash +jupyterhub --generate-config +``` + +- To generate the `jupyter_notebook_config.py` file: + +```bash +jupyter notebook --generate-config +cp $HOME/.jupyter/jupyter_notebook_config.py ./ +``` + +You can now update the old template files with the new one.