Skip to main content

Headless Installation

Advanced users — not part of Autodarts Desktop

This is a separate setup path from Autodarts Desktop, the app most people use. Both run the same underlying Detection software; a headless install just leaves out the application window and is run from a terminal instead. It's aimed at advanced users and at low-budget builds on small computers like a Raspberry Pi, where running without a window saves resources. Linux and macOS.

If you just want to connect a normal board and you're not sure this is for you, it probably isn't — use Autodarts Desktop instead.

What "headless" means

A headless computer is one that runs without a screen, keyboard or mouse attached — you reach it over the network instead, typically with SSH (a way to type commands on one computer from another). Everything on this page is typed into a terminal, either on the machine itself or over SSH.

Requirements​

  • Linux on a 64-bit PC (x86_64) or a 64-bit ARM board (arm64) — for example Debian 11 or newer, or Ubuntu 20.04 or newer — or on a 32-bit Raspberry Pi (armv7l), with Raspberry Pi OS or Debian 10 or newer. Or macOS 11 or newer, on an Apple Silicon or Intel Mac.

  • curl, which most systems already have. If yours doesn't:

    sudo apt install curl -y

    (On distributions without apt, use whichever package manager they provide instead.)

Installing doesn't need administrator rights (sudo): everything goes into your own user account, which is also what lets it update itself later.

Installing​

curl -fsSL https://autodarts.sh | bash -s -- --headless

That downloads the latest release and installs it for your user. When it finishes it prints the commands you'll need, starting with the one that opens the board: autodarts (or ad for short).

Terminal output of the headless installer: it installs v2.1.0, puts the autodarts command and the ad shorthand in ~/.local/bin, and lists the autodarts, autodarts remote, autodarts update and autodarts --help commandsPersonal data redacted
A finished install, with the commands you'll use.

To follow the beta track instead — pre-release versions that get new features first, and occasionally new bugs — add --beta:

curl -fsSL https://autodarts.sh | bash -s -- --headless --beta
Only use the official install command

Every install command on this page starts with curl -fsSL https://autodarts.sh | bash — the same terminal command shown on the official download pages, autodarts.com/downloads and autodarts.com/downloads/beta. The parts after it, like --headless and --beta, only choose what gets installed.

Never run an install command that downloads from any other address, or one someone sends you that doesn't match these. A command like this runs whatever it downloads, so a changed address could install anything.

autodarts: command not found?

The installer puts the autodarts command in ~/.local/bin. If that folder isn't on your system's search path yet, the installer says so and prints the line that adds it. Logging out and back in also fixes it on most Linux systems.

Setting it up​

Run:

autodarts

This opens the board's own screen, right in the terminal. Underlined letters are keyboard shortcuts — S for Start, for example.

The autodarts terminal screen before signing in, with Info (Board: Sign in to register a board; Address with a Web app button), Service, Controls, Detection, Motion and Config sections, and three empty camera slots
The board's screen, before signing in.

It walks you through the same steps as Autodarts Desktop's setup:

  1. Sign in. Select Sign in. The screen shows a QR code, a web address and a short code. Scan the QR code with your phone — or open the address on any device — and sign in to your Autodarts account there, checking that the page shows the same code. Nothing needs to be typed into the headless machine itself. Copy link copies the address to the clipboard of the computer you're typing on, even over SSH. The code is valid for 10 minutes.

    Sign in to Autodarts screen with a QR code, a link to auth.autodarts.com with the code included, the code itself, and Open in browser, Copy link and Cancel buttons
    Signing in. The QR code and code here are blurred; they expire after 10 minutes anyway.
  2. Create or claim a board. Type a name for this board and select Create — or pick one of your existing boards under Select board and select Claim to move it over to this machine. Whatever was running that board before stops.

    The terminal screen after signing in, with the account name at the top right and the Board row offering a name field with Create, or Select board with Claim
    Signed in: create a new board, or claim an existing one.
  3. Set up the cameras. Pick a camera for each of Camera 1 to Camera 3, then select Calibrate. Each camera says calibrated once it's done, and the board is ready when the status at the bottom left reads Throw.

    The terminal screen with the board created, three USB cameras selected and each marked calibrated, and Throw / Calibration finished in the status line
    Board created, cameras calibrated, ready to throw.

Two more options under Config:

  • Lens correction straightens out the picture of a camera whose lens distorts it — a wide-angle lens that bends straight lines, for example. Leave it off if your cameras' pictures aren't distorted.
  • Calibrate on start recalibrates every camera the first time detection starts after the board starts — handy if you'd like a fresh calibration every day.
The screen asks for a bigger window?

It needs a terminal at least 62 characters wide and 15 lines high. Make the window bigger, or the font smaller.

Starting automatically​

Out of the box, the board only runs while the autodarts screen is open. To keep it running in the background — and have it start by itself whenever the machine boots — tick Run as a service in the screen's Service section.

On Linux, if the service only starts once someone has logged in, the screen tells you so and shows the command that fixes it.

Opening it in a browser​

Like Autodarts Desktop, a headless board shows its window as a web page, Board Manager, at http://<board address>:3180/ — the address shown on the screen's Address row. The Web app button next to it opens Board Manager, or copies its link when you're connected over SSH (so does pressing w or m).

Board Manager is also where you change a headless board's camera picture settings: the autodarts screen doesn't have them.

Managing it from another computer​

A board without a screen is easiest to look after from your laptop: install the same way on the other computer, then run autodarts remote. It lists the boards it finds on your network and opens the one you pick. If it can't find yours (a different network segment, for example), give it the address directly: autodarts remote -H 192.168.0.42.

You can also control it from any computer running Autodarts Desktop — see Controlling another board — or open its Board Manager in a browser.

Updating​

On Linux, when a newer release is out, the board's screen offers it. You can also update from the terminal at any time — handy over SSH:

autodarts update

On a Mac, a headless board doesn't update itself: run the install command again to get the latest version.

If you control your boards from another computer, update all of them at the same time: version 2.1 can't control a board on version 2.0, and the other way round.

Updating from version 2.0

Sign in again on the board's screen afterwards — the earlier sign-in isn't carried over. The board keeps running without it, but what your account is allowed to do comes from the account signed in on the board. If the board runs as a service, untick and tick Run as a service again too.

Upgrading from the previous version​

If this machine ran the previous headless version (Autodarts 0.x), remove it before installing the new one, so the two don't fight over the cameras:

sudo systemctl disable --now autodarts
sudo rm -f /etc/systemd/system/autodarts.service /etc/systemd/system/autodartsupdater.service
sudo systemctl daemon-reload
rm -rf ~/.local/opt/autodarts ~/.local/bin/autodarts ~/.local/bin/updater.sh

Your settings in ~/.config/autodarts stay where they are, and the new version picks up the board's sign-in from them on its first start. Then install as described above.

Uninstalling​

curl -fsSL https://autodarts.sh | bash -s -- --uninstall --headless

This removes the program and its service but keeps your settings, calibration and sign-in, so a reinstall picks up where you left off. To delete those too, use --purge instead of --uninstall.

Terminal output of the uninstaller: it removed the service and the program, and kept the settings in ~/.config/autodartsPersonal data redacted
Uninstalling. -u is short for --uninstall.