Files
HamPack/README.md
T
David YoungandClaude Opus 5.5 8023b04024 Check packages upstream, test hampackcheck and the conf files, add CI
`hampackcheck packages` (and `make check-packages`) checks that every
package in packages.conf is in the repos or on the AUR and every Flatpak
is on Flathub, and fails if any is missing or couldn't be checked. Names
only provided by another package pass with a note.

New tests cover hampackcheck's version comparisons and package check, and
check compile.conf, binaries.conf, packages.conf and the desktop files for
missing or misspelt fields and paths that don't exist.

A Gitea workflow runs lint and tests on every push and pull request, and
the package check on those and weekly.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 09:46:29 -07:00

90 lines
6.7 KiB
Markdown

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.
## 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 (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
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).