The lightdm package contains a lightweight display manager based upon GTK.
This package is known to build and work properly using an LFS-10.0 platform.
Download (HTTP): https://github.com/CanonicalLtd/lightdm/releases/download/1.30.0/lightdm-1.30.0.tar.xz
Download MD5 sum: c566ea595f2b81e68684be9f8dbcbb42
Download size: 500 KB
Estimated disk space required: 21 MB
Estimated build time: 0.2 SBU
The greeter is a program to present a graphical login screen. There are several alternative greeters, but the gtk+ package is the reference implementation. For a list of other greeters, see https://en.wikipedia.org/wiki/LightDM.
Download (HTTP): https://launchpad.net/lightdm-gtk-greeter/2.0/2.0.6/+download/lightdm-gtk-greeter-2.0.6.tar.gz
Download MD5 sum: 36dc961f14cc3b0baef3ddb1c494eb16
Download size: 564 KB
Estimated disk space required: 5.0 MB
Estimated build time: less than 0.1 SBU
Exo-0.12.11 (for the greeter), libgcrypt-1.8.6, itstool-2.0.6, Linux-PAM-1.4.0, and PCRE-8.44
gobject-introspection-1.64.1, libxklavier-5.4, and Vala-0.48.9
AccountsService-0.6.55 (run time), at-spi2-core-2.36.0, GTK-Doc-1.32, Qt-5.15.0, libido, and libindicator
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/lightdm
First, create a dedicated user and group to take control of the
lightdm daemon after
it is started. Issue the following commands as the root
user:
groupadd -g 65 lightdm && useradd -c "Lightdm Daemon" \ -d /var/lib/lightdm \ -u 65 -g lightdm \ -s /bin/false lightdm
Then change the Linux-PAM configuration files so that elogind is used:
sed -i s/systemd/elogind/ data/pam/*
Install lightdm by running the following commands:
./configure \ --prefix=/usr \ --libexecdir=/usr/lib/lightdm \ --localstatedir=/var \ --sbindir=/usr/bin \ --sysconfdir=/etc \ --disable-static \ --disable-tests \ --with-greeter-user=lightdm \ --with-greeter-session=lightdm-gtk-greeter \ --docdir=/usr/share/doc/lightdm-1.30.0 && make
This package does not come with a test suite.
Now, as the root
user:
make install && cp tests/src/lightdm-session /usr/bin && sed -i '1 s/sh/bash --login/' /usr/bin/lightdm-session && rm -rf /etc/init && install -v -dm755 -o lightdm -g lightdm /var/lib/lightdm && install -v -dm755 -o lightdm -g lightdm /var/lib/lightdm-data && install -v -dm755 -o lightdm -g lightdm /var/cache/lightdm && install -v -dm770 -o lightdm -g lightdm /var/log/lightdm
Now build the greeter:
tar -xf ../lightdm-gtk-greeter-2.0.6.tar.gz && cd lightdm-gtk-greeter-2.0.6 && ./configure \ --prefix=/usr \ --libexecdir=/usr/lib/lightdm \ --sbindir=/usr/bin \ --sysconfdir=/etc \ --with-libxklavier \ --enable-kill-on-sigterm \ --disable-libido \ --disable-libindicator \ --disable-static \ --docdir=/usr/share/doc/lightdm-gtk-greeter-2.0.6 && make
Now, as the root
user:
make install
sed ... /usr/bin/lightdm-session: This command ensures that the initial login via the greeter sources /etc/profile and ~/.bash_profile. Without this, commands that depend on different environment variables may not work as expected.
Install the /etc/rc.d/init.d/lightdm
init script from the
blfs-bootscripts-20200818
make install-lightdm
If the lightdm bootscript has been installed, start lightdm by
running, as the root
user:
/etc/rc.d/init.d/lightdm start
By convention, X should be executed at runlevel 5, consequently,
the same is true for lightdm.
However, LFS default runlevel is 3. Changing to runlevel 5, from
a console terminal, as root
user,
starts the lightdm
bootscript, bringing up the greeter screen:
init 5
In order to permanently set the default to 5, starting the
lightdm greeter
screen automatically, modify /etc/inittab
. As the root
user:
cp -v /etc/inittab{,-orig} && sed -i '/initdefault/ s/3/5/' /etc/inittab
The greeter offers a list of available sessions, depending on the
Window Managers and Desktop Environments installed. The list
includes sessions which have a corresponding .desktop
file installed under /usr/share/xsessions
. Most of the Window
Managers and Desktop Environments automatically provide those
files, but if necessary, you may include a custom one.
Last updated on 2020-08-19 02:07:07 -0700