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-11.2 platform.
Download (HTTP): https://download.gnome.org/sources/gdm/42/gdm-42.0.tar.xz
Download (FTP): ftp://ftp.acc.umu.se/pub/gnome/sources/gdm/42/gdm-42.0.tar.xz
Download MD5 sum: 8fb99fd6032127fe6f57462c696607e5
Download size: 792 KB
Estimated disk space required: 32 MB
Estimated build time: 0.3 SBU
AccountsService-22.08.8, GTK+-3.24.34, ISO Codes-4.11.0, itstool-2.0.7, libcanberra-0.30, libdaemon-0.14, and Linux-PAM-1.5.2
gnome-session-42.0, gnome-shell-42.4, and Systemd-251
User Notes: https://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
Install GDM by running the following commands:
mkdir build && cd build && meson --prefix=/usr \ --buildtype=release \ -Dgdm-xsession=true .. && ninja
This package does not come with a usable test suite.
Now, as the root
user:
ninja install
--buildtype=release
:
Specify a buildtype suitable for stable releases of the package, as
the default may produce unoptimized binaries.
-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.
It is possible to start GNOME from the command line, rather than using GDM. However, you must still have GDM installed for some portions of the desktop to work. One reason to start from the command line is if you want Wayland support on a system that has the proprietary NVIDIA driver installed, since GDM will not show the Wayland session type on such a system.
To start GNOME using xinit-1.4.1, run the following commands:
cat > ~/.xinitrc << "EOF"
dbus-run-session gnome-session
EOF
startx
Alternatively, to start GNOME with Wayland support, run the following command:
dbus-run-session -- gnome-shell --display-server --wayland