GDM is a system service that is responsible for providing graphical logins and managing local and remote displays.
This package is known to build and work properly using an LFS-10.1 platform.
Download (HTTP): https://download.gnome.org/sources/gdm/40/gdm-40.0.tar.xz
Download (FTP): ftp://ftp.acc.umu.se/pub/gnome/sources/gdm/40/gdm-40.0.tar.xz
Download MD5 sum: 85e6a306f1d0c88c276938a0519d8332
Download size: 784 KB
Estimated disk space required: 35 MB
Estimated build time: 0.1 SBU
AccountsService-0.6.55, GTK+-3.24.28, ISO Codes-4.6.0, itstool-2.0.6, libcanberra-0.30, libdaemon-0.14, and Linux-PAM-1.5.1
gnome-session-3.38.0, gnome-shell-40.0, and elogind-246.10
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/gdm
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
First, adapt GDM to build without systemd present:
sed -i -r '/(^| )systemd_dep/d' meson.build
Install GDM by running the following commands:
sed 's@systemd@elogind@' -i data/pam-lfs/gdm-launch-environment.pam && mkdir build && cd build && meson --prefix=/usr \ -Dplymouth=disabled \ -Dgdm-xsession=true \ -Dpam-mod-dir=/lib/security \ -Dsystemd-journal=false \ -Dsystemdsystemunitdir=/tmp \ -Dsystemduserunitdir=/tmp .. && ninja
This package does not come with a usable test suite.
Now, as the root
user:
ninja install && rm -rv /tmp/*.{service,target.d}
-Dinitial-vt=7
: Use this switch to make
GDM start on VT7 instead of the
first free VT.
-Dplymouth=disabled
: GDM
now explicitly requires plymouth to be installed. Use this switch
to disable this dependency.
-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.
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-20210110 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
Last updated on 2021-04-08 01:16:54 -0500