allternit-factory pane server). The allternit-node daemon serves them over the relay (/terminal/*), so they keep working when the Allternit app on the computer is busy or restarting. It uses the engine when one answers, and falls back to its own PTYs when none does.
Which images get it
One script,cmd/allternit-computer-cloud/guest/install-pane-engine.sh, sets up the engine and the node on every image. It runs inside the guest as root, and running it again changes nothing.
cloud-init.yaml writes the same units inline. Keep it in step with the script.
Existing computers keep what they have until they’re rebuilt from a new image. Until then the node, where there is one, falls back to its PTYs.
User, socket and start
- Both run as root, with
HOME=/root. The Allternit app runs as root on every cloud image and writes the pairing identity the node adopts to/root/.config/allternit/runtime-identity.json. The engine makes its socket owner-only (0600), so the node has to be the engine’s user to connect. - The socket is
/root/.config/ao/sessions/ao/herdr.sock. That is the engine’s default for root and the Factory sessionao, and it’s also where the app’s own allternit-api looks. Both services getALLTERNIT_FACTORY_PANE_SOCKETset to that path, so the node is handed the socket instead of probing for it. The engine still binds where it always has. - The node starts once the computer is paired. Before pairing, the identity file doesn’t exist and the node would exit at once. Under systemd,
allternit-node.pathstartsallternit-node.servicewhen the file appears. Under supervisord,/usr/local/sbin/allternit-node-runwaits for the file. A bot desktop that never pairs never runs the node.
On Orgo, the same two programs are in
/etc/allternit/orgo/allternit-engine.conf (allternit-factory-pane, allternit-node), with logs in /var/log/allternit-orgo/. allternit-orgo-ensure copies that file into the image’s supervisord conf.d next to the app’s program.
The image check
bash cmd/allternit-computer-cloud/guest/validate-image.sh <image> launches a throw-away container from a locally built image. Never point it at the fleet. On top of its other checks, it now proves:
/opt/allternit-node/allternit-nodeexists, andallternit-node.serviceandallternit-node.pathare enabled.allternit-factory-pane.serviceis active.- Both units carry the same
ALLTERNIT_FACTORY_PANE_SOCKETand run as the same user. allternit-factory pane tty ensure, run with the engine unit’s own environment, reports exactly that socket.- The socket file is owned by the node’s user.
- The node’s user, given only that path, can list terminals on it (
allternit-factory pane tty list, a realfactory.terminal.listcall). allternit-node.pathis active, waiting for pairing.
Desktop bundle
The “Release Allternit Desktop” workflow (release-desktop.yml) builds allternit-node for macOS. It is a universal binary, like allternit-factory, and ships at Contents/Resources/bin/allternit-node next to it. sudo …/allternit-node install then keeps a Mac reachable with the app quit. The Linux bundle doesn’t carry it: it has no allternit-factory either, and cloud images get both from the image workflow. The Windows bundle doesn’t carry it, because the daemon has no Windows service yet.