1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
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-46;/gdm-&gdm-version;.tar.xz">
|
---|
8 | <!ENTITY gdm-download-ftp " ">
|
---|
9 | <!ENTITY gdm-md5sum "1d92ec4dd0643907fa135056aee18066">
|
---|
10 | <!ENTITY gdm-size "912 KB">
|
---|
11 | <!ENTITY gdm-buildsize "37 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 | &lfs122_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 | </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 &&
|
---|
117 | useradd -c "GDM Daemon Owner" -d /var/lib/gdm -u 21 \
|
---|
118 | -g gdm -s /bin/false gdm &&
|
---|
119 | passwd -ql gdm</userinput></screen>
|
---|
120 |
|
---|
121 | <!--
|
---|
122 | <para revision="sysv">
|
---|
123 | First, adapt GDM to build without systemd present:
|
---|
124 | </para>
|
---|
125 |
|
---|
126 | <screen revision="sysv"><userinput remap="pre">sed -i -r '/(^| )systemd_dep/d' meson.build</userinput></screen>
|
---|
127 | -->
|
---|
128 |
|
---|
129 | <para>
|
---|
130 | Install <application>GDM</application> by running the following
|
---|
131 | commands:
|
---|
132 | </para>
|
---|
133 |
|
---|
134 | <screen revision="sysv"><userinput>sed -e 's@systemd@elogind@' \
|
---|
135 | -e '/elogind/isession required pam_loginuid.so' \
|
---|
136 | -i data/pam-lfs/gdm-launch-environment.pam &&
|
---|
137 |
|
---|
138 | mkdir build &&
|
---|
139 | cd build &&
|
---|
140 |
|
---|
141 | meson setup .. \
|
---|
142 | --prefix=/usr \
|
---|
143 | --buildtype=release \
|
---|
144 | -D gdm-xsession=true \
|
---|
145 | -D run-dir=/run/gdm \
|
---|
146 | -D logind-provider=elogind \
|
---|
147 | -D systemd-journal=false \
|
---|
148 | -D systemdsystemunitdir=no \
|
---|
149 | -D systemduserunitdir=no &&
|
---|
150 | ninja</userinput></screen>
|
---|
151 |
|
---|
152 | <screen revision="systemd"><userinput>mkdir build &&
|
---|
153 | cd build &&
|
---|
154 |
|
---|
155 | meson setup .. \
|
---|
156 | --prefix=/usr \
|
---|
157 | --buildtype=release \
|
---|
158 | -D gdm-xsession=true \
|
---|
159 | -D run-dir=/run/gdm &&
|
---|
160 | ninja</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"><userinput>ninja install</userinput></screen>
|
---|
171 |
|
---|
172 | </sect2>
|
---|
173 |
|
---|
174 | <sect2 role="commands">
|
---|
175 | <title>Command Explanations</title>
|
---|
176 |
|
---|
177 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
178 | href="../../xincludes/meson-buildtype-release.xml"/>
|
---|
179 |
|
---|
180 | <para>
|
---|
181 | <option>-D initial-vt=7</option>: Use this switch
|
---|
182 | to make <application>GDM</application> start on VT7
|
---|
183 | instead of the first free VT.
|
---|
184 | </para>
|
---|
185 |
|
---|
186 | <para>
|
---|
187 | <option>-D default-pam-config=lfs</option>: Use this
|
---|
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 |
|
---|
194 | <para>
|
---|
195 | <parameter>-D gdm-xsession=true</parameter>: This enables the
|
---|
196 | installation of the <application>GDM</application> Xsession file.
|
---|
197 | </para>
|
---|
198 |
|
---|
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 | <para>
|
---|
231 | On some systems with NVIDIA GPUs, GDM will hide Wayland sessions by
|
---|
232 | default. This is often done to prevent users from encountering problems
|
---|
233 | with buggy drivers, which can result in system lockups, application
|
---|
234 | crashes, power management problems, and graphics slowdowns. If you have
|
---|
235 | an NVIDIA GPU and still want to try running Wayland sessions anyway,
|
---|
236 | execute the following command as the &root; user:
|
---|
237 | </para>
|
---|
238 |
|
---|
239 | <screen role="nodump"><userinput>ln -s /dev/null /etc/udev/rules.d/61-gdm.rules</userinput></screen>
|
---|
240 |
|
---|
241 | </sect3>
|
---|
242 |
|
---|
243 | <sect3 id="gdm-init">
|
---|
244 | <title><phrase revision="sysv">Boot Script</phrase>
|
---|
245 | <phrase revision="systemd">Systemd Unit</phrase></title>
|
---|
246 |
|
---|
247 | <indexterm zone="gdm gdm-init">
|
---|
248 | <primary sortas="f-gdm">gdm</primary>
|
---|
249 | </indexterm>
|
---|
250 |
|
---|
251 | <para revision="sysv">
|
---|
252 | To start <command>gdm</command> automatically when the system is
|
---|
253 | switched to runlevel 5, install the
|
---|
254 | <filename>/etc/rc.d/init.d/xdm</filename> script and the
|
---|
255 | <filename>/etc/sysconfig/xdm</filename> configuration file
|
---|
256 | included in the <xref linkend="bootscripts"/> package
|
---|
257 | and adjust <filename>/etc/inittab</filename> by running
|
---|
258 | as the <systemitem class="username">root</systemitem> user:
|
---|
259 | </para>
|
---|
260 |
|
---|
261 | <screen role="root" revision="sysv"><userinput>make install-gdm</userinput></screen>
|
---|
262 |
|
---|
263 | <para revision="sysv">
|
---|
264 | In order to permanently set the default runlevel to 5, starting the
|
---|
265 | <command>gdm</command> greeter screen automatically, you can modify
|
---|
266 | <filename>/etc/inittab</filename>. As the <systemitem
|
---|
267 | class="username">root</systemitem> user:
|
---|
268 | </para>
|
---|
269 |
|
---|
270 | <screen role="root" revision="sysv"><userinput>sed /initdefault/s/3/5/ -i /etc/inittab</userinput></screen>
|
---|
271 |
|
---|
272 | <para revision="systemd">
|
---|
273 | To start the <command>gdm</command> daemon at boot, enable
|
---|
274 | the previously installed systemd unit by running the following command
|
---|
275 | as the <systemitem class="username">root</systemitem> user:
|
---|
276 | </para>
|
---|
277 |
|
---|
278 | <screen role="root" revision="systemd"><userinput>systemctl enable gdm</userinput></screen>
|
---|
279 |
|
---|
280 | <!-- [pierre October 2020] I don't understand why this is here: power
|
---|
281 | management works perfectly well
|
---|
282 | <para revision="sysv">
|
---|
283 | You should also disable default elogind power management:
|
---|
284 | </para>
|
---|
285 |
|
---|
286 | <screen role="root" revision="sysv"><userinput>cat >> /etc/elogind/logind.conf << "EOF"
|
---|
287 | <literal>AllowSuspend=no
|
---|
288 | AllowHibernation=no</literal>
|
---|
289 | EOF</userinput></screen>
|
---|
290 | -->
|
---|
291 |
|
---|
292 | </sect3>
|
---|
293 |
|
---|
294 | <sect3 id="gdm-auto-suspend">
|
---|
295 | <title>Configuring GDM Auto-Suspend</title>
|
---|
296 |
|
---|
297 | <para>
|
---|
298 | GDM will suspend the system when the greeter screen has been running
|
---|
299 | for a while without any interactive input. If you want to disable
|
---|
300 | auto-suspending for any reason (for example if the system is hosting
|
---|
301 | some services besides functioning as a desktop system), as the
|
---|
302 | &root; user, issue:
|
---|
303 | </para>
|
---|
304 |
|
---|
305 | <screen role='nodump'><userinput>su gdm -s /bin/bash \
|
---|
306 | -c "dbus-run-session \
|
---|
307 | gsettings set org.gnome.settings-daemon.plugins.power \
|
---|
308 | sleep-inactive-ac-type \
|
---|
309 | nothing"</userinput></screen>
|
---|
310 | </sect3>
|
---|
311 |
|
---|
312 | </sect2>
|
---|
313 |
|
---|
314 | <sect2 role="content">
|
---|
315 | <title>Contents</title>
|
---|
316 |
|
---|
317 | <segmentedlist>
|
---|
318 | <segtitle>Installed Programs</segtitle>
|
---|
319 | <segtitle>Installed Libraries</segtitle>
|
---|
320 | <segtitle>Installed Directories</segtitle>
|
---|
321 |
|
---|
322 | <seglistitem>
|
---|
323 | <seg>
|
---|
324 | gdm, gdmflexiserver, and gdm-screenshot
|
---|
325 | </seg>
|
---|
326 | <seg>
|
---|
327 | libgdm.so and pam_gdm.so (PAM Module)
|
---|
328 | </seg>
|
---|
329 | <seg>
|
---|
330 | /etc/gdm,
|
---|
331 | /usr/include/gdm,
|
---|
332 | /usr/share/gdm, and
|
---|
333 | /usr/share/help/*/gdm
|
---|
334 | <!-- seems those directories are not created at install, but at
|
---|
335 | runtime
|
---|
336 | /var/cache/gdm,
|
---|
337 | /var/lib/gdm,
|
---|
338 | /var/log/gdm, and
|
---|
339 | /var/run/gdm-->
|
---|
340 | </seg>
|
---|
341 | </seglistitem>
|
---|
342 | </segmentedlist>
|
---|
343 |
|
---|
344 | <variablelist>
|
---|
345 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
346 | <?dbfo list-presentation="list"?>
|
---|
347 | <?dbhtml list-presentation="table"?>
|
---|
348 |
|
---|
349 | <varlistentry id="gdm-prog">
|
---|
350 | <term><command>gdm</command></term>
|
---|
351 | <listitem>
|
---|
352 | <para>
|
---|
353 | is a login prompt for <application>GNOME</application>
|
---|
354 | </para>
|
---|
355 | <indexterm zone="gdm gdm-prog">
|
---|
356 | <primary sortas="b-gdm">gdm</primary>
|
---|
357 | </indexterm>
|
---|
358 | </listitem>
|
---|
359 | </varlistentry>
|
---|
360 |
|
---|
361 | <varlistentry id="gdm-screenshot">
|
---|
362 | <term><command>gdm-screenshot</command></term>
|
---|
363 | <listitem>
|
---|
364 | <para>
|
---|
365 | is a screenshot tool for <application>GDM</application>
|
---|
366 | </para>
|
---|
367 | <indexterm zone="gdm gdm-screenshot">
|
---|
368 | <primary sortas="b-gdm-screenshot">gdm-screenshot</primary>
|
---|
369 | </indexterm>
|
---|
370 | </listitem>
|
---|
371 | </varlistentry>
|
---|
372 |
|
---|
373 | </variablelist>
|
---|
374 |
|
---|
375 | </sect2>
|
---|
376 |
|
---|
377 | </sect1>
|
---|