Files
HamPack/README.md
T
David YoungandClaude Opus 5.5 c409a6cb17 Check HamPack's Flatpaks can open serial ports, in hampackcheck
`hampackcheck packages` (and so the weekly `make check-packages`) now
asks Flathub's API for each Flatpak's permissions, and fails if its
devices don't include all, without which it can't see /dev/ttyUSB0 to
control a radio itself, or if Flathub can't say. WSJT-X and QLog both
have it.

radio configure doesn't need it: it points them at rigctld over the
network.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 14:06:33 -07:00

11 KiB

A collection of Ham Radio utilities and applications built on top of CoreDesktop machines.

Introduction

HamPack (and its sister project HamPackServer) is a tool box for ham radio operators to install a vast array of applications and utilities useful to the operator under many different operating circumstances.

The main objectives of this project are to:

  1. Remove the Windows hegemony from ham radio operating today. No one benefits from a reliance on Windows. It is a closed system with many proven security risks, it is antithetical to the "tinkering" ethos of ham radio, and it inevitably increases the costs of operating.
  2. Collaborate with other ham radio operators and enthusiasts on software and platforms beneficial to all operators and enthusiasts. Embracing open source and Linux allows ham radio software to enter a new Cambrian age of software flourishing.
  3. Have some fun. We build antennas and radios. Why not extend the fun to our software?

Installation

HamPack is a CoreDesktop sibling project. With CoreDesktop installed, run:

sibling add https://gitea.young.computer/david/HamPack.git

This clones HamPack into ~/.local/share/siblings/HamPack and runs its install.sh. From then on, CoreDesktop's update command pulls HamPack and runs its update.sh, so HamPack stays current along with the rest of the system. Re-run the sibling add command above to repair an install.

HamPack asks for your sudo password once when it installs; under update, CoreDesktop has already asked. Nothing is left in /etc/sudoers.d.

To uninstall HamPack and the applications it installed, run hampackremove. It removes only the packages and Flatpaks HamPack installed itself, and of those, only the ones no other software needs. Packages you already had are left alone. HamPack started keeping this record in November 2026, so packages from earlier installs aren't removed; hampackremove lists them, with the command to remove any you don't want.

If you installed HamPack before it became a sibling project, run the sibling add command above once. It moves HamPack to the new location and removes the old update hooks.

What Gets Installed

Applications are pinned to tested versions, which we try to keep up with. Pinned versions are in binaries.conf and compile.conf, and ./hampackcheck reports newer upstream releases.

From Arch and the AUR (packages.conf): fldigi, flrig, Hamlib, CHIRP, GridTracker 2, chattervox, Pat (Winlink), QGIS, SPLAT!, VOACAP, GPSBabel, Wine and winetricks, plus the libraries and build tools the applications below need.

Flatpaks from Flathub (packages.conf): WSJT-X and QLog.

Built from source (compile.conf):

  • Dire Wolf: software TNC and APRS digipeater/iGate
  • QtTermTCP: packet radio terminal
  • Kiwix Desktop and kiwix-tools: offline Wikipedia and other ZIM archives
  • Dump1090: ADS-B decoder
  • YAAC: APRS client
  • POTACAT: POTA spot aggregator with CAT control and logging
  • JS8Call (JS8Call-improved): keyboard-to-keyboard HF messaging
  • Graywolf: APRS transceiver and gateway, run as a systemd service

Pre-built downloads (binaries.conf, each checked against its SHA-256): ardopcf (ARDOP modem), Paracon (packet terminal) and dx.py (DX cluster client).

Others: not1mm (contest logger, installed with uv), and VARA HF, VARA FM, VARA Terminal and Winlink Express under Wine. The Windows installers need you to click through them, so they run only when one of these is missing and you're at the desktop.

winlink.org only lets web browsers download its programs, so HamPack can't fetch VARA HF, VARA FM, VARA Terminal or Winlink Express itself. When one is missing, the update says which zips to get and from where. Download them in your browser, leave them in your Downloads folder, and update again: HamPack installs them from there.

Graywolf's web UI

Graywolf's web UI is at http://localhost:8080 and, by default, can only be reached from the machine it runs on. To reach it from other machines, run sudo systemctl edit graywolf and override ExecStart with -http 0.0.0.0:8080. Changes made that way survive HamPack updates; edits to /etc/systemd/system/graywolf.service itself don't.

Finding your radio

radio lists the radios plugged into USB: each one's serial port, the sound card that came with it, and its model and Hamlib model number when it recognises it. It also lists USB sound cards with no serial port, such as a SignaLink or an AIOC, for radios keyed by VOX or a PTT line, and says which sound cards can key a radio through a CM108 PTT pin. Most Icoms are recognised from their USB serial number alone. For other radios, run radio detect --probe. This asks each one what it is (the CAT ID; command, or Icom's CI-V equivalent) over every serial port no other program is using. radio probe /dev/ttyUSB0 asks a single port.

