Upgrade, back up, and remove

Plan interruptions, preserve configuration and definitions, and remove services.

On this page

Plan the interruption

Save work and notify users before stopping services or replacing binaries. A server restart ends Linux virtual desktops and their applications. The definitions survive; only desktops with explicit autostart start again. A planned server upgrade is different from recovery of an agent in an otherwise running desktop.

Record versions, owner/IDs, startup policy, custom scripts, certificates, ports, and known-working capture/codec selections. Keep the previous package and an independent administrator access path available.

Back up configuration and definitions

Stop the service before copying its SQLite registry so the backup includes a consistent database state. Archive the entire registry directory and keep its permissions. A copy of definitions is not a snapshot of desktop applications or unsaved work.

PlatformConfigurationDefinitions
Linux/etc/tmd/server, custom desktop scripts, relevant /etc/pam.d/tmd-virtual/var/lib/tmd
macOS/etc/tmd/server; document owner's GUI LaunchAgent and privacy grants/Library/Application Support/TMD
WindowsExport the service's HKU\S-1-5-18\Software\TextureMind\tmd\server settings%ProgramData%\TMD

Also preserve configured TLS certificates/private keys in restricted storage and any account-level restore tokens needed by the desktop capture path. Privacy grants and operating-system logins are not recreated merely by restoring the TMD database.

Upgrade Linux

sudo systemctl stop tmdserver
# Run from the complete NEW server package directory:
sudo bash ./install-tmdserver.sh

The installer preserves existing configuration and custom desktop initialization files. Use explicit console installer options only when intentionally changing that policy. Deploy matching server, agent, plugins, and runtime libraries together.

Check the journal, live session state, automatic owner, browser assets, and intended virtual autostart. Manually start saved desktops whose autostart is disabled. Verify physical login still works if the host also has a console.

Upgrade Windows

Run the new MSI through the supported installer path. Repairs/upgrades retain service settings unless explicit MSI properties override them. Use an explicit owner for unattended deployment under LocalSystem, and preserve the chosen firewall policy.

After installation, inspect sc query TMDServer, tmdtool.exe list-sessions --json, the selected console, and browser/native connections. A saved definition is not automatically reassigned to a different installer account.

Upgrade macOS

From the complete new package, while logged into the intended desktop owner's account:

sudo bash ./install-tmdserver.sh

The installer unloads the old jobs before replacing binaries, updates the daemon and GUI LaunchAgent, and starts them in their respective launchd domains. Verify the owner configuration, both jobs, and capture permissions. If the installed agent has stale Privacy & Security entries, re-add that executable and restart its LaunchAgent.

Complete uninstallation is not required for a routine upgrade. For building and signing a release package yourself, the repository's docs/build-MacOS.txt documents the existing macos-sign.py workflow; code signing/notarization is a publisher task, separate from administrator installation.

Update only the browser viewer

Replace the installed server's browser directory contents with the complete matching rebuilt bundle, including compressed files. Avoid mixing old .gz, JavaScript, WebAssembly, and data files. Hard-refresh the client tab after deployment.

A local JavaScript/WebAssembly asset-only update does not require signing native macOS executables again. A new complete release should include the browser bundle before packaging and notarization. The site's browser viewer is different from this administrator-guide website.

Stop or uninstall Linux

To stop and disable the service while preserving installed files and definitions:

sudo systemctl disable --now tmdserver

To remove installed binaries and the service, run the package's uninstaller:

sudo bash ./uninstall-tmdserver.sh

The current script preserves /etc/tmd/server, /etc/pam.d/tmd-virtual, and /var/lib/tmd. Reinstallation therefore does not reset owners or virtual autostart policy. Remove retained data only as a deliberate separate retention decision.

Uninstall Windows

Use Windows Installed apps, or from an elevated Command Prompt use the actual installed product MSI:

msiexec.exe /x "C:\Packages\TMDServer2026.1.0-x86_64.msi" /qn /norestart /L*v "%TEMP%\tmd-uninstall.log"

Review retained service settings and %ProgramData%\TMD separately before a clean reconfiguration. Keep the uninstall log if removal fails.

Uninstall macOS

Follow the dedicated macOS removal procedure. It covers launchd job removal, startup log deletion, retained registry/configuration data, and privacy entries.