LXDM-0.5.0

Introduction to LXDM

The LXDM is a lightweight display manager for the LXDE desktop. It can also be used as an alternative to GNOME's GDM or KDE's KDM.

This package is known to build and work properly using an LFS-7.6 systemd platform.

Package Information

LXDM Dependencies

Required

GTK+-2.24.24 ISO Codes-3.56 and librsvg-2.40.3 (runtime, for default theme background)

Recommended

Optional

GTK+-3.12.2

User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/lxdm

Installation of LXDM

The following fixes are needed.

cat > pam/lxdm << "EOF" &&
#%PAM-1.0
auth       substack     system-auth
auth       optional     pam_gnome_keyring.so
account    include      system-account
session    optional     pam_systemd.so
session    optional     pam_keyinit.so force revoke
session    include      system-auth
session    optional     pam_gnome_keyring.so auto_start
EOF

sed -i 's:sysconfig/i18n:profile.d/i18n.sh:g' data/lxdm.in &&
sed -i 's:/etc/xprofile:/etc/profile:g' data/Xsession &&
sed -i 's/^bg/#&/' data/lxdm.conf.in

Install LXDM by running the following commands:

./configure --prefix=/usr \
--sysconfdir=/etc         \
--with-pam                \
--disable-consolekit      \
--with-systemdsystemunitdir=/lib/systemd/system &&
make

This package does not come with a test suite.

Now, as the root user:

make install

Command Explanations

cat > pam/lxdm << "EOF" ...: Replace default /etc/pam.d/lxdm by another one appropriate for BLFS.

sed -i ... data/lxdm.conf.in: Fix the background to the default one.

sed -i ... data/Xsession: Source /etc/profile, instead of other file, according to BLFS standard.

sed -i ... data/lxdm.in: Fix greeter's locale for BLFS specification.

--with-pam: This option enables use of pam authentication.

--disable-consolekit: This option disables the use of consolekit as it is not used on a systemd system.

--with-systemdsystemunitdir=/lib/systemd/system: This option ensures that the systemd unit file gets installed in the correct location.

Configuring LXDM

Config Files

/etc/lxdm/lxdm.conf

Configuration Information

The LXDM daemon is configured using the /etc/lxdm/lxdm.conf file. Within this file you can set a default session by uncommenting the line: session=/usr/bin/startlxde and replacing startlxde with your session of choice. For GNOME session=/usr/bin/gnome-session. For OPENBOX session=/usr/bin/openbox-session and for XFCE session=/usr/bin/startxfce4.

It is also possible to set the preferred session on a per-user basis by editing the ~/.dmrc file for each user and adding:


        [Desktop]
        Session=xfce

To prevent the possibility of lxdm not cleanly logging out a users session add the following to the /etc/lxdm/PostLogout as the root user:

cat > /etc/lxdm/PostLogout << "EOF"
# Terminate current user session
/bin/loginctl terminate-session $XDG_SESSION_ID

# Restart lxdm
/bin/systemctl restart lxdm.service
EOF

Systemd Units

To start the LXDM daemon at boot, enable the previously installed systemd unit by running the following command as the root user:

systemctl enable lxdm

Contents

Installed Programs: lxdm-config, lxdm and lxdm-binary.
Installed Libraries: None.
Installed Directories: /etc/lxdm, /etc/pam.d, and /usr/share/lxdm.

Short Descriptions

lxdm

Is a wrapper script for calling lxdm-binary.

Last updated on 2014-08-31 16:03:10 +1200