GDM is a system service that is responsible for providing graphical logins and managing local and remote displays.
LFS や依存パッケージが本ブックに示す最新安定バージョンでなかった場合には、BLFS 開発版においては、パッケージのビルドや処理実行が適切に行われないことがあります。
ダウンロード (HTTP): https://download.gnome.org/sources/gdm/45/gdm-45.0.1.tar.xz
ダウンロード MD5 sum: 4912429c0231a95fedd086d1ac8f54ea
ダウンロードサイズ: 836 KB
必要ディスク容量: 34 MB
概算ビルド時間: 0.3 SBU
AccountsService-23.13.9, DConf-0.40.0, libcanberra-0.30 (built after GTK+-3.24.38), Linux-PAM-1.5.3
It is recommended to have a dedicated user and group to take
control of the gdm
daemon after it is started. Issue the following commands as the
root
user:
groupadd -g 21 gdm && useradd -c "GDM Daemon Owner" -d /var/lib/gdm -u 21 \ -g gdm -s /bin/false gdm && passwd -ql gdm
一般ユーザーになって、以下のコマンドを実行し GDM をビルドします。
sed -e 's@systemd@elogind@' \ -e '/elogind/isession required pam_loginuid.so' \ -i data/pam-lfs/gdm-launch-environment.pam && mkdir build && cd build && meson setup .. \ --prefix=/usr \ --buildtype=release \ -Dgdm-xsession=true \ -Drun-dir=/run/gdm \ -Dlogind-provider=elogind \ -Dsystemd-journal=false \ -Dsystemdsystemunitdir=no \ -Dsystemduserunitdir=no && ninja
このパッケージに利用可能なテストスイートはありません。
root
ユーザーとなって以下を実行します。
ninja install
--buildtype=release
:
本パッケージの安定版リリース向けに適したビルドタイプを指定します。
デフォルトにしていると、最適化されていないバイナリを生成する場合があるためです。
-Dinitial-vt=7
: Use this switch to make
GDM start on VT7 instead of the
first free VT.
-Ddefault-pam-config=lfs
: Use this
switch if you did not create the /etc/lfs-release
file or distribution auto
detection will fail and you will be unable to use GDM.
-Dgdm-xsession=true
: This
enables the installation of the GDM Xsession file.
The GDM daemon is configured using the /etc/gdm/custom.conf
file. Default values are
stored in GSettings in the gdm.schemas
file. It is recommended that
end-users modify the /etc/gdm/custom.conf
file because the schemas
file may be overwritten when the user updates their system to
have a newer version of GDM.
On some systems with NVIDIA GPUs, GDM will hide Wayland sessions
by default. This is often done to prevent users from encountering
problems with buggy drivers, which can result in system lockups,
application crashes, power management problems, and graphics
slowdowns. If you have an NVIDIA GPU and still want to try
running Wayland sessions anyway, execute the following command as
the root
user:
ln -s /dev/null /etc/udev/rules.d/61-gdm.rules
To start gdm
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-gdm
In order to permanently set the default runlevel to 5, starting
the gdm greeter
screen automatically, you can modify /etc/inittab
. As the root
user:
sed /initdefault/s/3/5/ -i /etc/inittab