LPIC1 Exam Guide
  • Introduction
  • 101.1. Determine and configure hardware settings
  • 101.2. Boot the system
  • 101.3. Change runlevels / boot targets and shutdown or reboot system
  • 102.1. Design hard disk layout
  • 102.2. Install a boot manager
  • 102.3. Manage shared libraries
  • 102.4. Use Debian package management
  • 102.5. Use RPM and YUM package management
  • 103.1. Work on the command line
  • 103.2. Process text streams using filters
  • 103.3. Perform basic file management
  • 103.4. Use streams, pipes and redirects
  • 103.5. Create, monitor and kill processes
  • 103.6. Modify process execution priorities
  • 103.7. Search text files using regular expressions
  • 103.8. Perform basic file editing operations using vi
  • 104.1. Create partitions and filesystems
  • 104.2. Maintain the integrity of filesystems
  • 104.3. Control mounting and unmounting of filesystems
  • 104.4. Manage disk quotas
  • 104.5. Manage file permissions and ownership
  • 104.6. Create and change hard and symbolic links
  • 104.7. Find system files and place files in the correct location
  • 105.1. Customize and use the shell environment
  • 105.2. Customize or write simple scripts
  • 105.3. SQL data management
  • 106.1. Install and configure X11
  • 106.2. Setup a display manager
  • 106.3. Accessibility
  • 107.1. Manage user and group accounts and related system files
  • 107.2. Automate system administration tasks by scheduling jobs
  • 107.3. Localisation and internationalisation
  • 108.1. Maintain system time
  • 108.2. System logging
  • 108.3. Mail Transfer Agent (MTA) basics
  • 108.4. Manage printers and printing
  • 109.1. Fundamentals of internet protocols
  • 109.2. Basic network configuration
  • 109.3. Basic network troubleshooting
  • 109.4. Configure client side DNS
  • 110.1. Perform security administration tasks
  • 110.2. Setup host security
  • 110.3. Securing data with encryption
Powered by GitBook
On this page
  • LightDM
  • /etc/lightdm

Was this helpful?

106.2. Setup a display manager

Previous106.1. Install and configure X11Next106.3. Accessibility

Last updated 5 years ago

Was this helpful?

Weight: 1

Description: Candidates should be able to describe the basic features and configuration of the LightDM display manager. This objective covers awareness of the display managers XDM (X Display Manger), GDM (Gnome Display Manager) and KDM (KDE Display Manager).

Key Knowledge Areas:

  • Basic configuration of LightDM

  • Turn the display manager on or off

  • Change the display manager greeting

  • Awareness of XDM, KDM and GDM

Terms and Utilities:

  • lightdm

  • /etc/lightdm/

A Linux desktop environment is a collection of applications designed to work well with each other and provide a consistent user experience. A desktop environment is usually paired with a login manager. The login manager also known as a greeter or display manager

What is Display Manager ?

The display manager is a bit of code that provides the GUI login screen for your Linux desktop. After you log in to a GUI desktop, the display manager turns control over to the window manager.

Kernel -> X -> DisplayManager -> Desktop

When you log out of the desktop, the display manager is given control again to display the login screen and wait for another login.

There are several display managers—some are provided with their respective desktops while some others not.

Any of the display managers can be used for your login screen regardless of which desktop you are using. Such is the flexibility of Linux and well-written, modular code.

Desktop

Display Manager

notes

GNOME

GDM

GNOME Display Manager

KDE

KDM

KDE Display Manager (up through Fedora 20)

KDE

SDDM

Simple Desktop Display Manager (Fedora 21 and above)

LXDE

LXDM

LXDE Display Manager

XDM

Default X Window System Display Manager

LightDM

Lightweight Display Manage

to get the default display manager you can try :

cat /etc/X11/default-display-manager 
###OR
systemctl status display-manager

installing and switching to lightdm

In this lesson we use CentOS7 which uses gdm display manager by default. Lets switch to lightdm using bellow commands and check it:

yum install -y epel-release 
yum search lightdm
yum install -y lightdm.x86_64 
vim /etc/lightdm/lightdm.conf ### change enabled=true 
systemctl disable gdm.service 
systemctl enable lightdm.service 
reboot

if you reboot the service your system will be crashed.

LightDM

LightDM is a free and open-source X display manager that aims to be lightweight, fast, extensible and multi-desktop.

LightDM is the display manager running in Ubuntu up to version 16.04 LTS. While it has been replaced by GDM in later Ubuntu releases

/etc/lightdm

LightDM configuration is located in /etc/lightdm directory:

[root@centos7-1 ~]# ls -l /etc/lightdm/
total 20
-rw-r--r-- 1 root root   40 Nov 27  2017 keys.conf
-rw-r--r-- 1 root root 7009 Feb 10 01:16 lightdm.conf
drwxr-xr-x 2 root root    6 Nov 27  2017 lightdm.conf.d
-rw-r--r-- 1 root root 1325 Aug  4  2015 lightdm-gtk-greeter.conf
-rw-r--r-- 1 root root  452 Nov 27  2017 users.conf

lets see some confiurations inside /etc/lightdm/lightdm.conf :

...
[Seat:*]

#autologin-user=
#allow-user-switching=true
#allow-guest=true
#greeter-session=example-gtk-gnome
#user-session=default

...

In some distributions (ubuntu )configuration files are located inside lightdm.conf.d directory:

[root@centos7-1 ~]# ls -l /etc/lightdm/lightdm.conf.d/
total 0

changing greeter session:

For instance lets install another greeter session for lightdm and test it

[root@centos7-1 lightdm]# yum search lightdm | grep greeter
lightdm-autologin-greeter.noarch : Autologin greeter using LightDM
slick-greeter.x86_64 : A slick-looking LightDM greeter

[root@centos7-1 lightdm]# yum install -y slick-greeter.x86_64

[root@centos7-1 lightdm]# ls -lrth
total 24K
-rw-r--r-- 1 root root 1.3K Aug  4  2015 lightdm-gtk-greeter.conf
-rw-r--r-- 1 root root  452 Nov 27  2017 users.conf
-rw-r--r-- 1 root root   40 Nov 27  2017 keys.conf
drwxr-xr-x 2 root root    6 Nov 27  2017 lightdm.conf.d
-rw-r--r-- 1 root root 1.2K Dec 29  2017 slick-greeter.conf
-rw-r--r-- 1 root root 6.9K Feb 10 01:16 lightdm.conf

next we need to edit lightdm.conf and change line bellow:

greeter-session=slick-greeter

restart lightdm using systemctl restart lightdm and see the result:

Controlling Display managers

Installing and switching between different Display Managers is pretty easy , as we have seen in CentOS, we can install new DM via yum /apt commands. Next some modifications in configuration files might be needed example /etc/lightdm/lightdm.conf .And finally we should enable previous DM and enable the new one with systemctl enable/disable lightdm commands and reboot.

For disabling Display Manager ang going to text mode it depends on your distribution! We can either use telinit command or set default target via systemctl set-default command.

.

.

.

.

https://developer.ibm.com/tutorials/l-lpic1-106-2/
https://opensource.com/article/16/12/yearbook-best-couple-2016-display-manager-and-window-manager
https://en.wikipedia.org/wiki/LightDM
https://wiki.ubuntu.com/LightDM
lightdm greeter session
slick greeter for lightdm