Configuration locations
| Platform/context | Location |
|---|---|
| Linux and macOS server/agent | /etc/tmd/server/tmd.conf |
| Windows LocalSystem service | HKEY_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
| Key | Default or value | Purpose |
|---|---|---|
create-session | Server default: Linux 0; Windows/macOS 1. Installers configure this explicitly. | Create/reuse automatic console at startup |
owner | Explicit OS account recommended | Owner of automatic console; does not modify stored definitions |
state-dir | Empty uses platform system storage | Override registry directory; tool must use the same directory |
virtual-session-backend | x11 or wayland; default x11 | Backend for subsequent Linux virtual desktop starts |
virtual-session-init | /etc/tmd/server/virtual-session.sh | X11 foreground desktop command |
virtual-session-xserver | /usr/bin/Xvfb | X11 display server |
virtual-session-compositor | /usr/bin/gnome-shell | GNOME Wayland compositor |
virtual-session-pipewire | /usr/bin/pipewire | Private Wayland video daemon |
virtual-session-pam-service | tmd-virtual | PAM policy for virtual desktops |
virtual-session-width | 1920; allowed 320–7680 | Initial display width in pixels |
virtual-session-height | 1080; allowed 200–4320 | Initial display height in pixels |
Transport and security
| Section / key | Default | Purpose |
|---|---|---|
[transport] wss-enable | 1 | HTTPS/WSS listener |
wss-port | 8191 | HTTPS/WSS port |
wss-path | /transport | WebSocket upgrade path |
tcp-port | 4815 | Native TLS/TCP port |
tcp-max-clients | 16; allowed 1–256 | Listener client/backlog setting; not a desktop capacity guarantee |
tcp-no-delay | 1 | TCP_NODELAY |
tcp-keep-alive | 0 | OS TCP keepalive |
tcp-send-buffer-size, tcp-receive-buffer-size | 0 | Socket buffers in bytes; zero uses OS defaults |
[security] authentication-method | system | OS authentication; retain this for normal deployments |
self-signed-certificate, private-key | Empty selects generated certificate/key | Configured 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.