Skip to content

Operations guide

How to install, configure, update, back up, and remove Supply Drop BBS.

Quick start

sh
curl -fsSL https://raw.githubusercontent.com/Mesh-America/supply-drop-bbs/main/install.sh | sudo bash

Downloads a pre-built binary, runs a setup wizard, and configures a systemd service. Takes under a minute on a Pi 4. Jump to the full installation section for details.

This guide covers MeshCore

The installation and configuration steps here are written for MeshCore LoRa hardware (USB companion devices and Pi HATs). Supply Drop BBS supports additional transports — Meshtastic, APRS, Telnet, and others — and dedicated guides for those will be added as they mature.

Audience

Sysops running a Supply Drop BBS deployment:

  • Hobbyist mesh radio operators on a Raspberry Pi
  • Researchers and educators running a community BBS
  • Anyone managing a small-scale BBS deployment over LoRa mesh

If you're a contributor or plugin author, see CONTRIBUTING.md and PLUGIN_API.md.

System requirements

ComponentMinimum
CPUARMv7 or better. ARM64 (Pi 4+) recommended.
RAM256 MB available to the BBS process
Disk2 GB free for DB + logs + backups; SD card OK
RadioSX1262 Pi HAT or USB MeshCore companion device
OSLinux - Raspberry Pi OS / Debian tested. Other Unixes likely work.
Python3.10+ - Pi HAT mode only (for pymc_core)

The BBS itself is a single static Rust binary with no runtime dependencies. Python is only required when using a Pi HAT (ADR-0007). USB device operators need nothing else (ADR-0013).

Architecture at a glance

Supply Drop BBS supports two deployment topologies depending on your radio hardware.

USB device (single-process)

   ┌──────────────────────────────────────────────────┐
   │  supply-drop-bbs  (Rust - one process)           │
   │                                                  │
   │   bbs-core ── bbs-mesh ── meshcore-companion     │
   │                                 │                │
   │                           serial (USB)           │
   └─────────────────────────────────┼────────────────┘

                              USB companion device
                              (Heltec V3, T-Beam, …)
                              running MeshCore firmware

The BBS speaks the companion-frame protocol directly over the serial port. No bridge process, no Python. One service to manage.

