https://wiki.archlinux.org/api.php?action=feedcontributions&user=Vishal8492&feedformat=atomArchWiki - User contributions [en]2024-03-29T00:32:05ZUser contributionsMediaWiki 1.41.0https://wiki.archlinux.org/index.php?title=LightDM&diff=240206LightDM2012-12-13T20:51:28Z<p>Vishal8492: /* Greeter */</p>
<hr />
<div>[[Category:Display managers]]<br />
[[es:LightDM]]<br />
{{Article summary start}}<br />
{{Article summary text|Provides an overview and setup of the Light Display Manager.}}<br />
{{Article summary heading|Related}}<br />
{{Article summary wiki|Display Manager}}<br />
{{Article summary end}}<br />
<br />
[http://www.freedesktop.org/wiki/Software/LightDM Lightdm] LightDM is a cross-desktop display manager that aims to be the standard display manager for the X.org X server.<br />
<br />
== Installation ==<br />
<br />
Currently, {{AUR|lightdm}} resides in the [[AUR]]. Install it like any other AUR package.<br />
<br />
<br />
=== Greeter===<br />
You will also need {{AUR|lightdm-gtk-greeter}} from the [[AUR]].<br />
<br />
Other greeters can be installed: <br />
* {{AUR|lightdm-webkit-greeter}}<br />
* {{AUR|lightdm-crowd-greeter}}<br />
* {{AUR|lightdm-kde}}<br />
* {{AUR|lightdm-unity-greeter}}<br />
<br />
To change the default greeter ({{AUR|lightdm-gtk-greeter}}) edit the lightdm PKGBUILD and change the line<br />
--with-greeter-session=lightdm-gtk-greeter<br />
to<br />
--with-greeter-session=lightdm-yourgreeter-greeter<br />
<br />
To change default greeter by modifying lightdm.conf. <br><br />
{{bc|greeter-session&#61;lightdm-kde-greeter}}Lightdm.conf can be found at :<br><br />
{{bc|/etc/lightdm/lightdm.conf}} <br><br />
<br />
== Enabling Lightdm ==<br />
=== Using Initscripts ===<br />
Lightdm can be loaded on startup by entering it in the daemons array in {{ic|rc.conf}}, or by modifying {{ic|inittab}} so it points to lightdm:<br />
x:5:respawn:/usr/sbin/lightdm >& /dev/null<br />
{{Note|The 'inittab' method is the preferred method to use a graphical greeter. See [[Display_Manager#inittab_method]].}}<br />
<br />
{{Note|Lightdm needs [[dbus]] to be running. If you get an error about "respawing too fast" you may have forgotten this. Ensure that dbus is in your [[DAEMONS]] array in {{ic|rc.conf}}.}}<br />
=== Using Systemd ===<br />
For systems using systemd, Lightdm also has a systemd service file, start it with {{ic|systemctl start lightdm.service}} or enable it for boot with {{ic|systemctl enable lightdm.service}}.<br />
<br />
See [[Display Manager]] for detailed instructions.<br />
<br />
== Optional Configuration and Tweaks ==<br />
=== Changing Background Images/Colors ===<br />
Users wishing to customize the wallpaper on the greeter screen need to edit {{ic|/etc/lightdm/lightdm-gtk-greeter.conf}} defining the '''background''' variable.<br />
<br />
Example:<br />
background=/usr/share/pixmaps/black_and_white_photography-wallpaper-1920x1080.jpg<br />
<br />
Users using the unity-greeter version must edit the {{ic|/usr/share/glib-2.0/schemas/com.canonical.unity-greeter.gschema.xml}} file<br />
<br />
And then execute<br />
<br />
{{ic|glib-compile-schemas /usr/share/glib-2.0/schemas/}}<br />
<br />
According to [https://bbs.archlinux.org/viewtopic.php?id=149945 this] page.<br />
<br />
<br />
<br />
{{Note|It is recommended to place png or jpg files in /usr/share/pixmaps since the lightdm user needs read access to the wallpaper file.}}<br />
<br />
Users wishing to have a flat color (no image) may simply set the '''background''' variable to a hex color.<br />
<br />
Example:<br />
background=#000000<br />
<br />
=== Changing the Icon ===<br />
Users wishing to customize the icon on the greeter screen need to edit {{ic|/etc/lightdm/lightdm-gtk-greeter.conf}} defining the '''logo''' variable.<br />
<br />
Example:<br />
logo=/usr/share/icons/hicolor/64x64/devices/archlinux-icon-crystal-64.svg<br />
<br />
==== Sources of Arch-centric 64x64 Icons ====<br />
The archlinux-artwork package in [extra] contains some nice examples that install to {{ic|/usr/share/archlinux/icons}} and that can be copied to {{ic|/usr/share/icons/hicolor/64x64/devices}} as follows:<br />
<br />
# find /usr/share/archlinux/icons -name "*64*" -exec cp {} /usr/share/icons/hicolor/64x64/devices \;<br />
<br />
After copying, the archlinux-artwork package can be removed.<br />
<br />
=== Enabling Autologin ===<br />
Edit {{ic|/etc/lightdm/lightdm.conf}} and change these lines to:<br />
<br />
[SeatDefaults]<br />
autologin-user=your_user<br />
autologin-user-timeout=0<br />
pam-service=lightdm-autologin<br />
<br />
==== PAM settings ====<br />
<br />
Lightdm goes through PAM even when autologin is enabled. You must make sure that<br />
PAM allows the login without prompting for a password.<br />
<br />
Create a new group called, say, {{ic|autologin}} and add yourself to the group:<br />
groupadd autologin<br />
gpasswd -a ''username'' autologin<br />
<br />
Edit {{ic|/etc/pam.d/lightdm-autologin}} and locate the line "auth required pam_unix.so". Add new lines before and after it so that the section now reads:<br />
auth [success=1 default=ignore] pam_succeed_if.so user ingroup autologin<br />
auth required pam_unix.so<br />
auth optional pam_permit.so<br />
<br />
This ensures that the user will not be asked for a password when logging in through Lightdm autologin.<br />
<br />
=== NumLock ON ===<br />
Install the {{ic|numlockx}} package and the edit {{ic| /etc/lightdm/lightdm.conf}} adding the following line:<br />
greeter-setup-script=/usr/bin/numlockx on<br />
<br />
=== User switching under xfce4 ===<br />
With the release of xfce4 v4.10, user switching is supported natively. To use it with lightdm, users need only to create a symlink:<br />
<br />
# ln -s /usr/lib/lightdm/lightdm/gdmflexiserver /usr/bin/gdmflexiserver<br />
<br />
Alternatively, see the [[XScreenSaver#Lightdm]] article.</div>Vishal8492https://wiki.archlinux.org/index.php?title=LightDM&diff=240204LightDM2012-12-13T20:35:15Z<p>Vishal8492: /* Greeter */</p>
<hr />
<div>[[Category:Display managers]]<br />
[[es:LightDM]]<br />
{{Article summary start}}<br />
{{Article summary text|Provides an overview and setup of the Light Display Manager.}}<br />
{{Article summary heading|Related}}<br />
{{Article summary wiki|Display Manager}}<br />
{{Article summary end}}<br />
<br />
[http://www.freedesktop.org/wiki/Software/LightDM Lightdm] LightDM is a cross-desktop display manager that aims to be the standard display manager for the X.org X server.<br />
<br />
== Installation ==<br />
<br />
Currently, {{AUR|lightdm}} resides in the [[AUR]]. Install it like any other AUR package.<br />
<br />
=== Greeter===<br />
You will also need {{AUR|lightdm-gtk-greeter}} from the [[AUR]].<br />
<br />
Other greeters can be installed: <br />
* {{AUR|lightdm-webkit-greeter}}<br />
* {{AUR|lightdm-crowd-greeter}}<br />
* {{AUR|lightdm-kde}}<br />
* {{AUR|lightdm-unity-greeter}}<br />
<br />
To change the default greeter ({{AUR|lightdm-gtk-greeter}}) edit the lightdm PKGBUILD and change the line<br />
--with-greeter-session=lightdm-gtk-greeter<br />
to<br />
--with-greeter-session=lightdm-yourgreeter-greeter<br />
<br />
You can also choose default greeter by modifying lightdm.conf.<br />
e.g.<br />
greeter-session=lightdm-kde-greeter<br />
Location :<br />
/etc/lightdm/lightdm.conf<br />
<br />
== Enabling Lightdm ==<br />
=== Using Initscripts ===<br />
Lightdm can be loaded on startup by entering it in the daemons array in {{ic|rc.conf}}, or by modifying {{ic|inittab}} so it points to lightdm:<br />
x:5:respawn:/usr/sbin/lightdm >& /dev/null<br />
{{Note|The 'inittab' method is the preferred method to use a graphical greeter. See [[Display_Manager#inittab_method]].}}<br />
<br />
{{Note|Lightdm needs [[dbus]] to be running. If you get an error about "respawing too fast" you may have forgotten this. Ensure that dbus is in your [[DAEMONS]] array in {{ic|rc.conf}}.}}<br />
=== Using Systemd ===<br />
For systems using systemd, Lightdm also has a systemd service file, start it with {{ic|systemctl start lightdm.service}} or enable it for boot with {{ic|systemctl enable lightdm.service}}.<br />
<br />
See [[Display Manager]] for detailed instructions.<br />
<br />
== Optional Configuration and Tweaks ==<br />
=== Changing Background Images/Colors ===<br />
Users wishing to customize the wallpaper on the greeter screen need to edit {{ic|/etc/lightdm/lightdm-gtk-greeter.conf}} defining the '''background''' variable.<br />
<br />
Example:<br />
background=/usr/share/pixmaps/black_and_white_photography-wallpaper-1920x1080.jpg<br />
<br />
Users using the unity-greeter version must edit the {{ic|/usr/share/glib-2.0/schemas/com.canonical.unity-greeter.gschema.xml}} file<br />
<br />
And then execute<br />
<br />
{{ic|glib-compile-schemas /usr/share/glib-2.0/schemas/}}<br />
<br />
According to [https://bbs.archlinux.org/viewtopic.php?id=149945 this] page.<br />
<br />
<br />
<br />
{{Note|It is recommended to place png or jpg files in /usr/share/pixmaps since the lightdm user needs read access to the wallpaper file.}}<br />
<br />
Users wishing to have a flat color (no image) may simply set the '''background''' variable to a hex color.<br />
<br />
Example:<br />
background=#000000<br />
<br />
=== Changing the Icon ===<br />
Users wishing to customize the icon on the greeter screen need to edit {{ic|/etc/lightdm/lightdm-gtk-greeter.conf}} defining the '''logo''' variable.<br />
<br />
Example:<br />
logo=/usr/share/icons/hicolor/64x64/devices/archlinux-icon-crystal-64.svg<br />
<br />
==== Sources of Arch-centric 64x64 Icons ====<br />
The archlinux-artwork package in [extra] contains some nice examples that install to {{ic|/usr/share/archlinux/icons}} and that can be copied to {{ic|/usr/share/icons/hicolor/64x64/devices}} as follows:<br />
<br />
# find /usr/share/archlinux/icons -name "*64*" -exec cp {} /usr/share/icons/hicolor/64x64/devices \;<br />
<br />
After copying, the archlinux-artwork package can be removed.<br />
<br />
=== Enabling Autologin ===<br />
Edit {{ic|/etc/lightdm/lightdm.conf}} and change these lines to:<br />
<br />
[SeatDefaults]<br />
autologin-user=your_user<br />
autologin-user-timeout=0<br />
pam-service=lightdm-autologin<br />
<br />
==== PAM settings ====<br />
<br />
Lightdm goes through PAM even when autologin is enabled. You must make sure that<br />
PAM allows the login without prompting for a password.<br />
<br />
Create a new group called, say, {{ic|autologin}} and add yourself to the group:<br />
groupadd autologin<br />
gpasswd -a ''username'' autologin<br />
<br />
Edit {{ic|/etc/pam.d/lightdm-autologin}} and locate the line "auth required pam_unix.so". Add new lines before and after it so that the section now reads:<br />
auth [success=1 default=ignore] pam_succeed_if.so user ingroup autologin<br />
auth required pam_unix.so<br />
auth optional pam_permit.so<br />
<br />
This ensures that the user will not be asked for a password when logging in through Lightdm autologin.<br />
<br />
=== NumLock ON ===<br />
Install the {{ic|numlockx}} package and the edit {{ic| /etc/lightdm/lightdm.conf}} adding the following line:<br />
greeter-setup-script=/usr/bin/numlockx on<br />
<br />
=== User switching under xfce4 ===<br />
With the release of xfce4 v4.10, user switching is supported natively. To use it with lightdm, users need only to create a symlink:<br />
<br />
# ln -s /usr/lib/lightdm/lightdm/gdmflexiserver /usr/bin/gdmflexiserver<br />
<br />
Alternatively, see the [[XScreenSaver#Lightdm]] article.</div>Vishal8492