This is Gentoo's testing wiki. It is a non-operational environment and its textual content is outdated.

Please visit our production wiki at https://wiki.gentoo.org

LightDM

From Gentoo Wiki (test)
Jump to:navigation Jump to:search
This page is a translated version of the page LightDM and the translation is 81% complete.
Resources

LightDM is a cross-desktop display manager whose aim is to be the standard display manager for the X server.

The key features (as listed by upstream) include:

  • A well-defined greeter API allowing multiple GUIs
  • Support for all display manager use cases, with plugins where appropriate
  • Low code complexity
  • Fast performance

安装

USE 标记

USE flags for x11-misc/lightdm A lightweight display manager

audit Enable support for Linux audit subsystem using sys-process/audit
elogind Enable session tracking via sys-auth/elogind
gnome Add GNOME support
gtk Pull in the gtk+ greeter
introspection Add support for GObject based introspection
non-root Use non-root user by default
qt5 Add support for the Qt 5 application and UI framework
systemd Enable use of systemd-specific libraries and features like socket activation or session tracking
vala Enable bindings for dev-lang/vala

Emerge

安装lightdm:

root #emerge --ask x11-misc/lightdm

配置

The (global) configuration file for LightDM can be found at:

/etc/lightdm/lightdm.conf

GTK+

/etc/lightdm/lightdm-gtk-greeter.conf

KDE

/etc/lightdm/lightdm-kde-greeter.conf

The LightDM KDE greeter also provides a KCM (KDE Control Module), which appears in the System Settings under System AdministrationLogin Screen (LightDM).

Due to LightDM currently assuming GTK+ greeter as the default, if the KDE greeter is requested, it needs to be specified in the /etc/lightdm/lightdm.conf file:

FILE /etc/lightdm/lightdm.conf
[SeatDefaults]

greeter-session=lightdm-kde-greeter

RazorQt

The RazorQt greeter currently does not offer any configuration options.

启动服务

OpenRC

把 LightDM设置为默认显示管理器:

FILE /etc/conf.d/xdm
DISPLAYMANAGER="lightdm"

要在启动时启动LightDM,请将dbus和xdm添加到默认运行级别:

root #rc-update add dbus default
root #rc-update add xdm default

现在启动LightDM:

root #/etc/init.d/dbus start
root #/etc/init.d/xdm start

systemd

启动LightDM时启动:

root #systemctl enable lightdm

现在启动LightDM:

root #systemctl start lightdm

命令行工具

LightDM includes a command-line tool, dm-tool, which can be used to switch user sessions, lock the current seat, etc. To see a list of available commands, use the --help option:

user $dm-tool --help

例如,锁定当前位置:

user $dm-tool lock

故障排除

光标主题不工作

As of March 28, 2015, the stable versions of lightdm (lightdm-1.10.3) and lightdm-gtk-greeter (lightdm-gtk-greeter-1.7.0) have a bug that affects some DEs such as XFCE with setting the mouse cursor. Applications will apply the new mouse theme, but the root window where the window manager draws on does not. To get around this, simply unmask the latest versions (lightdm-1.13.2 and lightdm-gtk-greeter-2.0.0 at the time of writing) and the cursors will be set correctly.

更多信息可以在 Ubuntu's bug #1024482.找到