Skip to main content

One-line installer

The Airframes installer is the quickest way to feed from a machine you already have. Run this in a terminal on the machine your SDR is plugged into (Linux, macOS, or Windows via WSL):

curl -sSL https://install.airframes.sh/installer | bash

On Windows with WSL 2, attach the SDR to WSL first with usbipd-win (usbipd bind and usbipd attach --wsl); until then Linux can't see it and the installer finds no SDR.

What it does​

By default it sets up xng. One xng process gives every SDR a job (ACARS, VDL2, HFDL, AIS, airband voice, radiosondes, Iridium, or ADS-B for partner networks) and feeds each mode to Airframes. The installer:

  • signs you in with a code you enter at app.airframes.io/device on any phone or computer, and puts the station on your account right away. It also shows a QR code you can scan with your phone's camera to open the sign-in page with the code filled in, and a link to your station's page on Airframes once it's registered
  • reads your receiver position from PiAware or readsb if they are installed, or asks for it
  • asks what each SDR should do, and leaves a dongle your ADS-B decoder already uses alone
  • offers airband channels from the Airframes ATC directory near you
  • runs xng as the xng-station systemd service (check it with systemctl status xng-station), or in Docker when the xng build doesn't run on your system, such as a 32-bit Pi

The xng dashboard is at http://<your-machine>:8080 (or the next free port, such as 8081 on a PiAware box, where SkyAware uses 8080; the installer prints it). Your feeds show up as STATION-ACARS, STATION-VDL2, and so on. At the end, the installer checks that xng is running and shows what each SDR is decoding. If xng doesn't start, it shows the log and what usually fixes it. Before it starts, it warns if the clock is off, the disk is nearly full, or GitHub or Airframes can't be reached, and it checks each download against the release's SHA-256 checksums.

Switching from acarsdec, dumpvdl2, dumphfdl or AIS-catcher​

Already feeding with separate decoders? The installer finds acarsdec, dumpvdl2, dumphfdl, vdlm2dec and AIS-catcher set up as systemd services (including the airframes-acarsdec-style services from earlier versions of this installer), as Docker containers (such as the SDR Enthusiasts images), or as the docker-compose.yml files the earlier installer wrote to /opt/airframes/config. It lists them and offers to switch them to xng:

  • each SDR keeps its job: the dongle that ran acarsdec decodes ACARS in xng, and so on
  • each feed keeps its station name (MY-STATION-ACARS1 stays MY-STATION-ACARS1), so your stats and history on Airframes carry on
  • gain and frequencies carry over
  • the old decoders are stopped and kept from starting at boot, but not removed

Changed your mind? This stops xng and starts the old decoders again, as they were:

curl -sSL https://install.airframes.sh/installer | bash -s -- restore-decoders

With -y, the installer switches them without asking. Add --keep-old-decoders to leave them running instead; xng then doesn't touch their SDRs. ACARS Hub is not switched; stop it first if xng should use its SDRs. The list of what was stopped is in /opt/airframes/config/old-decoders.tsv.

Checking, updating and removing​

# Check the station and when Airframes last heard each feed; paste the report in Discord if you need help (it has no passwords or tokens)
curl -sSL https://install.airframes.sh/installer | bash -s -- status

# Find and repair common problems, asking before each fix (-y fixes them all)
curl -sSL https://install.airframes.sh/installer | bash -s -- fix

# Update xng to the latest release, keeping its configuration and sign-in
curl -sSL https://install.airframes.sh/installer | bash -s -- update

# Put a station you set up without signing in on your Airframes account
curl -sSL https://install.airframes.sh/installer | bash -s -- sign-in

# Update xng automatically every week (setup asks; "off" turns it off)
curl -sSL https://install.airframes.sh/installer | bash -s -- auto-update on

# Remove xng (add --purge to also remove /etc/xng and the sign-in)
curl -sSL https://install.airframes.sh/installer | bash -s -- uninstall

