---
title: "Install on Linux"
description: "Install Vigiora Server on a Linux computer with one command, then open it in your browser."
url: https://vigiora.com/docs/getting-started/install-linux
updated: 2026-12-04T11:38:48.000Z
---

# Install on Linux

> Install Vigiora Server on a Linux computer with one command, then open it in your browser.

One command installs Vigiora Server as a system service. It downloads only signed, checked files and starts the server for you. The command comes from your Vigiora account, so the installer also connects the server to it for you.

> **Note**
>
> Check the [system requirements](https://vigiora.com/docs/getting-started/system-requirements) first: a 64-bit Linux with systemd, at least 2 GB of free disk and port 8080 free.

## Install the server

1. **Open a terminal on the server**

   Sit at the machine or connect to it over SSH. You need an account that can use `sudo`.

2. **Run your install command**

   Sign in at [vigiora.com/download](https://vigiora.com/download) with your free account (Google sign-in) and copy the command shown there. Paste it into the terminal and press Enter.

   The command carries a one-time code for your account, so the installer pairs the new server with your account by itself right after installing. If the server has no internet during the install, or the code is older than 14 days or already used, the install still completes and you pair the server later (see the last step).

   The installer checks the machine, creates a `vigiora` service account, installs into `/opt/vigiora` and starts the `vigiora` service. The first start sets up the database and can take a few minutes.

3. **Copy the admin password**

   When it finishes, the installer prints:

   ```text
   Vigiora Server 1.5.1 is installed and running.
   Settings: /etc/vigiora.env (root-only, 0600; edit it, then: systemctl restart vigiora)
   Data:     /var/lib/theia
   Open Vigiora Server in a browser on this network:
     http://192.0.2.10:8080
   Paired with your Vigiora account: https://<name>.vigiora.com
   ```

   Further up, under **Admin sign-in for the first login (shown only this once)**, it shows the username `admin` and a generated password. Copy the password now.

4. **Connect it to your account**

   If the installer printed **Paired with your Vigiora account**, the server is already connected: open the address it printed and follow [First sign-in](https://vigiora.com/docs/getting-started/first-sign-in). If it could not pair (no internet during the install, or an expired or used code), open the address with `/setup` added and enter an enrolment code from your dashboard (**Servers → Add server → Get an enrolment code**). The [setup wizard](https://vigiora.com/docs/getting-started/setup-wizard) then checks the server, finds your cameras and connects them.

> **The password is shown only once**
>
> If you lose it, it is also stored as `VIGIORA_ADMIN_PASSWORD` in `/etc/vigiora.env` (readable by root only). Change it after you sign in.

## Install from a package (.deb or .rpm)

If you would rather not pipe a script into `sh`, install a package instead. A package only carries the Vigiora installer: when it is installed it downloads and checks the signed server release exactly as the command above does, so you end up with the same server.

Sign in at [vigiora.com/download](https://vigiora.com/download) and pick the file for your system under **Linux**:

| System | File | Install it with |
| --- | --- | --- |
| Ubuntu, Debian | `.deb`, amd64 or arm64 | `sudo apt install ./vigiora-server_amd64.deb` |
| Rocky Linux, AlmaLinux, RHEL 9, Fedora | `.rpm`, x86_64 or aarch64 | `sudo dnf install ./vigiora-server.x86_64.rpm` |
| openSUSE | `.rpm`, x86_64 or aarch64 | `sudo zypper install ./vigiora-server.x86_64.rpm` |

Use the file name you downloaded (`arm64` and `aarch64` for ARM). From version 1.8.0, there are `.rpm` files too. They are new: the page offers one only once a release has published it. The package install needs the internet, like the command. If it has none yet, the package still installs; run `sudo vigiora-install install` to finish when it has.

To pair the server with your account after a package install, run the command the download page shows under the buttons: `sudo vigiora-install pair <your code>`.

Installing a newer package over an older one does not uninstall the server: it runs the installer again, which updates it in place and keeps your settings, cameras and recordings. From version 1.17.1 this also works on a server installed by 1.14.4 or later.

Removing the package, with `sudo apt remove vigiora-server` or `sudo dnf remove vigiora-server`, uninstalls the service and keeps your data and settings, like the plain [uninstall](https://vigiora.com/docs/getting-started/uninstall). `sudo apt purge vigiora-server` also removes Vigiora's data, settings and the `vigiora` account, but keeps the backups folder, `/var/backups/vigiora`; when there are backups, it prints one line saying where they are. This is from version 1.17.2; before it, a purge left the settings and the account behind. `rpm` has no purge: `dnf remove` keeps data and settings. To delete everything, run `sudo vigiora-install uninstall --purge --yes` BEFORE `sudo dnf remove vigiora-server`.

The `.rpm` was run on Rocky Linux 9 with SELinux enforcing and firewalld. Other rpm distributions (Fedora, AlmaLinux, openSUSE) are not yet tested.

No `.deb` or `.rpm` for your system, such as Arch Linux? Use the command above, or the portable archive below: both work on any distribution that meets the system requirements.

## Install from the portable archive (.tar.gz)

From version 1.8.0 there is also a portable archive. It holds the Vigiora installer, `vigiora-install`, and a short `README.txt`. Use it on a distribution with no `.deb` or `.rpm`, or when you want the installer on disk instead of piped from the network. It installs the same server as the command above.

The installer needs root and systemd. Distributions without systemd, such as Alpine, are not supported.

1. **Download the archive and its checksum**

   Pick the file for your processor: `amd64` for Intel and AMD (x86_64), `arm64` for ARM (aarch64, Raspberry Pi 4 and 5).

   ```bash
   curl -fsSLO https://downloads.vigiora.com/install/latest/linux-amd64/vigiora-install_linux-amd64.tar.gz
   curl -fsSLO https://downloads.vigiora.com/install/latest/linux-amd64/vigiora-install_linux-amd64.tar.gz.sha256
   sha256sum -c vigiora-install_linux-amd64.tar.gz.sha256
   ```

   For ARM, replace `amd64` with `arm64` in all three lines. The check must print `OK`.

2. **Unpack it and run the installer**

   ```bash
   tar -xzf vigiora-install_linux-amd64.tar.gz
   sudo ./vigiora-install install
   ```

   Add `--yes` to skip the questions. The installer downloads the signed server release, checks it against the release key built into it, installs and starts the `vigiora` service, and prints the address and the one-time admin password, exactly like the command above.

3. **Connect it to your account**

   Run the pairing command from [vigiora.com/download](https://vigiora.com/download) with the installer you unpacked: `sudo ./vigiora-install pair <your code>`. Or open the server's address with `/setup` added and enter an enrolment code, as in [Install the server](#install-the-server).

Keep the `vigiora-install` file. Run it again at any time: `sudo ./vigiora-install status` shows the service state, `sudo ./vigiora-install install` repairs or upgrades in place, and `sudo ./vigiora-install uninstall` removes the service and keeps your data (add `--purge` to move the data to the backup folder too). See [Uninstall](https://vigiora.com/docs/getting-started/uninstall).

## What the installer sets up

| Item | Location |
| --- | --- |
| Program files | `/opt/vigiora` |
| Database, mesh state and recordings | `/var/lib/theia` (or the folder you choose with `--data-dir`) |
| Settings and secrets | `/etc/vigiora.env` (root only) |
| Configuration | `/etc/vigiora` and `/etc/go2rtc` |
| Service | `vigiora` (systemd), starts at boot |
| Logs | `journalctl -u vigiora` |
| Firewall | Allows UDP 41641 (the mesh), and TCP 8080 and TCP/UDP 8555 from private IPv4 networks (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16) and from IPv6 local networks (fc00::/7 and fe80::/10), on ufw or firewalld if one is active. |

> **Tip**
>
> If ufw or firewalld is active, the installer opens the web app (8080) to private IPv4 networks and to IPv6 local networks (fc00::/7 and fe80::/10) only. Clients on public addresses need their own rule. From version 1.8.0 the IPv6 rules are included. An older install gets them the next time you run the installer or upgrade the package. A server self-update does not change the firewall. If IPv6 is turned off in your firewall, the IPv6 rules are skipped.

## Installer options

Pass options after `sh -s --`:

```bash
curl -fsSL https://downloads.vigiora.com/install.sh | sudo sh -s -- status
```

| Option | What it does | Default |
| --- | --- | --- |
| install | Install, or repair and upgrade an existing install. Settings, cameras and recordings are kept. | Yes (when no command is given) |
| status | Shows the service state, server version, folders, health and the last log lines. |  |
| uninstall | Removes the service and moves the program files to the backup folder. See Uninstall. |  |
| --data-dir DIR | First install only: keep the database and recordings in DIR instead of /var/lib/theia. |  |
| --version X | Install a specific published server version instead of the latest, for example 1.5.0. |  |

### Put recordings on a separate disk

Mount the disk first. Then take the command from the [Download](https://vigiora.com/download) page and add `install --data-dir /data/vigiora` right after `sh -s --`, before `--pair`, so that it ends with `sh -s -- install --data-dir /data/vigiora --pair <your code>`.

The folder must be new and empty (or one the installer created before). The choice is saved, so later runs reuse it. The installer never moves existing data, and refuses a different `--data-dir` later.

> **Note**
>
> If the installer notices that `/data` is a separate disk after a default install, it tells you. To switch before you add cameras, [uninstall with --purge](https://vigiora.com/docs/getting-started/uninstall) and install again with `--data-dir`.

### The first start on a slow disk

The first start prepares the database, which takes about a minute on most computers and can take 15 minutes or more on a slow disk such as a Raspberry Pi's SD card. From version 1.17.3 the installer waits as long as the server makes progress, and shows it, for example *Preparing the database: step 37 of 218.* It still stops if nothing moves for 5 minutes, after 45 minutes in all, or when the service stops or keeps starting over. A short write test warns you when the disk is slow, like an SD card: Vigiora works, but the first start can take 15 minutes or more and recording many cameras may not keep up. An SSD is recommended.

## Run it again to repair or upgrade

Running the install command again is safe:

- If everything is up to date and healthy, it says **already installed and healthy** and changes nothing.
- If the installer carries a newer server version than the one that runs, from installer version 1.17.1 it upgrades the server: your settings, cameras, recordings and password are kept, and no new password is printed. The server restarts once. The previous version is kept, and if the new version does not start, the server goes back to the previous one by itself. Before 1.17.1 the installer refused to run on a server installed by 1.14.4 or later, or left the old version running.
- If the installer is older than the running server, it changes nothing and says so. A running server is never moved back.
- If the server is already at the version the installer carries and only the launcher differs, it refreshes only the launcher and says so plainly (**already current; refreshing only the launcher**), from version 1.17.2. Nothing else changes.
- Otherwise it stops the service, replaces the program files, and starts it again. Your settings, cameras and recordings are kept, and no new password is printed. If the new version doesn't become healthy, the installer puts the previous files back and restarts the previous version.

From version 1.17.3, running the installer again also repairs a server whose live video settings folder belonged to another account (seen on a Raspberry Pi), and keeps a copy of the old settings file. See [Live video engine](https://vigiora.com/docs/admin/system#live-video-engine).

The server also [updates itself](https://vigiora.com/docs/getting-started/updates), and that is the normal way to update. See [Run the installer on a computer that already has Vigiora](https://vigiora.com/docs/getting-started/updates#run-the-installer-on-a-computer-that-already-has-vigiora).

## Next steps

- [First sign-in](https://vigiora.com/docs/getting-started/first-sign-in): connect the server to your account and set your admin password.
- Running Proxmox? [Install in a Proxmox container](https://vigiora.com/docs/getting-started/install-proxmox) with one script.
- [Setup wizard](https://vigiora.com/docs/getting-started/setup-wizard): the health check, finding and connecting your cameras, recording, AI and alerts.
- [Troubleshooting](https://vigiora.com/docs/getting-started/troubleshooting) if the install stops with an error.
- Using an AI assistant? The [vigiora-setup skill](https://vigiora.com/docs/developers/ai-agents#skills) teaches Claude Code, Codex or claude.ai how to install, set up and troubleshoot Vigiora.

---

Source: https://vigiora.com/docs/getting-started/install-linux · Last updated 4 Dec 2026, 11:38 UTC
