source: x/dm/lightdm.xml@ 01997ec8

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 01997ec8 was 01997ec8, checked in by Thomas Trepl (Moody) <thomas@…>, 3 years ago

Tags

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