Files
HamPack/README.md
T
David YoungandClaude Opus 5.5 0b471c9771 Harden install, update and uninstall; add shared lib and tests
Updates
- install-compiled.sh never prompts: unknown versions rebuild, a missing
  version= fails
- Detect VARA Terminal by "VARA Terminal.exe" in drive_c/VARA, not by
  the folder VARA HF also uses
- install-windows-apps.sh checks first: nothing is downloaded and
  winetricks doesn't run unless a product is missing, and installers
  only run with a desktop session
- Flatpaks install system-wide from flathub and honor skip-packages
- Rewrite desktop files on every run so icon paths stay right; add the
  missing QtTermTCP desktop file
- Build steps can't read the rest of the conf through stdin

Uninstall
- update.sh records the packages and Flatpaks HamPack itself installed;
  hampackremove removes only those that nothing else needs, and lists
  the rest
- Read package lists from packages.conf instead of copies, remove
  files from install manifests, conf install paths and older builds,
  and revert the Wine Decorated setting

Security
- Replace the NOPASSWD sudoers file with a sudo keepalive, and delete a
  leftover /etc/sudoers.d/hampack
- Verify binaries.conf downloads against sha256=; pin dx.py to a commit
- Graywolf's web UI listens on 127.0.0.1; update.sh manages its unit
- Install direwolf and kiwix through a staging directory with
  install_staged, so nothing in ~/.local ends up owned by root; hand
  back any root-owned files left by older builds
- Use private temp directories instead of fixed /tmp paths

Code quality
- Shared lib.sh: conf parser, variable expansion, version records,
  install tracking, staged installs, sudo keepalive
- bats tests covering first install and update paths, Makefile with
  lint/test/hooks, pre-commit hook
- patch-potacat.sh uses jq; drop stale kiwix version entries

README: fill in what gets installed, uninstall and graywolf notes,
development section, typo and Matrix link fixes

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 09:55:13 -07:00

83 lines
5.8 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.
### 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
- `make hooks` runs both before each commit
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).