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