Skip to Content
HostWall
Installation

Install script

Install HostWall on Linux with one command: what the install script does, its environment variables, upgrading and uninstalling.

curl -fsSL https://www.hostwall.io/install | sh

Run it as a normal user with sudo, or as root. You can read the script first: it is scripts/install.sh in this repository.

What it does

  1. Detects your OS (linux or darwin) and CPU (amd64 or arm64).
  2. Finds the latest release on GitHub (or uses HOSTWALL_VERSION).
  3. Downloads hostwall_<version>_<os>_<arch>.tar.gz and checksums.txt from the GitHub release (or from HOSTWALL_BASE_URL), and checks the archive's SHA-256 checksum. It stops if the checksum doesn't match.
  4. Installs the binary to /usr/local/bin/hostwall.

Then, on Linux with systemd only (and unless HOSTWALL_NO_SERVICE=1):

  1. Creates a hostwall system user with no login shell.
  2. Creates /etc/hostwall and /var/lib/hostwall (owned by hostwall, mode 0700).
  3. Writes a minimal /etc/hostwall/hostwall.yaml if none exists. An existing file is never touched.
  4. Installs the systemd unit from the release archive to /etc/systemd/system/hostwall.service, then enables and starts the service (or restarts it if it was already running).
  5. Waits for HostWall to create the dashboard user admin, then prints the SSH tunnel command and the initial password.

On macOS, or on Linux without systemd, the script stops after step 4 and tells you to start HostWall with sudo hostwall run.

Note

The script checks the SHA-256 checksum from the release. It does not check the release signature. To verify the signature yourself, use the manual install. hostwall upgrade always checks the signature.

Environment variables

VariableExampleEffect
HOSTWALL_VERSIONv0.1.0Install this version instead of the latest
HOSTWALL_NO_SERVICE1Only install the binary; don't create the user, directories or service
HOSTWALL_BASE_URLhttps://mirror.example.com/hostwall/v0.1.0Download the archive and checksums.txt from this URL instead of GitHub (mirrors, CI). Requires HOSTWALL_VERSION.

Pass them to sh, not to curl:

curl -fsSL https://www.hostwall.io/install | HOSTWALL_VERSION=v0.1.0 sh
curl -fsSL https://www.hostwall.io/install | HOSTWALL_NO_SERVICE=1 sh

Upgrading

The easiest way is the built-in upgrade command:

sudo hostwall upgrade

It downloads the latest release, verifies its signature and checksum, replaces the binary (keeping the old one as hostwall.old), restarts the service, and rolls back to the previous binary if the new version doesn't come up healthy within 45 seconds. Use sudo hostwall upgrade --check to only check for a new version. See the CLI reference.

Re-running the install script also upgrades: it replaces the binary and restarts the service. It keeps your config and data, but it does overwrite /etc/systemd/system/hostwall.service with the unit file from the release. Put local changes to the unit in a drop-in (sudo systemctl edit hostwall) so they survive.

Uninstall

Take a backup first if you might want your data back (sudo hostwall backup --out /tmp/hostwall-backup.tar.gz). Then:

sudo systemctl disable --now hostwall
sudo rm /etc/systemd/system/hostwall.service
sudo systemctl daemon-reload
sudo rm /usr/local/bin/hostwall
sudo rm -rf /etc/hostwall /var/lib/hostwall   # config, database and certificates
sudo userdel hostwall

Edit this page on GitHub

On this page