fractal

Guide

Connect one of your computers

One of your computers (the Mac mini at home, an office PC, a Linux server) becomes a node in the graph. Agents with a wire see the folders you choose, take a file, put one there, and if you want run a command. The connection goes through Tailscale, a private network between your devices: the computer is not opened to the internet.

How it works

In Tailscale, once

From the Tailscale admin console (login.tailscale.com), with your account:

  1. Access controls: add two tags and the rule that lets fractal in only as the «fractal» user, only on the computers you choose.
    "tagOwners": {
      "tag:fractal": ["autogroup:admin"],
      "tag:casa":    ["autogroup:admin"]
    },
    "ssh": [{ "action": "accept", "src": ["tag:fractal"], "dst": ["tag:casa"], "users": ["fractal"] }],
    "acls": [{ "action": "accept", "src": ["tag:fractal"], "dst": ["tag:casa:22"] }]
    If your file already has an "acls" section, just add the line inside it.
  2. Machines: on the computer to connect, «Edit ACL tags» → tag:casa.
  3. Settings → Keys: «Generate auth key», reusable, tagged tag:fractal. It's the key you'll paste into the node: keep it to yourself.

On a Mac

You need Tailscale's command-line version: the App Store app, and the one downloaded from the website, don't let anyone into the Mac (Tailscale SSH). If the app is installed, quit it first.

brew install tailscale
sudo brew services start tailscale
sudo tailscale up --ssh

Then System Settings → Users & Groups: a standard user «fractal». Put the files for the agents in its folders, e.g. /Users/fractal/Documents.

On Linux

curl -fsSL https://tailscale.com/install.sh | sh
sudo tailscale up --ssh
sudo useradd -m fractal

The allowed folders will be under /home/fractal.

On Windows

Tailscale exists on Windows and the PC joins the network like the others, but Tailscale SSH doesn't: fractal gets in through Windows' own SSH server, «OpenSSH Server», still inside the Tailscale network.

  1. Install Tailscale for Windows and sign in with your account.
  2. Settings → Accounts → Other users: a standard local user «fractal», not an administrator.
  3. In the graph, «Add» → «Computer» → Windows → Create the SSH key. fractal shows a command: on the PC open PowerShell as administrator and paste it. It turns on OpenSSH Server, authorizes the key for the «fractal» user and makes it reachable only from the Tailscale network.

Folders are written the Windows way, separated by semicolons: C:\Users\fractal\Documents; C:\Users\fractal\Desktop. Case doesn't matter. Commands an agent runs go through PowerShell.

In the graph

«Add» → «Computer», then:

Before saving, fractal tries to get in. If it can't it says so, and saves nothing. Then draw a wire from an agent to the computer to give it the actions you want.

Removing access