Add a command to uninstall TLJH
See original GitHub issueI’ve had a few moments where I need to delete the hub and just start fresh. I know to delete /opt/tljh
, but I always feel like I might be missing something. Moreover, most people probably won’t think to check /opt/tljh
. What if we added a tljh-config clean
command that would require you to confirm, and if so would completely erase all jupyterhub-related changes to the machine?
Issue Analytics
- State:
- Created 5 years ago
- Comments:27 (15 by maintainers)
Top Results From Across the Web
Configuring TLJH with tljh-config - The Littlest JupyterHub
tljh -config is the commandline program used to make configuration changes to TLJH. ... add-item users.admin admin-user_0 sudo tljh-config remove-item ...
Read more >Customizing the JupyterHub environment (TLJH)
This can only set string and numerical properties, not lists. To unset a configuration property you can use the following command: sudo tljh-config...
Read more >For educators — NI-edu - Lukas Snoek
To use Python version 3.8.5, run the following command from the user account you used to install TLJH (which needs to have sudo...
Read more >Authentication and User Basics - JupyterHub - Read the Docs
Admin users of JupyterHub, admin_users , can add and remove users from the user allowed_users set. admin_users can take actions on other users'...
Read more >The Littlest Jupyter Hub - LinkedIn
9- Run following commands to install TLJH sudo apt install python3 python3-dev git curl. Remove angular brackets and change the name to your ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
At least instructions as to which files are installed where would be welcome. As far as I can see, the following locations would have to be removed during an uninstall:
/opt/tljh
(directory)/usr/bin/tljh-config
(symlink)Then there is the three services located at:
/etc/systemd/system/configurable-http-proxy.service
/etc/systemd/system/traefik.service
/etc/systemd/system/jupyterhub.service
~but I don’t know how to remove them in the appropriate way.~Edit: you would remove those services by first running
sudo systemctl disable <service>
, and then remove the files themselves, I guess.Two other things to do are
jupyterhub-admins
andjupyterhub-users
groups withsudo delgroup <group>
/etc/sudoers.d/jupyterhub-admins
.Of course, as @yuvipanda said, if you allowed your users to run arbitrary command, then there is no point at all in uninstalling. However, in some cases it might make sense to include the information above in the documentation.
@choldgraf, I just added this issue to my todo list. I’ll look into it, try to track down the limitations and come up with some steps.