source: x/dm/gdm.xml@ 359633c

12.0 12.1 12.2 gimp3 kea ken/TL2024 ken/tuningfonts lazarus lxqt plabs/newcss python3.11 rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/for-12.3 xry111/llvm18 xry111/spidermonkey128 xry111/xf86-video-removal
Last change on this file since 359633c was bb93f8f1, checked in by Xi Ruoyao <xry111@…>, 15 months ago

gdm: Clean up dependencies

dconf is needed for non-DESTDIR install.

gtk3 is not directly used, but through libcanberra.

libdaemon is not used at all (I can't even find any Git history about it
in the upstream repo).

itstool is mentioned by some .po files but it seems the package actually
uses gettext instead of itstool. The NEWS mentions "switching from
intltool to gettext" so it seems itstool has never been really used at
all, too.

iso-codes seems not used. It was introduced for a language chooser
dialog 15 years ago (!) but the dialog is no more.

  • Property mode set to 100644
File size: 10.6 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!ENTITY gdm-download-http "&gnome-download-http;/gdm/&gnome-44;/gdm-&gdm-version;.tar.xz">
8 <!ENTITY gdm-download-ftp "&gnome-download-ftp;/gdm/&gnome-44;/gdm-&gdm-version;.tar.xz">
9 <!ENTITY gdm-md5sum "8b857cf6510cc038538399aaaeaa0dff">
10 <!ENTITY gdm-size "836 KB">
11 <!ENTITY gdm-buildsize "33 MB">
12 <!ENTITY gdm-time "0.2 SBU">
13]>
14
15<sect1 id="gdm" xreflabel="GDM-&gdm-version;">
16 <?dbhtml filename="gdm.html"?>
17
18
19 <title>GDM-&gdm-version;</title>
20
21 <indexterm zone="gdm">
22 <primary sortas="a-GDM">GDM</primary>
23 </indexterm>
24
25 <sect2 role="package">
26 <title>Introduction to GDM</title>
27
28 <para>
29 <application>GDM</application> is a system service that is
30 responsible for providing graphical logins and managing local
31 and remote displays.
32 </para>
33
34 &lfs113_checked;
35
36 <bridgehead renderas="sect3">Package Information</bridgehead>
37 <itemizedlist spacing="compact">
38 <listitem>
39 <para>
40 Download (HTTP): <ulink url="&gdm-download-http;"/>
41 </para>
42 </listitem>
43 <listitem>
44 <para>
45 Download (FTP): <ulink url="&gdm-download-ftp;"/>
46 </para>
47 </listitem>
48 <listitem>
49 <para>
50 Download MD5 sum: &gdm-md5sum;
51 </para>
52 </listitem>
53 <listitem>
54 <para>
55 Download size: &gdm-size;
56 </para>
57 </listitem>
58 <listitem>
59 <para>
60 Estimated disk space required: &gdm-buildsize;
61 </para>
62 </listitem>
63 <listitem>
64 <para>
65 Estimated build time: &gdm-time;
66 </para>
67 </listitem>
68 </itemizedlist>
69 <!--
70 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
71 <itemizedlist spacing="compact">
72 <listitem>
73 <para>
74 Required patch:
75 <ulink url="&patch-root;/gdm-&gdm-version;-security_fix-1.patch"/>
76 </para>
77 </listitem>
78 </itemizedlist>
79 -->
80 <bridgehead renderas="sect3">GDM Dependencies</bridgehead>
81
82 <bridgehead renderas="sect4">Required</bridgehead>
83 <para role="required">
84 <xref linkend="accountsservice"/>,
85 <xref linkend="dconf"/>,
86 <xref linkend="libcanberra"/> (built after
87 <xref role="nodep" linkend="gtk3"/>), and
88 <xref linkend="linux-pam"/>
89 </para>
90
91 <bridgehead renderas="sect4">Optional</bridgehead>
92 <para role="optional">
93 <xref linkend="keyutils"/>
94 </para>
95
96 <bridgehead renderas="sect4">Runtime Dependencies</bridgehead>
97 <para role="required">
98 <xref role="runtime" linkend="gnome-session"/>,
99 <xref role="runtime" linkend="gnome-shell"/>, and
100 <phrase revision="sysv"><xref role="runtime" linkend="elogind"/></phrase>
101 <phrase revision="systemd"><xref role="runtime" linkend="systemd"/></phrase>
102 </para>
103
104 <para condition="html" role="usernotes">User Notes:
105 <ulink url="&blfs-wiki;/gdm"/>
106 </para>
107 </sect2>
108
109 <sect2 role="installation">
110 <title>Installation of GDM</title>
111
112 <para>
113 It is recommended to have a dedicated user and group to take
114 control of the <command>gdm</command> daemon after it is
115 started. Issue the following commands as the
116 <systemitem class="username">root</systemitem> user:
117 </para>
118
119<screen role="root"><userinput>groupadd -g 21 gdm &amp;&amp;
120useradd -c "GDM Daemon Owner" -d /var/lib/gdm -u 21 \
121 -g gdm -s /bin/false gdm &amp;&amp;
122passwd -ql gdm</userinput></screen>
123
124 <para revision="sysv">
125 First, adapt GDM to build without systemd present:
126 </para>
127
128<screen revision="sysv"><userinput remap="pre">sed -i -r '/(^| )systemd_dep/d' meson.build</userinput></screen>
129
130 <para>
131 Install <application>GDM</application> by running the following
132 commands:
133 </para>
134
135<screen revision="sysv"><userinput>sed -e 's@systemd@elogind@' \
136 -e '/elogind/isession required pam_loginuid.so' \
137 -i data/pam-lfs/gdm-launch-environment.pam &amp;&amp;
138
139mkdir build &amp;&amp;
140cd build &amp;&amp;
141
142meson setup .. \
143 --prefix=/usr \
144 --buildtype=release \
145 -Dgdm-xsession=true \
146 -Drun-dir=/run/gdm \
147 -Dsystemd-journal=false \
148 -Dsystemdsystemunitdir=/tmp \
149 -Dsystemduserunitdir=/tmp &amp;&amp;
150ninja</userinput></screen>
151
152<screen revision="systemd"><userinput>mkdir build &amp;&amp;
153cd build &amp;&amp;
154
155meson setup .. \
156 --prefix=/usr \
157 --buildtype=release \
158 -Dgdm-xsession=true \
159 -Drun-dir=/run/gdm &amp;&amp;
160ninja</userinput></screen>
161
162 <para>
163 This package does not come with a usable test suite.
164 </para>
165
166 <para>
167 Now, as the <systemitem class="username">root</systemitem> user:
168 </para>
169
170<screen role="root" revision="sysv"><userinput>ninja install &amp;&amp;
171rm -rv /tmp/*.{service,target.d}</userinput></screen>
172
173<screen role="root" revision="systemd"><userinput>ninja install</userinput></screen>
174
175 </sect2>
176
177 <sect2 role="commands">
178 <title>Command Explanations</title>
179
180 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
181 href="../../xincludes/meson-buildtype-release.xml"/>
182
183 <para>
184 <option>-Dinitial-vt=7</option>: Use this switch
185 to make <application>GDM</application> start on VT7
186 instead of the first free VT.
187 </para>
188
189 <para>
190 <option>-Ddefault-pam-config=lfs</option>: Use this
191 switch if you did not create the
192 <filename>/etc/lfs-release</filename> file or distribution
193 auto detection will fail and you will be unable to use
194 <application>GDM</application>.
195 </para>
196
197 <para>
198 <parameter>-Dgdm-xsession=true</parameter>: This enables the
199 installation of the <application>GDM</application> Xsession file.
200 </para>
201
202 </sect2>
203
204 <sect2 role="configuration">
205 <title>Configuring GDM</title>
206
207 <sect3 id="gdm-config">
208 <title>Config Files</title>
209
210 <para>
211 <filename>/etc/gdm/custom.conf</filename>
212 </para>
213
214 <indexterm zone="gdm gdm-config">
215 <primary sortas="e-etc-gdm-custom.conf">/etc/gdm/custom.conf</primary>
216 </indexterm>
217
218 </sect3>
219
220 <sect3>
221 <title>Configuration Information</title>
222
223 <para>
224 The GDM daemon is configured using the
225 <filename>/etc/gdm/custom.conf</filename> file. Default values
226 are stored in GSettings in the <filename>gdm.schemas</filename>
227 file. It is recommended that end-users modify the
228 <filename>/etc/gdm/custom.conf</filename> file because the schemas
229 file may be overwritten when the user updates their system to have
230 a newer version of <application>GDM</application>.
231 </para>
232
233 </sect3>
234
235 <sect3 id="gdm-init">
236 <title><phrase revision="sysv">Boot Script</phrase>
237 <phrase revision="systemd">Systemd Unit</phrase></title>
238
239 <indexterm zone="gdm gdm-init">
240 <primary sortas="f-gdm">gdm</primary>
241 </indexterm>
242
243 <para revision="sysv">
244 To start <command>gdm</command> automatically when the system is
245 switched to runlevel 5, install the
246 <filename>/etc/rc.d/init.d/xdm</filename> script and the
247 <filename>/etc/sysconfig/xdm</filename> configuration file
248 included in the <xref linkend="bootscripts"/> package
249 and adjust <filename>/etc/inittab</filename> by running
250 as the <systemitem class="username">root</systemitem> user:
251 </para>
252
253<screen role="root" revision="sysv"><userinput>make install-gdm</userinput></screen>
254
255 <para revision="sysv">
256 In order to permanently set the default runlevel to 5, starting the
257 <command>gdm</command> greeter screen automatically, you can modify
258 <filename>/etc/inittab</filename>. As the <systemitem
259 class="username">root</systemitem> user:
260 </para>
261
262<screen role="root" revision="sysv"><userinput>sed /initdefault/s/3/5/ -i /etc/inittab</userinput></screen>
263
264 <para revision="systemd">
265 To start the <command>gdm</command> daemon at boot, enable
266 the previously installed systemd unit by running the following command
267 as the <systemitem class="username">root</systemitem> user:
268 </para>
269
270<screen role="root" revision="systemd"><userinput>systemctl enable gdm</userinput></screen>
271
272<!-- [pierre October 2020] I don't understand why this is here: power
273 management works perfectly well
274 <para revision="sysv">
275 You should also disable default elogind power management:
276 </para>
277
278<screen role="root" revision="sysv"><userinput>cat &gt;&gt; /etc/elogind/logind.conf &lt;&lt; "EOF"
279<literal>AllowSuspend=no
280AllowHibernation=no</literal>
281EOF</userinput></screen>
282-->
283
284 </sect3>
285
286 </sect2>
287
288 <sect2 role="content">
289 <title>Contents</title>
290
291 <segmentedlist>
292 <segtitle>Installed Programs</segtitle>
293 <segtitle>Installed Libraries</segtitle>
294 <segtitle>Installed Directories</segtitle>
295
296 <seglistitem>
297 <seg>
298 gdm, gdmflexiserver, and gdm-screenshot
299 </seg>
300 <seg>
301 libgdm.so and pam_gdm.so (PAM Module)
302 </seg>
303 <seg>
304 /etc/gdm,
305 /usr/include/gdm,
306 /usr/share/gdm, and
307 /usr/share/help/*/gdm
308<!-- seems those diretories are not created at install, but at
309 runtime
310 /var/cache/gdm,
311 /var/lib/gdm,
312 /var/log/gdm, and
313 /var/run/gdm-->
314 </seg>
315 </seglistitem>
316 </segmentedlist>
317
318 <variablelist>
319 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
320 <?dbfo list-presentation="list"?>
321 <?dbhtml list-presentation="table"?>
322
323 <varlistentry id="gdm-prog">
324 <term><command>gdm</command></term>
325 <listitem>
326 <para>
327 is a login prompt for <application>GNOME</application>
328 </para>
329 <indexterm zone="gdm gdm-prog">
330 <primary sortas="b-gdm">gdm</primary>
331 </indexterm>
332 </listitem>
333 </varlistentry>
334
335 <varlistentry id="gdm-screenshot">
336 <term><command>gdm-screenshot</command></term>
337 <listitem>
338 <para>
339 is a screenshot tool for <application>GDM</application>
340 </para>
341 <indexterm zone="gdm gdm-screenshot">
342 <primary sortas="b-gdm-screenshot">gdm-screenshot</primary>
343 </indexterm>
344 </listitem>
345 </varlistentry>
346
347 </variablelist>
348
349 </sect2>
350
351</sect1>
Note: See TracBrowser for help on using the repository browser.