source: general/sysutils/elogind.xml@ b7e2ce4

11.0 11.1 11.2 lazarus plabs/python-mods qt5new trunk upgradedb xry111/intltool xry111/soup3 xry111/test-20220226
Last change on this file since b7e2ce4 was b7e2ce4, checked in by Bruce Dubbs <bdubbs@…>, 19 months ago

Add --buildtype=release for all packages that need it through Chapter 13.

  • Property mode set to 100644
File size: 11.8 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 <!ENTITY elogind-download-http "https://github.com/elogind/elogind/archive/v&elogind-version;/elogind-&elogind-version;.tar.gz">
8 <!ENTITY elogind-download-ftp " ">
9 <!ENTITY elogind-md5sum "32ab2201281f14738d9c045f3669c14d">
10 <!ENTITY elogind-size "1.5 MB">
11 <!ENTITY elogind-buildsize "41 MB (with tests)">
12 <!ENTITY elogind-time "0.2 SBU (with parallelism=4)">
13]>
14
15<sect1 id="elogind" revision="sysv" xreflabel="elogind-&elogind-version;">
16 <?dbhtml filename="elogind.html"?>
17
18 <sect1info>
19 <date>$Date$</date>
20 </sect1info>
21
22 <title>elogind-&elogind-version;</title>
23
24 <indexterm zone="elogind">
25 <primary sortas="a-elogind">elogind</primary>
26 </indexterm>
27
28 <sect2 role="package">
29 <title>Introduction to elogind</title>
30
31 <para>
32 <application>elogind</application> is the
33 <application>systemd</application> project's "logind", extracted out to
34 be a standalone daemon. It integrates with <xref linkend="linux-pam"/>
35 to know the set of users that are logged in to a system and whether they
36 are logged in graphically, on the console, or remotely.
37 <application>Elogind</application> exposes this information via the
38 standard org.freedesktop.login1 <application>D-Bus</application>
39 interface, as well as through the file system using systemd's standard
40 <filename class="directory">/run/systemd</filename> layout.
41 </para>
42
43 &lfs101_checked;
44
45 <bridgehead renderas="sect3">Package Information</bridgehead>
46 <itemizedlist spacing="compact">
47 <listitem>
48 <para>
49 Download (HTTP): <ulink url="&elogind-download-http;"/>
50 </para>
51 </listitem>
52 <listitem>
53 <para>
54 Download (FTP): <ulink url="&elogind-download-ftp;"/>
55 </para>
56 </listitem>
57 <listitem>
58 <para>
59 Download MD5 sum: &elogind-md5sum;
60 </para>
61 </listitem>
62 <listitem>
63 <para>
64 Download size: &elogind-size;
65 </para>
66 </listitem>
67 <listitem>
68 <para>
69 Estimated disk space required: &elogind-buildsize;
70 </para>
71 </listitem>
72 <listitem>
73 <para>
74 Estimated build time: &elogind-time;
75 </para>
76 </listitem>
77 </itemizedlist>
78
79 <bridgehead renderas="sect3">elogind Dependencies</bridgehead>
80
81 <bridgehead renderas="sect4">Required</bridgehead>
82 <para role="required">
83 <xref role="first" linkend="dbus"/>
84 </para>
85
86 <bridgehead renderas="sect4">Recommended</bridgehead>
87 <para role="recommended">
88 <xref linkend="DocBook"/>,
89 <xref linkend="docbook-xsl"/>, and
90 <xref linkend="libxslt"/> (all three to build the man pages),
91 <xref linkend="linux-pam"/>, and
92 <xref linkend="polkit"/> (circular, build elogind first, then polkit,
93 then elogind again)
94 </para>
95
96 <bridgehead renderas="sect4">Optional</bridgehead>
97 <para role="optional">
98 For the tests:
99 <xref linkend="lxml"/>,
100 <xref linkend="gobject-introspection"/>,
101 <xref linkend="zsh"/>,
102 <xref linkend="valgrind"/>,
103 <ulink url="https://github.com/linux-audit/audit-userspace">
104 audit-userspace</ulink>,
105 <ulink url="https://github.com/scop/bash-completion">
106 bash-completion</ulink>,
107 <ulink url="https://mirrors.edge.kernel.org/pub/linux/utils/kernel/kexec/">
108 kexec</ulink>, and
109 <ulink url="http://www.selinuxproject.org/page/Main_Page">
110 SELinux</ulink>
111 </para>
112
113 <para condition="html" role="usernotes">User Notes:
114 <ulink url="&blfs-wiki;/elogind"/>
115 </para>
116 </sect2>
117
118 <sect2 role="kernel" id="elogind-kernel">
119 <title>Kernel Configuration</title>
120
121 <para>
122 Enable the following options in the kernel configuration and recompile the
123 kernel if necessary:
124 </para>
125
126<!-- Spaces are significant in <screen> sections -->
127<screen><literal>General setup ---&gt;
128 [*] Control Group support [CONFIG_CGROUPS]
129File systems ---&gt;
130 [*] Inotify support for userspace [CONFIG_INOTIFY_USER]
131 Pseudo filesystems ---&gt;
132 [*] Tmpfs POSIX Access Control Lists [CONFIG_TMPFS_POSIX_ACL]</literal></screen>
133
134 <para>
135 In addition, some tests need the userspace cryptographic kernel API, which
136 is enabled with:
137 </para>
138
139<screen><literal>-*- Cryptographic API ---&gt; [CONFIG_CRYPTO]
140 &lt;M/*&gt; Userspace cryptographic algorithm configuration [CONFIG_CRYPTO_USER]
141 &lt;M/*&gt; User-space interface for hash algorithms [CONFIG_CRYPTO_USER_API_HASH]</literal></screen>
142
143 <indexterm zone="elogind elogind-kernel">
144 <primary sortas="d-elogind">elogind</primary>
145 </indexterm>
146 </sect2>
147
148 <sect2 role="installation">
149 <title>Installation of elogind</title>
150
151 <para>
152 Install <application>elogind</application> by running the following
153 commands:
154 </para>
155
156<screen><userinput>mkdir build &amp;&amp;
157cd build &amp;&amp;
158
159meson --prefix=/usr \
160 --buildtype=release \
161 -Dcgroup-controller=elogind \
162 -Ddbuspolicydir=/etc/dbus-1/system.d \
163 -Dman=auto \
164 .. &amp;&amp;
165ninja</userinput></screen>
166
167 <para>
168 To test the results, issue: <command>ninja test</command>. A few tests
169 are skipped if not run with <systemitem class="username">root</systemitem>
170 privileges.
171 </para>
172
173 <para>
174 Now, as the <systemitem class="username">root</systemitem> user:
175 </para>
176
177<screen role="root"><userinput>ninja install &amp;&amp;
178ln -sfv libelogind.pc /usr/lib/pkgconfig/libsystemd.pc &amp;&amp;
179ln -sfvn elogind /usr/include/systemd</userinput></screen>
180
181 </sect2>
182
183 <sect2 role="commands">
184 <title>Command Explanations</title>
185
186 <para>
187 <parameter>-Dcgroup-controller=elogind</parameter>: This switch ensures
188 that <application>elogind</application> is selected as the cgroup
189 controller, even if booted with another running cgroup controller.
190 </para>
191
192 <para>
193 <parameter>-Ddbuspolicydir=/etc/dbus-1/system.d</parameter>: This switch
194 sets the location of the <application>D-Bus</application> policy
195 directory.
196 </para>
197
198 <para>
199 <parameter>-Dman=auto</parameter>: The default value of this switch is
200 <emphasis>false</emphasis>. Setting it to <emphasis>auto</emphasis>
201 allows building and installing the man pages if the recommended
202 dependencies are installed.
203 </para>
204
205 <para>
206 <option>-Ddefault-kill-user-processes=false</option>: Configure whether
207 the processes of a user should be killed when the user logs out. The
208 default is <emphasis>true</emphasis>, but this defeats the traditional
209 use of <command>screen</command> or <command>tmux</command>. This can
210 also be changed in the configuration file (see below).
211 </para>
212
213 <para>
214 <command>ln -s ...</command>: These commands install symlinks so that
215 software packages find systemd compatible library and headers.
216 </para>
217
218 </sect2>
219
220 <sect2 role="configuration">
221 <title>Configuring elogind</title>
222
223 <sect3 id="elogind-config">
224 <title>Config File</title>
225 <para>
226 <filename>/etc/elogind/logind.conf</filename>
227 </para>
228
229 <indexterm zone="elogind elogind-config">
230 <primary
231 sortas="e-etc-elogind-logind.conf">/etc/elogind/logind.conf</primary>
232 </indexterm>
233 </sect3>
234
235 <sect3><title>Configuration Information</title>
236
237 <para>
238 The installed file <filename>/etc/elogind/logind.conf</filename>
239 contains all the possible options with their defaults, commented
240 out. You may wish to disable killing user processes when the user logs
241 out, by running, as the <systemitem class="username">root</systemitem>
242 user:
243 </para>
244
245<screen role="root"><userinput>sed -e '/\[Login\]/a KillUserProcesses=no' \
246 -i /etc/elogind/logind.conf</userinput></screen>
247
248 <para>
249 Each user will need to register a user session using
250 <application>Linux-PAM</application> at login. The
251 <filename>/etc/pam.d/system-session</filename> file needs to
252 be modified and a new file needs to be created in order for
253 <command>elogind</command> to work correctly. Run the following
254 commands as the <systemitem class="username">root</systemitem> user:
255 </para>
256
257<screen role="root"><userinput>cat &gt;&gt; /etc/pam.d/system-session &lt;&lt; "EOF" &amp;&amp;
258<literal># Begin elogind addition
259
260session required pam_loginuid.so
261session optional pam_elogind.so
262
263# End elogind addition</literal>
264EOF
265cat &gt; /etc/pam.d/elogind-user &lt;&lt; "EOF"
266<literal># Begin /etc/pam.d/elogind-user
267
268account required pam_access.so
269account include system-account
270
271session required pam_env.so
272session required pam_limits.so
273session required pam_unix.so
274session required pam_loginuid.so
275session optional pam_keyinit.so force revoke
276session optional pam_elogind.so
277
278auth required pam_deny.so
279password required pam_deny.so
280
281# End /etc/pam.d/elogind-user</literal>
282EOF</userinput></screen>
283
284 </sect3>
285 </sect2>
286
287 <sect2 role="content" revision="sysv">
288 <title>Contents</title>
289
290 <segmentedlist>
291 <segtitle>Installed Programs</segtitle>
292 <segtitle>Installed Library</segtitle>
293 <segtitle>Installed Directories</segtitle>
294
295 <seglistitem>
296 <seg>
297 busctl,
298 elogind-inhibit, and
299 loginctl
300 </seg>
301 <seg>
302 libelogind.so
303 </seg>
304 <seg>
305 /lib/elogind,
306 /etc/elogind,
307 /usr/include/elogind, and
308 /usr/share/doc/elogind-&elogind-version;
309 </seg>
310 </seglistitem>
311 </segmentedlist>
312
313 <variablelist>
314 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
315 <?dbfo list-presentation="list"?>
316 <?dbhtml list-presentation="table"?>
317
318 <varlistentry id="busctl">
319 <term><command>busctl</command></term>
320 <listitem>
321 <para>
322 is used to introspect and monitor the D-Bus bus
323 </para>
324 <indexterm zone="elogind busctl">
325 <primary sortas="b-busctl">busctl</primary>
326 </indexterm>
327 </listitem>
328 </varlistentry>
329
330 <varlistentry id="elogind-inhibit">
331 <term><command>elogind-inhibit</command></term>
332 <listitem>
333 <para>
334 is used to execute a program with a shutdown, sleep or idle
335 inhibitor lock taken
336 </para>
337 <indexterm zone="elogind elogind-inhibit">
338 <primary sortas="b-elogind-inhibit">elogind-inhibit</primary>
339 </indexterm>
340 </listitem>
341 </varlistentry>
342
343 <varlistentry id="loginctl">
344 <term><command>loginctl</command></term>
345 <listitem>
346 <para>
347 is used to introspect and control the state of the elogind Login
348 Manager
349 </para>
350 <indexterm zone="elogind loginctl">
351 <primary sortas="b-loginctl">loginctl</primary>
352 </indexterm>
353 </listitem>
354 </varlistentry>
355
356 <varlistentry id="libelogind">
357 <term><filename class="libraryfile">libelogind.so</filename></term>
358 <listitem>
359 <para>
360 is the main elogind utility library
361 </para>
362 <indexterm zone="elogind libelogind">
363 <primary sortas="c-libelogind">libelogind.so</primary>
364 </indexterm>
365 </listitem>
366 </varlistentry>
367
368 </variablelist>
369
370 </sect2>
371
372</sect1>
Note: See TracBrowser for help on using the repository browser.