All videos

Give someone their own device

Also on YouTube

Let someone else put their laptop on your Relay: make a join code with their label, choose how their app names look, send them the command, and revoke codes nobody used.

Length
3:08
Published
Language
English
Transcript

After this film, Anna's laptop is on your Relay, under a name of her own. You need a Relay on its own domain, and Anna needs the Viaalink CLI. Your Relay only lets in devices it knows. A join code lets one new device register itself, and it works once. In your dashboard, click People, then the Join codes tab.

Anna and Ben both call their app notes. But your Relay has one domain, and a name exists only once on it. So the suffix adds the label: notes-anna, and notes-ben. Label it Anna: the suffix will come from this label. A code is valid for 15 minutes, unless you choose longer. Anna is not at her computer yet, so choose 24 hours.

Names stays on End in a suffix, and the other choice is Short. The Suffix field shows where it comes from: their name, a random code, or a value you type. Keep Their name, and Anna's app notes becomes notes-anna. That is all the form needs, so click New join code. The code is shown only this once, so copy its command now.

Send that command to Anna in a private message. Anyone holding that command can register a device, so keep it private. On her laptop, Anna pastes it into a terminal. The link stays in single quotes, because it contains a hash sign. She presses Enter, and her laptop registers with your Relay.

Now Anna publishes an app, and calls it notes. Its address is notes-anna, on your own domain. Under Devices, her laptop now stands under Anna, with the name notes-anna. Under People, Users, Anna has a row of her own, and her names end in -anna.

Another join code, made earlier for Ben, was never used. While it is valid, it can still add a device, so revoke it. Under Join codes, Anna's code is used up, and Ben's still has a Revoke button. Click Revoke, and that code stops working at once.

Now Tom gets a join code with the label Tom, and he publishes notes too. What will his address be? Pause the film and think about it. It is notes-tom on your domain: the suffix comes from his label. Your turn: make a join code for someone you trust, and watch their device arrive.

Read more