Pleochroma GitHub

User manual › Render and look

Chapter 30

The Coordinator Window

The coordinator's own window: first-run wizard, pairing a phone, remote administration.

All chapters

30.1 What You Will Do

The coordinator, the program that renders for your phones and other computers and keeps your design library available to them, has a window of its own. This chapter shows how to start it, what its pages hold, how to pair a phone (by QR code or by link) and another computer, how it runs in the tray, how to monitor or manage a coordinator on another computer, and how the old command line still works.

The coordinator is the program pleochroma-worker. Chapter 10 explains what a coordinator is, how this app connects to one and how to run one as a Linux service. This chapter is about the window. Its command reference, with every flag, is the worker's own README (apps/pleochroma-worker/README.md), and the trust model behind pairing is in apps/pleochroma-worker/docs/security.md.

30.2 Starting the Coordinator

Start pleochroma-worker with no arguments, or double-click it, and the window opens. Its title is Pleochroma Coordinator. Two options change how it starts:

text
pleochroma-worker
pleochroma-worker --minimized      # start hidden in the tray or the menu bar
pleochroma-worker --config <file>  # use another settings file

The window needs a build with the window (the default build has it). On a computer with no display the program says so and tells you to use --headless (see "Running Without a Window" below).

Only one coordinator window runs for each user and data folder. Starting a second one brings the first to the front and exits.

The window is at least 640 by 480 pixels. Below a certain width the sidebar folds to its icons.

30.3 The First-Run Wizard

The first time, a wizard asks what this computer is for. A line of numbered stops along the top shows where you are, and Back and Next move between them.

  1. Start. "What would you like to do?" Choose Run a coordinator on this computer ("Phones and render computers connect here.") or Monitor or manage a coordinator on another computer ("No server runs here. You connect with a code."). The second choice skips to the last step. You can add or switch coordinators later from the name at the top of the sidebar.
  2. Name. "Name this coordinator." Phones and other computers show this name. It starts as the name of this computer and you can change it later in Settings.
  3. Library. "Where are your designs?" Your phones browse designs from one library file on this computer. Choose Choose a library file (the facet_diagrams.sqlite file of Pleochroma), Rendering only (no library) (phones can render here but cannot browse designs), or Use an existing coordinator folder (it takes over a setup that ran headless and keeps every paired device).
  4. Network. "Who can connect?" Choose Devices on my network or Only this computer (phones and other computers cannot connect). Your system may ask to allow Pleochroma on the network: choose Allow for private networks.
  5. Rendering. "Render on this computer." Choose Graphics card and processor, Graphics card only (it keeps the processor free for other work) or Processor only (slower, but it works on every computer).
  6. Done. "Ready to start", with a summary of Name, Library, Network and Rendering and two last choices: Start with Windows (in the tray) (on Linux and macOS it reads Start at login (in the tray); it runs only while you are logged in) and Keep this computer awake while devices are connected or jobs run (it can still sleep when nothing is going on). The button reads Start the coordinator, or Add a coordinator if this computer only monitors.

When the wizard finishes it creates the certificate authority and the server certificate, starts the coordinator and opens the pairing dialog, so the first device can connect at once.

30.4 The Pages

The sidebar lists the pages. Its top shows the coordinator you are looking at (see "Managing Another Coordinator" below). A badge on Devices and Jobs shows a count, and the bar at the top of the window shows the status ("Running"). A message banner under the top bar says what just happened and has a Dismiss message button.

30.5 Pairing a Phone

Choose Connect a phone (on Overview, in the sidebar, or in the tray menu). The dialog makes a one-time code that works for three minutes; a countdown shows the time left. It shows:

The phone must be on the same Wi-Fi as this computer. "Closing this window cancels the code." If the code runs out the dialog says Code expired and Show a new code makes another; Code paused and Can't make a pairing code say what is wrong.

