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 | &lfs75_checked;
|
---|
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 | <option>--enable-udev-acl</option>: This switch enables building of the
|
---|
141 | <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 | <option>--enable-pam-module</option>: This switch enables building of the
|
---|
148 | <application>ConsoleKit</application> <application>PAM</application>
|
---|
149 | module which is needed for <application>ConsoleKit</application> to
|
---|
150 | work correctly with <application>PAM</application>. Remove if
|
---|
151 | <application>Linux PAM</application> is
|
---|
152 | <emphasis role="strong">NOT</emphasis> installed.
|
---|
153 | </para>
|
---|
154 |
|
---|
155 | <para>
|
---|
156 | <option>--enable-docbook-docs</option>: Use this switch if
|
---|
157 | <application>xmlto</application> is installed and you wish to
|
---|
158 | build the API documentation.
|
---|
159 | </para>
|
---|
160 |
|
---|
161 | <para>
|
---|
162 | <option>--with-systemdsystemunitdir=no</option>: Disable
|
---|
163 | attempting to build with systemd libraries.
|
---|
164 | </para>
|
---|
165 | <!--
|
---|
166 | <para><option>- -libexecdir=/usr/lib/ConsoleKit</option>: This option
|
---|
167 | creates a <filename class="directory">ConsoleKit</filename> directory in
|
---|
168 | <filename class="directory">/usr/lib</filename> instead of putting the
|
---|
169 | program's private executables into <filename
|
---|
170 | class="directory">/usr/libexec</filename> in accordance with the old
|
---|
171 | version of the FHS used before LFS-7.5.</para>
|
---|
172 | -->
|
---|
173 | </sect2>
|
---|
174 |
|
---|
175 | <sect2 role="configuration">
|
---|
176 | <title>Configuring ConsoleKit</title>
|
---|
177 |
|
---|
178 | <sect3>
|
---|
179 | <title>PAM Module Configuration</title>
|
---|
180 |
|
---|
181 | <para>
|
---|
182 | If you use <application>Linux PAM</application> you need to
|
---|
183 | configure <application>Linux PAM</application> to activate
|
---|
184 | <application>ConsoleKit</application> upon user login.
|
---|
185 | This can be achieved by editing the
|
---|
186 | <filename>/etc/pam.d/system-session</filename> file as the
|
---|
187 | <systemitem class="username">root</systemitem> user:
|
---|
188 | </para>
|
---|
189 |
|
---|
190 | <screen role="root"><userinput>cat >> /etc/pam.d/system-session << "EOF"
|
---|
191 | # Begin ConsoleKit addition
|
---|
192 |
|
---|
193 | session optional pam_loginuid.so
|
---|
194 | session optional pam_ck_connector.so nox11
|
---|
195 |
|
---|
196 | # End ConsoleKit addition
|
---|
197 | EOF</userinput></screen>
|
---|
198 |
|
---|
199 | <para>
|
---|
200 | You will also need a helper script that creates a file in
|
---|
201 | <filename class="directory">/var/run/console</filename>
|
---|
202 | named as the currently logged in user and that contains the
|
---|
203 | <application>D-Bus</application> address of the session. You
|
---|
204 | can create the script by running the following commands as
|
---|
205 | the <systemitem class="username">root</systemitem> user:
|
---|
206 | </para>
|
---|
207 |
|
---|
208 | <screen role="root"><userinput>cat > /usr/lib/ConsoleKit/run-session.d/pam-foreground-compat.ck << "EOF"
|
---|
209 | #!/bin/sh
|
---|
210 | TAGDIR=/var/run/console
|
---|
211 |
|
---|
212 | [ -n "$CK_SESSION_USER_UID" ] || exit 1
|
---|
213 | [ "$CK_SESSION_IS_LOCAL" = "true" ] || exit 0
|
---|
214 |
|
---|
215 | TAGFILE="$TAGDIR/`getent passwd $CK_SESSION_USER_UID | cut -f 1 -d:`"
|
---|
216 |
|
---|
217 | if [ "$1" = "session_added" ]; then
|
---|
218 | mkdir -p "$TAGDIR"
|
---|
219 | echo "$CK_SESSION_ID" >> "$TAGFILE"
|
---|
220 | fi
|
---|
221 |
|
---|
222 | if [ "$1" = "session_removed" ] && [ -e "$TAGFILE" ]; then
|
---|
223 | sed -i "\%^$CK_SESSION_ID\$%d" "$TAGFILE"
|
---|
224 | [ -s "$TAGFILE" ] || rm -f "$TAGFILE"
|
---|
225 | fi
|
---|
226 | EOF
|
---|
227 | chmod -v 755 /usr/lib/ConsoleKit/run-session.d/pam-foreground-compat.ck</userinput></screen>
|
---|
228 |
|
---|
229 | <para>
|
---|
230 | See /usr/share/doc/ConsoleKit/spec/ConsoleKit.html for more
|
---|
231 | configuration.
|
---|
232 | </para>
|
---|
233 |
|
---|
234 | </sect3>
|
---|
235 |
|
---|
236 | </sect2>
|
---|
237 |
|
---|
238 | <sect2 role="content">
|
---|
239 | <title>Contents</title>
|
---|
240 |
|
---|
241 | <segmentedlist>
|
---|
242 | <segtitle>Installed Programs</segtitle>
|
---|
243 | <segtitle>Installed Libraries</segtitle>
|
---|
244 | <segtitle>Installed Directories</segtitle>
|
---|
245 |
|
---|
246 | <seglistitem>
|
---|
247 | <seg>
|
---|
248 | ck-history, ck-launch-session, ck-list-sessions,
|
---|
249 | ck-log-system-restart, ck-log-system-start,
|
---|
250 | ck-log-system-stop and console-kit-daemon
|
---|
251 | </seg>
|
---|
252 | <seg>
|
---|
253 | libck-connector.so and pam_ck_connector.so
|
---|
254 | </seg>
|
---|
255 | <seg>
|
---|
256 | /etc/ConsoleKit,
|
---|
257 | /usr/include/ConsoleKit,
|
---|
258 | /usr/lib/ConsoleKit,
|
---|
259 | /usr/share/doc/ConsoleKit and
|
---|
260 | /var/log/ConsoleKit
|
---|
261 | </seg>
|
---|
262 | </seglistitem>
|
---|
263 | </segmentedlist>
|
---|
264 |
|
---|
265 | <variablelist>
|
---|
266 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
267 | <?dbfo list-presentation="list"?>
|
---|
268 | <?dbhtml list-presentation="table"?>
|
---|
269 |
|
---|
270 | <!--
|
---|
271 | <varlistentry id="ck-history">
|
---|
272 | <term><command>ck-history</command></term>
|
---|
273 | <listitem>
|
---|
274 | <para>does this .....</para>
|
---|
275 | <indexterm zone="consolekit ck-history">
|
---|
276 | <primary sortas="b-ck-history">ck-history</primary>
|
---|
277 | </indexterm>
|
---|
278 | </listitem>
|
---|
279 | </varlistentry>
|
---|
280 |
|
---|
281 | <varlistentry id="ck-launch-session">
|
---|
282 | <term><command>ck-launch-session</command></term>
|
---|
283 | <listitem>
|
---|
284 | <para>does this .....</para>
|
---|
285 | <indexterm zone="consolekit ck-launch-session">
|
---|
286 | <primary sortas="b-ck-launch-session">ck-launch-session</primary>
|
---|
287 | </indexterm>
|
---|
288 | </listitem>
|
---|
289 | </varlistentry>
|
---|
290 | -->
|
---|
291 |
|
---|
292 | <varlistentry id="ck-list-sessions">
|
---|
293 | <term><command>ck-list-sessions</command></term>
|
---|
294 | <listitem>
|
---|
295 | <para>list sessions with respective properties. Also good for
|
---|
296 | debugging purposes.</para>
|
---|
297 | <indexterm zone="consolekit ck-list-sessions">
|
---|
298 | <primary sortas="b-ck-list-sessions">ck-list-sessions</primary>
|
---|
299 | </indexterm>
|
---|
300 | </listitem>
|
---|
301 | </varlistentry>
|
---|
302 | <!--
|
---|
303 | <varlistentry id="ck-log-system-restart">
|
---|
304 | <term><command>ck-log-system-restart</command></term>
|
---|
305 | <listitem>
|
---|
306 | <para>does this .....</para>
|
---|
307 | <indexterm zone="consolekit ck-log-system-restart">
|
---|
308 | <primary sortas="b-ck-log-system-restart">ck-log-system-restart</primary>
|
---|
309 | </indexterm>
|
---|
310 | </listitem>
|
---|
311 | </varlistentry>
|
---|
312 |
|
---|
313 | <varlistentry id="ck-log-system-start">
|
---|
314 | <term><command>ck-log-system-start</command></term>
|
---|
315 | <listitem>
|
---|
316 | <para>does this .....</para>
|
---|
317 | <indexterm zone="consolekit ck-log-system-start">
|
---|
318 | <primary sortas="b-ck-log-system-start">ck-log-system-start</primary>
|
---|
319 | </indexterm>
|
---|
320 | </listitem>
|
---|
321 | </varlistentry>
|
---|
322 |
|
---|
323 | <varlistentry id="ck-log-system-stop">
|
---|
324 | <term><command>ck-log-system-stop</command></term>
|
---|
325 | <listitem>
|
---|
326 | <para>does this .....</para>
|
---|
327 | <indexterm zone="consolekit ck-log-system-stop">
|
---|
328 | <primary sortas="b-ck-log-system-stop">ck-log-system-stop</primary>
|
---|
329 | </indexterm>
|
---|
330 | </listitem>
|
---|
331 | </varlistentry>
|
---|
332 |
|
---|
333 | <varlistentry id="console-kit-daemon">
|
---|
334 | <term><command>console-kit-daemon</command></term>
|
---|
335 | <listitem>
|
---|
336 | <para>is the <application>ConsoleKit</application> daemon.</para>
|
---|
337 | <indexterm zone="consolekit console-kit-daemon">
|
---|
338 | <primary sortas="b-console-kit-daemon">console-kit-daemon</primary>
|
---|
339 | </indexterm>
|
---|
340 | </listitem>
|
---|
341 | </varlistentry>
|
---|
342 |
|
---|
343 | <varlistentry id="ck-collect-session-info">
|
---|
344 | <term><command>ck-collect-session-info</command></term>
|
---|
345 | <listitem>
|
---|
346 | <para>does this .....</para>
|
---|
347 | <indexterm zone="consolekit ck-collect-session-info">
|
---|
348 | <primary sortas="b-ck-collect-session-info">ck-collect-session-info</primary>
|
---|
349 | </indexterm>
|
---|
350 | </listitem>
|
---|
351 | </varlistentry>
|
---|
352 |
|
---|
353 | <varlistentry id="ck-get-x11-display-device">
|
---|
354 | <term><command>ck-get-x11-display-device</command></term>
|
---|
355 | <listitem>
|
---|
356 | <para>does this .....</para>
|
---|
357 | <indexterm zone="consolekit ck-get-x11-display-device">
|
---|
358 | <primary sortas="b-ck-get-x11-display-device">ck-get-x11-display-device</primary>
|
---|
359 | </indexterm>
|
---|
360 | </listitem>
|
---|
361 | </varlistentry>
|
---|
362 |
|
---|
363 | <varlistentry id="ck-get-x11-server-pid">
|
---|
364 | <term><command>ck-get-x11-server-pid</command></term>
|
---|
365 | <listitem>
|
---|
366 | <para>does this .....</para>
|
---|
367 | <indexterm zone="consolekit ck-get-x11-server-pid">
|
---|
368 | <primary sortas="b-ck-get-x11-server-pid">ck-get-x11-server-pid</primary>
|
---|
369 | </indexterm>
|
---|
370 | </listitem>
|
---|
371 | </varlistentry>
|
---|
372 |
|
---|
373 | <varlistentry id="ck-system-restart">
|
---|
374 | <term><command>ck-system-restart</command></term>
|
---|
375 | <listitem>
|
---|
376 | <para>does this .....</para>
|
---|
377 | <indexterm zone="consolekit ck-system-restart">
|
---|
378 | <primary sortas="b-ck-system-restart">ck-system-restart</primary>
|
---|
379 | </indexterm>
|
---|
380 | </listitem>
|
---|
381 | </varlistentry>
|
---|
382 |
|
---|
383 | <varlistentry id="ck-system-stop">
|
---|
384 | <term><command>ck-system-stop</command></term>
|
---|
385 | <listitem>
|
---|
386 | <para>does this .....</para>
|
---|
387 | <indexterm zone="consolekit ck-system-stop">
|
---|
388 | <primary sortas="b-ck-system-stop">ck-system-stop</primary>
|
---|
389 | </indexterm>
|
---|
390 | </listitem>
|
---|
391 | </varlistentry>
|
---|
392 |
|
---|
393 | <varlistentry id="libck-connector">
|
---|
394 | <term><filename class='libraryfile'>libck-connector.so</filename></term>
|
---|
395 | <listitem>
|
---|
396 | <para>contains functions that .....</para>
|
---|
397 | <indexterm zone="consolekit libck-connector">
|
---|
398 | <primary sortas="c-libck-connector">libck-connector.so</primary>
|
---|
399 | </indexterm>
|
---|
400 | </listitem>
|
---|
401 | </varlistentry>
|
---|
402 |
|
---|
403 | <varlistentry id="pam_ck_connector">
|
---|
404 | <term><filename class='libraryfile'>pam_ck_connector.so</filename></term>
|
---|
405 | <listitem>
|
---|
406 | <para>contains functions that .....</para>
|
---|
407 | <indexterm zone="consolekit pam_ck_connector">
|
---|
408 | <primary sortas="c-pam_ck_connector">pam_ck_connector.so</primary>
|
---|
409 | </indexterm>
|
---|
410 | </listitem>
|
---|
411 | </varlistentry>
|
---|
412 | -->
|
---|
413 | </variablelist>
|
---|
414 |
|
---|
415 | </sect2>
|
---|
416 |
|
---|
417 | </sect1>
|
---|