Controlling a radio means opening its serial port, and on Arch only members of the uucp group can. Keying a radio through the PTT line on a CM108-family sound card (a Digirig, an AIOC) means opening the card's hidraw device, which normally only root can; HamPack installs a udev rule, /etc/udev/rules.d/70-hampack-cm108.rules, that lets whoever is logged in at the desktop use it, as they can the sound card. HamPack adds you to it when it installs. Log out and back in once afterwards for it to take effect. hampackremove takes you out of the group again, unless you were already in it before HamPack.

Probing opens the port, which raises its DTR and RTS lines for a moment before radio drops them. Interfaces that key the transmitter with DTR or RTS may key it briefly, so probe with the radio on a dummy load or an antenna.

radio configure sets up the radio for HamPack's programs. It asks the radio what it is and at what baud rate it answers. Then it runs Hamlib's rigctld for it, as the hampack-rigctld systemd user service on 127.0.0.1:4532, which systemd starts whenever the radio is plugged in and switched on, and stops when it isn't, and points WSJT-X, JS8Call, Pat, fldigi, Dire Wolf, not1mm, QLog, POTACAT and Graywolf at rigctld, with PTT through it. QLog gets a rig profile named HamPack in its log, which is backed up first. Graywolf's channels that transmit get PTT through rigctld; it's stopped for that with sudo, and started again. They then share the radio through rigctld, without fighting over its serial port. Quit them first, since they save their settings when they quit.

It also gives WSJT-X, JS8Call, fldigi, Dire Wolf, not1mm's voice keyer and POTACAT the radio's sound card. POTACAT finds it by name the next time it starts. WSJT-X and JS8Call get it as PipeWire names it, so PipeWire must be running. fldigi and not1mm get PipeWire's name for it too where PortAudio lists it (through PipeWire's JACK support), since ALSA's name for it has a card number that can change between boots; if it does, run radio configure again. If Graywolf has no channels yet, it gets one on the radio's sound card, for 1200 baud APRS.

radio configure only fills in rig and sound settings you haven't set (a sound device of "default" or "pipewire" counts as not set). radio configure --force replaces them, and every file it changes is backed up first. With more than one radio plugged in, give the number radio lists for it: radio configure 2. For a radio it can't tell apart from others, give its Hamlib model number: radio configure --model 2045.

flrig can't reach a radio through rigctld, and the two can't share its port, so radio configure leaves flrig alone. If you'd rather flrig controlled the radio, run radio configure --flrig: flrig gets the radio, and rigctld passes the other programs through it, using Hamlib's FLRig support. flrig then starts when you log in (unless you have it starting already), so it's there before the other programs; leave it running. radio configure without --flrig gives the radio back to rigctld, and stops flrig starting at login. radio configure also says which sound card is the radio's.

The radios it knows are in radios.conf. If your radio isn't recognised, or answers with something radio doesn't know, please open an issue with what radio detect --probe printed.

Why CoreDesktop and/or Arch Linux?

There's no reason HamPack couldn't run on Debian, Ubuntu, Fedora or any of the many other distributions of Linux, with all the libraries and utilities required for getting the ham radio software offered running. And let's hope that happens, in time.

But...

Despite its reputation, Arch Linux is pretty easy to install. CoreDesktop sets up some nice services for operating a desktop machine, it is a project I work on frequently for Federated Computer, it's "free", so, that's the foundation (for now).

Arch Linux is a wonderful community of hackers ensuring most anything will run on Linux. It is a rolling release so the system is more up-to-date than not. New capabilities are quick to enter "production". And, with the CoreDesktop "guard rails", it is easier to run Arch without breaking the system.

But...

There's no reason why someone couldn't collaborate on HamPack and "port" it to other flavors of Linux. That would be great!

Development

HamPack is a set of Bash scripts. install.sh runs once, from sibling add; update.sh runs on every update and does the actual installing, so every step must work both on a fresh machine and on one that already has everything. Shared functions are in lib.sh.

  • make lint runs shellcheck on every script
  • make test runs the bats tests in tests/, which stub out sudo, pacman, Flatpak and systemd, so they're safe to run. They also check the conf files for missing or misspelt fields
  • make check-packages checks that every package in packages.conf is in the Arch repos or the AUR, and every Flatpak is on Flathub, with access to devices so it can open a radio's serial port (run sudo pacman -Sy first). It catches packages that were renamed or dropped upstream, but not a typo that happens to be another package's name
  • make hooks runs make lint test before each commit
  • coredesktop-dev smoketest run --with HamPack installs, updates and removes HamPack on a virtual machine with CoreDesktop, for what the bats tests' fakes can't check. See smoketest/README.md
  • TEST.md lists the checks that need real radios or a real login, with tables for the results

What's left to do is in PLAN.md.

Gitea runs make lint test on every push and pull request, and make check-packages on those and once a week, since packages can disappear upstream without any change here (.gitea/workflows/check.yml).

To add an application, add a section to binaries.conf or compile.conf; the comments at the top of each describe the fields.

How to Participate...

You can help to develop HamPack by submitting "issues" to the repo. If you'd like to contribute code and/or pull requests, contact me on email or Matrix.