Difference between revisions of "LightDM"
Vishal8492 (talk | contribs) (→Greeter) |
m (link to the french wiki page) |
||
(5 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
[[Category:Display managers]] | [[Category:Display managers]] | ||
[[es:LightDM]] | [[es:LightDM]] | ||
+ | [[fr:LightDM]] | ||
{{Article summary start}} | {{Article summary start}} | ||
{{Article summary text|Provides an overview and setup of the Light Display Manager.}} | {{Article summary text|Provides an overview and setup of the Light Display Manager.}} | ||
Line 12: | Line 13: | ||
Currently, {{AUR|lightdm}} resides in the [[AUR]]. Install it like any other AUR package. | Currently, {{AUR|lightdm}} resides in the [[AUR]]. Install it like any other AUR package. | ||
+ | |||
=== Greeter=== | === Greeter=== | ||
Line 27: | Line 29: | ||
--with-greeter-session=lightdm-yourgreeter-greeter | --with-greeter-session=lightdm-yourgreeter-greeter | ||
− | + | To change default greeter by modifying lightdm.conf. <br> | |
− | + | {{bc|greeter-session=lightdm-kde-greeter}}Lightdm.conf can be found at :<br> | |
− | greeter-session | + | {{bc|/etc/lightdm/lightdm.conf}} <br> |
− | |||
− | /etc/lightdm/lightdm.conf | ||
== Enabling Lightdm == | == Enabling Lightdm == | ||
Line 44: | Line 44: | ||
See [[Display Manager]] for detailed instructions. | See [[Display Manager]] for detailed instructions. | ||
+ | |||
+ | === Testing === | ||
+ | Install xorg-server-xephyr: | ||
+ | pacman -S xorg-server-xephyr | ||
+ | Run lightdm as a X application: | ||
+ | lightdm --test-mode --debug | ||
== Optional Configuration and Tweaks == | == Optional Configuration and Tweaks == | ||
Line 91: | Line 97: | ||
==== PAM settings ==== | ==== PAM settings ==== | ||
+ | {{Note|One Arch user found that these steps weren't needed.}} | ||
Lightdm goes through PAM even when autologin is enabled. You must make sure that | Lightdm goes through PAM even when autologin is enabled. You must make sure that | ||
Line 99: | Line 106: | ||
gpasswd -a ''username'' autologin | gpasswd -a ''username'' autologin | ||
− | Edit {{ic|/etc/pam.d/lightdm | + | Edit {{ic|/etc/pam.d/lightdm}} and locate the line "auth required pam_unix.so". Add new lines before and after it so that the section now reads: |
auth [success=1 default=ignore] pam_succeed_if.so user ingroup autologin | auth [success=1 default=ignore] pam_succeed_if.so user ingroup autologin | ||
auth required pam_unix.so | auth required pam_unix.so | ||
Line 105: | Line 112: | ||
This ensures that the user will not be asked for a password when logging in through Lightdm autologin. | This ensures that the user will not be asked for a password when logging in through Lightdm autologin. | ||
+ | So any user you would like to login without typing password in LightDM just add to this group. | ||
=== NumLock ON === | === NumLock ON === |
Revision as of 18:50, 19 February 2013
Template:Article summary start Template:Article summary text Template:Article summary heading Template:Article summary wiki Template:Article summary end
Lightdm LightDM is a cross-desktop display manager that aims to be the standard display manager for the X.org X server.
Installation
Currently, lightdmAUR resides in the AUR. Install it like any other AUR package.
Greeter
You will also need lightdm-gtk-greeterAUR from the AUR.
Other greeters can be installed:
To change the default greeter (lightdm-gtk-greeterAUR) edit the lightdm PKGBUILD and change the line
--with-greeter-session=lightdm-gtk-greeter
to
--with-greeter-session=lightdm-yourgreeter-greeter
To change default greeter by modifying lightdm.conf.
greeter-session=lightdm-kde-greeterLightdm.conf can be found at :
/etc/lightdm/lightdm.conf
Enabling Lightdm
Using Initscripts
Lightdm can be loaded on startup by entering it in the daemons array in rc.conf
, or by modifying inittab
so it points to lightdm:
x:5:respawn:/usr/sbin/lightdm >& /dev/null
rc.conf
.Using Systemd
For systems using systemd, Lightdm also has a systemd service file, start it with systemctl start lightdm.service
or enable it for boot with systemctl enable lightdm.service
.
See Display Manager for detailed instructions.
Testing
Install xorg-server-xephyr:
pacman -S xorg-server-xephyr
Run lightdm as a X application:
lightdm --test-mode --debug
Optional Configuration and Tweaks
Changing Background Images/Colors
Users wishing to customize the wallpaper on the greeter screen need to edit /etc/lightdm/lightdm-gtk-greeter.conf
defining the background variable.
Example:
background=/usr/share/pixmaps/black_and_white_photography-wallpaper-1920x1080.jpg
Users using the unity-greeter version must edit the /usr/share/glib-2.0/schemas/com.canonical.unity-greeter.gschema.xml
file
And then execute
glib-compile-schemas /usr/share/glib-2.0/schemas/
According to this page.
Users wishing to have a flat color (no image) may simply set the background variable to a hex color.
Example:
background=#000000
Changing the Icon
Users wishing to customize the icon on the greeter screen need to edit /etc/lightdm/lightdm-gtk-greeter.conf
defining the logo variable.
Example:
logo=/usr/share/icons/hicolor/64x64/devices/archlinux-icon-crystal-64.svg
Sources of Arch-centric 64x64 Icons
The archlinux-artwork package in [extra] contains some nice examples that install to /usr/share/archlinux/icons
and that can be copied to /usr/share/icons/hicolor/64x64/devices
as follows:
# find /usr/share/archlinux/icons -name "*64*" -exec cp {} /usr/share/icons/hicolor/64x64/devices \;
After copying, the archlinux-artwork package can be removed.
Enabling Autologin
Edit /etc/lightdm/lightdm.conf
and change these lines to:
[SeatDefaults] autologin-user=your_user autologin-user-timeout=0 pam-service=lightdm-autologin
PAM settings
Lightdm goes through PAM even when autologin is enabled. You must make sure that PAM allows the login without prompting for a password.
Create a new group called, say, autologin
and add yourself to the group:
groupadd autologin gpasswd -a username autologin
Edit /etc/pam.d/lightdm
and locate the line "auth required pam_unix.so". Add new lines before and after it so that the section now reads:
auth [success=1 default=ignore] pam_succeed_if.so user ingroup autologin auth required pam_unix.so auth optional pam_permit.so
This ensures that the user will not be asked for a password when logging in through Lightdm autologin. So any user you would like to login without typing password in LightDM just add to this group.
NumLock ON
Install the numlockx
package and the edit /etc/lightdm/lightdm.conf
adding the following line:
greeter-setup-script=/usr/bin/numlockx on
User switching under xfce4
With the release of xfce4 v4.10, user switching is supported natively. To use it with lightdm, users need only to create a symlink:
# ln -s /usr/lib/lightdm/lightdm/gdmflexiserver /usr/bin/gdmflexiserver
Alternatively, see the XScreenSaver#Lightdm article.