Differences between revisions 21 and 22
Revision 21 as of 2017-10-11 03:45:52
Size: 4491
Editor: ?WarrenPostma
Comment: debian 9 does not have any greeter background in the default lightdm greeter conf
Revision 22 as of 2018-03-25 03:04:50
Size: 4518
Editor: ?TongKhuyet
Comment: Replace [SeatDefault] with [Seat:*]; add Testing session; change aptitude -> apt-get
Deletions are marked like this. Additions are marked like this.
Line 18: Line 18:
aptitude install lightdm apt-get install lightdm
Line 40: Line 40:
=== Testing ===
Install {{{xserver-xephyr}}}. Then, run LightDM as an X application:
{{{
$ lightdm --test-mode --debug
}}}
Line 44: Line 50:
[SeatDefaults] [Seat:*]
Line 48: Line 54:

/!\ Note that this has to be in the [SeatDefaults] section, not the [LightDM] section.
Line 58: Line 62:
[SeatDefaults] [Seat:*]

Translation(s): English - español - Français - Italiano - Svenska - 简体中文


LightDM is a cross-desktop Display Manager. It was built as a relatively light-weight and highly customizable alternative to GDM. It's developed at Canonical by Robert Ancell and all contributors are required to assign the their copyright to Canonical through a Contributor License Agreement that allows proprietarization.

  • No Gnome dependencies
  • Uses webkit to render themes
  • Supports Gtk and Qt
  • Highly customizable (basic gtk theme, unity theme in Ubuntu Precise)

LightDM was introduced in Wheezy, it's stable enough for use also in current stable and Sid.

To install lightdm, run as root

apt-get install lightdm

System-wide configuration

LightDM configuration file is found at /etc/lightdm/lightdm.conf. Making a backup of the original configuration file is recommended.

Alternatively, create /etc/lightdm/lightdm.conf.d/ and place your configuration files there.

To change the current default Display Manager, run

dpkg-reconfigure lightdm

If you're new to LightDM, it's recommended to have GDM, slim or another Display Manager installed as a backup.

Viewing current configuration

To view effective configuration, run

/usr/sbin/lightdm --show-config

This will show current settings, with the configuration files these settings were read from.

Testing

Install xserver-xephyr. Then, run LightDM as an X application:

$ lightdm --test-mode --debug

Enable autologin

Look up these lines in lightdm configuration file, uncomment them and customize to your preference.

[Seat:*]
#autologin-user=
#autologin-user-timeout=0

Enable user list

By default, LightDM is configured so that the user should enter login name and password. Login name is considered sensitive information.

It is possible to provide the user with selection of available user accounts. The most recently used login name will be selected in the list. The user still has to enter password to login. This provides useful compromise between security and convenience for a single-user desktop system.

To enable user list, place the following settings into /usr/share/lightdm/lightdm.conf.d/01_my.conf:

[Seat:*]
greeter-hide-users=false

Change the greeter's background

Debian's LightDM GTK greeter is configured in /etc/lightdm/lightdm-gtk-greeter.conf. There, we may find that the background image points to /usr/share/images/desktop-base/desktop-background, which is a symlink managed by update-alternatives and is also the main desktop background, or we may find (Debian 9 and up) that no value is set in the greeter.conf file.

If the lightdm greeter's background is using the symlink (debian 8 and below), the best way is to find some images that you like from /usr/share/images/desktop-base/, then use update-alternatives to change the desktop-background group:

update-alternatives --config desktop-background

If not, then edit /etc/lightdm/lightdm-gtk-greeter.conf and place an integer value (to set a color) or a filename of a .png or .svg file to be used as the greeter image in the file, like this:

[greeter]
background=/path/to/file.svg

User configuration

LightDM itself has no user configuration. Once you've authenticated with your username and password, LightDM will run an X session. If you wish to configure your login environment, you must use the configuration files for whichever type of X session your system is configured to use. By default, this will be the Debian Xsession.

See also


CategoryBootProcess