|
if not shutil.which("systemd") or not shutil.which("systemctl"): |
curl -L https://tljh.jupyter.org/bootstrap.py | sudo -E python3 - --admin admin --show-progress-page
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 18389 100 18389 0 0 162k 0 --:--:-- --:--:-- --:--:-- 162k
Systemd is required to run TLJH
>>> import shutil
>>> shutil.which("systemctl")
'/usr/bin/systemctl'
>>> shutil.which("systemd")
>>>
PATH="/lib/systemd:${PATH}" which systemd
/lib/systemd/systemd