You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Linux Quick Start Assumes sudo, Which a Debian Install Given a Root Password Lacks #2551
The Linux quick start in host-setup/README.md opens with sudo apt-get update && sudo apt-get install -y curl ca-certificates tar, and install-tools.sh, upgrade-host.sh, and setup-github.sh each stop with "Not running as root and sudo is not installed" for a non-root account. A Debian install that is given a root password, which the Debian installer offers by default, installs no sudo and leaves the first account outside the sudo group. Such a host cannot start the quick start at all, and running the bootstrap as root instead sets up git and GitHub for root rather than for the working account.
Reproduced on a fresh Debian 13 install with "standard system utilities" and "SSH server" selected: the account has no sudo, no curl, and /usr/sbin is not on its PATH, so even usermod is not found until su - (with the dash) is used. Plain su keeps the account's PATH and fails the same way.
A downstream repository now covers this from the workstation side (host-install/prepare/prepare-host.sh in HomeAutomation-Config, which reaches root through su -l root -c and installs sudo, curl, ca-certificates, tar), but the hub's own quick start still reads as though sudo always exists. At minimum the quick start could say what to do first on such a host:
su -l root -c 'apt-get update && apt-get install -y sudo curl ca-certificates tar && usermod -aG sudo <account>'# then log out and back in, so the new group takes effect
Done when the Linux quick start names the no-sudo case and the one root step that clears it, or when bootstrap.sh detects it and says so itself.
Activity
Name the No-sudo Debian Case in the Linux Quick Start (#3249)