lightdm-1.32.0

Lightdm の概要

lightdm は GTK に基づいて構築されている、軽量なディスプレイマネージャーです。

[注記]

注記

LFS や依存パッケージが本ブックに示す最新安定バージョンでなかった場合には、BLFS 開発版においては、パッケージのビルドや処理実行が適切に行われないことがあります。

Lightdm パッケージ情報

追加のダウンロード

[注記]

注記

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.

Lightdm の依存パッケージ

必須

Exo-4.18.0 (for the greeter), libgcrypt-1.10.3, itstool-2.0.7, Linux-PAM-1.5.3, and Xorg-Server-21.1.10 (Runtime)

推奨

任意

AccountsService-23.13.9 (run time), at-spi2-core-2.50.0, GTK-Doc-1.33.2, (Qt-5.15.11 または qt-alternate-5.15.11), libido, libindicator

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/*

以下のコマンドを実行して lightdm をビルドします。

./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.32.0 &&
make

このパッケージにテストスイートはありません。

root ユーザーになって以下を実行します。

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

次に greeter をビルドします。

tar -xf ../lightdm-gtk-greeter-2.0.8.tar.gz &&
cd lightdm-gtk-greeter-2.0.8 &&

./configure --prefix=/usr                 \
            --libexecdir=/usr/lib/lightdm \
            --sbindir=/usr/bin            \
            --sysconfdir=/etc             \
            --with-libxklavier            \
            --enable-kill-on-sigterm      \
            --disable-libido              \
            --disable-libindicator        \
            --disable-static              \
            --disable-maintainer-mode     \
            --docdir=/usr/share/doc/lightdm-gtk-greeter-2.0.8 &&
make

root ユーザーになって以下を実行します。

make install
[注記]

注記

If you installed Xorg in /opt, you will need to create a symbolic link so lightdm can find the Xorg server. As the root user:

ln -sf /opt/xorg/bin/Xorg /usr/bin/X

コマンド説明

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.

lightdm の設定

設定ファイル

/etc/lightdm/{lightdm,users,keys}.conf

ブートスクリプト

To start lightdm automatically when the system is switched to runlevel 5, install the /etc/rc.d/init.d/xdm script and the /etc/sysconfig/xdm configuration file included in the blfs-bootscripts-20231119 package and adjust /etc/inittab by running as the root user:

make install-lightdm

Starting lightdm

The lightdm greeter can be started from the command line as the root user:

telinit 5

Available Sessions

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.

パッケージ構成

インストールプログラム: dm-tool, lightdm, lightdm-gtk-greeter
インストールライブラリ: liblightdm-gobject-1.so
インストールディレクトリ: /etc/lightdm, /etc/apparmor.d, /usr/lib/lightdm, /usr/include/lightdm-gobject-1, /usr/share/help/C/lightdm /usr/share/gtk-doc/html/lightdm-gobject-1, /usr/share/doc/lightdm-gtk-greeter-2.0.8, /var/lib/lightdm, /var/lib/lightdm-data, /var/cache/lightdm, /var/log/lightdm

概略説明

lightdm

is a display and login manager

lightdm-gtk-greeter

is an auxiliary process that displays the greeter, a graphical user interface that performs user authentication and initiates the selected window manager or display environment