Disable Terminals and shell script in TLJH

I want to know how to disable terminals and shell script in TLJH .

I tried to use " jupyter_notebook_config.py " with “c.NotebookApp.terminals_enabled = False” option and “c.NotebookApp.terminado_settings” option. I put this config file to “/opt/tljh/user/etc/jupyter/” and reloaded, but it didn’t work for me.

Are there any other way?

I don’t use TLJH, but your notebook config might be in the wrong location. I use /etc/jupyter/jupyter_notebook_config.py in the jupyter notebook docker image with:

c.NotebookApp.terminals_enabled = False

Hey @suzukihi724 :wave: There are some instructions about disabling terminals in this TLJH GitHub issue: https://github.com/jupyterhub/the-littlest-jupyterhub/issues/373 that might help.

1 Like

I solved this problem. The solution in TLJH GitHub issue (@GeorgianaElena ) worked.
Thank you very much.