A collection of Ham Radio utilities and applications built on top of [CoreDesktop](https://gitea.federated.computer/Federated_Computer/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. 1. 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. 1. 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. ### Downloading the VARA and Winlink installers yourself 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. Don't probe an older Yaesu (FT-817, FT-818, FT-857, FT-897): it has no command to say what it is, and takes every five bytes it's sent as a command, so `radio`'s questions could reach it as stray ones, which may key it or change its settings. Set one up with `radio configure --model` instead, as below. `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`. An FT-817, FT-818, FT-857 or FT-897 is set up without asking it anything: `radio configure --model 1020` (for an FT-817; `rigctl -l` lists the others) uses its serial port, at the CAT rate it comes with, 4800 baud. If you've changed its CAT RATE menu, give that too: `radio configure --model 1020 --baud 38400`. A radio with no CAT can be set up too, on an interface that keys it: rigctld then runs Hamlib's Dummy radio, which only keys the radio, and the programs reach it as before. A sound card with no serial port (an AIOC, a CM108 cable, a SignaLink) is numbered after the radios in `radio`'s list: `radio configure 2` keys the radio through its CM108 PTT pin if it has one, or leaves it to the radio's VOX. For an interface with a serial port, such as a Digirig on a handheld, say how it keys the radio: `radio configure --no-cat --ptt rts` (or `dtr`, `cm108` or `vox`). Two interfaces of the same kind with no serial number of their own (two CH340 cables, two CM108 cables) can only be told apart by the USB socket each is plugged into. `radio` then knows their serial ports (by `/dev/serial/by-path`) and PTT by socket, and says so. Their sound cards go by the order the two came up, which may change between boots: keep each in its socket, and if the radios get each other's audio, run `radio configure` again. A radio `radio` recognises by its USB serial number (most Icoms) is set up by itself when you plug it in, as if you'd run `radio configure`, unless the radio set up already is plugged in. A notification says what it did, and `journalctl --user -u hampack-radio-plugged` has the details. Programs that are running are skipped, as is Graywolf if it's running, since stopping it needs sudo; run `radio configure` for those afterwards. Radios it would have to ask what they are, and interfaces with no CAT, are left for you to set up, since asking raises the port's DTR and RTS lines, which may key the transmitter while nobody's there. A udev rule, `/etc/udev/rules.d/70-hampack-radio.rules`, starts the `hampack-radio-plugged` user service when a USB serial port appears. To turn it off, run `systemctl --user mask hampack-radio-plugged`. 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. `radio unconfigure` undoes `radio configure`. It stops the `hampack-rigctld` service and removes it, and stops flrig starting when you log in, if HamPack set that up. Then it offers to put back each file `radio configure` backed up, from the oldest backup, which has your settings from before it first changed them. Anything you've changed in that program since is lost, so it asks about each one, and backs up what's there now first. QLog's log holds your contacts as well as its rig profiles, so putting it back loses contacts logged since; it's left as it is unless you say yes. Programs that are running are left alone. Afterwards, radios aren't set up when they're plugged in until you run `radio configure` again. 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](https://gitea.federated.computer/Federated_Computer/coredesktop) sets up some nice services for operating a desktop machine, it is a project I work on frequently for [Federated Computer](https://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](mailto:david@young.computer) or [Matrix](https://matrix.to/#/@david:matrix.young.computer).