source: x/dm/gdm.xml@ bbcb12d

12.0 12.1 gimp3 ken/TL2024 ken/tuningfonts lazarus plabs/newcss python3.11 rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/for-12.3 xry111/llvm18 xry111/spidermonkey128
Last change on this file since bbcb12d was 14891a90, checked in by Xi Ruoyao <xry111@…>, 14 months ago

treewide: More "User Notes" clean up

Remove links to pages w/o real contents.

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