Pi HAT (two-process)

   ┌──────────────────────┐         ┌────────────────────────┐
   │  pymc-companion      │         │  supply-drop-bbs       │
   │  (Python - pymc_core │◄─TCP──► │  (Rust BBS host)       │
   │  CompanionRadio +    │         │                        │
   │  CompanionFrameServer│         │  also exposes:         │
   │                      │         │  - web UI (opt-in)     │
   │  manages GPIO/SPI    │         └────────────────────────┘
   │  for the LoRa HAT    │
   └──────────────────────┘


      SX1262 LoRa HAT
      (ZebraHat, Waveshare, PiMesh, …)

pymc-companion owns the radio hardware. The BBS connects to it over 127.0.0.1:5000. Two independent processes - either can restart without breaking the other.

Installation

sh
curl -fsSL https://raw.githubusercontent.com/Mesh-America/supply-drop-bbs/main/install.sh | sudo bash

The script downloads a pre-built binary for your architecture, installs it, and walks you through configuration. Install typically takes under a minute on supported hardware (Raspberry Pi aarch64/armv7, x86-64 Linux). If no pre-built binary is available for your architecture, the script falls back to building from source (5–15 minutes on a Pi).

Before running, have ready:

  • Radio type - USB companion device or Pi HAT
  • HAT model - if using a Pi HAT (ZebraHat, Waveshare, PiMesh, etc.)
  • Region - US (910.525 MHz) or EU (869.618 MHz), or your local frequency

What the installer does

  1. Installs minimal system packages (curl, git, figlet)
  2. Clones (or updates) the repository to /opt/supply-drop-bbs — always needed for service files and pymc-companion scripts
  3. Tries to download a pre-built binary from the latest GitHub release for your architecture, and verifies its SHA256 checksum before installing
  4. If no pre-built binary is available (unusual architecture, no network access, or checksum failure), installs build packages (build-essential, pkg-config, libssl-dev, nodejs, npm, Rust) and compiles from source
  5. Installs the binary to /usr/local/bin/supply-drop-bbs
  6. Creates the supply-drop system user
  7. Creates config (/etc/supply-drop-bbs) and data (/var/lib/supply-drop-bbs) directories
  8. Installs the supply-drop-bbs.service systemd unit
  9. Runs the setup wizard (see below)
  10. Pi HAT only: installs pymc_core in a Python venv, writes pymc-companion.yaml, and enables pymc-companion.service
  11. Enables and starts both services

What the setup wizard asks

  1. Radio connection type - USB serial or Pi HAT
  2. Serial port (USB only) - detected automatically; you confirm or enter manually
  3. BBS name - displayed to users on connect
  4. Data directory - defaults to /var/lib/supply-drop-bbs
  5. Web admin UI - whether to enable it, and if so, the password and bind address

The wizard writes /etc/supply-drop-bbs/config.toml. Run supply-drop-bbs setup at any time to reconfigure.

Pi HAT - additional wizard steps (in the installer)

After the BBS wizard, the installer asks:

  1. Region / frequency - US, EU, or enter manually
  2. HAT model - choose from the supported list

The installer then:

  • Enables SPI via raspi-config if not already active
  • Creates /opt/pymc-companion/venv with pymc_core, spidev, and lgpio
  • Writes /etc/supply-drop-bbs/pymc-companion.yaml with your HAT's pin config
  • Installs and enables pymc-companion.service

Supported Pi HATs

#ModelNotes
1ZebraHat 1Wwehooper4
2Waveshare SX1262 LoRa HAT
3PiMesh-1W (V1)
4PiMesh-1W (V2)
5MeshAdv Mini
6MeshAdv
7FemtoFox SX1262 1WUses gpiod backend
8FemtoFox SX1262 2WUses gpiod backend
9NebraHat 2W
10RAK6421 + RAK13300x (Slot 1)Uses gpiod backend
11RAK6421 + RAK13300x (Slot 2)Uses gpiod backend
12Zindello UltraPeater E22Uses gpiod backend
13Zindello UltraPeater E22PUses gpiod backend
14uConsole LoRa Module v1
15uConsole LoRa Module v2

After installation

Check both services are running:

sh
sudo systemctl status supply-drop-bbs
sudo systemctl status pymc-companion   # Pi HAT only

Tail the logs:

sh
sudo journalctl -u supply-drop-bbs -f
sudo journalctl -u pymc-companion -f   # Pi HAT only

If the web admin UI is enabled, open it at http://<your-pi-ip>:8080.

Reconfigure

Re-run the BBS setup wizard at any time:

sh
sudo supply-drop-bbs setup --config /etc/supply-drop-bbs/config.toml
sudo systemctl restart supply-drop-bbs

To change the HAT or frequency, edit /etc/supply-drop-bbs/pymc-companion.yaml and restart:

sh
sudo systemctl restart pymc-companion

Building from source (manual)

Required: Rust 1.88+ (rustup install 1.88).

sh
git clone https://github.com/Mesh-America/supply-drop-bbs
cd supply-drop-bbs
cargo build --release
sudo install -m 0755 target/release/supply-drop-bbs /usr/local/bin/
supply-drop-bbs setup

Use --profile release-min instead of --release to produce a smaller binary with the same settings used in the official releases (opt-level = "z", lto = "thin", debug symbols stripped).

Uninstall

sh
sudo bash /opt/supply-drop-bbs/install.sh --uninstall

Or, if you no longer have the source directory:

sh
curl -fsSL https://raw.githubusercontent.com/Mesh-America/supply-drop-bbs/main/install.sh \
  | sudo bash -s -- --uninstall

The uninstaller:

  1. Stops and disables supply-drop-bbs and pymc-companion
  2. Removes their systemd unit files
  3. Removes the binary (/usr/local/bin/supply-drop-bbs)
  4. Removes /opt/pymc-companion and /opt/supply-drop-bbs
  5. Asks before deleting the config directory (/etc/supply-drop-bbs)
  6. Asks before deleting the data directory (/var/lib/supply-drop-bbs) - this contains your message store and identity key
  7. Asks before removing the supply-drop system user

If you answer N to the data directory prompt, your messages and identity are preserved and can be used with a fresh install.

systemd units

USB device - one service

supply-drop-bbs.service

ini
[Unit]
Description=Supply Drop BBS
After=network.target
Wants=network.target

[Service]
Type=simple
User=supply-drop
Group=supply-drop
SupplementaryGroups=dialout
ExecStart=/usr/local/bin/supply-drop-bbs run --config /etc/supply-drop-bbs/config.toml
Restart=on-failure
RestartSec=5s
StandardOutput=journal
StandardError=journal
SyslogIdentifier=supply-drop-bbs
ReadWritePaths=/var/lib/supply-drop-bbs
NoNewPrivileges=yes
PrivateTmp=yes

[Install]
WantedBy=multi-user.target

Pi HAT - two services

pymc-companion.service starts first (the BBS connects to it):

ini
[Unit]
Description=pymc-companion - LoRa radio bridge for Supply Drop BBS
After=network.target
Before=supply-drop-bbs.service

[Service]
Type=simple
User=supply-drop
Group=supply-drop
SupplementaryGroups=dialout spi gpio
ExecStart=/opt/pymc-companion/venv/bin/python \
    /opt/pymc-companion/pymc-companion.py \
    --config /etc/supply-drop-bbs/pymc-companion.yaml
Restart=on-failure
RestartSec=5s
StandardOutput=journal
StandardError=journal
SyslogIdentifier=pymc-companion
ReadWritePaths=/var/lib/supply-drop-bbs

[Install]
WantedBy=multi-user.target

supply-drop-bbs.service (HAT variant) waits for pymc-companion:

ini
[Unit]
Description=Supply Drop BBS
After=network.target pymc-companion.service
Wants=network.target

[Service]
...same as USB variant above...

The two services are independent at the socket level - the BBS reconnects automatically if pymc-companion restarts.

Update

Re-run the installer. It downloads the latest pre-built binary, updates service files, and leaves your config and data completely untouched:

sh
curl -fsSL https://raw.githubusercontent.com/Mesh-America/supply-drop-bbs/main/install.sh \
  | sudo bash

When asked "Reconfigure now?", answer N to keep your existing /etc/supply-drop-bbs/config.toml unchanged. The service restarts automatically at the end.

Typical update time: under a minute on supported architectures.

Manual binary-only update

If you prefer to update only the binary without running the full installer, download the pre-built binary for your architecture directly:

sh
# Detect your architecture
ARCH=$(uname -m)
case "$ARCH" in
    aarch64) TARGET="aarch64-unknown-linux-gnu" ;;
    armv7l)  TARGET="armv7-unknown-linux-gnueabihf" ;;
    x86_64)  TARGET="x86_64-unknown-linux-gnu" ;;
