Devices Documentation

Adding a device

Turn a Raspberry Pi into a managed node, then approve it.

Open Nodes, click Add node, and pick the tab that fits your device.

Your deviceTab
Already runs a 64-bit Debian or UbuntuOne command
A board you can connect over USB in boot modeUSB flash
Blank, and you can put a card into itMaster image (provisioning card)

The device needs Ethernet and outbound access to the server on port 50051, plus port 80, and 443 for a server on the internet. The USB and card ways bring their own recovery system, so you install an OS afterwards (Installing an operating system). Both need network boot set up on the server, which the installer offers.

The three ways to add a device

Run one command on a device that already runs Linux

The One command tab with an empty Token name field, the Credentials users box, the collapsed Console login section and the Generate command button.
  1. Open the One command tab.
  2. Type a Token name if you want one, such as workshop batch.
  3. Click Generate command, then Copy command.
  4. Run the line on the device as a user with sudo.

The script installs the agent and tells you when it has connected. On a fresh system it first waits for the system's own package upgrade to finish and tells you so. The device needs arm64 with systemd, dpkg, curl or wget, and openssl.

The token works for 7 days and for several devices. You find it under Secrets → Tokens (Secrets and variables). To remove the agent later, run curl -fsSL <server address>/uninstall.sh | sudo sh with the same http:// or https:// address as in the install command.

Flash a board from the browser

This writes the board's bootloader so it boots from your server. Use Chrome or Edge, with the server opened over HTTPS. A local-network install serves plain HTTP, so it cannot flash from the browser: use a provisioning card there. On Windows, install the WinUSB driver first as the tab explains.

The USB flash tab with the Connect device button, an empty Board serial field, the Node name field, the yellow flashing warning, the line Power the device on within 30 days of flashing, and a disabled Flash EEPROM button.
  1. Put the board into USB boot mode and connect it to your computer.
  2. Click Connect device and pick the board. Board serial fills in.
  3. Type a Node name if you want one.
  4. Click Flash EEPROM and don't unplug the board until the green notice appears.
  5. Unplug USB, connect Ethernet and power the board on.

The node arrives already approved. Power the board on within the days the tab names (30 by default). Your account holds the serial only for that time. After it, another account can claim the serial. If none has, the node still binds the board when it connects.

Boot a blank device from a provisioning card

The Master image tab: description of the FAT32 MBR requirement with the macOS scheme Master Boot Record, the GPL source note, the yellow keep-the-card-in warning, and the Name field set to sd-provisioning.
  1. Open the Master image tab.
  2. Pick an SSH key for the new nodes, and set Expires At to change the default of 7 days.
  3. Click Download SD Image. Each click creates a new token.
  4. Format the card as FAT32 on an MBR partition table. In macOS Disk Utility, choose View → Show All Devices, select the card itself, and erase it as MS-DOS (FAT) with scheme Master Boot Record.
  5. Unzip the bundle into the root of the card.
  6. Insert the card and power the device on.
  7. Leave the card in until you have approved the node and it shows RECOVERY. Then move the card to the next device.

To prepare a card for one named device, use the Single node tab instead. Create the node, then click Download SD image in its panel. That node arrives already approved.

Approve it

A device from One command or Master image shows a yellow bar and PENDING in Nodes. Click it, check the HW serial, and click Approve. Approval applies the node's access and utilities at once. By default, a device running the recovery system from a provisioning card also gets a bootloader that boots from your server.

A device added with One command keeps its bootloader. If that device already network-boots from this server, open Properties and set Boot behavior to Local OS before its next reboot: left on Inherit, it boots the recovery system.

The doomsday-clock panel with the Pending Approval banner, its explanation, the Approve and Reject buttons, and the node's IP, MAC and hardware serial.

Next: install an operating system on the node.