LightDM

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

LightDM é um display manager multiplataformas cujo objetivo é ser o display manager padrão para o X server.

As características-chave (conforme listadas pelo upstream) incluem:

  • Uma API de saudação bem definida permitindo diversas GUIs
  • Suporte para todos os casos de uso para display manager, com plugins se necessário
  • Baixa complexidade de código
  • Desempenho rápido

Instalação

USE flags

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

Instalar o lightdm:

root #emerge --ask x11-misc/lightdm

Configuração

O arquivo de configuração (global) para o LightDM pode ser encontrado em:

  • /etc/lightdm/lightdm.conf

GTK+

The GTK+ greeter configuration can be modified by manually editing the following file:

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

RazorQt

A tela de saudação do RazorQT atualmente não oferece nenhuma opção de configuração.

Boot service

OpenRC

Defina o LightDM como o display manager padrão:

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

Para iniciar o LightDM no boot, adicione o dbus e o xdm ao runlevel default:

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

Para iniciar o LightDM agora:

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

systemd

Para iniciar o LightDM no boot:

root #systemctl enable lightdm

Para iniciar o LightDM agora:

root #systemctl start lightdm

Ferramenta de linha de comando

LightDM inclui uma ferramente de linha de comando, dm-tool, que pode ser usada para alternar as sessões de usuário, fixar o estado atual, etc. Para ver uma lista de comandos disponíveis, use a opção --help:

user $dm-tool --help

Por exemplo, para fixar o estado atual:

user $dm-tool lock

Tips

Running commands at log-in

A user can run some programs automatically when logging in using LightDM by adding commands in ~/.xprofile, which will be sourced by LightDM. For example:

FILE ~/.xprofile
# Starting redshift, setting the dpi with xrandr and set the brightness to 50% with xbacklight
xrandr --dpi 192 &
redshift-gtk &
xbacklight -set 50 &

Unlock GNOME Keyring

To unlock your GNOME Keyring (gnome-base/gnome-keyring) automatically on login, edit /etc/pam.d/lightdm to look as follows. Note: Lines ending with the comment #keyring should be added.

FILE /etc/pam.d/lightdm
auth	   include	system-local-login
auth       optional	pam_gnome_keyring.so #keyring
account    include	system-local-login
session	   include	system-local-login
session    optional	pam_gnome_keyring.so auto_start #keyring

Resolução de problemas

Tema do cursor não funciona

A partir de 28 de Março de 2015, as versões estáveis do lightdm (lightdm-1.10.3) e lightdm-gtk-greeter (lightdm-gtk-greeter-1.7.0) tem um bug que afeta alguns DEs tais como o XFCE com a definição do cursor do mouse. Os aplicativos irão aplicar o novo tema do mouse, mas a janela raiz onde o gerenciador de janelas baseia-se, não. Para contornar esta situação, basta desmascarar as últimas versões (lightdm-1.13.2 and lightdm-gtk-greeter-2.0.0 no momento da escrita) e os cursores serão definidos corretamente.

Maiores informações podem ser encontradas em Ubuntu's bug #1024482.

See also