2005-10-01 10:55:17 +08:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
|
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
|
|
%general-entities;
|
|
|
|
|
|
|
|
<!ENTITY hal-download-http "http://freedesktop.org/~david/dist/hal-&hal-version;.tar.gz">
|
|
|
|
<!ENTITY hal-download-ftp "ftp://ftp.fu-berlin.de/unix/linux/mirrors/gentoo/distfiles/hal-&hal-version;.tar.gz">
|
2007-01-17 22:45:29 +08:00
|
|
|
<!ENTITY hal-md5sum "d7a7741808ba130f8aff3f5d3b5689e4">
|
2006-06-21 06:40:21 +08:00
|
|
|
<!ENTITY hal-size "1.5 MB">
|
|
|
|
<!ENTITY hal-buildsize "19.0 MB">
|
2005-10-01 10:55:17 +08:00
|
|
|
<!ENTITY hal-time "0.5 SBU">
|
|
|
|
]>
|
|
|
|
|
|
|
|
<sect1 id="hal" xreflabel="HAL-&hal-version;">
|
|
|
|
<?dbhtml filename="hal.html"?>
|
|
|
|
|
|
|
|
<sect1info>
|
|
|
|
<othername>$LastChangedBy$</othername>
|
|
|
|
<date>$Date$</date>
|
|
|
|
</sect1info>
|
|
|
|
|
|
|
|
<title>HAL-&hal-version;</title>
|
|
|
|
|
|
|
|
<indexterm zone="hal">
|
|
|
|
<primary sortas="a-HAL">HAL</primary>
|
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
<sect2 role="package">
|
|
|
|
<title>Introduction to HAL</title>
|
|
|
|
|
|
|
|
<para><application>HAL</application> is a hardware abstraction layer, which
|
|
|
|
is a piece of software that provides a view of the various hardware
|
|
|
|
attached to a system. In addition to this, <application>HAL</application>
|
|
|
|
keeps detailed metadata for each piece of hardware and provides hooks such
|
|
|
|
that system and desktop-level software can react to changes in the hardware
|
2006-01-02 08:16:38 +08:00
|
|
|
configuration in order to maintain system policy.</para>
|
|
|
|
|
|
|
|
<para>The most important goal of <application>HAL</application> is to
|
|
|
|
provide plug-and-play facilities for UNIX-like desktops with focus on
|
|
|
|
providing a rich and extensible description of device characteristics and
|
|
|
|
features. One example of the functionality provided by
|
|
|
|
<application>HAL</application> is when you plug in a USB storage device.
|
2006-08-09 22:21:54 +08:00
|
|
|
<application>HAL</application> can automatically create a mount point in
|
|
|
|
<filename class="directory">/media</filename> and mount the device.</para>
|
2005-10-01 10:55:17 +08:00
|
|
|
|
|
|
|
<bridgehead renderas="sect3">Package Information</bridgehead>
|
|
|
|
<itemizedlist spacing="compact">
|
|
|
|
<listitem>
|
|
|
|
<para>Download (HTTP): <ulink url="&hal-download-http;"/></para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Download (FTP): <ulink url="&hal-download-ftp;"/></para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Download MD5 sum: &hal-md5sum;</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Download size: &hal-size;</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Estimated disk space required: &hal-buildsize;</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Estimated build time: &hal-time;</para>
|
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect3">HAL Dependencies</bridgehead>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect4">Required</bridgehead>
|
2006-01-02 08:16:38 +08:00
|
|
|
<para role="required"><xref linkend="glib2"/>,
|
|
|
|
<xref linkend="dbus"/> (see the <xref linkend="hal-requirements"/>),
|
2006-06-21 06:40:21 +08:00
|
|
|
<xref linkend="python"/>, and
|
2005-10-01 10:55:17 +08:00
|
|
|
<xref linkend="perl-xml-parser"/></para>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect4">Recommended</bridgehead>
|
2006-06-21 06:40:21 +08:00
|
|
|
<para role="recommended"><xref linkend="pciutils"/>
|
|
|
|
(with a current <filename>pci.ids</filename> file) and
|
|
|
|
<xref linkend="usbutils"/>
|
|
|
|
(with a current <filename>usb.ids</filename> file)</para>
|
2005-10-01 10:55:17 +08:00
|
|
|
|
|
|
|
<bridgehead renderas="sect4">Optional</bridgehead>
|
2005-12-03 03:45:36 +08:00
|
|
|
<para role="optional"><xref linkend="pkgconfig"/>,
|
2005-10-01 10:55:17 +08:00
|
|
|
<xref linkend="intltool"/>,
|
|
|
|
<xref linkend="libusb"/>,
|
2006-01-02 08:16:38 +08:00
|
|
|
<xref linkend="doxygen"/>, and
|
2005-10-01 10:55:17 +08:00
|
|
|
<xref linkend="docbook-utils"/></para>
|
|
|
|
|
2006-04-11 02:35:56 +08:00
|
|
|
<para condition="html" role="usernotes">User Notes:
|
|
|
|
<ulink url="&blfs-wiki;/hal"/></para>
|
|
|
|
|
2005-10-01 10:55:17 +08:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="installation">
|
|
|
|
<title>Installation of HAL</title>
|
|
|
|
|
2006-01-02 08:16:38 +08:00
|
|
|
<para>You must create a dedicated user and group before installing the
|
|
|
|
package. Though the default BLFS instructions run the
|
|
|
|
<application>HAL</application> daemon as the
|
|
|
|
<systemitem class="username">root</systemitem> user, a configuration file
|
|
|
|
is installed which has the dedicated user's name hard-coded in it. This
|
|
|
|
causes a confusing message to be generated when starting the
|
|
|
|
<application>D-BUS</application> daemon. Issue the following commands as
|
|
|
|
the <systemitem class="username">root</systemitem> user:</para>
|
2005-10-01 10:55:17 +08:00
|
|
|
|
|
|
|
<screen role="root"><userinput>groupadd -g 19 haldaemon &&
|
|
|
|
useradd -c "HAL Daemon User" -d /dev/null -u 19 \
|
|
|
|
-g haldaemon -s /bin/false haldaemon</userinput></screen>
|
|
|
|
|
|
|
|
<para>Install <application>HAL</application> by running the following
|
|
|
|
commands:</para>
|
|
|
|
|
2006-06-21 06:40:21 +08:00
|
|
|
<screen><userinput>./configure --prefix=/usr \
|
2005-10-01 10:55:17 +08:00
|
|
|
--sysconfdir=/etc \
|
2005-11-21 10:41:51 +08:00
|
|
|
--libexecdir=/usr/lib/hal \
|
2006-06-21 06:40:21 +08:00
|
|
|
--localstatedir=/var &&
|
2005-10-01 10:55:17 +08:00
|
|
|
make</userinput></screen>
|
|
|
|
|
2006-06-21 06:40:21 +08:00
|
|
|
<para>To test the results, issue <command>make check</command>.</para>
|
2005-10-01 10:55:17 +08:00
|
|
|
|
|
|
|
<para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
|
|
|
|
|
|
|
<screen role="root"><userinput>make install &&
|
|
|
|
install -v -m755 -d /var/run/hald</userinput></screen>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="commands">
|
|
|
|
<title>Command Explanations</title>
|
|
|
|
|
2005-11-21 10:41:51 +08:00
|
|
|
<para><parameter>--libexecdir=/usr/lib/hal</parameter>: This parameter
|
|
|
|
forces the installation of libexec files to
|
|
|
|
<filename class='directory'>/usr/lib/hal</filename> instead of
|
2005-10-01 10:55:17 +08:00
|
|
|
<filename class='directory'>/usr/libexec</filename>.</para>
|
|
|
|
|
|
|
|
<para><parameter>--localstatedir=/var</parameter>: This parameter forces
|
|
|
|
the creation of the <filename>pid</filename> file to
|
|
|
|
<filename class='directory'>/var/run/hald</filename> instead of
|
|
|
|
<filename class='directory'>/usr/var/run/hald</filename>.</para>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
2006-01-02 08:16:38 +08:00
|
|
|
<sect2 id="hal-runtime-dependencies" xreflabel="GNOME-Python">
|
|
|
|
<title>Run-Time Dependencies</title>
|
|
|
|
|
|
|
|
<para>The <xref linkend="hal-device-manager"/> program requires several
|
|
|
|
additional packages to be installed before it will run. The list is
|
|
|
|
significant and requires a substantial commitment to install them. It is
|
|
|
|
left up to you to determine if the time and effort spent installing the
|
|
|
|
following packages is worth using the <command>hal-device-manager</command>
|
|
|
|
program.</para>
|
|
|
|
|
|
|
|
<para>Though the only requirement to run the
|
2006-03-15 23:00:51 +08:00
|
|
|
<command>hal-device-manager</command> program is installing
|
2006-02-09 02:51:46 +08:00
|
|
|
<ulink url="&gnome-download-http;/gnome-python/">
|
2006-01-02 08:16:38 +08:00
|
|
|
GNOME-Python</ulink>, the dependency list is staggering. The following
|
|
|
|
list does not include the dependencies already identified in the BLFS
|
|
|
|
book. For example, <application>libgnome</application> already lists
|
|
|
|
<application>GNOME VFS</application>, <application>GConf</application>,
|
|
|
|
etc., so they are not repeated here. Note that some of the dependencies
|
|
|
|
have their own dependencies, which have their own, and so forth and so
|
|
|
|
on.</para>
|
|
|
|
|
|
|
|
<itemizedlist>
|
|
|
|
<listitem>
|
|
|
|
<para><ulink
|
2006-02-09 02:51:46 +08:00
|
|
|
url="&gnome-download-http;/gnome-python/">GNOME-Python</ulink>
|
2006-01-02 08:16:38 +08:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<itemizedlist>
|
|
|
|
<listitem>
|
|
|
|
<para><ulink
|
|
|
|
url="http://www.pygtk.org/">PyGTK</ulink> (required)
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<itemizedlist>
|
|
|
|
<listitem>
|
|
|
|
<para><ulink
|
|
|
|
url="http://www.cairographics.org/pycairo">Pycairo</ulink> (optional)
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<itemizedlist>
|
|
|
|
<listitem>
|
|
|
|
<para><ulink
|
|
|
|
url="http://www.cairographics.org/snapshots/">libsvg-cairo</ulink> (optional)
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<itemizedlist>
|
|
|
|
<listitem>
|
|
|
|
<para><ulink
|
|
|
|
url="http://www.cairographics.org/snapshots/">libsvg</ulink> (required)
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para><ulink
|
|
|
|
url="http://www.pygtk.org/">PyGTK</ulink> (optional, and circular)
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para><ulink
|
|
|
|
url="http://sourceforge.net/projects/numpy">Numerical Python</ulink> (optional)
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para><ulink
|
|
|
|
url="http://sourceforge.net/projects/numpy">Numerical Python</ulink> (optional)
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para><xref linkend="libglade"/> (required)</para>
|
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para><xref linkend="libgnomeui"/> (optional)</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para><xref linkend="libgnome"/> (required)</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para><ulink
|
2006-06-21 06:40:21 +08:00
|
|
|
url="&gnome-download-http;/pyorbit/">PyORBit</ulink> (optional)
|
2006-01-02 08:16:38 +08:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<itemizedlist>
|
|
|
|
<listitem>
|
|
|
|
<para><xref linkend="ORBit2"/> (required)</para>
|
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
|
|
|
<note>
|
|
|
|
<para>The dependency list is designed to start at the bottom and work
|
|
|
|
your way up until the last package to install is
|
|
|
|
<application>GNOME-Python</application>. Note that the dependencies
|
|
|
|
marked as <quote>required</quote> are required for the package it is
|
|
|
|
listed under. For example, you don't need to install
|
|
|
|
<application>ORBit</application> if you don't plan on installing
|
|
|
|
<application>PyORBit</application>. The minimum packages you could
|
|
|
|
install to support running <xref linkend="hal-device-manager"/> would be
|
|
|
|
(in this order): <xref linkend="libgnome"/>, <xref linkend="libglade"/>,
|
|
|
|
<ulink url="http://www.pygtk.org/">PyGTK</ulink> and <ulink
|
2006-02-09 02:51:46 +08:00
|
|
|
url="&gnome-download-http;/gnome-python/">
|
2006-01-02 08:16:38 +08:00
|
|
|
GNOME-Python</ulink>.</para>
|
|
|
|
</note>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
2005-10-01 10:55:17 +08:00
|
|
|
<sect2 role="configuration">
|
|
|
|
<title>Configuring HAL</title>
|
|
|
|
|
|
|
|
<sect3 id="hal-config">
|
|
|
|
<title>Config Files</title>
|
2006-08-09 22:21:54 +08:00
|
|
|
<para><filename>/etc/dbus-1/system.d/hal.conf</filename>,
|
|
|
|
<filename>/etc/dbus-1/system.d/halusers.conf</filename> and
|
2005-10-01 10:55:17 +08:00
|
|
|
<filename>/etc/hal/*</filename></para>
|
|
|
|
|
|
|
|
<indexterm zone="hal hal-config">
|
|
|
|
<primary sortas="e-etc-dbus-1-system.d-hal.conf">/etc/dbus-1/system.d/hal.conf</primary>
|
|
|
|
</indexterm>
|
|
|
|
|
2006-08-09 22:21:54 +08:00
|
|
|
<indexterm zone="hal hal-config">
|
|
|
|
<primary sortas="e-etc-dbus-1-system.d-halusers.conf">/etc/dbus-1/system.d/halusers.conf</primary>
|
|
|
|
</indexterm>
|
|
|
|
|
2005-10-01 10:55:17 +08:00
|
|
|
<indexterm zone="hal hal-config">
|
|
|
|
<primary sortas="e-etc-hal-star">/etc/hal/*</primary>
|
|
|
|
</indexterm>
|
|
|
|
</sect3>
|
|
|
|
|
2006-08-09 22:21:54 +08:00
|
|
|
<sect3><title>Configuration Information</title>
|
|
|
|
|
|
|
|
<para>The default setup for <application>HAL</application> is to allow
|
|
|
|
only certain users to invoke methods such as Mount(). These are
|
|
|
|
the <systemitem class="username">root</systemitem> user and the user
|
|
|
|
determined to be at the active console using <ulink
|
|
|
|
url="&blfs-wiki;/linux-pam">pam_console</ulink>. If you are not set
|
|
|
|
up to use <xref linkend="linux-pam"/> and <ulink
|
|
|
|
url="&blfs-wiki;/linux-pam">pam_console</ulink>, create a group that
|
|
|
|
is allowed to invoke <application>HAL</application> methods with the
|
|
|
|
following commands:</para>
|
|
|
|
|
|
|
|
<screen role="root"><userinput>groupadd -g 61 halusers &&
|
|
|
|
cat > /etc/dbus-1/system.d/halusers.conf << "EOF"
|
|
|
|
<literal><!DOCTYPE busconfig PUBLIC
|
|
|
|
"-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
|
|
|
|
"http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
|
|
|
|
<busconfig>
|
|
|
|
|
|
|
|
<!-- Allow users in the halusers group invoke HAL methods -->
|
|
|
|
<policy group="halusers">
|
|
|
|
<allow send_interface="org.freedesktop.Hal.Device.SystemPowerManagement"/>
|
|
|
|
<allow send_interface="org.freedesktop.Hal.Device.LaptopPanel"/>
|
|
|
|
<allow send_interface="org.freedesktop.Hal.Device.Volume"/>
|
|
|
|
<allow send_interface="org.freedesktop.Hal.Device.Volume.Crypto"/>
|
|
|
|
</policy>
|
|
|
|
|
|
|
|
</busconfig></literal>
|
|
|
|
EOF</userinput></screen>
|
|
|
|
|
|
|
|
<para>Now add the users you would like to the <systemitem
|
|
|
|
class="groupname">halusers</systemitem> group to use
|
|
|
|
<application>HAL</application>. Note that these users still need
|
|
|
|
to have appropriate permissions to access the devices that
|
|
|
|
<application>HAL</application> will invoke its methods on.</para>
|
|
|
|
|
|
|
|
<para><application>HAL</application> only provides the methods such
|
|
|
|
as Mount() to act on hardware. In order to take advantage of these,
|
|
|
|
a <application>HAL</application> event handler such as
|
|
|
|
<xref linkend="gnome-volume-manager"/> or <ulink
|
|
|
|
url="http://ivman.sourceforge.net/">Ivman</ulink> should be
|
|
|
|
installed.</para>
|
|
|
|
|
|
|
|
<!-- Following note is only relevant for HAL-0.5.7.x.
|
|
|
|
Fixed upstream. -->
|
|
|
|
<note>
|
|
|
|
<para><application>HAL</application> will ignore any devices listed
|
|
|
|
in <filename>/etc/fstab</filename> for the purpose of automounting.
|
|
|
|
You must remove any listings for devices that you would like
|
|
|
|
automounted such as CD-ROMs or USB keys.</para>
|
|
|
|
</note>
|
|
|
|
|
2006-06-21 06:40:21 +08:00
|
|
|
<!-- This section commented out for now until it is determined what should
|
|
|
|
be placed in this section
|
|
|
|
|
2006-08-09 22:21:54 +08:00
|
|
|
FIXME: I think this information is still relevant with the
|
|
|
|
exception of its interaction with /etc/fstab. Needs investigation.
|
2005-10-01 10:55:17 +08:00
|
|
|
|
2006-01-02 08:16:38 +08:00
|
|
|
<para>No configuration is necessary for the majority of installations
|
|
|
|
on systems configured with ISO-8859-1 compatible locales. The defaults
|
|
|
|
should work just fine. For some installations, tweaking of the various
|
|
|
|
policies may be required. One such configuration change necessary in some
|
|
|
|
locales is identifying the <option>iocharset</option> and
|
|
|
|
<option>codepage</option> variables in the
|
|
|
|
<filename>/etc/fstab</filename> entries created by the
|
|
|
|
<command>fstab-sync</command> program. If changes are required to the
|
|
|
|
configuration so that your locale is properly identified in the entries
|
|
|
|
created in <filename>/etc/fstab</filename>, issue the following commands
|
|
|
|
as the <systemitem class="username">root</systemitem> user (you must
|
2006-04-11 02:35:56 +08:00
|
|
|
substitute the proper data for the
|
|
|
|
<replaceable><iocharset></replaceable> and
|
|
|
|
<replaceable><codepage></replaceable> info):</para>
|
2006-01-02 08:16:38 +08:00
|
|
|
|
|
|
|
<screen role="root"><userinput>install -v -m755 -d /etc/hal/fdi/policy/30user &&
|
|
|
|
cat > /etc/hal/fdi/policy/30user/30user-policy.fdi << "EOF"
|
2006-06-21 06:40:21 +08:00
|
|
|
<literal><?xml version="1.0" encoding="UTF-8"?> <!- -*- SGML -*- ->
|
2006-01-02 08:16:38 +08:00
|
|
|
|
2006-06-21 06:40:21 +08:00
|
|
|
<!-
|
2006-01-02 08:16:38 +08:00
|
|
|
This file is used to set custom options to the HAL policy settings.
|
|
|
|
The default policy settings are defined in files contained in the
|
|
|
|
/usr/share/hal/fdi/policy directories. User defined customizations
|
|
|
|
should be in files contained in the /etc/hal/fdi/policy directories.
|
2006-06-21 06:40:21 +08:00
|
|
|
->
|
2006-01-02 08:16:38 +08:00
|
|
|
|
|
|
|
<deviceinfo version="0.2">
|
|
|
|
|
|
|
|
<device>
|
2006-01-02 09:04:22 +08:00
|
|
|
<match key="info.udi"
|
2006-01-02 08:16:38 +08:00
|
|
|
string="/org/freedesktop/Hal/devices/computer">
|
|
|
|
|
2006-06-21 06:40:21 +08:00
|
|
|
<!- Set the iocharset variable in the /etc/fstab file entry ->
|
2006-01-02 09:04:22 +08:00
|
|
|
<merge
|
2006-04-11 02:35:56 +08:00
|
|
|
key="storage.policy.default.mount_option.iocharset=<replaceable><iocharset></replaceable>"
|
2006-01-02 08:16:38 +08:00
|
|
|
type="bool">true</merge>
|
|
|
|
|
2006-06-21 06:40:21 +08:00
|
|
|
<!- Set the codepage variable in the /etc/fstab file entry ->
|
2006-01-02 09:04:22 +08:00
|
|
|
<merge
|
2006-04-11 02:35:56 +08:00
|
|
|
key="storage.policy.default.mount_option.codepage=<replaceable><codepage></replaceable>"
|
2006-01-02 08:16:38 +08:00
|
|
|
type="bool">true</merge>
|
|
|
|
|
|
|
|
</match>
|
|
|
|
</device>
|
|
|
|
|
|
|
|
</deviceinfo></literal>
|
|
|
|
|
|
|
|
EOF</userinput></screen>
|
|
|
|
|
|
|
|
<note>
|
|
|
|
<para>The previous commands created a file named
|
|
|
|
<filename>/etc/hal/fdi/policy/30user/30user-policy.fdi</filename>. To
|
|
|
|
ease readability of the file, put everything between the
|
|
|
|
<angle brackets> and <merge></merge> tags on one
|
|
|
|
line. You must have at least one space character
|
2006-01-02 09:04:22 +08:00
|
|
|
where the ends of the lines were. The file would then look like this
|
|
|
|
(trimmed at the top and bottom for brevity):</para>
|
2006-01-02 08:16:38 +08:00
|
|
|
|
|
|
|
<screen><literal> <device>
|
2006-04-11 02:35:56 +08:00
|
|
|
<match key="<replaceable><text></replaceable>" string="<replaceable><text></replaceable>">
|
2006-01-02 08:16:38 +08:00
|
|
|
|
2006-06-21 06:40:21 +08:00
|
|
|
<!- Set the iocharset variable in the /etc/fstab file entry ->
|
2006-04-11 02:35:56 +08:00
|
|
|
<merge key="<replaceable><iocharset text></replaceable>" type="bool">true</merge>
|
2006-01-02 08:16:38 +08:00
|
|
|
|
2006-06-21 06:40:21 +08:00
|
|
|
<!- Set the codepage variable in the /etc/fstab file entry ->
|
2006-04-11 02:35:56 +08:00
|
|
|
<merge key="<replaceable><codepage text></replaceable>" type="bool">true</merge>
|
2006-01-02 08:16:38 +08:00
|
|
|
|
|
|
|
</match>
|
|
|
|
</device></literal></screen>
|
|
|
|
|
|
|
|
</note>
|
2005-10-01 10:55:17 +08:00
|
|
|
|
2006-06-21 06:40:21 +08:00
|
|
|
-->
|
|
|
|
|
2006-08-09 22:21:54 +08:00
|
|
|
</sect3>
|
|
|
|
|
2005-10-01 10:55:17 +08:00
|
|
|
<sect3 id="hal-init">
|
|
|
|
<title>Boot Script</title>
|
|
|
|
|
|
|
|
<para>To automatically start the <command>hald</command> daemon
|
|
|
|
when the system is rebooted, install the
|
|
|
|
<filename>/etc/rc.d/init.d/haldaemon</filename>
|
|
|
|
bootscript from the
|
2005-12-29 09:38:36 +08:00
|
|
|
<xref linkend="bootscripts"/> package.</para>
|
2005-10-01 10:55:17 +08:00
|
|
|
|
|
|
|
<indexterm zone="hal hal-init">
|
|
|
|
<primary sortas="f-haldaemon">haldaemon</primary>
|
|
|
|
</indexterm>
|
|
|
|
|
2006-06-21 06:40:21 +08:00
|
|
|
<!-- Not sure if this is still required any longer as the HAL daemon
|
|
|
|
used to hang if you didn't first restart the DBUS daemon. This is
|
|
|
|
not the case any longer, but it still seems that D-Bus should be
|
|
|
|
restarted, as the hald.conf file is read by the D-BUS daemon.
|
|
|
|
Leaving it in for now until it is positively confirmed it is not
|
|
|
|
required. -->
|
|
|
|
|
2006-01-02 08:16:38 +08:00
|
|
|
<important>
|
2005-11-21 10:41:51 +08:00
|
|
|
<para>If the system-wide <application>D-BUS</application> daemon was
|
|
|
|
running during the installation of <application>HAL</application>,
|
|
|
|
ensure you stop and restart the <application>D-BUS</application>
|
|
|
|
daemon before attempting to start the <command>hald</command>
|
|
|
|
daemon.</para>
|
2006-01-02 08:16:38 +08:00
|
|
|
</important>
|
2005-11-21 10:41:51 +08:00
|
|
|
|
2005-10-01 10:55:17 +08:00
|
|
|
<screen role="root"><userinput>make install-haldaemon</userinput></screen>
|
|
|
|
|
|
|
|
</sect3>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="content">
|
|
|
|
<title>Contents</title>
|
|
|
|
|
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>Installed Programs</segtitle>
|
|
|
|
<segtitle>Installed Libraries</segtitle>
|
|
|
|
<segtitle>Installed Directories</segtitle>
|
|
|
|
|
|
|
|
<seglistitem>
|
2006-06-21 06:40:21 +08:00
|
|
|
<seg>hal-device, hal-device-manager,
|
2005-10-01 10:55:17 +08:00
|
|
|
hal-find-by-capability, hal-find-by-property, hal-get-property,
|
2006-06-21 06:40:21 +08:00
|
|
|
hal-set-property, hald and lshal</seg>
|
2006-04-11 02:35:56 +08:00
|
|
|
<seg>libhal.{so,a} and libhal-storage,{so,a}</seg>
|
2005-11-21 10:41:51 +08:00
|
|
|
<seg>/etc/hal, /usr/include/hal, /usr/lib/hal,
|
|
|
|
/usr/share/doc/hal-&hal-version;, /usr/share/hal
|
|
|
|
and /var/run/hald</seg>
|
2005-10-01 10:55:17 +08:00
|
|
|
</seglistitem>
|
|
|
|
</segmentedlist>
|
|
|
|
|
|
|
|
<variablelist>
|
|
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
|
|
<?dbfo list-presentation="list"?>
|
|
|
|
<?dbhtml list-presentation="table"?>
|
|
|
|
|
|
|
|
<varlistentry id="hal-device">
|
|
|
|
<term><command>hal-device</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>is used to create, remove or show a
|
|
|
|
<application>HAL</application> device.</para>
|
|
|
|
<indexterm zone="hal hal-device">
|
|
|
|
<primary sortas="b-hal-device">hal-device</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="hal-device-manager">
|
|
|
|
<term><command>hal-device-manager</command></term>
|
|
|
|
<listitem>
|
2006-09-23 23:46:31 +08:00
|
|
|
<para>shows a graphical representation of all the devices
|
2005-10-01 10:55:17 +08:00
|
|
|
<application>HAL</application> is aware of. This program requires
|
2006-01-02 08:16:38 +08:00
|
|
|
<xref linkend="hal-runtime-dependencies"/>. Here is a <ulink
|
|
|
|
url="http://cvs.freedesktop.org/*checkout*/hal/hal/doc/spec/hal-devices1.png">
|
|
|
|
screenshot</ulink> of <command>hal-device-manager</command>
|
|
|
|
communicating with the HAL daemon and displaying a tree of device
|
|
|
|
objects. The shown properties in the screenshot are for a device
|
|
|
|
object representing a hard disk.</para>
|
2005-10-01 10:55:17 +08:00
|
|
|
<indexterm zone="hal hal-device-manager">
|
|
|
|
<primary sortas="b-hal-device-manager">hal-device-manager</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="hal-find-by-capability">
|
|
|
|
<term><command>hal-find-by-capability</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>prints the Unique Device Identifiers for
|
|
|
|
<application>HAL</application> device objects of a given
|
|
|
|
capability.</para>
|
|
|
|
<indexterm zone="hal hal-find-by-capability">
|
2006-09-23 22:15:36 +08:00
|
|
|
<primary sortas="b-hal-find-by-capability">hal-find-by-capability</primary>
|
2005-10-01 10:55:17 +08:00
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="hal-find-by-property">
|
|
|
|
<term><command>hal-find-by-property</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>prints the Unique Device Identifiers for
|
|
|
|
<application>HAL</application> device objects where a given property
|
|
|
|
assumes a given value.</para>
|
|
|
|
<indexterm zone="hal hal-find-by-property">
|
|
|
|
<primary sortas="b-hal-find-by-property">hal-find-by-property</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="hal-get-property">
|
|
|
|
<term><command>hal-get-property</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>retrieves a property from a device.</para>
|
|
|
|
<indexterm zone="hal hal-get-property">
|
|
|
|
<primary sortas="b-hal-get-property">hal-get-property</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="hal-set-property">
|
|
|
|
<term><command>hal-set-property</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>attempts to set property for a device. Note that, due to
|
|
|
|
security considerations, it may not be possible to set a
|
|
|
|
property.</para>
|
|
|
|
<indexterm zone="hal hal-set-property">
|
|
|
|
<primary sortas="b-hal-set-property">hal-set-property</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="hald">
|
|
|
|
<term><command>hald</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>is the <application>HAL</application> daemon program.</para>
|
|
|
|
<indexterm zone="hal hald">
|
|
|
|
<primary sortas="b-hald">hald</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="lshal">
|
|
|
|
<term><command>lshal</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>shows all devices and their properties. If the --monitor option
|
|
|
|
is given then the device list and all devices are monitored for
|
|
|
|
changes.</para>
|
|
|
|
<indexterm zone="hal lshal">
|
|
|
|
<primary sortas="b-lshal">lshal</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="libhal">
|
2006-04-11 02:35:56 +08:00
|
|
|
<term><filename class='libraryfile'>libhal.{so,a}</filename></term>
|
2005-10-01 10:55:17 +08:00
|
|
|
<listitem>
|
|
|
|
<para>contains the API functions required by the
|
|
|
|
<application>HAL</application> programs.</para>
|
|
|
|
<indexterm zone="hal libhal">
|
2006-04-11 02:35:56 +08:00
|
|
|
<primary sortas="c-libhal">libhal.{so,a}</primary>
|
2005-10-01 10:55:17 +08:00
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="libhal-storage">
|
2006-04-11 02:35:56 +08:00
|
|
|
<term><filename class='libraryfile'>libhal-storage.{so,a}</filename></term>
|
2005-10-01 10:55:17 +08:00
|
|
|
<listitem>
|
|
|
|
<para>contains the API functions required by the
|
|
|
|
<application>HAL</application> storage and volume utility
|
|
|
|
programs.</para>
|
|
|
|
<indexterm zone="hal libhal-storage">
|
2006-04-11 02:35:56 +08:00
|
|
|
<primary sortas="c-libhal-storage">libhal-storage.{so,a}</primary>
|
2005-10-01 10:55:17 +08:00
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
</variablelist>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
</sect1>
|