source: x/dm/lightdm.xml@ edbc176

11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18 xry111/xf86-video-removal
Last change on this file since edbc176 was edbc176, checked in by Thomas Trepl <thomas@…>, 15 months ago

A few tags (mostly on xfce)

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