Skip to content

Ubuntu/Debian/Raspberry Pi Installation

Disclaimer

AIS-catcher is intended for hobbyist and research projects only. It is NOT approved for use in navigation or safety-of-life applications. Read the full disclaimer.

AIS-catcher is installed with a single script that installs all dependencies, sets up a background service and starts it. There are two ways to run your station:

  • Managed mode (recommended) — configure and control your station from the browser.
  • Manual mode — configure via the command line or configuration files.

Manual Mode

To configure via the command line instead, omit the -M option:

sudo bash -c "$(curl -fsSL https://raw.githubusercontent.com/jvde-github/AIS-catcher/main/scripts/aiscatcher-install) -p"

The background service infrastructure is still set up — see Running as a Service for the configuration files and service commands.

Command Line Run

Install from Source

Both commands above install the latest pre-built Debian package (the -p option). Leave out -p to build AIS-catcher from source instead:

sudo bash -c "$(curl -fsSL https://raw.githubusercontent.com/jvde-github/AIS-catcher/main/scripts/aiscatcher-install) -M"

Building from source optimizes the executable for your hardware but can take a significant amount of time (20 minutes on a Raspberry Pi 4). It is required if you need PostgreSQL support, which is not included in the pre-built packages.

Note

The pre-built packages statically link the latest Osmocom library to guarantee support for the RTL-SDR V4, and are not compatible with the first versions of the Raspberry Pi and Zero due to their limited support for floating point hardware acceleration.

Updating

To update AIS-catcher to the latest version, simply run the install command again. It will not overwrite any configuration files when these are available on the system.

Remote Start/Stop and Host Management

The separate AIS-catcher-control package adds browser-based control of the AIS-catcher process (start and stop, live log) and of the host itself (one-click updates, reboot). It is not included in the install above — install it with:

sudo bash -c "$(curl -fsSL https://raw.githubusercontent.com/jvde-github/AIS-catcher-control/main/install_ais_catcher_control.sh)"