Skip to main content

Raspberry Pi Setup

If your Pi is already imaged​

Most kits ship with the Recording Pi pre-imaged and the software pre-installed. Plug it into the same network as the camera, power it on, and skip to Verify.

Flashing the Recording Pi image​

If Comlink sent you an image file instead (e.g. recording-pi-zero2w-20261013-c42c6f5-v1.img.xz, with a matching .sha256 file), flash it onto a microSD card (8GB or larger). The image already contains everything: the operating system, the Recording Pi software, the live view and automatic updates.

  1. Check the download isn't corrupted. From the folder holding both files:

    shasum -a 256 -c recording-pi-zero2w-*.img.xz.sha256

    It should print OK. (On Windows: certutil -hashfile <file>.img.xz SHA256 and compare with the .sha256 file by eye.)

  2. Download Raspberry Pi Imager (version 2) on your laptop and step through it:

    • Device: Raspberry Pi Zero 2 W
    • OS: scroll down to Use custom and pick the .img.xz file. There's no need to unpack it first, though an unpacked .img works too.
    • Storage: your SD card
    • Writing: check the summary, then click Write

    Imager skips its Customisation step for a custom image, so you won't be asked about Wi-Fi, hostname or login. That's expected: they're already set inside the image. To use a different Wi-Fi network, see Wi-Fi below.

    Raspberry Pi Imager&#39;s summary before writing the Recording Pi image

  3. When Imager shows Done, insert the card into the Pi and power it on

The first boot takes a few minutes: the Pi grows the system to fill the card and restarts once by itself. After that it's reachable as recording-pi.local and starts looking for the camera on its own. Continue to Verify.

Wi-Fi​

The image joins the Wi-Fi network it was prepared for (Comlink tells you which). Raspberry Pi Imager can't change this. If your network has a different name or password, change it in the image's own settings file before the first boot: re-insert the freshly written card into your laptop, open the small bootfs drive, and edit the access-points part of the network-config file:

access-points:
"<your Wi-Fi name>":
password: "<your Wi-Fi password>"

Keep the indentation exactly as it is in the file. The Pi Zero 2 W only sees 2.4 GHz networks, so a router broadcasting only 5 GHz won't be found.

Installing from a blank SD card​

Comlink technicians only: this installs the software from source and needs the Comlink Recording Pi code on your laptop. If you received an image file, use Flashing the Recording Pi image above instead.

  1. Download Raspberry Pi Imager on your laptop

  2. Choose Raspberry Pi OS Lite (64-bit) as the OS

  3. If Imager offers a Customisation step, set:

    • A hostname (e.g. recording-pi)
    • SSH enabled, with a username/password
    • Wi-Fi details, if this site isn't using Ethernet for the Pi

    If it skips that step, set these up on the Pi itself after the first boot instead, with a keyboard and screen attached (e.g. Wi-Fi with sudo nmcli device wifi connect "<SSID>" password "<password>").

  4. Write the image, then insert the card into the Pi and power it on

Installing the software​

From your laptop, on the same network as the Pi:

PI_HOST=recording-pi.local PI_USER=pi ./deploy/deploy.sh

This builds the frontend, copies the software to the Pi, and installs everything it needs (it'll prompt for the Pi's sudo password partway through). Once the service is running (see Going live), check the log (sudo journalctl -u recording-pi) for a line like:

ONVIF discovery: found camera at 192.168.1.50 (automatic)

That confirms the Pi found the camera on its own — no manual configuration needed.

Deploy script completing successfully

Going live​

Once the above works, enable the service so it starts automatically on boot and restarts if it ever crashes:

ssh pi@recording-pi.local
sudo systemctl enable --now recording-pi
sudo systemctl status recording-pi

Continue to Verify to confirm a full recording works end to end.