A udev rule starts the hampack-radio-plugged user service when a USB serial
port appears, and it runs `radio configure --auto`. That sets up a radio
recognised by its USB serial number, unless the radio set up already is
plugged in, and says what it did in a desktop notification. It never asks a
radio what it is, since that may key the transmitter, and never asks for
sudo, so a running Graywolf is skipped.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Dire Wolf, Graywolf and others key a radio through a CM108-family sound
card (a Digirig, an AIOC) by setting a GPIO pin through its hidraw
device, which only root can open otherwise. Dire Wolf's own rule gives
it to the audio group, which most Arch users aren't in, and shouldn't
need to be. udev/70-hampack-cm108.rules tags those devices uaccess
instead, so whoever is at the desktop can use them, as they can the
sound card. It matches the devices Dire Wolf 1.8 treats as
CM108-compatible, and no other C-Media devices.
update.sh installs it in /etc/udev/rules.d when it changes, and reloads
and re-applies udev's rules; hampackremove removes it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
--flrig adds an autostart entry, ~/.config/autostart/hampack-flrig.desktop,
so flrig is running before the programs that reach the radio through
rigctld and it. If an autostart entry of yours already runs flrig, none
is added: two flrigs would fight over the port. Running it without
--flrig removes the entry, since flrig would take the port from rigctld
at login, and so does hampackremove. Both remove it only if it carries
HamPack's mark (X-HamPack).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
`radio configure` asks the radio what it is and the baud rate it answers
at, then runs rigctld for it as the hampack-rigctld systemd user service
on 127.0.0.1:4532, using the port's /dev/serial/by-id name. WSJT-X (the
Flatpak) and JS8Call get Hamlib NET rigctl with PTT by CAT; Pat gets a
"hampack" rig, used by ARDOP and VARA where they had none. Rig settings
you've set are left alone unless --force, each file is backed up first,
and programs that are running are skipped. With several radios, give the
number `radio` now lists; --model sets the Hamlib model for a radio it
can't tell apart from others. Sound cards are left for you to choose.
hampackremove stops and removes the service. PLAN.md lists the programs
still to do; TEST.md has the checks on a real radio.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
`radio` lists each radio plugged into USB: its serial ports, the sound
card that came with it (the same USB device, or behind the radio's own
hub), and its model and Hamlib model number. Icoms are recognised by
their USB serial number. `radio detect --probe` asks the others with the
CAT ID; command or Icom's CI-V transceiver ID, at the usual baud rates,
on ports no other program has open; `radio probe PORT` asks one port.
It drops DTR and RTS as soon as a port opens. The radios it knows are
in radios.conf.
update.sh links ~/.local/bin/radio to the clone, unless a different
radio is already there, and adds you to uucp, which owns serial ports on
Arch. hampackremove removes the link, and takes you out of uucp only if
HamPack put you in.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- compile.conf: build xara 0.1.3 with cargo, without the "registered"
feature; stage-install xara, xara-monitor, man pages, the user
service (pointed at ~/.local/bin) and the CM108/AIOC PTT udev rule;
copy the config template to ~/.config/xara/xara.conf if it's not
there. The service isn't enabled: it needs a callsign, and shares
port 8300 with VARA
- packages.conf: alsa-lib and libpulse; rust only when there's no cargo
yet, since it conflicts with rustup
- hampackremove: stop and disable the xara service, keep the user's
settings and say where they are
- README: how to set up xara and use it with Pat
- tests for the xara build, the rust/cargo check and removal
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>