Difference between revisions of "LightDM"

From ArchWiki
Jump to: navigation, search
m (minor tweak to intitab example)
(cleaned-up and added sections)
Line 22: Line 22:
 
See [[Display Manager]] for detailed instructions.
 
See [[Display Manager]] for detailed instructions.
  
== Configuration ==
+
== Required Configuration ==
Lightdm will only show a blank screen until a greeter is chosen. Open the The configuration file at  
+
Lightdm will only show a blank screen until a greeter is chosen. Open the the configuration file at {{ic| /etc/lightdm/lightdm.conf}} and find the {{ic|1=#greeter-session=}} option, uncomment it, and change it to the greeter of your choice. For example, to use the default gtk3 greeter, change it to this:
/etc/lightdm/lightdm.conf
+
Find the {{ic|1=#greeter-session=}} option, uncomment it, and change it to the greeter of your choice. For example, to use the default gtk3 greeter, change it to this:
+
 
  greeter-session=lightdm-gtk-greeter
 
  greeter-session=lightdm-gtk-greeter
  
 
Additional greeters are available in the [[AUR]]. To see which greeters are installed, look in {{ic|/usr/share/xgreeters}}. Do not include the .desktop extension when setting your greeter.
 
Additional greeters are available in the [[AUR]]. To see which greeters are installed, look in {{ic|/usr/share/xgreeters}}. Do not include the .desktop extension when setting your greeter.
 +
 +
{{Note|The following requires [http://www.archlinux.org/packages/extra/i686/xorg-server-xephyr/ xorg-server-xephyr] to be installed.}}
  
 
It is possible to test lightdm with the following command:
 
It is possible to test lightdm with the following command:
 
{{bc|$ lightdm --test-mode -c /etc/lightdm/lightdm.conf}}
 
{{bc|$ lightdm --test-mode -c /etc/lightdm/lightdm.conf}}
  
Note that this requires [http://www.archlinux.org/packages/extra/i686/xorg-server-xephyr/ xorg-server-xephyr] to be installed, first.
+
== Optional Configuration and Tweaks ==
 +
=== Changing Background Images/Colors ===
 +
Users wishing to customize the wallpaper on the greeter screen need to edit {{ic|/etc/lightdm/lightdm-gtk-greeter.conf}} defining the '''background''' variable.
  
== NumLock ON ==
+
Example:
Install {{ic|numlockx}}.
+
background=/usr/share/pixmaps/black_and_white_photography-wallpaper-1920x1080.jpg
  
for lightDM to turn your NumLock On do this:
+
{{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.}}
  
# gedit /etc/lightdm/lightdm.conf
+
Users wishing to have a flat color (no image) may simply set the '''background''' variable to a hex color.
  
add the next line at the end:
+
Example:
 +
background=#000000
  
greeter-setup-script=/usr/bin/numlockx on
+
=== Changing the Icon ===
 +
Users wishing to customize the icon (by default, the 'computer' graphic) should follow this 3-step procedure:
 +
 
 +
# Copy a 64x64 png to {{ic|/usr/share/icons/hicolor/64x64/devices}}
 +
# Run {{ic|gtk-update-icon-cache /usr/share/icons/hicolor}}
 +
# Edit {{ic|/usr/share/lightdm-gtk-greeter/greeter.ui}}
 +
Search for 'image1' and edit the 'property' xml to be the filename (less the extension).  By default it should be 'computer' by default.
  
== Enable Autologin ==
+
=== Enabling Autologin ===
 
  # gedit /etc/lightdm/lightdm.conf
 
  # gedit /etc/lightdm/lightdm.conf
  
Line 72: Line 81:
 
  session required pam_limits.so
 
  session required pam_limits.so
 
  session required pam_unix.so
 
  session required pam_unix.so
 +
 +
=== NumLock ON ===
 +
Install {{ic|numlockx}}.
 +
 +
for lightDM to turn your NumLock On do this:
 +
 +
# gedit /etc/lightdm/lightdm.conf
 +
 +
add the next line at the end:
 +
 +
greeter-setup-script=/usr/bin/numlockx on
  
 
== Add user and group "Lightdm" ==
 
== Add user and group "Lightdm" ==

Revision as of 17:22, 28 March 2012

This template has only maintenance purposes. For linking to local translations please use interlanguage links, see Help:i18n#Interlanguage links.


Local languages: Català – Dansk – English – Español – Esperanto – Hrvatski – Indonesia – Italiano – Lietuviškai – Magyar – Nederlands – Norsk Bokmål – Polski – Português – Slovenský – Česky – Ελληνικά – Български – Русский – Српски – Українська – עברית – العربية – ไทย – 日本語 – 正體中文 – 简体中文 – 한국어


External languages (all articles in these languages should be moved to the external wiki): Deutsch – Français – Română – Suomi – Svenska – Tiếng Việt – Türkçe – فارسی

Summary help replacing me
Provides an overview of the Light Display Manager.
Related
Display Manager

Lightdm LightDM is a cross-desktop display manager that aims to be the standard display manager for the X.org X server.

Installation

You can install lightdmAUR from the AUR.

Warning: Lightdm changes your $PATH and it might create issues. See [1] for how to fix the $PATH.

Enabling Lightdm

Lightdm can be loaded on startup by entering it in your daemons array in rc.conf, or by appending the following line to inittab:

x:5:respawn:/usr/sbin/lightdm 2>&1 /dev/null

If you're 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.

Required Configuration

Lightdm will only show a blank screen until a greeter is chosen. Open the the configuration file at /etc/lightdm/lightdm.conf and find the #greeter-session= option, uncomment it, and change it to the greeter of your choice. For example, to use the default gtk3 greeter, change it to this:

greeter-session=lightdm-gtk-greeter

Additional greeters are available in the AUR. To see which greeters are installed, look in /usr/share/xgreeters. Do not include the .desktop extension when setting your greeter.

Note: The following requires xorg-server-xephyr to be installed.

It is possible to test lightdm with the following command:

$ lightdm --test-mode -c /etc/lightdm/lightdm.conf

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
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.

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 (by default, the 'computer' graphic) should follow this 3-step procedure:

  1. Copy a 64x64 png to /usr/share/icons/hicolor/64x64/devices
  2. Run gtk-update-icon-cache /usr/share/icons/hicolor
  3. Edit /usr/share/lightdm-gtk-greeter/greeter.ui

Search for 'image1' and edit the 'property' xml to be the filename (less the extension). By default it should be 'computer' by default.

Enabling Autologin

# gedit /etc/lightdm/lightdm.conf

Change these lines to:

[SeatDefaults]
autologin-user=your_user
autologin-user-timeout=0
pam-service=lightdm-autologin

(last one might need to be created)

# gedit /etc/pam.d/lightdm-autologin

(create if it doesn't exist) Add:

#%PAM-1.0
auth requisite pam_nologin.so
auth required pam_env.so
auth requisite pam_permit.so
auth sufficient pam_succeed_if.so uid >= 1000 quiet
auth required pam_deny.so
account required pam_unix.so
password required pam_deny.so
session required pam_loginuid.so
-session optional pam_systemd.so
session optional pam_keyinit.so revoke
session required pam_limits.so
session required pam_unix.so

NumLock ON

Install numlockx.

for lightDM to turn your NumLock On do this:

# gedit /etc/lightdm/lightdm.conf

add the next line at the end:

greeter-setup-script=/usr/bin/numlockx on

Add user and group "Lightdm"

Some packages from AUR might need this to make lightdm and persmissions function correctly. This CAN help automounting of dvd/cd/usb if you are having problems. You can check beforehand with; cat /etc/group and see what groups you have.

# groupadd --system lightdm
# useradd --system -c "Light Display Manager" -g lightdm -d /var/lib/lightdm -s /sbin/nologin lightdm
Note: There is NO need to do the above steps if using this lightdmAUR package.