source: x/dm/lightdm.xml@ 52250565

10.1 11.0 11.1 11.2 11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 52250565 was 52250565, checked in by Pierre Labastie <pieere@…>, 4 years ago

Various clean-up and modifications to the dm pages in view of the recent
change to the bootscripts.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@23788 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 14.3 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<!-- lightdm -->
8 <!ENTITY lightdm-download-http "https://github.com/CanonicalLtd/lightdm/releases/download/&lightdm-version;/lightdm-&lightdm-version;.tar.xz">
9 <!ENTITY lightdm-download-ftp " ">
10 <!ENTITY lightdm-md5sum "c566ea595f2b81e68684be9f8dbcbb42">
11 <!ENTITY lightdm-size "500 KB">
12 <!ENTITY lightdm-buildsize "21 MB">
13 <!ENTITY lightdm-time "0.2 SBU ">
14
15<!-- lightdm-gtk-greeter -->
16 <!ENTITY lightdm-gtk-greeter-download-http "https://launchpad.net/lightdm-gtk-greeter/2.0/&lightdm-gtk-greeter-version;/+download/lightdm-gtk-greeter-&lightdm-gtk-greeter-version;.tar.gz">
17 <!ENTITY lightdm-gtk-greeter-download-ftp " ">
18 <!ENTITY lightdm-gtk-greeter-md5sum "36dc961f14cc3b0baef3ddb1c494eb16">
19 <!ENTITY lightdm-gtk-greeter-size "564 KB">
20 <!ENTITY lightdm-gtk-greeter-buildsize "5.0 MB">
21 <!ENTITY lightdm-gtk-greeter-time "less than 0.1 SBU ">
22]>
23
24<sect1 id="lightdm" xreflabel="lightdm-&lightdm-version;">
25 <?dbhtml filename="lightdm.html"?>
26
27 <sect1info>
28 <othername>$LastChangedBy$</othername>
29 <date>$Date$</date>
30 </sect1info>
31
32 <title>lightdm-&lightdm-version;</title>
33
34 <indexterm zone="lightdm">
35 <primary sortas="a-lightdm">lightdm</primary>
36 </indexterm>
37
38 <sect2 role="package">
39 <title>Introduction to Lightdm</title>
40
41 <para>
42 The <application>lightdm</application> package contains a lightweight
43 display manager based upon GTK.
44 </para>
45
46 &lfs10_checked;
47
48 <bridgehead renderas="sect3">Lightdm Package Information</bridgehead>
49 <itemizedlist spacing="compact">
50 <listitem>
51 <para>
52 Download (HTTP): <ulink url="&lightdm-download-http;"/>
53 </para>
54 </listitem>
55 <listitem>
56 <para>
57 Download (FTP): <ulink url="&lightdm-download-ftp;"/>
58 </para>
59 </listitem>
60 <listitem>
61 <para>
62 Download MD5 sum: &lightdm-md5sum;
63 </para>
64 </listitem>
65 <listitem>
66 <para>
67 Download size: &lightdm-size;
68 </para>
69 </listitem>
70 <listitem>
71 <para>
72 Estimated disk space required: &lightdm-buildsize;
73 </para>
74 </listitem>
75 <listitem>
76 <para>
77 Estimated build time: &lightdm-time;
78 </para>
79 </listitem>
80 </itemizedlist>
81
82 <bridgehead renderas="sect3">Additional download</bridgehead>
83
84 <note>
85 <para>
86 The greeter is a program to present a graphical login screen. There
87 are several alternative greeters, but the gtk+ package is the reference
88 implementation. For a list of other greeters, see <ulink
89 url="https://en.wikipedia.org/wiki/LightDM"/>.
90 </para>
91 </note>
92
93 <itemizedlist spacing="compact">
94 <listitem>
95 <para>
96 Download (HTTP): <ulink url="&lightdm-gtk-greeter-download-http;"/>
97 </para>
98 </listitem>
99 <listitem>
100 <para>
101 Download (FTP): <ulink url="&lightdm-gtk-greeter-download-ftp;"/>
102 </para>
103 </listitem>
104 <listitem>
105 <para>
106 Download MD5 sum: &lightdm-gtk-greeter-md5sum;
107 </para>
108 </listitem>
109 <listitem>
110 <para>
111 Download size: &lightdm-gtk-greeter-size;
112 </para>
113 </listitem>
114 <listitem>
115 <para>
116 Estimated disk space required: &lightdm-gtk-greeter-buildsize;
117 </para>
118 </listitem>
119 <listitem>
120 <para>
121 Estimated build time: &lightdm-gtk-greeter-time;
122 </para>
123 </listitem>
124 </itemizedlist>
125
126 <bridgehead renderas="sect3">Lightdm Dependencies</bridgehead>
127
128 <bridgehead renderas="sect4">Required</bridgehead>
129 <para role="required">
130 <xref linkend="exo"/> (for the greeter),
131<!-- required by exo <xref linkend="gtk3"/>, -->
132 <xref linkend="libgcrypt"/>,
133 <xref linkend="itstool"/>,
134 <xref linkend="linux-pam"/>, and
135 <xref linkend="pcre"/>
136 </para>
137
138 <bridgehead renderas="sect4">Recommended</bridgehead>
139 <para role="recommended">
140 <xref linkend="gobject-introspection"/>,
141 <xref linkend="libxklavier"/>, and
142 <xref linkend="vala"/>
143 </para>
144
145 <bridgehead renderas="sect4">Optional</bridgehead>
146 <para role="optional">
147 <xref role="runtime" linkend="accountsservice"/> (run time),
148 <xref linkend="at-spi2-core"/>,
149 <xref linkend="gtk-doc"/>,
150 <xref linkend="qt5"/>,
151 <ulink url="https://launchpad.net/ido">libido</ulink>, and
152 <ulink url="https://launchpad.net/libindicator">libindicator</ulink>
153
154 </para>
155
156 <para condition="html" role="usernotes">User Notes:
157 <ulink url="&blfs-wiki;/lightdm"/>
158 </para>
159 </sect2>
160
161 <sect2 role="installation">
162 <title>Installation of Lightdm</title>
163
164 <para>
165 First, create a dedicated user and group to take
166 control of the <command>lightdm</command> daemon after it is
167 started. Issue the following commands as the
168 <systemitem class="username">root</systemitem> user:
169 </para>
170
171<screen role="root"><userinput>groupadd -g 65 lightdm &amp;&amp;
172useradd -c "Lightdm Daemon" \
173 -d /var/lib/lightdm \
174 -u 65 -g lightdm \
175 -s /bin/false lightdm</userinput></screen>
176
177 <para revision="sysv">
178 Then change the <application>Linux-PAM</application> configuration files
179 so that <application>elogind</application> is used:
180 </para>
181
182<screen revision="sysv"><userinput>sed -i s/systemd/elogind/ data/pam/*</userinput></screen>
183
184 <para>
185 Install <application>lightdm</application> by running the following
186 commands:
187 </para>
188
189<screen><userinput>./configure \
190 --prefix=/usr \
191 --libexecdir=/usr/lib/lightdm \
192 --localstatedir=/var \
193 --sbindir=/usr/bin \
194 --sysconfdir=/etc \
195 --disable-static \
196 --disable-tests \
197 --with-greeter-user=lightdm \
198 --with-greeter-session=lightdm-gtk-greeter \
199 --docdir=/usr/share/doc/lightdm-&lightdm-version; &amp;&amp;
200make</userinput></screen>
201
202 <para>
203 This package does not come with a test suite.
204 </para>
205
206 <para>
207 Now, as the <systemitem class="username">root</systemitem> user:
208 </para>
209
210<screen role="root"><userinput>make install &amp;&amp;
211cp tests/src/lightdm-session /usr/bin &amp;&amp;
212sed -i '1 s/sh/bash --login/' /usr/bin/lightdm-session &amp;&amp;
213rm -rf /etc/init &amp;&amp;
214install -v -dm755 -o lightdm -g lightdm /var/lib/lightdm &amp;&amp;
215install -v -dm755 -o lightdm -g lightdm /var/lib/lightdm-data &amp;&amp;
216install -v -dm755 -o lightdm -g lightdm /var/cache/lightdm &amp;&amp;
217install -v -dm770 -o lightdm -g lightdm /var/log/lightdm</userinput></screen>
218
219 <para>
220 Now build the greeter:
221 </para>
222
223<screen><userinput>tar -xf ../lightdm-gtk-greeter-&lightdm-gtk-greeter-version;.tar.gz &amp;&amp;
224cd lightdm-gtk-greeter-&lightdm-gtk-greeter-version; &amp;&amp;
225
226./configure \
227 --prefix=/usr \
228 --libexecdir=/usr/lib/lightdm \
229 --sbindir=/usr/bin \
230 --sysconfdir=/etc \
231 --with-libxklavier \
232 --enable-kill-on-sigterm \
233 --disable-libido \
234 --disable-libindicator \
235 --disable-static \
236 --docdir=/usr/share/doc/lightdm-gtk-greeter-&lightdm-gtk-greeter-version; &amp;&amp;
237
238make</userinput></screen>
239
240 <para>
241 Now, as the <systemitem class="username">root</systemitem> user:
242 </para>
243
244<screen role="root"><userinput>make install</userinput></screen>
245
246 </sect2>
247
248 <sect2 role="commands">
249 <title>Command Explanations</title>
250 <para>
251
252 <command>sed ... /usr/bin/lightdm-session</command>:
253 This command ensures that the initial login via the greeter sources
254 /etc/profile and ~/.bash_profile. Without this, commands that depend on
255 different environment variables may not work as expected.
256 </para>
257<!--
258 <para>
259 <parameter>ITSTOOL=/bin/true</parameter>: although
260 <xref linkend="itstool"/> is not needed in a normal build,
261 <command>configure</command> throws an error if it is not found on the
262 system. This parameter prevents the error.
263 </para>
264
265 <para>
266 <parameter>CFLAGS=...</parameter>: those two switches ensures some
267 warnings are not treated as errors.
268 </para>
269
270 <para>
271 <parameter>HAVE_EXO_CSOURCE=yes</parameter>: although
272 <command>exo-csource</command> is not needed in a normal build,
273 <command>configure</command> throws an error if it is not found on the
274 system. This parameter prevents the error.
275 </para>
276-->
277 </sect2>
278
279 <sect2 role="configuration">
280 <title>Configuring lightdm</title>
281
282 <sect3 id="lightdm-config">
283 <title>Config Files</title>
284
285 <para>
286 /etc/lightdm/{lightdm,users,keys}.conf
287 </para>
288
289 <indexterm zone="lightdm lightdm-config">
290 <primary sortas="e-etc-lightdm-lightdm.conf">/etc/lightdm/lightdm.conf</primary>
291 </indexterm>
292
293 <indexterm zone="lightdm lightdm-config">
294 <primary sortas="e-users.conf">/etc/lightdm/users.conf</primary>
295 </indexterm>
296
297 <indexterm zone="lightdm lightdm-config">
298 <primary sortas="e-keys.conf">/etc/lightdm/keys.conf</primary>
299 </indexterm>
300
301 <indexterm zone="lightdm lightdm-config">
302 <primary sortas="e-lightdm-gtk-greeter.conf">
303 /etc/lightdm/lightdm-gtk-greeter.conf</primary>
304 </indexterm>
305
306 </sect3>
307
308 <sect3 id="lightdm-bootscript">
309 <title><phrase revision="sysv">Boot Script</phrase>
310 <phrase revision="systemd">Systemd Unit</phrase></title>
311
312 <indexterm zone="lightdm lightdm-bootscript">
313 <primary sortas="f-lightdm">lightdm</primary>
314 </indexterm>
315
316 <para revision="sysv">
317 To start <command>lightdm</command> automatically when the system is
318 switched to runlevel 5, install the
319 <filename>/etc/rc.d/init.d/xdm</filename> script and the
320 <filename>/etc/sysconfig/xdm</filename> configuration file
321 included in the <xref linkend="bootscripts"/> package
322 and adjust <filename>/etc/inittab</filename> by running
323 as the <systemitem class="username">root</systemitem> user:
324 </para>
325
326<screen role="root" revision="sysv"><userinput>make install-lightdm</userinput></screen>
327
328 <para revision="systemd">
329 Install and enable the systemd unit. From the
330 <xref linkend="systemd-units"/> package:
331 </para>
332
333<screen role="root" revision="systemd"><userinput>make install-lightdm &amp;&amp;
334systemctl enable lightdm</userinput></screen>
335
336 </sect3>
337
338 <sect3 id="lightdm-init" revision="sysv">
339 <title>Starting lightdm</title>
340
341 <para>
342 The <command>lightdm</command> greeter can be started from the
343 command line as the <systemitem class="username">root</systemitem>
344 user:
345 </para>
346
347<screen role="root"><userinput>telinit 5</userinput></screen>
348
349 <para>
350 Alternatively the runlevel can be permanently set to 5, starting the
351 <command>lightdm</command> greeter screen automatically, by modifying
352 <filename>/etc/inittab</filename>. As the <systemitem
353 class="username">root</systemitem> user:
354 </para>
355
356<screen role="root"><userinput>cp -v /etc/inittab{,-orig} &amp;&amp;
357sed -i '/initdefault/ s/3/5/' /etc/inittab</userinput></screen>
358
359 </sect3>
360
361 <sect3 id="lightdm-sessions">
362 <title>Available Sessions</title>
363
364 <para>
365 The greeter offers a list of available sessions,
366 depending on the Window Managers and Desktop Environments installed. The
367 list includes sessions which have a corresponding
368 <filename>.desktop</filename> file installed under
369 <filename class="directory">/usr/share/xsessions</filename>. Most of the
370 Window Managers and Desktop Environments automatically provide those
371 files, but if necessary, you may include a custom one.
372 </para>
373
374 </sect3>
375
376 </sect2>
377
378 <sect2 role="content">
379 <title>Contents</title>
380
381 <segmentedlist>
382 <segtitle>Installed Programs</segtitle>
383 <segtitle>Installed Libraries</segtitle>
384 <segtitle>Installed Directories</segtitle>
385
386 <seglistitem>
387 <seg>
388 dm-tool,
389 lightdm, and
390 lightdm-gtk-greeter
391 </seg>
392 <seg>
393 liblightdm-gobject-1.so
394 </seg>
395 <seg>
396 /etc/lightdm,
397 /etc/apparmor.d,
398 /usr/lib/lightdm,
399 /usr/include/lightdm-gobject-1,
400 /usr/share/help/C/lightdm
401 /usr/share/gtk-doc/html/lightdm-gobject-1,
402 /usr/share/doc/lightdm-gtk-greeter-&lightdm-gtk-greeter-version;,
403 /var/lib/lightdm,
404 /var/lib/lightdm-data,
405 /var/cache/lightdm, and
406 /var/log/lightdm
407 </seg>
408 </seglistitem>
409 </segmentedlist>
410
411 <variablelist>
412 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
413 <?dbfo list-presentation="list"?>
414 <?dbhtml list-presentation="table"?>
415
416 <varlistentry id="lightdm-prog">
417 <term><command>lightdm</command></term>
418 <listitem>
419 <para>
420 is a display and login manager.
421 </para>
422 <indexterm zone="lightdm lightdm-prog">
423 <primary sortas="b-lightdm">lightdm</primary>
424 </indexterm>
425 </listitem>
426 </varlistentry>
427
428 <varlistentry id="lightdm-gtk-greeter">
429 <term><command>lightdm-gtk-greeter</command></term>
430 <listitem>
431 <para>
432 is an auxiliary process that displays the greeter,
433 a graphical user interface that performs user
434 authentication and initiates the selected window manager
435 or display environment.
436 </para>
437 <indexterm zone="lightdm lightdm-gtk-greeter">
438 <primary sortas="b-lightdm-gtk-greeter">lightdm-gtk-greeter</primary>
439 </indexterm>
440 </listitem>
441 </varlistentry>
442
443 </variablelist>
444
445 </sect2>
446
447</sect1>
Note: See TracBrowser for help on using the repository browser.