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.
Download (HTTP): http://distfiles.alpinelinux.org/distfiles/lxdm-0.5.0.tar.xz
Download MD5 sum: a51686720e606ca456d7f56ae4159d1f
Download size: 232 KB
Estimated disk space required: 4.6 MB
Estimated build time: less than 0.1 SBU
GTK+-2.24.24 ISO Codes-3.56 and librsvg-2.40.3 (runtime, for default theme background)
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/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
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.
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
Last updated on 2014-08-31 16:03:10 +1200