Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
L

lightdm

> 编程语言
Open source

Display Manager

966 stars0 likes1 views
WebsiteGitHub

About

Display Manager

LightDM Display Manager

LightDM is a lightweight, cross-desktop display manager. A display manager is a daemon that:

  • Runs display servers (e.g. X) where necessary.
  • Runs greeters to allow users to pick which user account and session type to use.
  • Allows greeters to perform authentication using PAM.
  • Runs session processes once authentication is complete.
  • Provides remote graphical login options.

Key features of LightDM are:

  • Cross-desktop - supports different desktop technologies (X, Wayland, Mir, etc)
  • Lightweight - low memory usage and fast performance
  • Supports remote login (incoming: XDMCP and VNC; outgoing: XDMCP and pluggable)
  • Supports guest sessions
  • Has a comprehensive test suite

The core LightDM project does not provide any greeter with it; you should install a greeter appropriate to your system. Popular greeter projects are:

  • LightDM GTK+ Greeter - a greeter that has moderate requirements (GTK+).
  • LightDM KDE Greeter - greeter by KDE (Qt)
  • LXQt Greeter - greeter used in LXQt (Qt)
  • Pantheon Greeter - greeter used in elementary OS (GTK+/Clutter).
  • Unity Greeter - greeter used in Unity.
  • WebKit2 Greeter - greeter that can be themed using HTML/CSS/Javascript
  • Run with no greeter (automatic login only)
  • Write your own...

Configuration

LightDM configuration is provided by the following files:

/usr/share/lightdm/lightdm.conf.d/*.conf
/etc/lightdm/lightdm.conf.d/*.conf
/etc/lightdm/lightdm.conf

System provided configuration should be stored in /usr/share/lightdm/lightdm.conf.d/. System administrators can override this configuration by adding files to /etc/lightdm/lightdm.conf.d/ and /etc/lightdm/lightdm.conf. Files are read in the above order and combined together to make the LightDM configuration.

For example, if a sysadmin wanted to override the system configured default session (provided in /usr/share/lightdm/lightdm.conf.d) they should make a file /etc/lightdm/lightdm.conf.d/50-myconfig.conf with the following:

[Seat:*]
user-session=mysession

Configuration is in keyfile format. For most installations you will want to change the keys in the [Seat:*] section as this applies to all seats on the system (normally just one). A configuration file showing all the possible keys is provided in data/lightdm.conf.

Display Setup Script

LightDM can be configured to run an external shell script to setup displays.

If an display setup script is used, it must be:

  • Located under /usr/share
  • Owned by the user lightdm and group lightdm
  • It cannot print or log to any destination not accessible to LightDM

To test a configuration:

  • Install xserver-xephyr: sudo apt install xserver-xephyr
  • Run the test as user lightdm: sudo -u lightdm lightdm --test-mode --debug

Put the shell script reference in the LightDM configuration:

[Seat:*]
display-setup-script=/usr/share/example_display_setup_script.sh 

Questions

Stack Overflow and Ask Ubuntu are good sites for frequently asked questions.

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

C

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言