Share an existing X11 console
A TMD console shares a desktop that already exists on physical seat seat0. If the machine already has a working desktop, keep its display manager and graphics configuration.
From SSH, identify the owner's active graphical session:
loginctl seat-status seat0
loginctl list-sessions
loginctl show-session SESSION_ID -p Name -p Type -p Class -p Active -p Seat -p State
Replace SESSION_ID. Expect the intended owner, Type=x11, Seat=seat0, and an active state. An SSH login or a virtual desktop's background PAM registration is not the console.
Inside that graphical desktop, as the owner:
echo "$XDG_SESSION_TYPE"
xrandr --query
glxinfo -B
Require an enabled output at the intended resolution. Do not assume DISPLAY=:0 or a fixed Xauthority path. If the desktop is Wayland, use the Wayland procedure.
Prepare a dedicated headless console
Use a virtual desktop instead if you do not need the physical console. A console needs a graphical login even on a machine without a monitor. The following Ubuntu 24.04 recipe creates a software-rendered console on a dedicated headless host.
sudo apt install --no-install-recommends \
xserver-xorg xauth x11-utils x11-xserver-utils dbus-x11 \
xfce4 xfce4-terminal lightdm lightdm-gtk-greeter fonts-dejavu-core \
xserver-xorg-video-dummy
sudo dpkg-reconfigure lightdm
Select LightDM if prompted. Installing or switching a display manager on an existing workstation can end its graphical session; these steps are for a newly prepared console.
Create the software output
Create /etc/X11/xorg.conf.d/20-tmd-headless.conf:
sudo mkdir -p /etc/X11/xorg.conf.d
sudo tee /etc/X11/xorg.conf.d/20-tmd-headless.conf >/dev/null <<'EOF'
Section "Device"
Identifier "TMD Dummy Device"
Driver "dummy"
VideoRam 256000
EndSection
Section "Monitor"
Identifier "TMD Dummy Monitor"
HorizSync 30.0-90.0
VertRefresh 50.0-75.0
Modeline "1920x1080" 148.50 1920 2008 2052 2200 1080 1084 1089 1125 +HSync +VSync
EndSection
Section "Screen"
Identifier "TMD Dummy Screen"
Device "TMD Dummy Device"
Monitor "TMD Dummy Monitor"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "1920x1080"
EndSubSection
EndSection
EOF
If the GPU-free host does not expose a graphical seat, allow this explicitly configured LightDM software display to start:
sudo mkdir -p /etc/lightdm/lightdm.conf.d
sudo tee /etc/lightdm/lightdm.conf.d/50-tmd-headless.conf >/dev/null <<'EOF'
[LightDM]
logind-check-graphical=false
EOF
Do not add this dummy configuration to a working physical or GPU-rendered console. For a hardware console, use the driver's actual output, an EDID emulator, or the provider's documented virtual display.
Arrange the console login
Sign in through the host/provider's console, or deliberately configure autologin. TMD automatic console creation does not enable OS autologin. If an unlocked local desktop at boot is acceptable for this host, this LightDM example signs in alice:
sudo tee /etc/lightdm/lightdm.conf.d/60-tmd-console.conf >/dev/null <<'EOF'
[Seat:*]
user-session=xfce
autologin-session=xfce
autologin-user=alice
autologin-user-timeout=0
EOF
sudo systemctl set-default graphical.target
sudo systemctl enable lightdm
sudo systemctl start lightdm
Replace the account name. Apply autologin only where it matches the host's access policy. Keep a separate administrative connection available.
Register and connect
After verifying the actual console login and enabled output, inspect the TMD definition:
sudo tmdtool list-sessions --json
If automatic creation was disabled and no console definition exists:
sudo tmdtool create-session console --owner alice --type console
sudo tmdtool describe-session console --json
Wait for active, then connect to https://tmd.example.com:8191/#console. If the stored owner is wrong, follow Change the console owner. Creating additional definitions does not create another physical console.