2009-09-21 21:11:46 +08:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
|
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
|
|
%general-entities;
|
|
|
|
|
2012-07-23 23:39:03 +08:00
|
|
|
<!ENTITY consolekit-download-http "&sources-anduin-http;/c/ConsoleKit-&consolekit-version;.tar.xz">
|
2009-09-21 21:11:46 +08:00
|
|
|
<!ENTITY consolekit-download-ftp " ">
|
2012-07-20 23:52:34 +08:00
|
|
|
<!ENTITY consolekit-md5sum "6aaadf5627d2f7587aa116727e2fc1da">
|
|
|
|
<!ENTITY consolekit-size "356 KB">
|
|
|
|
<!ENTITY consolekit-buildsize "8.0 MB">
|
2012-05-01 20:35:38 +08:00
|
|
|
<!ENTITY consolekit-time "0.3 SBU">
|
2009-09-21 21:11:46 +08:00
|
|
|
]>
|
|
|
|
|
|
|
|
<sect1 id="consolekit" xreflabel="ConsoleKit-&consolekit-version;">
|
|
|
|
<?dbhtml filename="consolekit.html"?>
|
|
|
|
|
|
|
|
<sect1info>
|
|
|
|
<othername>$LastChangedBy$</othername>
|
|
|
|
<date>$Date$</date>
|
|
|
|
</sect1info>
|
|
|
|
|
|
|
|
<title>ConsoleKit-&consolekit-version;</title>
|
|
|
|
|
|
|
|
<indexterm zone="consolekit">
|
|
|
|
<primary sortas="a-ConsoleKit">ConsoleKit</primary>
|
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
<sect2 role="package">
|
|
|
|
<title>Introduction to ConsoleKit</title>
|
|
|
|
|
2012-07-20 23:52:34 +08:00
|
|
|
<para>
|
|
|
|
The <application>ConsoleKit</application> package is a framework for
|
|
|
|
keeping track of the various users, sessions, and seats present on a system.
|
|
|
|
It provides a mechanism for software to react to changes of any of these
|
|
|
|
items or of any of the metadata associated with them.
|
|
|
|
</para>
|
2009-09-21 21:11:46 +08:00
|
|
|
|
2012-07-20 23:52:34 +08:00
|
|
|
&lfs71_checked;
|
2009-10-10 21:08:15 +08:00
|
|
|
|
2009-09-21 21:11:46 +08:00
|
|
|
<bridgehead renderas="sect3">Package Information</bridgehead>
|
|
|
|
<itemizedlist spacing="compact">
|
|
|
|
<listitem>
|
2012-07-20 23:52:34 +08:00
|
|
|
<para>
|
|
|
|
Download (HTTP): <ulink url="&consolekit-download-http;"/>
|
|
|
|
</para>
|
2009-09-21 21:11:46 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-07-20 23:52:34 +08:00
|
|
|
<para>
|
|
|
|
Download (FTP): <ulink url="&consolekit-download-ftp;"/>
|
|
|
|
</para>
|
2009-09-21 21:11:46 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-07-20 23:52:34 +08:00
|
|
|
<para>
|
|
|
|
Download MD5 sum: &consolekit-md5sum;
|
|
|
|
</para>
|
2009-09-21 21:11:46 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-07-20 23:52:34 +08:00
|
|
|
<para>
|
|
|
|
Download size: &consolekit-size;
|
|
|
|
</para>
|
2009-09-21 21:11:46 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-07-20 23:52:34 +08:00
|
|
|
<para>
|
|
|
|
Estimated disk space required: &consolekit-buildsize;
|
|
|
|
</para>
|
2009-09-21 21:11:46 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-07-20 23:52:34 +08:00
|
|
|
<para>
|
|
|
|
Estimated build time: &consolekit-time;
|
|
|
|
</para>
|
2009-09-21 21:11:46 +08:00
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect3">ConsoleKit Dependencies</bridgehead>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect4">Required</bridgehead>
|
2012-05-01 20:35:38 +08:00
|
|
|
<para role="required">
|
2012-08-16 17:05:17 +08:00
|
|
|
<xref linkend="acl"/>,
|
2012-05-01 20:35:38 +08:00
|
|
|
<xref linkend="dbus-glib"/> and
|
|
|
|
<xref linkend="xorg7-lib"/>
|
|
|
|
</para>
|
2009-09-21 21:11:46 +08:00
|
|
|
|
|
|
|
<bridgehead renderas="sect4">Recommended</bridgehead>
|
2012-05-01 20:35:38 +08:00
|
|
|
<para role="recommended">
|
|
|
|
<xref linkend="linux-pam"/> and
|
|
|
|
<xref linkend="polkit"/>
|
|
|
|
</para>
|
2009-09-21 21:11:46 +08:00
|
|
|
|
|
|
|
<warning>
|
2012-07-20 23:52:34 +08:00
|
|
|
<para>
|
|
|
|
If you intend <emphasis role="strong">NOT</emphasis> to install
|
|
|
|
<application>polkit</application>, you will need to manually edit the
|
|
|
|
ConsoleKit.conf file to lock down the service. Failure to do so may be a
|
|
|
|
huge SECURITY HOLE.
|
|
|
|
</para>
|
2009-09-21 21:11:46 +08:00
|
|
|
</warning>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect4">Optional</bridgehead>
|
2012-05-01 20:35:38 +08:00
|
|
|
<para role="optional">
|
|
|
|
<xref linkend="xmlto"/>
|
|
|
|
</para>
|
2009-09-21 21:11:46 +08:00
|
|
|
|
|
|
|
<para condition="html" role="usernotes">User Notes:
|
2012-07-20 23:52:34 +08:00
|
|
|
<ulink url="&blfs-wiki;/consolekit"/>
|
|
|
|
</para>
|
2009-09-21 21:11:46 +08:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="installation">
|
|
|
|
<title>Installation of ConsoleKit</title>
|
|
|
|
|
2012-07-20 23:52:34 +08:00
|
|
|
<para>
|
|
|
|
Install <application>ConsoleKit</application> by running the following
|
|
|
|
commands:
|
|
|
|
</para>
|
2009-09-21 21:11:46 +08:00
|
|
|
|
2012-07-20 23:52:34 +08:00
|
|
|
<screen><userinput>./configure --prefix=/usr \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--localstatedir=/var \
|
|
|
|
--libexecdir=/usr/lib/ConsoleKit \
|
|
|
|
--enable-udev-acl \
|
2012-05-01 20:35:38 +08:00
|
|
|
--enable-pam-module &&
|
2009-09-21 21:11:46 +08:00
|
|
|
make</userinput></screen>
|
|
|
|
|
2012-07-20 23:52:34 +08:00
|
|
|
<para>
|
|
|
|
This package does not come with a test suite.
|
|
|
|
</para>
|
2009-09-21 21:11:46 +08:00
|
|
|
|
2012-07-20 23:52:34 +08:00
|
|
|
<para>
|
|
|
|
Now, as the <systemitem class="username">root</systemitem> user:
|
|
|
|
</para>
|
2009-09-21 21:11:46 +08:00
|
|
|
|
|
|
|
<screen role="root"><userinput>make install</userinput></screen>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="commands">
|
|
|
|
<title>Command Explanations</title>
|
|
|
|
|
2012-07-20 23:52:34 +08:00
|
|
|
<para>
|
|
|
|
<option>--enable-udev-acl</option>: This switch enables building of the
|
2012-07-22 02:12:47 +08:00
|
|
|
<command>udev-acl</command> tool, which is used to allow normal users
|
|
|
|
to access device nodes normally only accessible to
|
|
|
|
<systemitem class="username">root</systemitem>.
|
2012-07-20 23:52:34 +08:00
|
|
|
</para>
|
2009-09-21 21:11:46 +08:00
|
|
|
|
2012-07-20 23:52:34 +08:00
|
|
|
<para>
|
|
|
|
<option>--enable-pam-module</option>: This switch enables building of the
|
|
|
|
<application>ConsoleKit</application> <application>PAM</application>
|
|
|
|
module which is needed for <application>ConsoleKit</application> to
|
2012-07-22 02:12:47 +08:00
|
|
|
work correctly with <application>PAM</application>. Remove if
|
|
|
|
<application>Linux PAM</application> is
|
2012-07-20 23:52:34 +08:00
|
|
|
<emphasis role="strong">NOT</emphasis> installed.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
2012-07-22 02:12:47 +08:00
|
|
|
<option>--enable-docbook-docs</option>: Use this switch if
|
2012-07-20 23:52:34 +08:00
|
|
|
<application>xmlto</application> is installed and you wish to
|
|
|
|
build the API documentation.
|
|
|
|
</para>
|
2010-04-22 03:10:06 +08:00
|
|
|
|
2009-09-21 21:11:46 +08:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="configuration">
|
|
|
|
<title>Configuring ConsoleKit</title>
|
|
|
|
|
2012-07-20 23:52:34 +08:00
|
|
|
<sect3>
|
|
|
|
<title>PAM Module Configuration</title>
|
2012-03-16 21:30:16 +08:00
|
|
|
|
2012-07-20 23:52:34 +08:00
|
|
|
<para>
|
|
|
|
If you use <application>Linux PAM</application> you need to
|
|
|
|
configure <application>Linux PAM</application> to activate
|
|
|
|
<application>ConsoleKit</application> upon user login.
|
|
|
|
This can be achieved by editing the
|
|
|
|
<filename>/etc/pam.d/system-session</filename> file as the
|
|
|
|
<systemitem class="username">root</systemitem> user:
|
|
|
|
</para>
|
2012-03-16 21:30:16 +08:00
|
|
|
|
2012-04-15 18:33:50 +08:00
|
|
|
<screen role="root"><userinput>cat >> /etc/pam.d/system-session << "EOF"
|
2012-04-07 00:03:15 +08:00
|
|
|
# Begin ConsoleKit addition
|
2012-03-16 21:30:16 +08:00
|
|
|
|
|
|
|
session optional pam_loginuid.so
|
2012-04-07 00:03:15 +08:00
|
|
|
session optional pam_ck_connector.so nox11
|
2012-03-16 21:30:16 +08:00
|
|
|
|
2012-04-07 00:03:15 +08:00
|
|
|
# End ConsoleKit addition
|
2012-03-16 21:30:16 +08:00
|
|
|
EOF</userinput></screen>
|
2012-07-20 23:52:34 +08:00
|
|
|
|
|
|
|
<para>
|
2012-07-22 02:12:47 +08:00
|
|
|
You will also need a helper script that creates a file in
|
2012-07-20 23:52:34 +08:00
|
|
|
<filename class="directory">/var/run/console</filename>
|
2012-07-22 02:12:47 +08:00
|
|
|
named as the currently logged in user and that contains the
|
2012-07-22 08:06:33 +08:00
|
|
|
<application>D-Bus</application> address of the session. You
|
|
|
|
can create the script by running the following commands as
|
|
|
|
the <systemitem class="username">root</systemitem> user:
|
2012-07-20 23:52:34 +08:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<screen role="root"><userinput>cat > /usr/lib/ConsoleKit/run-session.d/pam-foreground-compat.ck << "EOF"
|
|
|
|
#!/bin/sh
|
|
|
|
TAGDIR=/var/run/console
|
|
|
|
|
|
|
|
[ -n "$CK_SESSION_USER_UID" ] || exit 1
|
|
|
|
[ "$CK_SESSION_IS_LOCAL" = "true" ] || exit 0
|
|
|
|
|
|
|
|
TAGFILE="$TAGDIR/`getent passwd $CK_SESSION_USER_UID | cut -f 1 -d:`"
|
|
|
|
|
|
|
|
if [ "$1" = "session_added" ]; then
|
|
|
|
mkdir -p "$TAGDIR"
|
|
|
|
echo "$CK_SESSION_ID" >> "$TAGFILE"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$1" = "session_removed" ] && [ -e "$TAGFILE" ]; then
|
|
|
|
sed -i "\%^$CK_SESSION_ID\$%d" "$TAGFILE"
|
|
|
|
[ -s "$TAGFILE" ] || rm -f "$TAGFILE"
|
|
|
|
fi
|
|
|
|
EOF
|
|
|
|
chmod 0755 /usr/lib/ConsoleKit/run-session.d/pam-foreground-compat.ck</userinput></screen>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
See /usr/share/doc/ConsoleKit/spec/ConsoleKit.html for more
|
|
|
|
configuration.
|
|
|
|
</para>
|
2009-09-21 21:11:46 +08:00
|
|
|
|
|
|
|
</sect3>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="content">
|
|
|
|
<title>Contents</title>
|
|
|
|
|
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>Installed Programs</segtitle>
|
|
|
|
<segtitle>Installed Libraries</segtitle>
|
|
|
|
<segtitle>Installed Directories</segtitle>
|
|
|
|
|
|
|
|
<seglistitem>
|
2012-07-20 23:52:34 +08:00
|
|
|
<seg>
|
|
|
|
ck-history, ck-launch-session, ck-list-sessions,
|
|
|
|
ck-log-system-restart, ck-log-system-start,
|
|
|
|
ck-log-system-stop and console-kit-daemon
|
|
|
|
</seg>
|
|
|
|
<seg>
|
|
|
|
libck-connector.so and pam_ck_connector.so
|
|
|
|
</seg>
|
|
|
|
<seg>
|
|
|
|
/etc/ConsoleKit,
|
|
|
|
/usr/include/ConsoleKit,
|
|
|
|
/usr/lib/ConsoleKit,
|
|
|
|
/usr/share/doc/ConsoleKit and
|
|
|
|
/var/log/ConsoleKit
|
|
|
|
</seg>
|
2009-09-21 21:11:46 +08:00
|
|
|
</seglistitem>
|
|
|
|
</segmentedlist>
|
|
|
|
|
|
|
|
<!--
|
|
|
|
<variablelist>
|
|
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
|
|
<?dbfo list-presentation="list"?>
|
|
|
|
<?dbhtml list-presentation="table"?>
|
|
|
|
|
|
|
|
<varlistentry id="ck-history">
|
|
|
|
<term><command>ck-history</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>does this .....</para>
|
|
|
|
<indexterm zone="consolekit ck-history">
|
|
|
|
<primary sortas="b-ck-history">ck-history</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="ck-launch-session">
|
|
|
|
<term><command>ck-launch-session</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>does this .....</para>
|
|
|
|
<indexterm zone="consolekit ck-launch-session">
|
|
|
|
<primary sortas="b-ck-launch-session">ck-launch-session</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="ck-list-sessions">
|
|
|
|
<term><command>ck-list-sessions</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>does this .....</para>
|
|
|
|
<indexterm zone="consolekit ck-list-sessions">
|
|
|
|
<primary sortas="b-ck-list-sessions">ck-list-sessions</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="ck-log-system-restart">
|
|
|
|
<term><command>ck-log-system-restart</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>does this .....</para>
|
|
|
|
<indexterm zone="consolekit ck-log-system-restart">
|
|
|
|
<primary sortas="b-ck-log-system-restart">ck-log-system-restart</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="ck-log-system-start">
|
|
|
|
<term><command>ck-log-system-start</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>does this .....</para>
|
|
|
|
<indexterm zone="consolekit ck-log-system-start">
|
|
|
|
<primary sortas="b-ck-log-system-start">ck-log-system-start</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="ck-log-system-stop">
|
|
|
|
<term><command>ck-log-system-stop</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>does this .....</para>
|
|
|
|
<indexterm zone="consolekit ck-log-system-stop">
|
|
|
|
<primary sortas="b-ck-log-system-stop">ck-log-system-stop</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="console-kit-daemon">
|
|
|
|
<term><command>console-kit-daemon</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>is the <application>ConsoleKit</application> daemon.</para>
|
|
|
|
<indexterm zone="consolekit console-kit-daemon">
|
|
|
|
<primary sortas="b-console-kit-daemon">console-kit-daemon</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="ck-collect-session-info">
|
|
|
|
<term><command>ck-collect-session-info</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>does this .....</para>
|
|
|
|
<indexterm zone="consolekit ck-collect-session-info">
|
|
|
|
<primary sortas="b-ck-collect-session-info">ck-collect-session-info</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="ck-get-x11-display-device">
|
|
|
|
<term><command>ck-get-x11-display-device</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>does this .....</para>
|
|
|
|
<indexterm zone="consolekit ck-get-x11-display-device">
|
|
|
|
<primary sortas="b-ck-get-x11-display-device">ck-get-x11-display-device</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="ck-get-x11-server-pid">
|
|
|
|
<term><command>ck-get-x11-server-pid</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>does this .....</para>
|
|
|
|
<indexterm zone="consolekit ck-get-x11-server-pid">
|
|
|
|
<primary sortas="b-ck-get-x11-server-pid">ck-get-x11-server-pid</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="ck-system-restart">
|
|
|
|
<term><command>ck-system-restart</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>does this .....</para>
|
|
|
|
<indexterm zone="consolekit ck-system-restart">
|
|
|
|
<primary sortas="b-ck-system-restart">ck-system-restart</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="ck-system-stop">
|
|
|
|
<term><command>ck-system-stop</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>does this .....</para>
|
|
|
|
<indexterm zone="consolekit ck-system-stop">
|
|
|
|
<primary sortas="b-ck-system-stop">ck-system-stop</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="libck-connector">
|
|
|
|
<term><filename class='libraryfile'>libck-connector.so</filename></term>
|
|
|
|
<listitem>
|
|
|
|
<para>contains functions that .....</para>
|
|
|
|
<indexterm zone="consolekit libck-connector">
|
|
|
|
<primary sortas="c-libck-connector">libck-connector.so</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="pam_ck_connector">
|
|
|
|
<term><filename class='libraryfile'>pam_ck_connector.so</filename></term>
|
|
|
|
<listitem>
|
|
|
|
<para>contains functions that .....</para>
|
|
|
|
<indexterm zone="consolekit pam_ck_connector">
|
|
|
|
<primary sortas="c-pam_ck_connector">pam_ck_connector.so</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
</variablelist>
|
|
|
|
-->
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
</sect1>
|