PLAN.md lists what's left: checking radios.conf against real radios, telling Elecraft's radios apart, `radio configure`, CM108 PTT, the Flatpaks' serial access, and dropping graywolf's unused dialout group. TEST.md lists the checks the fakes can't do, with tables for results: the uucp group, finding each radio, and pairing radios with sound cards. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
104 lines
8.2 KiB
Markdown
104 lines
8.2 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.
|
|
|
|
### 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. 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. 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.
|
|
|
|
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 (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).
|