source: general/sysutils/elogind.xml@ bc3bb455

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 9.0 9.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 bc3bb455 was bc3bb455, checked in by Bruce Dubbs <bdubbs@…>, 5 years ago

Clarify order of dbus, elogind, an dxorg libs

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

  • Property mode set to 100644
File size: 9.5 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 "dbfebba271609fb5ea63073e2999466e">
10 <!ENTITY elogind-size "1.3 MB">
11 <!ENTITY elogind-buildsize "47 MB">
12 <!ENTITY elogind-time "0.2 SBU">
13]>
14
15<sect1 id="elogind" revision="sysv" xreflabel="elogind-&elogind-version;">
16 <?dbhtml filename="elogind.html"?>
17
18 <sect1info>
19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
21 </sect1info>
22
23 <title>elogind-&elogind-version;</title>
24
25 <indexterm zone="elogind">
26 <primary sortas="a-elogind">elogind</primary>
27 </indexterm>
28
29 <sect2 role="package">
30 <title>Introduction to elogind</title>
31
32 <para>
33 <application>elogind</application> is the
34 <application>systemd</application> project's "logind", extracted out to
35 be a standalone daemon. It integrates with <xref linkend="linux-pam"/>
36 to know the set of users that are logged in to a system and whether they
37 are logged in graphically, on the console, or remotely.
38 <application>Elogind</application> exposes this information via the
39 standard org.freedesktop.login1 <application>D-Bus</application>
40 interface, as well as through the file system using systemd's standard
41 <filename class="directory">/run/systemd</filename> layout.
42 </para>
43
44 &lfs84_checked;
45
46 <bridgehead renderas="sect3">Package Information</bridgehead>
47 <itemizedlist spacing="compact">
48 <listitem>
49 <para>
50 Download (HTTP): <ulink url="&elogind-download-http;"/>
51 </para>
52 </listitem>
53 <listitem>
54 <para>
55 Download (FTP): <ulink url="&elogind-download-ftp;"/>
56 </para>
57 </listitem>
58 <listitem>
59 <para>
60 Download MD5 sum: &elogind-md5sum;
61 </para>
62 </listitem>
63 <listitem>
64 <para>
65 Download size: &elogind-size;
66 </para>
67 </listitem>
68 <listitem>
69 <para>
70 Estimated disk space required: &elogind-buildsize;
71 </para>
72 </listitem>
73 <listitem>
74 <para>
75 Estimated build time: &elogind-time;
76 </para>
77 </listitem>
78 </itemizedlist>
79
80 <bridgehead renderas="sect3">elogind Dependencies</bridgehead>
81
82 <bridgehead renderas="sect4">Required</bridgehead>
83 <para role="required">
84 <xref role="first" linkend="dbus"/>
85 </para>
86
87 <bridgehead renderas="sect4">Recommended</bridgehead>
88 <para role="recommended">
89 <xref linkend="DocBook"/>,
90 <xref linkend="docbook-xsl"/>, and
91 <xref linkend="libxslt"/> (to build the man pages),
92 <xref linkend="linux-pam"/>, and
93 <xref linkend="polkit" role="runtime"/> (runtime)
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="installation">
119 <title>Installation of elogind</title>
120
121 <para>
122 Install <application>elogind</application> by running the following
123 commands:
124 </para>
125
126<screen><userinput>mkdir build &amp;&amp;
127cd build &amp;&amp;
128
129meson --prefix=/usr \
130 --sysconfdir=/etc \
131 --localstatedir=/var \
132 -Dcgroup-controller=elogind \
133 -Ddbuspolicydir=/etc/dbus-1/system.d \
134 .. &amp;&amp;
135ninja</userinput></screen>
136
137 <para>
138 This package does not come with a test suite.
139 </para>
140
141 <para>
142 Now, as the <systemitem class="username">root</systemitem> user:
143 </para>
144
145<screen role="root"><userinput>ninja install &amp;&amp;
146ln -sfv libelogind.pc /usr/lib/pkgconfig/libsystemd.pc &amp;&amp;
147ln -sfvn elogind /usr/include/systemd</userinput></screen>
148
149 </sect2>
150
151 <sect2 role="commands">
152 <title>Command Explanations</title>
153
154 <para>
155 <parameter>-Dcgroup-controller=elogind</parameter>: This switch ensures
156 that <application>elogind</application> is selected as the cgroup
157 controller, even if booted with another running cgroup controller.
158 </para>
159
160 <para>
161 <parameter>-Ddbuspolicydir=/etc/dbus-1/system.d</parameter>: This switch
162 sets the location of the <application>D-Bus</application> policy
163 directory.
164 </para>
165
166 <para>
167 <command>ln -s ...</command>: These commands install symlinks so that
168 software packages find systemd compatible library and headers.
169 </para>
170
171 </sect2>
172
173 <sect2 role="configuration">
174 <title>Configuring elogind</title>
175
176 <para revision="sysv">
177 To automatically start <command>elogind</command> when the
178 system is rebooted, install the
179 <filename>/etc/rc.d/init.d/mountcgroupfs</filename> and
180 <filename>/etc/rc.d/init.d/elogind</filename> bootscripts from the
181 <xref linkend="bootscripts"/> package.
182 </para>
183
184 <indexterm zone="elogind elogind">
185 <primary sortas="f-elogind">elogind</primary>
186 </indexterm>
187
188<screen role="root"><userinput>make install-elogind</userinput></screen>
189
190 <para>
191 Note that this boot script only starts the system-wide
192 <application>elogind</application> daemon. Each user will also need to
193 register a user session using <application>Linux-PAM</application> at
194 login. The <filename>/etc/pam.d/system-session</filename> file needs to
195 be modified and a new file needs to be created in order for
196 <command>elogind</command> to work correctly. Run the following
197 commands as the <systemitem class="username">root</systemitem> user:
198 </para>
199
200<screen role="root"><userinput>cat &gt;&gt; /etc/pam.d/system-session &lt;&lt; "EOF" &amp;&amp;
201<literal># Begin elogind addition
202
203session required pam_loginuid.so
204session optional pam_elogind.so
205
206# End elogind addition</literal>
207EOF
208cat &gt; /etc/pam.d/elogind-user &lt;&lt; "EOF"
209<literal># Begin /etc/pam.d/elogind-user
210
211account required pam_access.so
212account include system-account
213
214session required pam_env.so
215session required pam_limits.so
216session required pam_unix.so
217session required pam_loginuid.so
218session optional pam_keyinit.so force revoke
219session optional pam_elogind.so
220
221auth required pam_deny.so
222password required pam_deny.so
223
224# End /etc/pam.d/elogind-user</literal>
225EOF</userinput></screen>
226
227 </sect2>
228
229 <sect2 role="content" revision="sysv">
230 <title>Contents</title>
231
232 <segmentedlist>
233 <segtitle>Installed Programs</segtitle>
234 <segtitle>Installed Library</segtitle>
235 <segtitle>Installed Directories</segtitle>
236
237 <seglistitem>
238 <seg>
239 busctl,
240 elogind-inhibit, and
241 loginctl
242 </seg>
243 <seg>
244 libelogind.so
245 </seg>
246 <seg>
247 /etc/elogind,
248 /usr/include/elogind, and
249 /usr/share/doc/elogind-&elogind-version;
250 </seg>
251 </seglistitem>
252 </segmentedlist>
253
254 <variablelist>
255 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
256 <?dbfo list-presentation="list"?>
257 <?dbhtml list-presentation="table"?>
258
259 <varlistentry id="busctl">
260 <term><command>busctl</command></term>
261 <listitem>
262 <para>
263 is used to introspect and monitor the D-Bus bus.
264 </para>
265 <indexterm zone="elogind busctl">
266 <primary sortas="b-busctl">busctl</primary>
267 </indexterm>
268 </listitem>
269 </varlistentry>
270
271 <varlistentry id="elogind-inhibit">
272 <term><command>elogind-inhibit</command></term>
273 <listitem>
274 <para>
275 is used to execute a program with a shutdown, sleep or idle
276 inhibitor lock taken.
277 </para>
278 <indexterm zone="elogind elogind-inhibit">
279 <primary sortas="b-elogind-inhibit">elogind-inhibit</primary>
280 </indexterm>
281 </listitem>
282 </varlistentry>
283
284 <varlistentry id="loginctl">
285 <term><command>loginctl</command></term>
286 <listitem>
287 <para>
288 is used to introspect and control the state of the elogind Login
289 Manager.
290 </para>
291 <indexterm zone="elogind loginctl">
292 <primary sortas="b-loginctl">loginctl</primary>
293 </indexterm>
294 </listitem>
295 </varlistentry>
296
297 <varlistentry id="libelogind">
298 <term><filename class="libraryfile">libelogind.so</filename></term>
299 <listitem>
300 <para>
301 is the main elogind utility library.
302 </para>
303 <indexterm zone="elogind libelogind">
304 <primary sortas="c-libelogind">libelogind.so</primary>
305 </indexterm>
306 </listitem>
307 </varlistentry>
308
309 </variablelist>
310
311 </sect2>
312
313</sect1>
314
Note: See TracBrowser for help on using the repository browser.