duxdm

a simple, fast TUI display manager for the Linux console

What it is

duxdm is a display manager that works exactly like getty: you type a username, then the password, then pick your desktop environment or window manager from a menu. No GUI toolkit, no theme engine, no config files — it is a single small Rust binary (~650 KB) that talks to the terminal directly.

It is a separate project from zyvun OS — a native Debian package served from this website's apt repository. Source: github.com/c4mandry/duxdm

Install (Debian / Ubuntu)

One command adds the signed repository and installs duxdm:

curl -fsSL https://zyvon.download/duxdm-repo/install.sh | sudo sh

After that it's a normal apt package — install it anywhere with sudo apt install duxdm and keep it updated with sudo apt upgrade.

Prefer to do it by hand? The same steps explicitly:

curl -fsSL https://zyvon.download/duxdm-repo/key.gpg | sudo tee /etc/apt/keyrings/duxdm.asc echo 'deb [signed-by=/etc/apt/keyrings/duxdm.asc] https://zyvon.download/duxdm-repo stable main' | sudo tee /etc/apt/sources.list.d/duxdm.list sudo apt update && sudo apt install duxdm

The package installs /usr/bin/duxdm, a /etc/pam.d/duxdm PAM profile and the duxdm.service systemd unit, and enables it for the next boot. On systems with another display manager (GDM, LightDM, …), installing duxdm makes it the default on tty1; disable it again with sudo systemctl disable duxdm.service.

Usage

  1. Type your username at login:.
  2. Type your password (input is not echoed, like getty).
  3. Pick a session with ↑/↓ or 1–9 and press Enter.

^C cancels the current prompt (and, like getty, systemd simply restarts the login screen). Sessions are discovered from /usr/share/wayland-sessions and /usr/share/xsessions — anything that ships a .desktop file there appears in the menu automatically.

X11 sessions need an X server (xserver-xorg-core — your WM/DE usually pulls it in); Wayland sessions need nothing extra.

How it works

duxdm keeps the console in canonical mode (line editing, like getty) for the login screen and switches to raw mode for the session menu. After a successful PAM authentication it forks: the child restores the terminal, drops privileges to the user (initgroups/setgid/setuid — verified afterwards; the session refuses to start if the drop fails, so a user session can never run as root), sets up the session environment (including XDG_RUNTIME_DIR, the user bus, seat and VT) and execs the chosen session — Wayland directly; for X11, duxdm starts the X server itself as root on the current VT with a fresh Xauthority cookie and runs the session as the user against it.

After a logout you get a one-field re-login screen: type your password to sign back in as the same user with the same session — no username, no session picker. Leave it empty for a different user, or press q to hand the console to getty.

Switch user from your DE: duxdm owns the standard org.freedesktop.DisplayManager D-Bus interface. The DE's switch-user button — or duxdm --switch-greeter [user] — opens a fresh login screen on a free VT while your current session keeps running. Spawned login screens are tracked by the supervisor, so systemctl restart duxdm takes everything down cleanly.

Signals (SIGINT/SIGTERM/SIGHUP/SIGQUIT) are caught and turned into a clean exit so the terminal is never left with echo off or in raw mode.

apt repository

https://zyvon.download/duxdm-repoRepository root (suite: stable, component: main)
/duxdm-repo/install.shOne-liner bootstrap: adds key + source, installs duxdm
/duxdm-repo/key.gpgSigning key, ASCII-armored (ed25519)
/duxdm-repo/keyring.gpgSame key, binary keyring form (used by install.sh)
dists/stable/InReleaseSigned release metadata
dists/stable/main/binary-amd64/Package index and .deb for amd64

Updates are published as new versions of the duxdm package — a normal sudo apt update && sudo apt upgrade picks them up.