Install
Run this on a fresh Debian, Ubuntu, RHEL, Rocky or AlmaLinux host with root access. The script configures the correct package repository, imports the signing key, installs the knocknoc-server package and walks you through first-run configuration.
curl -fsSL https://packages.knocknoc.io/setup/setup_knocknoc.sh | sudo bash
Prefer to read the script before piping to bash? View it here.
Supported distributions
- Debian 11 (bullseye), Debian 12 (bookworm) or later
- Ubuntu 20.04 (focal), 22.04 (jammy), 24.04 (noble), 24.10 (oracular) or later
- RHEL / Rocky / AlmaLinux 8 and 9 or later
Full installation and post-install configuration: https://docs.knocknoc.io/books/admin-guide/page/server-installation-on-premise.
What the script does
- Detects your distribution and adds the matching Knocknoc package repository.
- Imports the Knocknoc signing key and enables signature verification.
- Installs
knocknoc-serverviaaptordnf. - Creates the initial admin account and prints the login URL.
Existing hosts are upgraded safely. The script skips steps that are already done.