---
description: Install Screenshotter on Windows, macOS or Linux, connect a sign to the live dashboard, and choose the height of its thumbnail.
---

# Install and run Screenshotter

Run Screenshotter on the computer connected to the sign to see its screen on the
live sign dashboard. The Windows, macOS and Linux downloads include Java. For
Raspberry Pi OS 64-bit, follow the [Raspberry Pi instructions](raspberry_pi.md).

## Download and prerequisites

Use these downloads unless your Onlit administrator gives you a different version:

| Operating system | Recommended download |
| --- | --- |
| Windows | [PreseriaScreenshotter 1.0.1 portable ZIP](https://download.preseria.com/PreseriaScreenshotter-1.0.1-portable.zip) |
| macOS on Apple Silicon | [PreseriaScreenshotter 1.0.1 DMG](https://download.preseria.com/PreseriaScreenshotter-1.0.1.dmg) |
| Linux on Intel or AMD (x86_64) | [PreseriaScreenshotter 1.0.1 Linux x86_64 tarball](https://download.preseria.com/PreseriaScreenshotter-1.0.1-linux-x86_64.tar.gz) |
| Raspberry Pi OS 64-bit | [PreseriaScreenshotter 1.0.1 Linux arm64 tarball](https://download.preseria.com/PreseriaScreenshotter-1.0.1-linux-aarch64.tar.gz) — see [Screenshotter on Raspberry Pi](raspberry_pi.md) |

The macOS application is for Apple Silicon Macs (M1 or newer). Contact your Onlit
administrator if you need to run Screenshotter on an Intel Mac. Two alternative macOS
downloads exist: a [PKG installer](https://download.preseria.com/PreseriaScreenshotter-1.0.1.pkg)
for IT administrators deploying through device management, and an
[application ZIP](https://download.preseria.com/PreseriaScreenshotter-1.0.1-macos-arm64.zip)
when the application must be copied without a DMG. Most people should choose the DMG.

Ask your Onlit administrator for:

- the screenshot upload URL,
- the Screenshotter API key,
- the Onlit event ID,
- the sign name.

The sign name identifies the computer on the live sign dashboard. Use a unique,
descriptive name for each sign, such as `Main Hall` or `Lobby A`. It is only a label for
this agent within the event: it is not matched against a room, and it does not choose
what the computer shows — the agent uploads whatever desktop it is running on. A sign named
`Main Hall` whose computer has the Lobby sign open will faithfully show the Lobby on the
dashboard under the wrong name, so name the agent after the computer's actual screen and
check the first upload against the room it should be.

## Install

### Windows

1. Download the [Windows portable ZIP](https://download.preseria.com/PreseriaScreenshotter-1.0.1-portable.zip).
2. Extract it to a permanent location, for example `C:\Preseria\PreseriaScreenshotter`.
3. Keep the entire extracted folder together: the executable depends on the `app` and
   `runtime` folders beside it.
4. Open PowerShell and change to the folder containing `PreseriaScreenshotter.exe`:

```powershell
Set-Location "C:\Preseria\PreseriaScreenshotter"
```

### macOS

1. Download the [macOS DMG](https://download.preseria.com/PreseriaScreenshotter-1.0.1.dmg)
   and open it.
2. Drag `PreseriaScreenshotter.app` to the Applications folder.
3. Open Terminal.

The command-line launcher is:

```text
/Applications/PreseriaScreenshotter.app/Contents/MacOS/PreseriaScreenshotter
```

Although Screenshotter appears as an application in Finder, run it from Terminal so you
can supply the sign settings and see its status messages.

### Linux on Intel or AMD

Run `uname -m` on the sign computer. If it prints `x86_64`, download the
[Linux x86_64 tarball](https://download.preseria.com/PreseriaScreenshotter-1.0.1-linux-x86_64.tar.gz).
From the directory containing the download, extract the whole folder so the
launcher can find its bundled runtime.

```bash
sudo mkdir -p /opt/preseria
sudo tar -xzf PreseriaScreenshotter-1.0.1-linux-x86_64.tar.gz -C /opt/preseria
```

Open a terminal in the desktop session that drives the sign. X11 uses the built-in
screen capture. On a Wayland desktop that supports `grim`, such as Sway, install
`grim` using your package manager (`sudo apt install grim` on Debian). For other
Wayland desktops, see [Linux capture options](permissions_troubleshooting.md).

## Run Screenshotter

The command has four required values, then optional capture values and flags:

```text
<launcher> <screenshotUploadUrl> <apiKeySelector> <eventId> <signName> [x y width height interval] [flags]
```

Use an environment variable to keep the API key out of Screenshotter's command-line arguments.

=== "Windows (PowerShell)"

    ```powershell
    $env:SCREENSHOTTER_API_KEY = "YOUR_API_KEY"

    .\PreseriaScreenshotter.exe `
      "https://example.preseria.com/api/signage/screenshot" `
      - `
      "123" `
      "Main Hall" `
      --api-key-env=SCREENSHOTTER_API_KEY `
      --heartbeat=60
    ```

=== "macOS (Terminal)"

    ```bash
    export SCREENSHOTTER_API_KEY="YOUR_API_KEY"

    /Applications/PreseriaScreenshotter.app/Contents/MacOS/PreseriaScreenshotter \
      "https://example.preseria.com/api/signage/screenshot" \
      - \
      "123" \
      "Main Hall" \
      --api-key-env=SCREENSHOTTER_API_KEY \
      --heartbeat=60
    ```

=== "Linux (desktop terminal)"

    ```bash
    export SCREENSHOTTER_API_KEY="YOUR_API_KEY"

    /opt/preseria/PreseriaScreenshotter/bin/PreseriaScreenshotter \
      "https://example.preseria.com/api/signage/screenshot" \
      - \
      "123" \
      "Main Hall" \
      --api-key-env=SCREENSHOTTER_API_KEY \
      --heartbeat=60
    ```

These commands capture the full screen every 10 seconds and use a 60-second heartbeat
while the screen is unchanged. Heartbeats are checked on capture ticks, so capture and
request time can extend the gap. Replace the upload URL, event ID, sign name and API
key with the values your administrator provided. The startup banner reports the capture
backend and the budgets in use; the sign then appears on the
[live sign dashboard](../signs/live_dashboard.md) after its first upload.

### The API key

`-` as the second value together with `--api-key-env=SCREENSHOTTER_API_KEY` reads the key
from that environment variable; the shorter `env:SCREENSHOTTER_API_KEY` as the second value
does the same. Never put the key itself after `--api-key-env` — the flag expects a variable
name — and avoid passing the key as a plain argument. A variable set with `$env:` in
PowerShell or `export` in Terminal lasts for that shell session only; set it again in a new
shell, or let a [service](production_runbook.md) hold it.

### Choose the dashboard thumbnail height

Screenshotter 1.0.1 lets you choose the maximum height of this sign's dashboard
preview. The default is **200 px**. For a larger preview, use
`--thumbnail-height=400` in the run command and restart Screenshotter. Check for
`Thumbnail height: 400px` in the startup message. You can use any whole number
from **200 to 400**.

Width follows the image's aspect ratio. For example, a 960 × 600 screenshot can
produce a 640 × 400 preview. Screenshotter never enlarges a small original and
may shrink the preview to fit its byte limit. Open the preview to see the full-size
snapshot. With Screenshotter 1.0.0, omit the flag to use its 200 px default.
See [thumbnail limits and bandwidth](values_and_flags.md#thumbnail-detail).

## Recommended production command

Full-screen capture every 10 seconds, a 60-second heartbeat, the Full HD pixel budget, the
512 KiB byte budget and four upload retries suit most event signs:

```powershell
$env:SCREENSHOTTER_API_KEY = "YOUR_API_KEY"

.\PreseriaScreenshotter.exe `
  "https://example.preseria.com/api/signage/screenshot" `
  - `
  "123" `
  "Main Hall" `
  0 0 0 0 10 `
  --api-key-env=SCREENSHOTTER_API_KEY `
  --heartbeat=60 `
  --max-pixels=2073600 `
  --max-upload-bytes=524288 `
  --thumbnail-height=200 `
  --connect-timeout-ms=5000 `
  --read-timeout-ms=10000 `
  --upload-retries=4 `
  --retry-base-delay-ms=1000
```

The macOS and Linux commands use their respective launcher paths above and `\` line
continuations. What each value does, and when to change it, is on
[Screenshotter values and flags](values_and_flags.md).

## Stop Screenshotter

Press <kbd>Ctrl</kbd>+<kbd>C</kbd> in the PowerShell or Terminal window where it is
running. For a sign that must survive reboots and logins without anyone typing commands,
set it up as a service: [Run Screenshotter as a service](production_runbook.md).

## Related

- [Screenshotter values and flags](values_and_flags.md)
- [Screenshotter permissions and troubleshooting](permissions_troubleshooting.md)
- [Run Screenshotter as a service](production_runbook.md)
- [Screenshotter on Raspberry Pi](raspberry_pi.md)