esac

# Find the latest release tag
TAG=$(curl -sSf https://api.github.com/repos/Mesh-America/supply-drop-bbs/releases/latest \
    | python3 -c "import sys,json; print(json.load(sys.stdin)['tag_name'])")

# Download and install
curl -fsSL \
    "https://github.com/Mesh-America/supply-drop-bbs/releases/download/${TAG}/supply-drop-bbs-${TAG}-${TARGET}" \
    -o /tmp/supply-drop-bbs-new
sudo systemctl stop supply-drop-bbs
sudo install -m 755 /tmp/supply-drop-bbs-new /usr/local/bin/supply-drop-bbs
sudo systemctl start supply-drop-bbs
supply-drop-bbs --version

Manual source build update

Use this path only if no pre-built binary is available for your architecture:

sh
sudo systemctl stop supply-drop-bbs
cd /opt/supply-drop-bbs
sudo git pull
sudo cargo build --release
sudo install -m 0755 target/release/supply-drop-bbs /usr/local/bin/
sudo systemctl start supply-drop-bbs

Backups

Automatic backups

If [backup] enabled = true (default), the BBS runs VACUUM INTO 'backup-YYYY-MM-DD-HHMMSS.sqlite' on the configured interval. Backups land in <data_dir>/backups. VACUUM INTO is non-blocking.

Retention defaults: 7 daily + 4 weekly. Configurable.

Manual backup

sh
supply-drop-bbs backup

