Skip to content

Getting started

A server with Docker Compose, PostgreSQL and Caddy (automatic HTTPS) and a first device. For a host installation from deb or rpm packages and every option see Installation.

Before you start

  • A Linux host with Docker and Docker Compose and a DNS name, for example mdm.example.com.
  • Ports 80 and 443 (console, ACME challenge) and 8444 (agents) reachable. Port 8444 must reach the server directly: never put a TLS terminating proxy in front of it, agents authenticate with client certificates (Installation).
  • A test device with a supported distribution and OpenSSL 3.

1. Start the server

git clone https://github.com/MalteKiefer/limdm
cd limdm/deploy/docker
cp .env.example .env

Fill in .env:

Variable Value
LIMDM_DOMAIN DNS name of the server, for example mdm.example.com
LIMDM_SESSION_KEY openssl rand -hex 32; also derives the keys for stored secrets, keep it safe
POSTGRES_PASSWORD openssl rand -hex 32 (hex only, it is part of the database URL)
LIMDM_LOCAL_LOGIN true to allow local accounts (password and TOTP)

Start it and create the first account:

docker compose up -d
docker compose logs -f limdm          # wait for "admin UI listening"
docker compose exec limdm limdm-server local-admin add admin

The last command prints the user name, a generated password and a TOTP secret (otpauth:// URI) for an authenticator app. It is shown once. All variables: Docker Compose.

2. Sign in

Open https://<LIMDM_DOMAIN> and sign in with the printed password and the TOTP code of your authenticator app. The default blueprint already contains a CIS Level 1 baseline (After the first sign in).

3. Create an enrollment token

Devices, Add device creates a token with a note, an optional blueprint, a number of uses and a validity in days. The token is shown once; the page shows the install command with the token filled in (Enrollment).

4. Enroll the device

On the device:

curl -fsSL https://mdm.example.com/install.sh | sudo LIMDM_TOKEN=lmt_... sh

/install.sh is generated by your server. It detects architecture and package manager, verifies the signed release checksums, installs osquery (where packaged) and the agent and enrolls the device (One device: install script).

5. Check the result

  • The device appears under Devices in the console, with its inventory and compliance results after the first check in.
  • On the device, limdm info shows manager, server, sync state, declarations and compliance; limdm checks lists every compliance check with its result (Command line for users).

Next steps

  • Configure single sign on, notifications and four eyes approval: Console settings.
  • Learn how library items and blueprints work: Concepts.
  • Roll out to many devices with enroll.conf: Enrollment.
  • Set up backups: Backup.