Reflash blub with a current Debian (12+) image, with Tailscale #10
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
Blub runs the BeagleBoard.org Debian image of 2018-10-07: Debian 10 "buster" (10.13), kernel 4.14.108-ti-r144, OpenSSH 7.9.
ssh/scpfrom a current client warns.deploy.shalone triggers it 4 times. It is silenced client-side for now withWarnWeakCrypto no. Debian 12 (OpenSSH 9.2,sntrup761) or 13 (OpenSSH 10,mlkem768) fixes it properly./opt/cloud9209 MB,/opt/node-red169 MB,/opt/source56 MB,/opt/cloud9_support33 MB. The database is 107 MB and growing, because retention cleanup is not wired up.Plan
Reflash with a current BeagleBoard.org Debian 12 (or 13) image for the BeagleBone Black, preferably a minimal/IoT image without desktop or IDE extras. An in-place upgrade across two Debian releases on this board is slow and fragile.
Tailscale
Install Tailscale on the new image, from Tailscale's own apt repository for Debian (not a hand-installed binary), so
apt upgradekeeps it patched.ssh blubover the tailnet works, restrict OpenSSH to the tailnet (and/or use Tailscale SSH). The web UI on :8000 can then be limited to the tailnet as well. Keep a LAN fallback until it's proven.blub, sodeploy.sh(ssh debian@blub) keeps working. The MQTT broker at 192.168.1.2 stays on the LAN.What blub needs (current setup)
~/thermostat-armand~/configs/config.yaml, both installed by./deploy.sh.~/data/thermostat.db, history since 2019. It includes January–February 2026 winter data that is useful for #8. Back it up first, stopping the service so the WAL is checkpointed.thermostat(/etc/supervisor/conf.d/). The sudo rule letsdebianrun/usr/bin/supervisorctl(used bydeploy.sh). Settings: Consider a systemd unit instead. CLAUDE.md lists "systemd service and deployment scripts" as still to do.deploy.shwould then callsystemctl.uboot_overlay_addr0=/lib/firmware/BB-W1-P9.12-00A0.dtboin/boot/uEnv.txt, modulesw1_gpioandw1_therm. DS182028-051680f7b2ff(Badkamer) is on P9_12. Check that the new image's kernel ships the same overlay./sys/class/gpio. Newer kernels deprecate the sysfs GPIO interface. Check it is still enabled in the image's kernel, otherwise the relay adapter needs the GPIO character device (/dev/gpiochipN).CAP_NET_BIND_SERVICE, easy with a systemd unit).blub/blub.snamellit.com, userdebian, SSH key login. MQTT broker at 192.168.1.2 (credentials come from.envrc.localviadeploy.sh).Steps
~/data/thermostat.db(and~/configs/config.yaml) off the boarddebianuser and the SSH key/sys/bus/w1/devices/28-051680f7b2ffdeploy.shto match)thermostat.db, run./deploy.sh, check readings, relay and the web UIssh -Von the board shows OpenSSH ≥ 9.2; removeWarnWeakCrypto nofrom the client's ssh configtailscale up, name the machineblub; checkssh debian@bluband the web UI over the tailnetNote
CLAUDE.md still lists the heating relay as GPIO 60 (P9_12) and the DS1820 on P9_42. Blub's actual wiring is relay GPIO 50 (P9_14) and 1-Wire on P9_12. Correct CLAUDE.md/README when doing this.
Reflash blub with a current Debian (12+) imageto Reflash blub with a current Debian (12+) image, with Tailscale