A Linux box (see Get started on Linux) joins your devices like a Mac does and is one of your Desktop Vaults. It has no camera, so the box shows a code and your phone scans it.
Pair from the box's page
The box keeps its own list of paired devices (Linux 3.3.0 and newer).
- On the box's page (Settings → This Box), under My Devices, tap Add a device. The box shows a pairing code for your phone. Only show it to your own device; Show a new code makes another.
- On your phone, start Link a device and scan the code.
- Both screens show four Check words. If they match, tap They match on the phone, then tap They match: add this … on the box, which also confirms what the phone will be. The box never accepts a device on its own.
- Your Nostr key is never used and nothing is published. The box keeps a copy of your vault from each device you pair.
- Remove next to a device takes it off at once: it can't copy from the box again, even after a restart. This is the only way to take a device off the box: your media server list no longer decides.
- After an update from a beta, the box first trusts the devices it already let in, then only its own list.
- A paired box serves your far-ring rankings to the devices paired with it (more).
Linux beta 10 and earlier: link the box by its address
- Get the box's address. On the box's page (Settings → This Box) copy This box under My Devices. On a desktop, the tray's Copy box npub does the same.
- On your phone or Mac, open Settings → Your Devices (or Mesh settings) and tap Add a device.
- Tap Paste instead and paste the address.
- Under This is, choose what the box does. Mobile vault · new posts is the default, and what the box's page suggests: it keeps your new posts and media. Desktop vault · full history keeps all your history and syncs both ways, like a Mac.
- Give it a name if you like, and tap Add.
This adds the box on that device only. Do it on each phone or Mac that should use the box. On beta 10 and earlier the box lets in the devices your account lists in your media servers, so there's nothing to approve on the box itself.
You're done when the box's page shows your device as Approved (Waiting until it has reached the box), and the box shows in reach under Your Devices.
The box's page
Open the vault's address (for example http://raspberrypi.local:8080/), sign in as the owner, and go
to Settings → This Box. Only the owner's account can read it.
- Status: how long it has run, its version, memory and disk.
- Storage: the vault folder, space used and free, and Move vault to… another folder or drive. The box stops serving while it copies.
- Mesh: whether the mesh is connected, how many peers, and the box's Mesh address.
- My Devices: the box's own address, each of your devices, Add a device and Remove (above).
- Public on the web: for a box with its own web address, Make this vault public on the web puts it in your relay list and DM inbox, after your other Vaults. Other boxes and Macs can be public too. A box with no web address is reached only by your own devices over the mesh. More on Public on the web.
- Where its posts go: the box sends what you post through it to your own relays (the ones with My posts on in your relay list), and picks up a change you save on any device within a minute. Until your relay list has reached the box, it uses the recommended relays. More on relays.
- Update: Check for update and install. Updates are manual for now: install the newer package on the box.
Keys: what the box holds
- The box never holds your secret key. It knows only your npub, which says whose vault it is.
- On its first start it makes its own mesh key, readable only by the mesh service. That key is how your devices recognise the box.
- Your own devices reach the whole vault. Anyone else on the mesh reaches only a small, rate-limited door. Nothing publishes your home IP address.
What runs on the box
For the curious: the package installs three system services.
nostr-vaultruns havend, the vault: your relay, the media server, the web app and the box's page, on port 8080. It runs the relay engine on the machine itself, on port 3355.nostr-vault-meshruns the mesh, with the same settings as the Mac app.nostr-vault-preparesets up the vault folder once at start.
Each runs as its own user with no special rights, on a read-only system with only its own folders writable.
Settings are in /etc/nostr-vault/vault.env (no secrets in it). The details are in
linux/native/README.md.