When the phone has paired, the dialog says "Paired from" and the phone's address, and asks you to Name this device ("Shown in Devices. You can rename it later.") and Confirm. Then Done closes it and Connect another shows a new code. If your phone says the code was already used, someone else paired first: choose Not my device — remove access.

On the phone#

On the phone open More, then Remote. The section PAIR WITH A COMPUTER reads "On the computer, choose Connect a phone, then scan its code or paste its pairing link here. A link from another app always asks you first."

Neither connects at once. A sheet comes up from the bottom, Pair with name?, with the coordinator's Address. Choose Pair to connect or Cancel to forget the link. When this phone is already paired with another coordinator, the sheet adds "This replaces name" and "This phone forgets that pairing.", and the button reads Replace and pair. The sheet says Cannot pair with the reason when the link has expired or cannot be used.

A phone paired this way finds the coordinator again if its address changes, because the coordinator announces itself on the network (Settings → Network → Discovery). The older way still works: Enter details by hand under the pairing buttons, with a one-time token.

30.6 Pairing Another Computer

Choose Connect a computer. The dialog is the same, but it shows the link instead of a code to scan:

  1. Under Pairing link copy the link (the secret part is hidden on screen, and the copy stays out of the clipboard history; the clipboard is cleared when the code expires).
  2. ON THE OTHER COMPUTER: open Pleochroma on the other computer, choose Remote Coordinator → Paste pairing link and paste. In the Pleochroma app that is File > Remote Rendering... and the section Connect with a Pairing Link (Chapter 10).

A computer that is to lend its render power instead uses Add a render computer on the Render computers page: "Another computer lends its graphics card and processor to this coordinator." The steps shown are: open Pleochroma and choose Help another coordinator, paste the pairing link, choose Connect. Afterwards the dialog says "A render computer connected from" the address, and "It shows under Allowed render computers and joins when it starts. Rename or remove it in Devices." Add another shows a new code.

30.7 Lending This Computer to Another Coordinator

The page Help another coordinator ("Lend this computer to another coordinator") turns this computer into a render computer for a coordinator elsewhere: "It sends render work here. Your own library and devices are not shared." Paste the link from that coordinator into Pairing link; when it is valid the page shows the Coordinator's name ("link valid") and a Start button. Stop ends the help. The page also has Slots (tiles rendered at the same time; one slot per 8 threads is a good start), CPU threads (Automatic uses every thread), Use (what renders) and Certificate folder with Choose folder... and Use the default. A SAVED CONNECTION is kept, so the next start reconnects.

30.8 A Coordinator With No Library

A coordinator started with Rendering only (no library) has no design library. The Library page says "No design library", with the badge Rendering only: "Devices can send renders here, but they cannot search or open designs on this computer. Choose a library to change that." Choose a library... adds one later. Phones can still render, and the Pleochroma app can send renders to it, but cannot browse its designs.

30.9 Tools

30.10 Settings

Settings are saved in coordinator.toml (Windows: %APPDATA%\Pleochroma; Linux: ~/.config/pleochroma/; macOS: ~/Library/Application Support/Pleochroma/). A change that needs a restart shows "Restart the coordinator to apply the changes. Devices are disconnected for a moment." The Restart card of the settings page, or Restart now, does it.

Backup and restore writes one file with the keys, the paired devices and the settings, sealed with a password you choose (Back up..., Restore...). Keep it safe: it can pair devices.

Accept any client certificate skips the list of paired devices. Anything with a certificate from this coordinator's authority can connect, and Remove access stops working. Turn it on only to recover from a problem, and turn it off again afterwards; the switch asks "Accept any client certificate?" first.

30.11 The Tray and Starting at Login

Closing the window does not stop the coordinator if Closing the window keeps the coordinator running in the tray is on: it keeps running in the Windows or Linux tray, or the macOS menu bar. Where a Linux desktop has no tray, closing minimizes the window instead. The tray menu has Open, the status, Connect a phone and Quit. Quit in the window's More menu stops the coordinator; Open data folder is in the same menu.

