Server configuration reference

Configuration locations, numeric booleans, and supported settings.

On this page

Configuration locations

Platform/contextLocation
Linux and macOS server/agent/etc/tmd/server/tmd.conf
Windows LocalSystem serviceHKEY_USERS\S-1-5-18\Software\TextureMind\tmd\server
Linux definitions/var/lib/tmd/sessions.sqlite3
macOS definitions/Library/Application Support/TMD/sessions.sqlite3
Windows definitions%ProgramData%\TMD\sessions.sqlite3

Configuration and session definitions are separate. Use tmdtool for definitions; do not edit SQLite rows to change ownership or runtime state. On Windows, changing the interactive administrator's HKCU settings does not change the LocalSystem service's settings.

INI format and application

Merge examples into existing sections instead of duplicating them or replacing unrelated settings. Boolean values are numeric: 1 enables, 0 disables. Text true/false is not accepted as the equivalent by the configuration reader.

The settings are loaded at process startup. Changes may affect both server and agent; apply them through the installed service/agent lifecycle. A server restart ends virtual desktops and disconnects viewers. Saved definitions remain; their explicit autostart policy determines which virtual desktops restart.

Session management

Keys in [session-management]
KeyDefault or valuePurpose
create-sessionServer default: Linux 0; Windows/macOS 1. Installers configure this explicitly.Create/reuse automatic console at startup
ownerExplicit OS account recommendedOwner of automatic console; does not modify stored definitions
state-dirEmpty uses platform system storageOverride registry directory; tool must use the same directory
virtual-session-backendx11 or wayland; default x11Backend for subsequent Linux virtual desktop starts
virtual-session-init/etc/tmd/server/virtual-session.shX11 foreground desktop command
virtual-session-xserver/usr/bin/XvfbX11 display server
virtual-session-compositor/usr/bin/gnome-shellGNOME Wayland compositor
virtual-session-pipewire/usr/bin/pipewirePrivate Wayland video daemon
virtual-session-pam-servicetmd-virtualPAM policy for virtual desktops
virtual-session-width1920; allowed 320–7680Initial display width in pixels
virtual-session-height1080; allowed 200–4320Initial display height in pixels

Transport and security

Section / keyDefaultPurpose
[transport] wss-enable1HTTPS/WSS listener
wss-port8191HTTPS/WSS port
wss-path/transportWebSocket upgrade path
tcp-port4815Native TLS/TCP port
tcp-max-clients16; allowed 1–256Listener client/backlog setting; not a desktop capacity guarantee
tcp-no-delay1TCP_NODELAY
tcp-keep-alive0OS TCP keepalive
tcp-send-buffer-size, tcp-receive-buffer-size0Socket buffers in bytes; zero uses OS defaults
[security] authentication-methodsystemOS authentication; retain this for normal deployments
self-signed-certificate, private-keyEmpty selects generated certificate/keyConfigured TLS file paths

Capture and logging

In [display], capture-modules lists eligible providers in selection order. Defaults are amf, d3d11, gdi on Windows; amf, nvfbc, xlib, pipewire on Linux; sck, cg on macOS. Eligibility and runtime failures still determine the actual provider.

[log]
level = info
rotation = 1
max-server-files = 24
max-agent-files = 64

Log levels are error, warning, info, debug, and trace. Use debug/trace for a bounded investigation and restore normal logging afterward. Counts control retained files, not total disk space in bytes.

Environment and command-line equivalents

The installed server's --help is the reference for available arguments. Examples include --session-owner alice, --create-session/--no-create-session, --tcp-port, --wss-port, --display-capture-modules, and --log-level.

Environment equivalents include TMD_SERVER_SESSION_OWNER, TMD_SERVER_CREATE_SESSION, TMD_SERVER_SESSION_STATE_DIR, TMD_SERVER_TRANSPORT_WSS_PORT, and TMD_SERVER_VIRTUAL_SESSION_BACKEND. Set service environment through its service manager; a shell export does not update an already running system service.

Prefer one maintained configuration source for a deployment and remove conflicting service arguments/environment overrides when diagnosing unexpected values.