π§© How it worksΒΆ
The install_jtop_torun_without_sudo.sh script automates a safe,
user-friendly installation of jtop that allows you to run it without
sudo. It performs the following steps:
Safety check
Refuses to run if invoked as
rootor viasudo.Instructs you to run
sudo -vfirst so that later privileged commands (apt,systemctl) can execute without repeated password prompts.
Prepare environment
Verifies whether
pip3andpipxare installed; if either is missing, installs them viaapt.Ensures
~/.local/binis on yourPATHso thatpipxapplications are available in future shells.
Install jtop via pipx
Uses
pipx install "git+https://github.com/rbonghi/jetson_stats.git"to install the latest version in an isolated user environment.Determines the correct executable path (usually
~/.local/bin/jtopor inside the pipx venv).
Systemd service setup
Creates or updates
/etc/systemd/system/jtop.serviceto point to your userβs jtop binary.Sets safe defaults (
Restart=on-failure,RestartSec=10s, etc.) to make the service robust.
Enable and start the service
Reloads systemd, enables
jtop.serviceto start automatically at boot, and restarts it immediately.
Result
After installation, you can simply launch jtop from your terminal as a normal user (no
sudorequired):jtop
Why use this methodΒΆ
β’ Keeps the system (root) Python environment clean and untouched
β’ Uses pipxβs isolation, making upgrades and uninstalls clean and safe
β’ Fully compatible with Ubuntu 24.04+ and later Debian-based systems
β’ Ensures jtop runs under your user account (avoids root-owned processes)
β’ Provides systemd integration for automatic startup and recovery