Start with Windows (in the tray) (Start at login (in the tray) on Linux and macOS) in the wizard and in Settings registers the coordinator to start when you log in. A start at login opens in the tray only: the program starts with --minimized, so no window appears. Open it from the tray when you need it. The coordinator runs only while you are logged in. A coordinator that must run all the time without anyone logged in is a service (Chapter 10, "Running the Coordinator or a Render Computer as a Linux Service").

30.12 Managing Another Coordinator

The same window monitors or manages other coordinators, headless or with a window. The coordinator switcher at the top of the sidebar lists COORDINATORS: This computer, every coordinator you added, and Add a coordinator.... Choose one and every page shows that coordinator; a banner and a different icon say that you are looking at a remote one. The top bar's Disconnect goes back to this computer and keeps the pairing saved. The menu of a coordinator in the list has Disconnect, which forgets it ("This computer forgets the pairing with name."; the button reads Disconnect and forget). Help another coordinator and Tools exist only for this computer.

Allowing remote administration#

It is off by default. To allow it, open Settings → Security → Remote administration and switch on Allow other computers to monitor or manage this coordinator. Restart the coordinator when the page asks ("Restart the coordinator to start accepting remote administration."). Codes for remote administration are made here only, never remotely. A headless coordinator takes the flag --allow-remote-admin on serve.

Then Create an access code: pick the Access level, enter the Name of the computer that will use it (for example "Laptop 2") and choose Create code. The code works once and expires after 3 minutes. It shows as a link, a QR code and a code. The two levels are:

People and computers with access lists who has a level, and Remove takes it away at once. Activity says "Remote actions are recorded in the Log (who, what, when)." with an Open Log button.

What a remote administrator can never do#

Some actions can only be done in the window of the coordinator itself, whatever the level: network, port and address changes, the remote-administration switch, resetting the certificate authority, rotating secrets, exporting a backup, stopping the coordinator and making new Monitor or Admin codes. A remote administrator asking for one is refused in plain words, and nothing changes. Settings of the other kinds, and restarting, are open to Full administration.

Adding a coordinator#

Choose Add a coordinator... in the switcher. There are two ways:

"Where do I get a code?" On a coordinator with a window: Settings → Security → Remote administration → Create code. On a server without a window, run pleochroma-worker --headless cert issue-token --role admin --name <name> (or --role monitor); it prints a code, a link and a QR code in the terminal. Add --address to name the address that goes into the link and --no-qr to leave the QR code out. After a first connection the window reconnects by itself, and finds the coordinator again if its address changes.

30.13 Running Without a Window

--headless runs the program as before, without ever opening a window: pleochroma-worker --headless serve ..., --headless render ..., --headless join ..., --headless cert .... Use it in every service and script.

30.14 Notes for the Android App

30.15 Troubleshooting

Symptom Cause and fix
The window does not open and the program talks about --headless The computer has no display. Run it with --headless.
A second start shows the window that is already running One coordinator window runs for each user and data folder.
A phone cannot scan or connect It must be on the same Wi-Fi. Check Settings → Network → "Can phones reach this computer?", and choose Allow when the system asks about the private network.
"Code expired" A code lives three minutes. Choose Show a new code.
A removed device still connects Accept any client certificate is on. Turn it off.
A paired phone cannot find the coordinator after an address change Check that Announce this coordinator on the network (Settings → Network → Discovery) is on.
After a restart the coordinator is not running A start at login opens only in the tray; look for its icon. A coordinator that must always run is a service (Chapter 10).
An older app or worker is refused Every computer must run the same release (protocol 47): update the apps, the coordinator and all workers together.

30.16 Next Steps

Chapter 10 explains how this app connects to a coordinator, transfers and library mirroring. Chapter 23 collects renders as jobs, which run on a coordinator too.