Installation Guide
This guide covers installing PrintMaster on all supported platforms.
Table of Contents
Quick Install
Server (Docker)
docker run -d \
--name printmaster-server \
-p 9443:9443 \
-v printmaster-data:/var/lib/printmaster/server \
-e ADMIN_PASSWORD=your-secure-password \
ghcr.io/printmaster-org/printmaster-server:latest
Access at https://localhost:9443 with username admin and your chosen password. The default certificate is self-signed; use a trusted custom certificate or TLS-terminating proxy for production.
Agent (Windows)
Download and run the MSI installer from GitHub Releases.
Agent (Linux)
# Debian/Ubuntu
curl -fsSL https://packages.printmaster.work/install.sh | sudo bash
Server Installation
The server provides centralized management for multiple agents. If you only need to monitor printers at a single site, you can run the agent standalone without a server.
Docker (Recommended)
Docker is the recommended deployment method for the server.
Prerequisites
- Docker Engine 20.10 or later
- Docker Compose (optional but recommended)
Using Docker Run
# Basic setup
docker run -d \
--name printmaster-server \
-p 9443:9443 \
-v printmaster-data:/var/lib/printmaster/server \
-v printmaster-logs:/var/log/printmaster/server \
-e ADMIN_PASSWORD=your-secure-password \
ghcr.io/printmaster-org/printmaster-server:latest
Using Docker Compose
Create a docker-compose.yml file:
version: '3.8'
services:
printmaster-server:
image: ghcr.io/printmaster-org/printmaster-server:latest
container_name: printmaster-server
ports:
- "9443:9443"
volumes:
- printmaster-data:/var/lib/printmaster/server
- printmaster-logs:/var/log/printmaster/server
environment:
- ADMIN_PASSWORD=your-secure-password
- LOG_LEVEL=info
- BEHIND_PROXY=false
restart: unless-stopped
volumes:
printmaster-data:
printmaster-logs:
Start with:
docker compose up -d
Environment Variables
| Variable | Default | Description |
|---|---|---|
ADMIN_PASSWORD | printmaster | Admin password (set before first run!) |
LOG_LEVEL | info | Logging level: debug, info, warn, error |
BEHIND_PROXY | false | Set to true if behind a reverse proxy |
BIND_ADDRESS | 0.0.0.0 | Address to bind to |
SERVER_HTTP_PORT | 9090 | HTTP backend port (only in HTTP proxy mode) |
SERVER_HTTPS_PORT | 9443 | Default standalone HTTPS port |
PROXY_USE_HTTPS | false | With BEHIND_PROXY=true: HTTP backend if false, HTTPS backend if true |
TLS_MODE | self-signed | self-signed, letsencrypt, or custom |
Important: Set a strong
ADMIN_PASSWORDbefore exposing the server. At each startup, bootstrap createsADMIN_USER(defaultadmin) only if that username is absent. It never resets an existing user’s password or role; use user management for password changes.
Behind a Reverse Proxy
For proxy-specific setup, TLS modes, WebSocket requirements, and examples, see
Reverse proxy setup. In the common TLS-at-proxy
mode, the Server uses private HTTP port 9090; do not expose that backend
directly to the internet.
Unraid
Using Community Applications (Easiest):
- Install the Community Applications plugin
- Search for “PrintMaster Server”
- Click Install and configure
Manual Docker Setup:
- Go to Docker tab → Add Container
- Repository:
ghcr.io/printmaster-org/printmaster-server:latest - Direct HTTPS port: 9443 → 9443 (HTTP 9090 requires proxy mode)
- Path:
/mnt/user/appdata/printmaster-server/data→/var/lib/printmaster/server - Path:
/mnt/user/appdata/printmaster-server/logs→/var/log/printmaster/server
See Unraid Deployment Guide for detailed instructions.
Manual Server Installation
Download the server binary from GitHub Releases and run:
# Linux/macOS
./printmaster-server
# Windows
.\printmaster-server.exe
Agent Installation
Windows
Server-Generated Bootstrap
The Server’s Add Agent flow provides a PowerShell one-liner for enrollment and installation. Run it only from a trusted Server in an elevated PowerShell session. Treat the generated installation link as a credential; do not share it in screenshots or logs. Use the existing Agent’s supported update or repair path for an installation that is already present.
The updated Windows bootstrap installs new Agents only. Before creating directories, writing configuration, downloading or installing anything, it refuses an existing running/stopped Agent service, running Agent process, Agent uninstall/MSI registration, retained Agent data/binary directory, or a known protected/legacy Agent executable. Inspection failures also stop it. It exits nonzero without stopping services, uninstalling packages, deleting old files or overwriting existing configuration. A Server-only installation does not itself block enrollment of a new Agent on that machine.
For an existing Agent, use its supported update path or the original installation owner’s repair/uninstall procedure. Review residual files or a partial bootstrap manually; rerunning the bootstrap is not automatic repair and it will not clean them up for you. Do not delete retained identity/data just to bypass the guard.
In the updated bootstrap, supported interactive consoles use one transient progress display rather than accumulating progress bars. Completion removes the progress display and leaves a short result with the configured executable, configuration, Agent logs folder and Web UI locations. Warnings and errors remain visible. Redirected output and consoles without native progress support retain scrolling status lines. The installer does not clear preexisting console output. The console display does not establish successful migration or artifact trust.
When installation instructions are emailed, the primary link opens a browser
page with the command, a copy control, and the full script in an expandable
section. The page uses the same expiring enrollment link but does not consume a
one-time download. Open instructions in the Add Agent dialog opens the same
page. Its separate Download script link and the one-liner still return
the raw script and consume a one-time link when configured. Email clients may
not support copy buttons or <details>; the message includes selectable command
text and a plain-text fallback. Treat every enrollment link as a credential.
The Add Agent dialog defaults to a generated bootstrap script; email is an alternative delivery method. The result screen prioritizes copying the install command and also lets the administrator copy or open the browser instructions link. The connection review summarizes the tenant, platform, delivery method, expiry, and fresh-install/replacement policy before generating the credential.
Script and email onboarding include a separate connection-security review. Agent-to-Server TLS certificate validation is on by default. Disable it only when connecting to a self-signed Server and after understanding that an attacker on the network could impersonate that Server. This setting controls future Agent-to-Server requests; it does not make the initial bootstrap download secure. Use a trusted HTTPS Server URL for that download.
One-time onboarding tokens create a pending-install row in the Agents list. After the Agent registers, that row disappears and the real Agent record appears. Replace Agent enrolls a new Agent identity; it is for a new installation, not an in-place upgrade or repair of the existing Agent. Use the existing Agent’s supported update or repair path when keeping the same installation. For a replacement installation, the old Agent remains active until the replacement successfully registers. The Server then deactivates the old credential, closes its live connection, transfers device and site ownership to the new Agent, and retains the old record and history. The Agents list can filter Pending setup and Deactivated separately from Active, Degraded, and Offline. Deactivated Agents can be reactivated from their context menu; reactivation makes their existing credential valid again and does not transfer ownership back automatically.
MSI Installer (Recommended)
- Download the latest MSI from GitHub Releases
- Run the installer
- The agent will be installed as a Windows service and start automatically
- Access the web UI at
http://localhost:8080
Manual Installation
# Download the binary
Invoke-WebRequest -Uri "https://github.com/printmaster-org/printmaster/releases/latest/download/printmaster-agent-windows-amd64.exe" -OutFile "printmaster-agent.exe"
# Install as service (requires Administrator)
.\printmaster-agent.exe --service install
# Start the service
.\printmaster-agent.exe --service start
The raw-binary service installer copies the Agent to
%ProgramFiles%\PrintMaster\Agent\printmaster-agent.exe and registers that
protected copy. Service data remains under
C:\ProgramData\PrintMaster\agent\. Existing raw-binary services installed
from a different path must be migrated by running --service update from an
elevated PowerShell prompt before automatic updates can be applied. Use the MSI
installer to update an MSI-owned installation; do not manually replace its files.
Service Management
# Check status
Get-Service PrintMasterAgent
# Stop service
.\printmaster-agent.exe --service stop
# Uninstall service
.\printmaster-agent.exe --service uninstall
Linux (Debian/Ubuntu)
Server-Generated Bootstrap
The Linux script generated from Add Agent installs the package from the
configured repository or falls back to a direct binary. For systemd installs it
creates or reuses the locked-down printmaster system account, stores the
enrollment token in /var/lib/printmaster/agent/server_join_token with mode
600, and runs the service as that account. The script option to skip TLS
certificate validation is off by default; use it only for a self-signed Server
and only with explicit understanding of the interception risk.
APT Repository (Recommended)
# The installer validates the repository signing-key fingerprint,
# configures APT signature verification, and installs the agent.
curl -fsSL https://packages.printmaster.work/install.sh | sudo bash
# The service starts automatically
systemctl status printmaster-agent
Manual APT Repository Setup
# Remove old repo
sudo rm -f /etc/apt/sources.list.d/printmaster.list /etc/apt/sources.list.d/printmaster.sources
# Setup new repo
sudo install -d -m 0755 /etc/apt/keyrings
curl -fsSL https://packages.printmaster.work/gpg.key | \
sudo gpg --dearmor --yes -o /etc/apt/keyrings/printmaster.gpg
sudo chmod 0644 /etc/apt/keyrings/printmaster.gpg
# Configure APT to trust this key only for the PrintMaster repository
echo "deb [signed-by=/etc/apt/keyrings/printmaster.gpg] https://packages.printmaster.work stable main" | \
sudo tee /etc/apt/sources.list.d/printmaster.list
# Install
sudo apt-get update
sudo apt-get install -y printmaster-agent
Manual Installation
# Download
wget https://github.com/printmaster-org/printmaster/releases/latest/download/printmaster-agent-linux-amd64
# Make executable
chmod +x printmaster-agent-linux-amd64
sudo mv printmaster-agent-linux-amd64 /usr/local/bin/printmaster-agent
# Install as service
sudo printmaster-agent --service install
sudo systemctl start PrintMasterAgent
Linux (Fedora/RHEL)
DNF Repository (Recommended)
# Import GPG key (recommended)
sudo rpm --import https://packages.printmaster.work/gpg.key
# Add repository
sudo dnf config-manager addrepo --from-repofile=https://packages.printmaster.work/printmaster.repo
# Install
sudo dnf install -y printmaster-agent
# The service starts automatically
systemctl status printmaster-agent
Important Linux Paths
| Path | Description |
|---|---|
/usr/bin/printmaster-agent | Agent binary |
/etc/printmaster/agent.toml | Configuration file |
/var/lib/printmaster | Data directory (SQLite DB) |
/var/log/printmaster | Log files |
macOS
# Download
curl -LO https://github.com/printmaster-org/printmaster/releases/latest/download/printmaster-agent-darwin-amd64
# Make executable
chmod +x printmaster-agent-darwin-amd64
sudo mv printmaster-agent-darwin-amd64 /usr/local/bin/printmaster-agent
# Install as service
sudo printmaster-agent --service install
# Start service
sudo launchctl load /Library/LaunchDaemons/com.printmaster.agent.plist
Docker Agent
The agent can also run in Docker for specialized deployments:
docker run -d \
--name printmaster-agent \
--network host \
-v printmaster-agent-data:/var/lib/printmaster/agent \
ghcr.io/printmaster-org/printmaster-agent:latest
Note:
--network hostis required for SNMP discovery to work properly.
First-Time Setup
Accessing the Web UI
| Component | Default URL | Default Port |
|---|---|---|
| Agent | http://localhost:8080 | 8080 |
| Server | https://localhost:9443 | 9443 |
Server First Login
- Open
https://your-server:9443(self-signed certificate by default), or your proxy’s public HTTPS URL - Log in with:
- Username:
admin - Password: The password you set via
ADMIN_PASSWORD(default:printmaster)
- Username:
- Change the default password immediately if you didn’t set one during installation
Connecting an Agent to the Server
- Open the agent’s web UI locally at
http://localhost:8080. Defaultlocalauth grants admin bypass to loopback requests, not arbitrary remote clients; use server-authenticated access for remote management - Go to Settings → Server Connection
- Enter your server URL:
https://your-server:9443, or your proxy’s public HTTPS URL - Click Save
Or edit the agent’s config file:
[server]
enabled = true
url = "https://your-server:9443"
Complete the agent onboarding/approval flow; setting a URL alone does not authorize it. Server HTTPS certificates must be trusted by the agent. The HTTP uploader supports [server].ca_path, but the WebSocket dialer at this snapshot does not propagate that custom CA pool. Prefer a system-trusted certificate for both transports; disabling verification is a development-only workaround, not a production recommendation.
Next Steps
- Getting Started Guide - Configure discovery and scan your first printers
- Features Guide - Learn about all available features
- Configuration Guide - Fine-tune your setup
Upgrading
Agent and Server releases are versioned independently. The latest Stable release is Agent 0.32.3 and Server 0.32.0. The 0.32 Beta tags are Agent 0.32.0-beta.4 and Server 0.32.0-beta.3. Use Beta only in a test fleet. Check the Agent releases and Server releases for the current assets and release notes.
Upgrades from Agent 0.30.x and 0.31.x to 0.32.x are still being qualified. Until release notes confirm the path for your installation, use the same installation method and do not switch an MSI-owned Windows install to the portable executable.
Legacy updater retirement
0.32.x is the bridge release. Legacy updater support will be removed in 0.33.0 Stable. Update Agents on 0.31.x or earlier to 0.32.x, and verify that they reconnect and report the new version, before upgrading the Server to 0.33.0 Stable. Do not rely on a 0.33 Server to provide the legacy update path for an Agent left behind.
An upcoming Server update adds a Legacy updater badge beside older Agent versions in the Agents table and card views. Its tooltip names the 0.33.0 Stable deadline. The badge is a version-based reminder, not a check of the installation method or a guarantee that an automatic update will succeed. It disappears when the Agent reports 0.32 or later.
| Existing Agent installation | Upgrade path |
|---|---|
| Debian/Ubuntu APT package | Use the configured Stable repository with sudo apt-get update && sudo apt-get upgrade printmaster-agent. Beta packages are not published to this repository. |
| Fedora/RHEL DNF package | Use the configured Stable repository with sudo dnf upgrade printmaster-agent. Beta packages are not published to this repository. |
| Windows MSI | Run the matching Stable MSI to upgrade the existing MSI installation. Do not use the .exe over an MSI-owned install. |
| Windows portable executable | Keep using the portable binary update path for that install. A raw-binary service outside the protected Program Files path needs the documented --service update migration before automatic replacement. |
| Docker | Update the Agent or Server image independently; use the same component and channel. |
For the 0.32 Beta, an Agent on Beta.3 was verified updating to Agent Beta.4 while connected to a Server on Beta.3. That verifies the 0.32 Beta-to-Beta path only; it does not qualify 0.30.x/0.31.x automatic upgrades or Windows MSI auto-updates.
Docker
docker pull ghcr.io/printmaster-org/printmaster-server:latest
docker compose down
docker compose up -d
Linux (APT)
sudo apt-get update
sudo apt-get upgrade printmaster-agent
Linux (DNF)
sudo dnf upgrade printmaster-agent
Windows
Run the new MSI installer - it will upgrade the existing installation.
For a release update, use the same installation method you selected above and review the release notes for platform-specific requirements. Automatic update options depend on the Agent version and installation method.