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 | &lfs120_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"/>,
|
---|
130 | <xref linkend="linux-pam"/>, and
|
---|
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 | <xref role='runtime' linkend='xorg-server'/> (Runtime)
|
---|
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 | &qt5-deps;,
|
---|
150 | <ulink url="https://launchpad.net/ido">libido</ulink>, and
|
---|
151 | <ulink url="https://launchpad.net/libindicator">libindicator</ulink>
|
---|
152 |
|
---|
153 | </para>
|
---|
154 |
|
---|
155 | </sect2>
|
---|
156 |
|
---|
157 | <sect2 role="installation">
|
---|
158 | <title>Installation of Lightdm</title>
|
---|
159 |
|
---|
160 | <para>
|
---|
161 | First, create a dedicated user and group to take
|
---|
162 | control of the <command>lightdm</command> daemon after it is
|
---|
163 | started. Issue the following commands as the
|
---|
164 | <systemitem class="username">root</systemitem> user:
|
---|
165 | </para>
|
---|
166 |
|
---|
167 | <screen role="root"><userinput>groupadd -g 65 lightdm &&
|
---|
168 | useradd -c "Lightdm Daemon" \
|
---|
169 | -d /var/lib/lightdm \
|
---|
170 | -u 65 -g lightdm \
|
---|
171 | -s /bin/false lightdm</userinput></screen>
|
---|
172 |
|
---|
173 | <para revision="sysv">
|
---|
174 | Then change the <application>Linux-PAM</application> configuration files
|
---|
175 | so that <application>elogind</application> is used:
|
---|
176 | </para>
|
---|
177 |
|
---|
178 | <screen revision="sysv"><userinput>sed -i s/systemd/elogind/ data/pam/*</userinput></screen>
|
---|
179 |
|
---|
180 | <para>
|
---|
181 | Install <application>lightdm</application> by running the following
|
---|
182 | commands:
|
---|
183 | </para>
|
---|
184 |
|
---|
185 | <screen><userinput>./configure --prefix=/usr \
|
---|
186 | --libexecdir=/usr/lib/lightdm \
|
---|
187 | --localstatedir=/var \
|
---|
188 | --sbindir=/usr/bin \
|
---|
189 | --sysconfdir=/etc \
|
---|
190 | --disable-static \
|
---|
191 | --disable-tests \
|
---|
192 | --with-greeter-user=lightdm \
|
---|
193 | --with-greeter-session=lightdm-gtk-greeter \
|
---|
194 | --docdir=/usr/share/doc/lightdm-&lightdm-version; &&
|
---|
195 | make</userinput></screen>
|
---|
196 |
|
---|
197 | <para>
|
---|
198 | This package does not come with a test suite.
|
---|
199 | </para>
|
---|
200 |
|
---|
201 | <para>
|
---|
202 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
203 | </para>
|
---|
204 |
|
---|
205 | <screen role="root"><userinput>make install &&
|
---|
206 | cp tests/src/lightdm-session /usr/bin &&
|
---|
207 | sed -i '1 s/sh/bash --login/' /usr/bin/lightdm-session &&
|
---|
208 | rm -rf /etc/init &&
|
---|
209 | install -v -dm755 -o lightdm -g lightdm /var/lib/lightdm &&
|
---|
210 | install -v -dm755 -o lightdm -g lightdm /var/lib/lightdm-data &&
|
---|
211 | install -v -dm755 -o lightdm -g lightdm /var/cache/lightdm &&
|
---|
212 | install -v -dm770 -o lightdm -g lightdm /var/log/lightdm</userinput></screen>
|
---|
213 |
|
---|
214 | <para>
|
---|
215 | Now build the greeter:
|
---|
216 | </para>
|
---|
217 |
|
---|
218 | <screen><userinput>tar -xf ../lightdm-gtk-greeter-&lightdm-gtk-greeter-version;.tar.gz &&
|
---|
219 | cd lightdm-gtk-greeter-&lightdm-gtk-greeter-version; &&
|
---|
220 |
|
---|
221 | ./configure --prefix=/usr \
|
---|
222 | --libexecdir=/usr/lib/lightdm \
|
---|
223 | --sbindir=/usr/bin \
|
---|
224 | --sysconfdir=/etc \
|
---|
225 | --with-libxklavier \
|
---|
226 | --enable-kill-on-sigterm \
|
---|
227 | --disable-libido \
|
---|
228 | --disable-libindicator \
|
---|
229 | --disable-static \
|
---|
230 | --disable-maintainer-mode \
|
---|
231 | --docdir=/usr/share/doc/lightdm-gtk-greeter-&lightdm-gtk-greeter-version; &&
|
---|
232 | make</userinput></screen>
|
---|
233 |
|
---|
234 | <para>
|
---|
235 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
236 | </para>
|
---|
237 |
|
---|
238 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
239 |
|
---|
240 | <note>
|
---|
241 | <para>
|
---|
242 | If you installed Xorg in /opt, you will need to create a symbolic
|
---|
243 | link so lightdm can find the Xorg server. As the
|
---|
244 | <systemitem class="username">root</systemitem> user:
|
---|
245 | </para>
|
---|
246 |
|
---|
247 | <screen role="nodump"><userinput>ln -sf /opt/xorg/bin/Xorg /usr/bin/X</userinput></screen>
|
---|
248 | </note>
|
---|
249 |
|
---|
250 |
|
---|
251 | </sect2>
|
---|
252 |
|
---|
253 | <sect2 role="commands">
|
---|
254 | <title>Command Explanations</title>
|
---|
255 | <para>
|
---|
256 |
|
---|
257 | <command>sed ... /usr/bin/lightdm-session</command>:
|
---|
258 | This command ensures that the initial login via the greeter sources
|
---|
259 | /etc/profile and ~/.bash_profile. Without this, commands that depend on
|
---|
260 | different environment variables may not work as expected.
|
---|
261 | </para>
|
---|
262 | <!--
|
---|
263 | <para>
|
---|
264 | <parameter>ITSTOOL=/bin/true</parameter>: although
|
---|
265 | <xref linkend="itstool"/> is not needed in a normal build,
|
---|
266 | <command>configure</command> throws an error if it is not found on the
|
---|
267 | system. This parameter prevents the error.
|
---|
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 the <filename>lightdm.service</filename> unit included in
|
---|
330 | the <xref linkend="systemd-units"/> package:
|
---|
331 | </para>
|
---|
332 |
|
---|
333 | <screen role="root" revision="systemd"><userinput>make install-lightdm</userinput></screen>
|
---|
334 |
|
---|
335 | </sect3>
|
---|
336 | <sect3 id="lightdm-init" revision="sysv">
|
---|
337 | <title>Starting lightdm</title>
|
---|
338 |
|
---|
339 | <para>
|
---|
340 | The <command>lightdm</command> greeter can be started from the
|
---|
341 | command line as the <systemitem class="username">root</systemitem>
|
---|
342 | user:
|
---|
343 | </para>
|
---|
344 |
|
---|
345 | <screen role="nodump"><userinput>telinit 5</userinput></screen>
|
---|
346 |
|
---|
347 | <!-- "make install-lightdm already does this already
|
---|
348 | <para>
|
---|
349 | Alternatively the runlevel can be permanently set to 5, starting the
|
---|
350 | <command>lightdm</command> greeter screen automatically, by modifying
|
---|
351 | <filename>/etc/inittab</filename>. As the <systemitem
|
---|
352 | class="username">root</systemitem> user:
|
---|
353 | </para>
|
---|
354 |
|
---|
355 | <screen role="root"><userinput>cp -v /etc/inittab{,-orig} &&
|
---|
356 | sed -i '/initdefault/ s/3/5/' /etc/inittab</userinput></screen>
|
---|
357 | -->
|
---|
358 | </sect3>
|
---|
359 |
|
---|
360 | <sect3 id="lightdm-sessions">
|
---|
361 | <title>Available Sessions</title>
|
---|
362 |
|
---|
363 | <para>
|
---|
364 | The greeter offers a list of available sessions,
|
---|
365 | depending on the Window Managers and Desktop Environments installed. The
|
---|
366 | list includes sessions which have a corresponding
|
---|
367 | <filename>.desktop</filename> file installed under
|
---|
368 | <filename class="directory">/usr/share/xsessions</filename>. Most of the
|
---|
369 | Window Managers and Desktop Environments automatically provide those
|
---|
370 | files, but if necessary, you may include a custom one.
|
---|
371 | </para>
|
---|
372 |
|
---|
373 | </sect3>
|
---|
374 |
|
---|
375 | </sect2>
|
---|
376 |
|
---|
377 | <sect2 role="content">
|
---|
378 | <title>Contents</title>
|
---|
379 |
|
---|
380 | <segmentedlist>
|
---|
381 | <segtitle>Installed Programs</segtitle>
|
---|
382 | <segtitle>Installed Libraries</segtitle>
|
---|
383 | <segtitle>Installed Directories</segtitle>
|
---|
384 |
|
---|
385 | <seglistitem>
|
---|
386 | <seg>
|
---|
387 | dm-tool,
|
---|
388 | lightdm, and
|
---|
389 | lightdm-gtk-greeter
|
---|
390 | </seg>
|
---|
391 | <seg>
|
---|
392 | liblightdm-gobject-1.so
|
---|
393 | </seg>
|
---|
394 | <seg>
|
---|
395 | /etc/lightdm,
|
---|
396 | /etc/apparmor.d,
|
---|
397 | /usr/lib/lightdm,
|
---|
398 | /usr/include/lightdm-gobject-1,
|
---|
399 | /usr/share/help/C/lightdm
|
---|
400 | /usr/share/gtk-doc/html/lightdm-gobject-1,
|
---|
401 | /usr/share/doc/lightdm-gtk-greeter-&lightdm-gtk-greeter-version;,
|
---|
402 | /var/lib/lightdm,
|
---|
403 | /var/lib/lightdm-data,
|
---|
404 | /var/cache/lightdm, and
|
---|
405 | /var/log/lightdm
|
---|
406 | </seg>
|
---|
407 | </seglistitem>
|
---|
408 | </segmentedlist>
|
---|
409 |
|
---|
410 | <variablelist>
|
---|
411 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
412 | <?dbfo list-presentation="list"?>
|
---|
413 | <?dbhtml list-presentation="table"?>
|
---|
414 |
|
---|
415 | <varlistentry id="lightdm-prog">
|
---|
416 | <term><command>lightdm</command></term>
|
---|
417 | <listitem>
|
---|
418 | <para>
|
---|
419 | is a display and login manager
|
---|
420 | </para>
|
---|
421 | <indexterm zone="lightdm lightdm-prog">
|
---|
422 | <primary sortas="b-lightdm">lightdm</primary>
|
---|
423 | </indexterm>
|
---|
424 | </listitem>
|
---|
425 | </varlistentry>
|
---|
426 |
|
---|
427 | <varlistentry id="lightdm-gtk-greeter">
|
---|
428 | <term><command>lightdm-gtk-greeter</command></term>
|
---|
429 | <listitem>
|
---|
430 | <para>
|
---|
431 | is an auxiliary process that displays the greeter,
|
---|
432 | a graphical user interface that performs user
|
---|
433 | authentication and initiates the selected window manager
|
---|
434 | or display environment
|
---|
435 | </para>
|
---|
436 | <indexterm zone="lightdm lightdm-gtk-greeter">
|
---|
437 | <primary sortas="b-lightdm-gtk-greeter">lightdm-gtk-greeter</primary>
|
---|
438 | </indexterm>
|
---|
439 | </listitem>
|
---|
440 | </varlistentry>
|
---|
441 |
|
---|
442 | </variablelist>
|
---|
443 |
|
---|
444 | </sect2>
|
---|
445 |
|
---|
446 | </sect1>
|
---|