Or use the Trigger backup button in the web admin UI.

Off-host backups

sh
# Cron: copy the latest backup nightly to a remote host
0 3 * * *  rsync -a /var/lib/supply-drop-bbs/backups/ \
              backup-host:/srv/bbs-backups/$(hostname)/

Disaster recovery

Corrupted database

sh
sudo systemctl stop supply-drop-bbs
sudo mv /var/lib/supply-drop-bbs/bbs.sqlite /var/lib/supply-drop-bbs/bbs.sqlite.corrupt
sudo mv /var/lib/supply-drop-bbs/bbs.sqlite-wal /var/lib/supply-drop-bbs/bbs.sqlite-wal.corrupt 2>/dev/null || true
ls -lt /var/lib/supply-drop-bbs/backups/
sudo cp /var/lib/supply-drop-bbs/backups/<latest>.sqlite /var/lib/supply-drop-bbs/bbs.sqlite
sudo chown supply-drop:supply-drop /var/lib/supply-drop-bbs/bbs.sqlite
sudo systemctl start supply-drop-bbs

Lost sysop access

sh
sudo systemctl stop supply-drop-bbs
sudo supply-drop-bbs user promote <username> \
  --config /etc/supply-drop-bbs/config.toml
sudo systemctl start supply-drop-bbs

See CLI.md for the full user subcommand reference.

Monitoring

Health endpoint

If the web admin plugin is enabled, GET /health returns:

json
{
  "status": "healthy",
  "uptime_seconds": 1234567,
  "version": "0.1.0",
  "bridge_connected": true,
  "transports": { "mesh": "running", "web": "running" },
  "db": { "size_bytes": 12345678, "last_backup": "2026-05-08T03:00:00Z" }
}

status is "healthy" only if every transport reports running and the bridge is connected; otherwise "degraded".

Logs

sh
journalctl -u supply-drop-bbs -f                             # tail
journalctl -u supply-drop-bbs --since "1 hour ago" -p err   # errors only
journalctl -u pymc-companion -f                              # Pi HAT radio bridge

Reverse-proxy setup (HTTPS)

The web admin plugin doesn't terminate TLS. Use nginx or Caddy:

Caddy

admin.bbs.example.com {
    reverse_proxy 127.0.0.1:8080
}
toml
[plugins.web]
bind = "127.0.0.1:8080"
external_origin = "https://admin.bbs.example.com"
cookie_secure = true

nginx

TBD

Troubleshooting

BBS won't start

sh
supply-drop-bbs config check
sudo journalctl -u supply-drop-bbs -n 100 --no-pager

Look for the first ERROR line. Subsequent errors are usually cascading from it.

Radio bridge disconnected

USB device:

sh
ls -la /dev/ttyACM* /dev/ttyUSB*
sudo journalctl -u supply-drop-bbs -f

Common causes: wrong serial_port in config; device not in dialout group (sudo usermod -aG dialout supply-drop); firmware crashed (unplug and replug).

Pi HAT:

sh
sudo systemctl status pymc-companion
sudo journalctl -u pymc-companion -f

Common causes:

  • SPI not enabled - sudo raspi-config → Interface Options → SPI
  • supply-drop user not in spi/gpio groups (installer adds these; a reboot may be needed)
  • Missing Python dependency - sudo /opt/pymc-companion/venv/bin/pip install spidev lgpio
  • Wrong HAT selected - edit /etc/supply-drop-bbs/pymc-companion.yaml and restart pymc-companion

Database locked

Almost always means two BBS instances are running against the same DB:

sh
sudo systemctl status supply-drop-bbs
ps -ef | grep supply-drop-bbs

Web UI returns 502

sh
systemctl status supply-drop-bbs
ss -ltnp | grep supply-drop-bbs

Check [plugins.web] bind and external_origin in config.

Where to get help

  • Bugs: GitHub Issues
  • Security: see SECURITY.md
  • General questions: GitHub Discussions

Versioning

Pre-1.0: each release may include breaking changes - read the release notes.

After 1.0: semver. Major bumps are breaking; minor releases add features compatibly; patches are bug fixes only.

Released under the Apache 2.0 + Commons Clause License.