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 consolekit-download-http "&sources-anduin-http;/c/ConsoleKit-&consolekit-version;.tar.xz">
|
---|
8 | <!ENTITY consolekit-download-ftp " ">
|
---|
9 | <!ENTITY consolekit-md5sum "6aaadf5627d2f7587aa116727e2fc1da">
|
---|
10 | <!ENTITY consolekit-size "356 KB">
|
---|
11 | <!ENTITY consolekit-buildsize "8.0 MB">
|
---|
12 | <!ENTITY consolekit-time "0.3 SBU">
|
---|
13 | ]>
|
---|
14 |
|
---|
15 | <sect1 id="consolekit" xreflabel="ConsoleKit-&consolekit-version;">
|
---|
16 | <?dbhtml filename="consolekit.html"?>
|
---|
17 |
|
---|
18 | <sect1info>
|
---|
19 | <othername>$LastChangedBy$</othername>
|
---|
20 | <date>$Date$</date>
|
---|
21 | </sect1info>
|
---|
22 |
|
---|
23 | <title>ConsoleKit-&consolekit-version;</title>
|
---|
24 |
|
---|
25 | <indexterm zone="consolekit">
|
---|
26 | <primary sortas="a-ConsoleKit">ConsoleKit</primary>
|
---|
27 | </indexterm>
|
---|
28 |
|
---|
29 | <sect2 role="package">
|
---|
30 | <title>Introduction to ConsoleKit</title>
|
---|
31 |
|
---|
32 | <para>
|
---|
33 | The <application>ConsoleKit</application> package is a framework for
|
---|
34 | keeping track of the various users, sessions, and seats present on a system.
|
---|
35 | It provides a mechanism for software to react to changes of any of these
|
---|
36 | items or of any of the metadata associated with them.
|
---|
37 | </para>
|
---|
38 |
|
---|
39 | &lfs77_checked; &gcc5_built;
|
---|
40 |
|
---|
41 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
42 | <itemizedlist spacing="compact">
|
---|
43 | <listitem>
|
---|
44 | <para>
|
---|
45 | Download (HTTP): <ulink url="&consolekit-download-http;"/>
|
---|
46 | </para>
|
---|
47 | </listitem>
|
---|
48 | <listitem>
|
---|
49 | <para>
|
---|
50 | Download (FTP): <ulink url="&consolekit-download-ftp;"/>
|
---|
51 | </para>
|
---|
52 | </listitem>
|
---|
53 | <listitem>
|
---|
54 | <para>
|
---|
55 | Download MD5 sum: &consolekit-md5sum;
|
---|
56 | </para>
|
---|
57 | </listitem>
|
---|
58 | <listitem>
|
---|
59 | <para>
|
---|
60 | Download size: &consolekit-size;
|
---|
61 | </para>
|
---|
62 | </listitem>
|
---|
63 | <listitem>
|
---|
64 | <para>
|
---|
65 | Estimated disk space required: &consolekit-buildsize;
|
---|
66 | </para>
|
---|
67 | </listitem>
|
---|
68 | <listitem>
|
---|
69 | <para>
|
---|
70 | Estimated build time: &consolekit-time;
|
---|
71 | </para>
|
---|
72 | </listitem>
|
---|
73 | </itemizedlist>
|
---|
74 |
|
---|
75 | <bridgehead renderas="sect3">ConsoleKit Dependencies</bridgehead>
|
---|
76 |
|
---|
77 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
78 | <para role="required">
|
---|
79 | <xref linkend="dbus-glib"/> and
|
---|
80 | <xref linkend="xorg7-lib"/>
|
---|
81 | </para>
|
---|
82 |
|
---|
83 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
84 | <para role="recommended">
|
---|
85 | <xref linkend="linux-pam"/> and
|
---|
86 | <xref linkend="polkit"/>
|
---|
87 | </para>
|
---|
88 |
|
---|
89 | <warning>
|
---|
90 | <para>
|
---|
91 | If you intend <emphasis role="strong">NOT</emphasis> to install
|
---|
92 | <application>polkit</application>, you will need to manually edit the
|
---|
93 | ConsoleKit.conf file to lock down the service. Failure to do so may be a
|
---|
94 | huge SECURITY HOLE.
|
---|
95 | </para>
|
---|
96 | </warning>
|
---|
97 |
|
---|
98 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
99 | <para role="optional">
|
---|
100 | <xref linkend="xmlto"/>
|
---|
101 | </para>
|
---|
102 |
|
---|
103 | <para condition="html" role="usernotes">User Notes:
|
---|
104 | <ulink url="&blfs-wiki;/consolekit"/>
|
---|
105 | </para>
|
---|
106 | </sect2>
|
---|
107 |
|
---|
108 | <sect2 role="installation">
|
---|
109 | <title>Installation of ConsoleKit</title>
|
---|
110 |
|
---|
111 | <para>
|
---|
112 | Install <application>ConsoleKit</application> by running the following
|
---|
113 | commands:
|
---|
114 | </para>
|
---|
115 |
|
---|
116 | <screen><userinput>./configure --prefix=/usr \
|
---|
117 | --sysconfdir=/etc \
|
---|
118 | --localstatedir=/var \
|
---|
119 | --enable-udev-acl \
|
---|
120 | --enable-pam-module \
|
---|
121 | --with-systemdsystemunitdir=no &&
|
---|
122 | make</userinput></screen>
|
---|
123 |
|
---|
124 | <para>
|
---|
125 | This package does not come with a test suite.
|
---|
126 | </para>
|
---|
127 |
|
---|
128 | <para>
|
---|
129 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
130 | </para>
|
---|
131 |
|
---|
132 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
133 |
|
---|
134 | </sect2>
|
---|
135 |
|
---|
136 | <sect2 role="commands">
|
---|
137 | <title>Command Explanations</title>
|
---|
138 |
|
---|
139 | <para>
|
---|
140 | <parameter>--enable-udev-acl</parameter>: This switch enables building of
|
---|
141 | the <command>udev-acl</command> tool, which is used to allow normal users
|
---|
142 | to access device nodes normally only accessible to
|
---|
143 | <systemitem class="username">root</systemitem>.
|
---|
144 | </para>
|
---|
145 |
|
---|
146 | <para>
|
---|
147 | <parameter>--enable-pam-module</parameter>: This switch enables building
|
---|
148 | of the <application>ConsoleKit</application>
|
---|
149 | <application>PAM</application> module which is needed for
|
---|
150 | <application>ConsoleKit</application> to work correctly with
|
---|
151 | <application>PAM</application>. Remove if
|
---|
152 | <application>Linux PAM</application> is
|
---|
153 | <emphasis role="strong">NOT</emphasis> installed.
|
---|
154 | </para>
|
---|
155 |
|
---|
156 | <para>
|
---|
157 | <parameter>--with-systemdsystemunitdir=no</parameter>: Disable
|
---|
158 | attempting to build with systemd libraries.
|
---|
159 | </para>
|
---|
160 |
|
---|
161 | <para>
|
---|
162 | <option>--enable-docbook-docs</option>: Use this switch if
|
---|
163 | <application>xmlto</application> is installed and you wish to
|
---|
164 | build the API documentation.
|
---|
165 | </para>
|
---|
166 |
|
---|
167 | </sect2>
|
---|
168 |
|
---|
169 | <sect2 role="configuration">
|
---|
170 | <title>Configuring ConsoleKit</title>
|
---|
171 |
|
---|
172 | <sect3>
|
---|
173 | <title>PAM Module Configuration</title>
|
---|
174 |
|
---|
175 | <para>
|
---|
176 | If you use <application>Linux PAM</application>, it needs to be
|
---|
177 | configured to activate <application>ConsoleKit</application> upon user
|
---|
178 | login. This can be achieved by editing the
|
---|
179 | <filename>/etc/pam.d/system-session</filename> file as the <systemitem
|
---|
180 | class="username">root</systemitem> user:
|
---|
181 | </para>
|
---|
182 |
|
---|
183 | <screen role="root"><userinput>cat >> /etc/pam.d/system-session << "EOF"
|
---|
184 | <literal># Begin ConsoleKit addition
|
---|
185 |
|
---|
186 | session optional pam_loginuid.so
|
---|
187 | session optional pam_ck_connector.so nox11
|
---|
188 |
|
---|
189 | # End ConsoleKit addition</literal>
|
---|
190 | EOF</userinput></screen>
|
---|
191 |
|
---|
192 | <para>
|
---|
193 | You will also need a helper script that creates a file in
|
---|
194 | <filename class="directory">/var/run/console</filename>
|
---|
195 | named as the currently logged in user and that contains the
|
---|
196 | <application>D-Bus</application> address of the session. You
|
---|
197 | can create the script by running the following commands as
|
---|
198 | the <systemitem class="username">root</systemitem> user:
|
---|
199 | </para>
|
---|
200 |
|
---|
201 | <screen role="root"><userinput>cat > /usr/lib/ConsoleKit/run-session.d/pam-foreground-compat.ck << "EOF"
|
---|
202 | #!/bin/sh
|
---|
203 | TAGDIR=/var/run/console
|
---|
204 |
|
---|
205 | [ -n "$CK_SESSION_USER_UID" ] || exit 1
|
---|
206 | [ "$CK_SESSION_IS_LOCAL" = "true" ] || exit 0
|
---|
207 |
|
---|
208 | TAGFILE="$TAGDIR/`getent passwd $CK_SESSION_USER_UID | cut -f 1 -d:`"
|
---|
209 |
|
---|
210 | if [ "$1" = "session_added" ]; then
|
---|
211 | mkdir -p "$TAGDIR"
|
---|
212 | echo "$CK_SESSION_ID" >> "$TAGFILE"
|
---|
213 | fi
|
---|
214 |
|
---|
215 | if [ "$1" = "session_removed" ] && [ -e "$TAGFILE" ]; then
|
---|
216 | sed -i "\%^$CK_SESSION_ID\$%d" "$TAGFILE"
|
---|
217 | [ -s "$TAGFILE" ] || rm -f "$TAGFILE"
|
---|
218 | fi
|
---|
219 | EOF
|
---|
220 | chmod -v 755 /usr/lib/ConsoleKit/run-session.d/pam-foreground-compat.ck</userinput></screen>
|
---|
221 |
|
---|
222 | <para>
|
---|
223 | See /usr/share/doc/ConsoleKit/spec/ConsoleKit.html for more
|
---|
224 | configuration.
|
---|
225 | </para>
|
---|
226 |
|
---|
227 | </sect3>
|
---|
228 |
|
---|
229 | </sect2>
|
---|
230 |
|
---|
231 | <sect2 role="content">
|
---|
232 | <title>Contents</title>
|
---|
233 |
|
---|
234 | <segmentedlist>
|
---|
235 | <segtitle>Installed Programs</segtitle>
|
---|
236 | <segtitle>Installed Libraries</segtitle>
|
---|
237 | <segtitle>Installed Directories</segtitle>
|
---|
238 |
|
---|
239 | <seglistitem>
|
---|
240 | <seg>
|
---|
241 | ck-history, ck-launch-session, ck-list-sessions,
|
---|
242 | ck-log-system-restart, ck-log-system-start,
|
---|
243 | ck-log-system-stop and console-kit-daemon
|
---|
244 | </seg>
|
---|
245 | <seg>
|
---|
246 | libck-connector.so and pam_ck_connector.so
|
---|
247 | </seg>
|
---|
248 | <seg>
|
---|
249 | /etc/ConsoleKit,
|
---|
250 | /usr/include/ConsoleKit,
|
---|
251 | /usr/lib/ConsoleKit,
|
---|
252 | /usr/share/doc/ConsoleKit and
|
---|
253 | /var/log/ConsoleKit
|
---|
254 | </seg>
|
---|
255 | </seglistitem>
|
---|
256 | </segmentedlist>
|
---|
257 |
|
---|
258 | <variablelist>
|
---|
259 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
260 | <?dbfo list-presentation="list"?>
|
---|
261 | <?dbhtml list-presentation="table"?>
|
---|
262 |
|
---|
263 | <!--
|
---|
264 | <varlistentry id="ck-history">
|
---|
265 | <term><command>ck-history</command></term>
|
---|
266 | <listitem>
|
---|
267 | <para>does this .....</para>
|
---|
268 | <indexterm zone="consolekit ck-history">
|
---|
269 | <primary sortas="b-ck-history">ck-history</primary>
|
---|
270 | </indexterm>
|
---|
271 | </listitem>
|
---|
272 | </varlistentry>
|
---|
273 |
|
---|
274 | <varlistentry id="ck-launch-session">
|
---|
275 | <term><command>ck-launch-session</command></term>
|
---|
276 | <listitem>
|
---|
277 | <para>does this .....</para>
|
---|
278 | <indexterm zone="consolekit ck-launch-session">
|
---|
279 | <primary sortas="b-ck-launch-session">ck-launch-session</primary>
|
---|
280 | </indexterm>
|
---|
281 | </listitem>
|
---|
282 | </varlistentry>
|
---|
283 | -->
|
---|
284 |
|
---|
285 | <varlistentry id="ck-list-sessions">
|
---|
286 | <term><command>ck-list-sessions</command></term>
|
---|
287 | <listitem>
|
---|
288 | <para>list sessions with respective properties. Also good for
|
---|
289 | debugging purposes.</para>
|
---|
290 | <indexterm zone="consolekit ck-list-sessions">
|
---|
291 | <primary sortas="b-ck-list-sessions">ck-list-sessions</primary>
|
---|
292 | </indexterm>
|
---|
293 | </listitem>
|
---|
294 | </varlistentry>
|
---|
295 | <!--
|
---|
296 | <varlistentry id="ck-log-system-restart">
|
---|
297 | <term><command>ck-log-system-restart</command></term>
|
---|
298 | <listitem>
|
---|
299 | <para>does this .....</para>
|
---|
300 | <indexterm zone="consolekit ck-log-system-restart">
|
---|
301 | <primary sortas="b-ck-log-system-restart">ck-log-system-restart</primary>
|
---|
302 | </indexterm>
|
---|
303 | </listitem>
|
---|
304 | </varlistentry>
|
---|
305 |
|
---|
306 | <varlistentry id="ck-log-system-start">
|
---|
307 | <term><command>ck-log-system-start</command></term>
|
---|
308 | <listitem>
|
---|
309 | <para>does this .....</para>
|
---|
310 | <indexterm zone="consolekit ck-log-system-start">
|
---|
311 | <primary sortas="b-ck-log-system-start">ck-log-system-start</primary>
|
---|
312 | </indexterm>
|
---|
313 | </listitem>
|
---|
314 | </varlistentry>
|
---|
315 |
|
---|
316 | <varlistentry id="ck-log-system-stop">
|
---|
317 | <term><command>ck-log-system-stop</command></term>
|
---|
318 | <listitem>
|
---|
319 | <para>does this .....</para>
|
---|
320 | <indexterm zone="consolekit ck-log-system-stop">
|
---|
321 | <primary sortas="b-ck-log-system-stop">ck-log-system-stop</primary>
|
---|
322 | </indexterm>
|
---|
323 | </listitem>
|
---|
324 | </varlistentry>
|
---|
325 |
|
---|
326 | <varlistentry id="console-kit-daemon">
|
---|
327 | <term><command>console-kit-daemon</command></term>
|
---|
328 | <listitem>
|
---|
329 | <para>is the <application>ConsoleKit</application> daemon.</para>
|
---|
330 | <indexterm zone="consolekit console-kit-daemon">
|
---|
331 | <primary sortas="b-console-kit-daemon">console-kit-daemon</primary>
|
---|
332 | </indexterm>
|
---|
333 | </listitem>
|
---|
334 | </varlistentry>
|
---|
335 |
|
---|
336 | <varlistentry id="ck-collect-session-info">
|
---|
337 | <term><command>ck-collect-session-info</command></term>
|
---|
338 | <listitem>
|
---|
339 | <para>does this .....</para>
|
---|
340 | <indexterm zone="consolekit ck-collect-session-info">
|
---|
341 | <primary sortas="b-ck-collect-session-info">ck-collect-session-info</primary>
|
---|
342 | </indexterm>
|
---|
343 | </listitem>
|
---|
344 | </varlistentry>
|
---|
345 |
|
---|
346 | <varlistentry id="ck-get-x11-display-device">
|
---|
347 | <term><command>ck-get-x11-display-device</command></term>
|
---|
348 | <listitem>
|
---|
349 | <para>does this .....</para>
|
---|
350 | <indexterm zone="consolekit ck-get-x11-display-device">
|
---|
351 | <primary sortas="b-ck-get-x11-display-device">ck-get-x11-display-device</primary>
|
---|
352 | </indexterm>
|
---|
353 | </listitem>
|
---|
354 | </varlistentry>
|
---|
355 |
|
---|
356 | <varlistentry id="ck-get-x11-server-pid">
|
---|
357 | <term><command>ck-get-x11-server-pid</command></term>
|
---|
358 | <listitem>
|
---|
359 | <para>does this .....</para>
|
---|
360 | <indexterm zone="consolekit ck-get-x11-server-pid">
|
---|
361 | <primary sortas="b-ck-get-x11-server-pid">ck-get-x11-server-pid</primary>
|
---|
362 | </indexterm>
|
---|
363 | </listitem>
|
---|
364 | </varlistentry>
|
---|
365 |
|
---|
366 | <varlistentry id="ck-system-restart">
|
---|
367 | <term><command>ck-system-restart</command></term>
|
---|
368 | <listitem>
|
---|
369 | <para>does this .....</para>
|
---|
370 | <indexterm zone="consolekit ck-system-restart">
|
---|
371 | <primary sortas="b-ck-system-restart">ck-system-restart</primary>
|
---|
372 | </indexterm>
|
---|
373 | </listitem>
|
---|
374 | </varlistentry>
|
---|
375 |
|
---|
376 | <varlistentry id="ck-system-stop">
|
---|
377 | <term><command>ck-system-stop</command></term>
|
---|
378 | <listitem>
|
---|
379 | <para>does this .....</para>
|
---|
380 | <indexterm zone="consolekit ck-system-stop">
|
---|
381 | <primary sortas="b-ck-system-stop">ck-system-stop</primary>
|
---|
382 | </indexterm>
|
---|
383 | </listitem>
|
---|
384 | </varlistentry>
|
---|
385 |
|
---|
386 | <varlistentry id="libck-connector">
|
---|
387 | <term><filename class='libraryfile'>libck-connector.so</filename></term>
|
---|
388 | <listitem>
|
---|
389 | <para>contains functions that .....</para>
|
---|
390 | <indexterm zone="consolekit libck-connector">
|
---|
391 | <primary sortas="c-libck-connector">libck-connector.so</primary>
|
---|
392 | </indexterm>
|
---|
393 | </listitem>
|
---|
394 | </varlistentry>
|
---|
395 |
|
---|
396 | <varlistentry id="pam_ck_connector">
|
---|
397 | <term><filename class='libraryfile'>pam_ck_connector.so</filename></term>
|
---|
398 | <listitem>
|
---|
399 | <para>contains functions that .....</para>
|
---|
400 | <indexterm zone="consolekit pam_ck_connector">
|
---|
401 | <primary sortas="c-pam_ck_connector">pam_ck_connector.so</primary>
|
---|
402 | </indexterm>
|
---|
403 | </listitem>
|
---|
404 | </varlistentry>
|
---|
405 | -->
|
---|
406 | </variablelist>
|
---|
407 |
|
---|
408 | </sect2>
|
---|
409 |
|
---|
410 | </sect1>
|
---|