fix checks for the problems that most often stop a station, explains each one it finds and what it will change, and asks before changing anything:

  • xng is stopped or has failed (it starts it again), or isn't enabled to start at boot
  • the udev rule that lets xng open the SDRs is missing
  • the TV tuner (DVB-T) kernel driver isn't blocked, or is still loaded and holds an RTL-SDR
  • the clock is more than 5 minutes off, or network time sync is off
  • an SDR in /etc/xng/station.toml isn't plugged in because it was swapped or its serial changed: when exactly one other SDR of that kind is plugged in with no job, it gets the job (the old file is kept as station.toml.bak); otherwise run the installer again to choose
  • the weekly automatic update is broken (a unit is missing, the timer isn't enabled, or the last run failed)

It restarts xng when a fix needs it and checks that it comes up. With -y it applies every fix without asking; without a terminal and without -y it only lists what it would change. It exits with an error when a problem is left, so you can run it from a script.

To change what each SDR does, run the installer again.

The QR code needs qrencode, which the installer tries to install. When it can't, or the terminal is too narrow for the code, the installer shows the sign-in link instead; open it on any device. Set AIRFRAMES_NO_QR=1 to always skip the QR code. status also prints the link to your station's page.

Skipping the questions​

To skip the questions (for example over SSH without a terminal, or in a script), use -y xng. Add --sign-in to link the station to your account (it still shows the code and waits for you), and --modes to choose each SDR's job by serial or number:

curl -sSL https://install.airframes.sh/installer | bash -s -- -y xng --sign-in --modes "0=acars,1=vdl2"

Separate decoders instead of xng​

The separate decoders are still available: pick them in the menu, or name one (acarsdec, dumpvdl2, dumphfdl, vdlm2dec, all):

curl -sSL https://install.airframes.sh/installer | bash -s -- -y acarsdec --station-id MY-STATION

On Linux this installs acarsdec and starts it as the airframes-acarsdec systemd service. Use the Station ID from your station's page on app.airframes.io; without it, your feed shows up as an anonymous station.

Everything after bash -s -- is passed to the installer. Useful options:

OptionWhat it does
-yDon't ask for confirmation
--sign-in / --no-sign-inxng: sign in to Airframes even with -y, or don't sign in
--modes "0=acars,1=vdl2"xng: job per SDR (by serial or number): acars, vdl2, hfdl, airband, ais, adsb, uat, sonde, iridium or off
--airband "120.500,119.100"xng: airband channels from the Airframes ATC directory, or nearest
--keep-old-decodersxng: leave acarsdec, dumpvdl2, dumphfdl and AIS-catcher set up before running, instead of switching them to xng
--xng-method dockerxng: native or docker (default: native, else Docker)
--lat 38.68 --lon -120.99Receiver position
--station-id MY-STATIONYour Station ID from app.airframes.io
--region north_americaDefault frequencies for north_america, europe, asia_pacific or global
--sdr airspySDR type: rtlsdr (default), airspy or sdrplay
--device 00000002Which RTL-SDR to use, by index or serial
--method dockerInstall with binary (default), source or docker
--no-serviceOnly print the command to run, don't create a service
--report / --no-reportSend the anonymous install report without asking (also with -y), or don't ask
--helpAll options

Anonymous install report​

At the end of a run, or when it fails, the installer shows a short report and asks whether to send it to Airframes. The answer defaults to no, and with -y it isn't sent unless you add --report. It helps us see which systems and SDRs the installer fails on, and at which step. The report contains only:

  • the installer version, operating system, distribution, CPU architecture, and whether it runs under WSL
  • what was set up (xng, separate decoders, ADS-B), the install method and the xng version
  • the SDR types (such as rtlsdr) and each SDR's mode (such as acars or vdl2)
  • whether you signed in (yes or no), and how long the run took
  • whether it worked, or the step it failed at (such as xng-install-native) and the exit code

It never contains your station ID, account, hostname, SDR serial numbers, position or anything you typed. Airframes doesn't store the IP address it came from. Use --no-report to never be asked.

ADS-B​

Airframes doesn't ingest ADS-B itself; ADS-B goes to Airframes' partner networks, Airplanes.Live and Plane Watch. The installer sets that up too: pick ADS-B in the menu, or name adsb:

curl -sSL https://install.airframes.sh/installer | bash -s -- -y adsb --lat 38.68001 --lon -120.99436 --alt 120m
  • Already running PiAware, readsb, ultrafeeder or another ADS-B decoder? The installer feeds the partners from it (port 30005) and leaves it as it is.
  • No ADS-B decoder yet? It installs readsb (or ADS-B Ultrafeeder with --method docker) on an SDR of its own.
  • Airplanes.Live is set up with their feed client, including MLAT. For Plane Watch, create a feeder at atc.plane.watch and pass --planewatch-key <key> (it runs in Docker).
  • --lat, --lon and --alt (in m or ft) give the antenna position for MLAT; it's never shown exactly. --mlat-name sets the name on the MLAT map. In a terminal, the installer asks for these.

ACARS, VDL2 and HFDL for Airframes need an SDR of their own (an unfiltered one, since ADS-B dongles are often filtered for 1090 MHz). On a machine that already feeds ADS-B, plug in a second SDR and pick a decoder. The installer tries to leave the ADS-B dongle alone: it reads the PiAware, dump1090 and readsb settings, and asks you which dongle to use when it can't tell (with -y it stops instead). Check the device it reports before you go on, and pass --device <index|serial> to choose one yourself. rtl_test lists the plugged-in RTL-SDRs with their serials.