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 hal-download-http "http://freedesktop.org/~david/dist/hal-&hal-version;.tar.gz">
|
---|
8 | <!-- <!ENTITY hal-download-ftp "ftp://ftp.fu-berlin.de/unix/linux/mirrors/gentoo/distfiles/hal-&hal-version;.tar.gz"> -->
|
---|
9 | <!ENTITY hal-download-ftp " ">
|
---|
10 | <!ENTITY hal-md5sum "6a40f49f964e64358e53652038f3059f">
|
---|
11 | <!ENTITY hal-size "1.5 MB">
|
---|
12 | <!ENTITY hal-buildsize "24 MB">
|
---|
13 | <!ENTITY hal-time "0.5 SBU">
|
---|
14 |
|
---|
15 | <!ENTITY hal-info-version "20070618">
|
---|
16 | <!ENTITY hal-info-download-http "http://freedesktop.org/~david/dist/hal-info-&hal-info-version;.tar.gz">
|
---|
17 | <!-- <!ENTITY hal-info-download-ftp "ftp://ftp.fu-berlin.de/unix/linux/mirrors/gentoo/distfiles/hal-info-&hal-info-version;.tar.gz"> -->
|
---|
18 | <!ENTITY hal-info-download-ftp " ">
|
---|
19 | <!ENTITY hal-info-md5sum "c7005ccb1765d8359fd2348350770495">
|
---|
20 | <!ENTITY hal-info-size "118 KB">
|
---|
21 | ]>
|
---|
22 |
|
---|
23 | <sect1 id="hal" xreflabel="HAL-&hal-version;">
|
---|
24 | <?dbhtml filename="hal.html"?>
|
---|
25 |
|
---|
26 | <sect1info>
|
---|
27 | <othername>$LastChangedBy$</othername>
|
---|
28 | <date>$Date$</date>
|
---|
29 | </sect1info>
|
---|
30 |
|
---|
31 | <title>HAL-&hal-version;</title>
|
---|
32 |
|
---|
33 | <indexterm zone="hal">
|
---|
34 | <primary sortas="a-HAL">HAL</primary>
|
---|
35 | </indexterm>
|
---|
36 |
|
---|
37 | <sect2 role="package">
|
---|
38 | <title>Introduction to HAL</title>
|
---|
39 |
|
---|
40 | <para><application>HAL</application> is a hardware abstraction layer, which
|
---|
41 | is a piece of software that provides a view of the various hardware
|
---|
42 | attached to a system. In addition to this, <application>HAL</application>
|
---|
43 | keeps detailed metadata for each piece of hardware and provides hooks such
|
---|
44 | that system and desktop-level software can react to changes in the hardware
|
---|
45 | configuration in order to maintain system policy.</para>
|
---|
46 |
|
---|
47 | <para>The most important goal of <application>HAL</application> is to
|
---|
48 | provide plug-and-play facilities for UNIX-like desktops with focus on
|
---|
49 | providing a rich and extensible description of device characteristics and
|
---|
50 | features. One example of the functionality provided by
|
---|
51 | <application>HAL</application> is when you plug in a USB storage device.
|
---|
52 | <application>HAL</application> can automatically create a mount point in
|
---|
53 | <filename class="directory">/media</filename> and mount the device.</para>
|
---|
54 |
|
---|
55 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
56 | <itemizedlist spacing="compact">
|
---|
57 | <listitem>
|
---|
58 | <para>Download (HTTP): <ulink url="&hal-download-http;"/></para>
|
---|
59 | </listitem>
|
---|
60 | <listitem>
|
---|
61 | <para>Download (FTP): <ulink url="&hal-download-ftp;"/></para>
|
---|
62 | </listitem>
|
---|
63 | <listitem>
|
---|
64 | <para>Download MD5 sum: &hal-md5sum;</para>
|
---|
65 | </listitem>
|
---|
66 | <listitem>
|
---|
67 | <para>Download size: &hal-size;</para>
|
---|
68 | </listitem>
|
---|
69 | <listitem>
|
---|
70 | <para>Estimated disk space required: &hal-buildsize;</para>
|
---|
71 | </listitem>
|
---|
72 | <listitem>
|
---|
73 | <para>Estimated build time: &hal-time;</para>
|
---|
74 | </listitem>
|
---|
75 | </itemizedlist>
|
---|
76 |
|
---|
77 | <bridgehead renderas="sect3">Additional Package Download</bridgehead>
|
---|
78 | <itemizedlist spacing='compact'>
|
---|
79 | <title>Required Hardware Data</title>
|
---|
80 | <listitem>
|
---|
81 | <para>Download (HTTP): <ulink url="&hal-info-download-http;"/></para>
|
---|
82 | </listitem>
|
---|
83 | <listitem>
|
---|
84 | <para>Download (FTP): <ulink url="&hal-info-download-ftp;"/></para>
|
---|
85 | </listitem>
|
---|
86 | <listitem>
|
---|
87 | <para>Download MD5 sum: &hal-info-md5sum;</para>
|
---|
88 | </listitem>
|
---|
89 | <listitem>
|
---|
90 | <para>Download size: &hal-info-size;</para>
|
---|
91 | </listitem>
|
---|
92 | </itemizedlist>
|
---|
93 |
|
---|
94 | <bridgehead renderas="sect3">HAL Dependencies</bridgehead>
|
---|
95 |
|
---|
96 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
97 | <para role="required"><xref linkend="dbus-glib"/> and
|
---|
98 | <xref linkend="perl-xml-parser"/></para>
|
---|
99 |
|
---|
100 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
101 | <para role="recommended"><xref linkend="pciutils"/>
|
---|
102 | (with a current <filename>pci.ids</filename> file) and
|
---|
103 | <xref linkend="usbutils"/>
|
---|
104 | (with a current <filename>usb.ids</filename> file)</para>
|
---|
105 |
|
---|
106 | <bridgehead renderas="sect4">Optional (to Build
|
---|
107 | <command>hal-device-manager</command>)</bridgehead>
|
---|
108 | <para role="optional"><xref linkend="dbus-python"/></para>
|
---|
109 |
|
---|
110 | <bridgehead renderas="sect4">Optional (to Create Documentation)</bridgehead>
|
---|
111 | <para role="optional"><xref linkend="libxml2"/> and
|
---|
112 | <ulink url="http://cyberelk.net/tim/xmlto/">xmlto</ulink></para>
|
---|
113 |
|
---|
114 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
115 | <para role="optional"><xref linkend="gtk-doc"/>,
|
---|
116 | <xref linkend="libusb"/>,
|
---|
117 | <ulink url="http://www.gnu.org/software/parted/index.shtml">Parted</ulink>*,
|
---|
118 | <ulink url="http://linux.dell.com/libsmbios/main/index.html">libsmbios</ulink>,
|
---|
119 | <ulink url="http://gitweb.freedesktop.org/?p=PolicyKit.git;a=summary">PolicyKit</ulink>,
|
---|
120 | and <xref linkend="intltool"/></para>
|
---|
121 |
|
---|
122 | <para>* Use the following command after changing into the
|
---|
123 | <application>HAL</application> source directory to modify the package
|
---|
124 | <command>configure</command> script if you have
|
---|
125 | <application>Parted</application> version 1.8.7 installed.</para>
|
---|
126 |
|
---|
127 | <screen><userinput>sed -i -e 's%, 1.8.6%&, 1.8.7%' \
|
---|
128 | -e 's% or 1.8.6%/1.8.6 or 1.8.7%' \
|
---|
129 | -e 's%6))%6) ||\
|
---|
130 | (major == 1 \&\& minor == 8 \&\& micro == 7))%' \
|
---|
131 | configure</userinput></screen>
|
---|
132 |
|
---|
133 | <para condition="html" role="usernotes">User Notes:
|
---|
134 | <ulink url="&blfs-wiki;/hal"/></para>
|
---|
135 |
|
---|
136 | </sect2>
|
---|
137 |
|
---|
138 | <sect2 role="installation">
|
---|
139 | <title>Installation of HAL</title>
|
---|
140 |
|
---|
141 | <para>You must create a dedicated user and group before installing the
|
---|
142 | package. Though the default BLFS instructions run the
|
---|
143 | <application>HAL</application> daemon as the
|
---|
144 | <systemitem class="username">root</systemitem> user, a configuration file
|
---|
145 | is installed which has the dedicated user's name hard-coded in it. This
|
---|
146 | causes a confusing message to be generated when starting the
|
---|
147 | <application>D-BUS</application> daemon. Issue the following commands as
|
---|
148 | the <systemitem class="username">root</systemitem> user:</para>
|
---|
149 |
|
---|
150 | <screen role="root"><userinput>groupadd -g 19 haldaemon &&
|
---|
151 | useradd -c "HAL Daemon User" -d /dev/null -u 19 \
|
---|
152 | -g haldaemon -s /bin/false haldaemon</userinput></screen>
|
---|
153 |
|
---|
154 | <para>Install <application>HAL</application> by running the following
|
---|
155 | commands:</para>
|
---|
156 |
|
---|
157 | <screen><userinput>./configure --prefix=/usr \
|
---|
158 | --sysconfdir=/etc \
|
---|
159 | --libexecdir=/usr/lib/hal \
|
---|
160 | --localstatedir=/var &&
|
---|
161 | make</userinput></screen>
|
---|
162 |
|
---|
163 | <para>To test the results, issue <command>make check</command>.</para>
|
---|
164 |
|
---|
165 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
166 |
|
---|
167 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
168 |
|
---|
169 | <para>Install the <application>HAL</application> hardware data with the
|
---|
170 | following commands:</para>
|
---|
171 |
|
---|
172 | <screen><userinput>tar -xf ../hal-info-&hal-info-version;.tar.gz &&
|
---|
173 | cd hal-info-&hal-info-version; & &
|
---|
174 | ./configure --prefix=/usr</userinput></screen>
|
---|
175 |
|
---|
176 | <para>Finally, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
177 |
|
---|
178 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
179 |
|
---|
180 | </sect2>
|
---|
181 |
|
---|
182 | <sect2 role="commands">
|
---|
183 | <title>Command Explanations</title>
|
---|
184 |
|
---|
185 | <para><parameter>--libexecdir=/usr/lib/hal</parameter>: This parameter
|
---|
186 | forces the installation of libexec files to
|
---|
187 | <filename class='directory'>/usr/lib/hal</filename> instead of
|
---|
188 | <filename class='directory'>/usr/libexec</filename>.</para>
|
---|
189 |
|
---|
190 | <para><parameter>--localstatedir=/var</parameter>: This parameter forces
|
---|
191 | the creation of the <filename>pid</filename> file to
|
---|
192 | <filename class='directory'>/var/run/hald</filename> instead of
|
---|
193 | <filename class='directory'>/usr/var/run/hald</filename>.</para>
|
---|
194 |
|
---|
195 | <para><parameter>--enable-docbook-docs
|
---|
196 | --docdir=/usr/share/doc/hal-&hal-version;</parameter>: If <xref
|
---|
197 | linkend="libxml2"/> and <ulink
|
---|
198 | url="http://cyberelk.net/tim/xmlto/">xmlto</ulink> are available, these
|
---|
199 | parameters enable the <application>HAL</application> specification
|
---|
200 | documentation to be built.</para>
|
---|
201 |
|
---|
202 | </sect2>
|
---|
203 |
|
---|
204 | <sect2 id="hal-runtime-dependencies" xreflabel="GNOME-Python">
|
---|
205 | <title>Run-Time Dependencies</title>
|
---|
206 |
|
---|
207 | <para>A few more packages enable more functionality in
|
---|
208 | <application>HAL</application> at run-time. These include <ulink
|
---|
209 | url="http://ca.geocities.com/jefftranter@rogers.com/eject.html">Eject</ulink>,
|
---|
210 | <ulink url="http://people.freedesktop.org/~mccann/dist/">ConsoleKit</ulink>,
|
---|
211 | <ulink url="http://www.nongnu.org/dmidecode/">dmidecode</ulink>,
|
---|
212 | <ulink url="http://sourceware.org/dm/">Device-mapper</ulink>,
|
---|
213 | <ulink url="http://luks.endorphin.org/dm-crypt">Cryptsetup-LUKS</ulink>, and
|
---|
214 | <ulink url="http://cvsweb.freedesktop.org/pm-utils/pm-utils/">pm-utils</ulink>.</para>
|
---|
215 |
|
---|
216 | <para>The <xref linkend="hal-device-manager"/> program requires several
|
---|
217 | additional packages to be installed before it will run. The list is
|
---|
218 | significant and requires a substantial commitment to install them. It is
|
---|
219 | left up to you to determine if the time and effort spent installing the
|
---|
220 | following packages is worth using the <command>hal-device-manager</command>
|
---|
221 | program.</para>
|
---|
222 |
|
---|
223 | <para>Though the only requirement to run the
|
---|
224 | <command>hal-device-manager</command> program is installing
|
---|
225 | <ulink url="&gnome-download-http;/gnome-python/">
|
---|
226 | GNOME-Python</ulink>, the dependency list is staggering. The following
|
---|
227 | list does not include the dependencies already identified in the BLFS
|
---|
228 | book. For example, <application>libgnome</application> already lists
|
---|
229 | <application>GNOME VFS</application>, <application>GConf</application>,
|
---|
230 | etc., so they are not repeated here. Note that some of the dependencies
|
---|
231 | have their own dependencies, which have their own, and so forth and so
|
---|
232 | on.</para>
|
---|
233 |
|
---|
234 | <itemizedlist>
|
---|
235 | <listitem>
|
---|
236 | <para><ulink
|
---|
237 | url="&gnome-download-http;/gnome-python/">GNOME-Python</ulink>
|
---|
238 | </para>
|
---|
239 |
|
---|
240 | <itemizedlist>
|
---|
241 | <listitem>
|
---|
242 | <para><ulink
|
---|
243 | url="http://www.pygtk.org/">PyGTK</ulink> (required)
|
---|
244 | </para>
|
---|
245 |
|
---|
246 | <itemizedlist>
|
---|
247 | <listitem>
|
---|
248 | <para><xref linkend="libglade"/> (required)</para>
|
---|
249 | </listitem>
|
---|
250 | <listitem>
|
---|
251 | <para><ulink
|
---|
252 | url="&gnome-download-http;/pygobject/">PyGObject</ulink> (required)</para>
|
---|
253 | </listitem>
|
---|
254 | <listitem>
|
---|
255 | <para><ulink
|
---|
256 | url="http://www.cairographics.org/pycairo">Pycairo</ulink> (optional)
|
---|
257 | </para>
|
---|
258 |
|
---|
259 | <!-- Removing these dependencies as they are now obsolete
|
---|
260 | See the pycairo docs for full details
|
---|
261 | <itemizedlist>
|
---|
262 | <listitem>
|
---|
263 | <para><ulink
|
---|
264 | url="http://www.cairographics.org/snapshots/">libsvg-cairo</ulink> (optional)
|
---|
265 | </para>
|
---|
266 |
|
---|
267 | <itemizedlist>
|
---|
268 | <listitem>
|
---|
269 | <para><ulink
|
---|
270 | url="http://www.cairographics.org/snapshots/">libsvg</ulink> (required)
|
---|
271 | </para>
|
---|
272 | </listitem>
|
---|
273 | </itemizedlist>
|
---|
274 |
|
---|
275 | </listitem>
|
---|
276 | <listitem>
|
---|
277 | <para><ulink
|
---|
278 | url="http://www.pygtk.org/">PyGTK</ulink> (optional, and circular)
|
---|
279 | </para>
|
---|
280 | </listitem>
|
---|
281 | <listitem>
|
---|
282 | <para><ulink
|
---|
283 | url="http://sourceforge.net/projects/numpy">Numerical Python</ulink> (optional)
|
---|
284 | </para>
|
---|
285 | </listitem>
|
---|
286 | </itemizedlist>
|
---|
287 | -->
|
---|
288 |
|
---|
289 | </listitem>
|
---|
290 | <listitem>
|
---|
291 | <para><ulink
|
---|
292 | url="http://sourceforge.net/projects/numpy">Old Numeric</ulink> (optional)
|
---|
293 | </para>
|
---|
294 | </listitem>
|
---|
295 | </itemizedlist>
|
---|
296 |
|
---|
297 | </listitem>
|
---|
298 | <listitem>
|
---|
299 | <para><xref linkend="libgnomeui"/> (optional)</para>
|
---|
300 | </listitem>
|
---|
301 | <listitem>
|
---|
302 | <para><xref linkend="libgnome"/> (required)</para>
|
---|
303 | </listitem>
|
---|
304 | <listitem>
|
---|
305 | <para><ulink
|
---|
306 | url="&gnome-download-http;/pyorbit/">PyORBit</ulink> (optional)
|
---|
307 | </para>
|
---|
308 |
|
---|
309 | <itemizedlist>
|
---|
310 | <listitem>
|
---|
311 | <para><xref linkend="ORBit2"/> (required)</para>
|
---|
312 | </listitem>
|
---|
313 | </itemizedlist>
|
---|
314 |
|
---|
315 | </listitem>
|
---|
316 | </itemizedlist>
|
---|
317 |
|
---|
318 | </listitem>
|
---|
319 | </itemizedlist>
|
---|
320 |
|
---|
321 | <note>
|
---|
322 | <para>The dependency list is designed to start at the bottom and work
|
---|
323 | your way up until the last package to install is
|
---|
324 | <application>GNOME-Python</application>. Note that the dependencies
|
---|
325 | marked as <quote>required</quote> are required for the package it is
|
---|
326 | listed under. For example, you don't need to install
|
---|
327 | <application>ORBit</application> if you don't plan on installing
|
---|
328 | <application>PyORBit</application>. The minimum packages you could
|
---|
329 | install to support running <xref linkend="hal-device-manager"/> would be
|
---|
330 | (in this order): <xref linkend="libgnome"/>, <xref linkend="libglade"/>,
|
---|
331 | <ulink url="http://www.pygtk.org/">PyGTK</ulink> and <ulink
|
---|
332 | url="&gnome-download-http;/gnome-python/">
|
---|
333 | GNOME-Python</ulink>.</para>
|
---|
334 | </note>
|
---|
335 |
|
---|
336 | </sect2>
|
---|
337 |
|
---|
338 | <sect2 role="configuration">
|
---|
339 | <title>Configuring HAL</title>
|
---|
340 |
|
---|
341 | <sect3 id="hal-config">
|
---|
342 | <title>Config Files</title>
|
---|
343 | <para><filename>/etc/dbus-1/system.d/hal.conf</filename>,
|
---|
344 | <filename>/etc/dbus-1/system.d/halusers.conf</filename> and
|
---|
345 | <filename>/etc/hal/*</filename></para>
|
---|
346 |
|
---|
347 | <indexterm zone="hal hal-config">
|
---|
348 | <primary sortas="e-etc-dbus-1-system.d-hal.conf">/etc/dbus-1/system.d/hal.conf</primary>
|
---|
349 | </indexterm>
|
---|
350 |
|
---|
351 | <indexterm zone="hal hal-config">
|
---|
352 | <primary sortas="e-etc-dbus-1-system.d-halusers.conf">/etc/dbus-1/system.d/halusers.conf</primary>
|
---|
353 | </indexterm>
|
---|
354 |
|
---|
355 | <indexterm zone="hal hal-config">
|
---|
356 | <primary sortas="e-etc-hal-star">/etc/hal/*</primary>
|
---|
357 | </indexterm>
|
---|
358 | </sect3>
|
---|
359 |
|
---|
360 | <sect3><title>Configuration Information</title>
|
---|
361 |
|
---|
362 | <para>The default setup for <application>HAL</application> is to allow
|
---|
363 | only certain users to invoke methods such as Mount(). These are
|
---|
364 | the <systemitem class="username">root</systemitem> user and the user
|
---|
365 | determined to be at the active console using <ulink
|
---|
366 | url="&blfs-wiki;/linux-pam">pam_console</ulink>. If you are not set
|
---|
367 | up to use <xref linkend="linux-pam"/> and <ulink
|
---|
368 | url="&blfs-wiki;/linux-pam">pam_console</ulink>, create a group that
|
---|
369 | is allowed to invoke <application>HAL</application> methods with the
|
---|
370 | following commands:</para>
|
---|
371 |
|
---|
372 | <screen role="root"><userinput>groupadd -g 61 halusers &&
|
---|
373 | cat > /etc/dbus-1/system.d/halusers.conf << "EOF"
|
---|
374 | <literal><!DOCTYPE busconfig PUBLIC
|
---|
375 | "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
|
---|
376 | "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
|
---|
377 | <busconfig>
|
---|
378 |
|
---|
379 | <!-- Allow users in the halusers group invoke HAL methods -->
|
---|
380 | <policy group="halusers">
|
---|
381 | <allow send_interface="org.freedesktop.Hal.Device.SystemPowerManagement"/>
|
---|
382 | <allow send_interface="org.freedesktop.Hal.Device.LaptopPanel"/>
|
---|
383 | <allow send_interface="org.freedesktop.Hal.Device.Volume"/>
|
---|
384 | <allow send_interface="org.freedesktop.Hal.Device.Volume.Crypto"/>
|
---|
385 | </policy>
|
---|
386 |
|
---|
387 | </busconfig></literal>
|
---|
388 | EOF</userinput></screen>
|
---|
389 |
|
---|
390 | <para>Now add the users you would like to the <systemitem
|
---|
391 | class="groupname">halusers</systemitem> group to use
|
---|
392 | <application>HAL</application>. Note that these users still need
|
---|
393 | to have appropriate permissions to access the devices that
|
---|
394 | <application>HAL</application> will invoke its methods on.</para>
|
---|
395 |
|
---|
396 | <para>With the above configuration in place, authorized users now
|
---|
397 | have the ability to unmount disk partitions mounted at non-standard
|
---|
398 | locations such as <filename class='directory'>/pub</filename>. If
|
---|
399 | you'd like to restrict this policy to only drives which are considered
|
---|
400 | removable or hotpluggable, add the following configuration file as
|
---|
401 | the <systemitem class='username'>root</systemitem> user:</para>
|
---|
402 |
|
---|
403 | <screen role="root"><userinput>cat > /etc/hal/fdi/policy/no-fixed-drives.fdi << "EOF"
|
---|
404 | <literal><?xml version="1.0" encoding="UTF-8"?> <!-- -*- SGML -*- -->
|
---|
405 |
|
---|
406 | <!-- Don't allow HAL methods on disks that are not
|
---|
407 | removable or hotpluggable -->
|
---|
408 |
|
---|
409 | <deviceinfo version="0.2">
|
---|
410 | <device>
|
---|
411 | <match key="@block.storage_device:storage.hotpluggable" bool="false">
|
---|
412 | <match key="@block.storage_device:storage.removable" bool="false">
|
---|
413 | <merge key="volume.ignore" type="bool">true</merge>
|
---|
414 | </match>
|
---|
415 | </match>
|
---|
416 | </device>
|
---|
417 | </deviceinfo></literal>
|
---|
418 | EOF</userinput></screen>
|
---|
419 |
|
---|
420 | <para><application>HAL</application> only provides the methods such
|
---|
421 | as Mount() to act on hardware. In order to take advantage of these,
|
---|
422 | a <application>HAL</application> event handler such as
|
---|
423 | <xref linkend="gnome-volume-manager"/> or <ulink
|
---|
424 | url="http://ivman.sourceforge.net/">Ivman</ulink> should be
|
---|
425 | installed.</para>
|
---|
426 |
|
---|
427 | <!-- Following note is only relevant for HAL-0.5.7.x.
|
---|
428 | Fixed upstream. -->
|
---|
429 | <note>
|
---|
430 | <para><application>HAL</application> will ignore any devices listed
|
---|
431 | in <filename>/etc/fstab</filename> for the purpose of automounting.
|
---|
432 | You must remove any listings for devices that you would like
|
---|
433 | automounted such as CD-ROMs or USB keys.</para>
|
---|
434 | </note>
|
---|
435 |
|
---|
436 | <!-- This section commented out for now until it is determined what should
|
---|
437 | be placed in this section
|
---|
438 |
|
---|
439 | FIXME: I think this information is still relevant with the
|
---|
440 | exception of its interaction with /etc/fstab. Needs investigation.
|
---|
441 |
|
---|
442 | <para>No configuration is necessary for the majority of installations
|
---|
443 | on systems configured with ISO-8859-1 compatible locales. The defaults
|
---|
444 | should work just fine. For some installations, tweaking of the various
|
---|
445 | policies may be required. One such configuration change necessary in some
|
---|
446 | locales is identifying the <option>iocharset</option> and
|
---|
447 | <option>codepage</option> variables in the
|
---|
448 | <filename>/etc/fstab</filename> entries created by the
|
---|
449 | <command>fstab-sync</command> program. If changes are required to the
|
---|
450 | configuration so that your locale is properly identified in the entries
|
---|
451 | created in <filename>/etc/fstab</filename>, issue the following commands
|
---|
452 | as the <systemitem class="username">root</systemitem> user (you must
|
---|
453 | substitute the proper data for the
|
---|
454 | <replaceable><iocharset></replaceable> and
|
---|
455 | <replaceable><codepage></replaceable> info):</para>
|
---|
456 |
|
---|
457 | <screen role="root"><userinput>install -v -m755 -d /etc/hal/fdi/policy/30user &&
|
---|
458 | cat > /etc/hal/fdi/policy/30user/30user-policy.fdi << "EOF"
|
---|
459 | <literal><?xml version="1.0" encoding="UTF-8"?> <!- -*- SGML -*- ->
|
---|
460 |
|
---|
461 | <!-
|
---|
462 | This file is used to set custom options to the HAL policy settings.
|
---|
463 | The default policy settings are defined in files contained in the
|
---|
464 | /usr/share/hal/fdi/policy directories. User defined customizations
|
---|
465 | should be in files contained in the /etc/hal/fdi/policy directories.
|
---|
466 | ->
|
---|
467 |
|
---|
468 | <deviceinfo version="0.2">
|
---|
469 |
|
---|
470 | <device>
|
---|
471 | <match key="info.udi"
|
---|
472 | string="/org/freedesktop/Hal/devices/computer">
|
---|
473 |
|
---|
474 | <!- Set the iocharset variable in the /etc/fstab file entry ->
|
---|
475 | <merge
|
---|
476 | key="storage.policy.default.mount_option.iocharset=<replaceable><iocharset></replaceable>"
|
---|
477 | type="bool">true</merge>
|
---|
478 |
|
---|
479 | <!- Set the codepage variable in the /etc/fstab file entry ->
|
---|
480 | <merge
|
---|
481 | key="storage.policy.default.mount_option.codepage=<replaceable><codepage></replaceable>"
|
---|
482 | type="bool">true</merge>
|
---|
483 |
|
---|
484 | </match>
|
---|
485 | </device>
|
---|
486 |
|
---|
487 | </deviceinfo></literal>
|
---|
488 |
|
---|
489 | EOF</userinput></screen>
|
---|
490 |
|
---|
491 | <note>
|
---|
492 | <para>The previous commands created a file named
|
---|
493 | <filename>/etc/hal/fdi/policy/30user/30user-policy.fdi</filename>. To
|
---|
494 | ease readability of the file, put everything between the
|
---|
495 | <angle brackets> and <merge></merge> tags on one
|
---|
496 | line. You must have at least one space character
|
---|
497 | where the ends of the lines were. The file would then look like this
|
---|
498 | (trimmed at the top and bottom for brevity):</para>
|
---|
499 |
|
---|
500 | <screen><literal> <device>
|
---|
501 | <match key="<replaceable><text></replaceable>" string="<replaceable><text></replaceable>">
|
---|
502 |
|
---|
503 | <!- Set the iocharset variable in the /etc/fstab file entry ->
|
---|
504 | <merge key="<replaceable><iocharset text></replaceable>" type="bool">true</merge>
|
---|
505 |
|
---|
506 | <!- Set the codepage variable in the /etc/fstab file entry ->
|
---|
507 | <merge key="<replaceable><codepage text></replaceable>" type="bool">true</merge>
|
---|
508 |
|
---|
509 | </match>
|
---|
510 | </device></literal></screen>
|
---|
511 |
|
---|
512 | </note>
|
---|
513 |
|
---|
514 | -->
|
---|
515 |
|
---|
516 | </sect3>
|
---|
517 |
|
---|
518 | <sect3 id="hal-init">
|
---|
519 | <title>Boot Script</title>
|
---|
520 |
|
---|
521 | <para>To automatically start the <command>hald</command> daemon
|
---|
522 | when the system is rebooted, install the
|
---|
523 | <filename>/etc/rc.d/init.d/haldaemon</filename>
|
---|
524 | bootscript from the
|
---|
525 | <xref linkend="bootscripts"/> package.</para>
|
---|
526 |
|
---|
527 | <indexterm zone="hal hal-init">
|
---|
528 | <primary sortas="f-haldaemon">haldaemon</primary>
|
---|
529 | </indexterm>
|
---|
530 |
|
---|
531 | <!-- Not sure if this is still required any longer as the HAL daemon
|
---|
532 | used to hang if you didn't first restart the DBUS daemon. This is
|
---|
533 | not the case any longer, but it still seems that D-Bus should be
|
---|
534 | restarted, as the hald.conf file is read by the D-BUS daemon.
|
---|
535 | Leaving it in for now until it is positively confirmed it is not
|
---|
536 | required. -->
|
---|
537 |
|
---|
538 | <important>
|
---|
539 | <para>If the system-wide <application>D-BUS</application> daemon was
|
---|
540 | running during the installation of <application>HAL</application>,
|
---|
541 | ensure you stop and restart the <application>D-BUS</application>
|
---|
542 | daemon before attempting to start the <command>hald</command>
|
---|
543 | daemon.</para>
|
---|
544 | </important>
|
---|
545 |
|
---|
546 | <screen role="root"><userinput>make install-haldaemon</userinput></screen>
|
---|
547 |
|
---|
548 | </sect3>
|
---|
549 |
|
---|
550 | </sect2>
|
---|
551 |
|
---|
552 | <sect2 role="content">
|
---|
553 | <title>Contents</title>
|
---|
554 |
|
---|
555 | <segmentedlist>
|
---|
556 | <segtitle>Installed Programs</segtitle>
|
---|
557 | <segtitle>Installed Libraries</segtitle>
|
---|
558 | <segtitle>Installed Directories</segtitle>
|
---|
559 |
|
---|
560 | <seglistitem>
|
---|
561 | <seg>hal-device, hal-device-manager, hal-disable-polling,
|
---|
562 | hal-find-by-capability, hal-find-by-property, hal-get-property,
|
---|
563 | hal-is-caller-locked-out, hal-lock, hal-set-property, hald and
|
---|
564 | lshal</seg>
|
---|
565 | <seg>libhal.{so,a} and libhal-storage,{so,a}</seg>
|
---|
566 | <seg>/etc/hal, /usr/include/hal, /usr/lib/hal,
|
---|
567 | /usr/share/doc/hal-&hal-version;, /usr/share/hal, /var/cache/hald,
|
---|
568 | /var/lib/hal, and /var/run/hald</seg>
|
---|
569 | </seglistitem>
|
---|
570 | </segmentedlist>
|
---|
571 |
|
---|
572 | <variablelist>
|
---|
573 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
574 | <?dbfo list-presentation="list"?>
|
---|
575 | <?dbhtml list-presentation="table"?>
|
---|
576 |
|
---|
577 | <varlistentry id="hal-device">
|
---|
578 | <term><command>hal-device</command></term>
|
---|
579 | <listitem>
|
---|
580 | <para>is used to create, remove or show a
|
---|
581 | <application>HAL</application> device.</para>
|
---|
582 | <indexterm zone="hal hal-device">
|
---|
583 | <primary sortas="b-hal-device">hal-device</primary>
|
---|
584 | </indexterm>
|
---|
585 | </listitem>
|
---|
586 | </varlistentry>
|
---|
587 |
|
---|
588 | <varlistentry id="hal-device-manager">
|
---|
589 | <term><command>hal-device-manager</command></term>
|
---|
590 | <listitem>
|
---|
591 | <para>shows a graphical representation of all the devices
|
---|
592 | <application>HAL</application> is aware of. This program requires
|
---|
593 | <xref linkend="hal-runtime-dependencies"/>. Here is a <ulink
|
---|
594 | url="http://cvs.freedesktop.org/*checkout*/hal/hal/doc/spec/hal-devices1.png">
|
---|
595 | screenshot</ulink> of <command>hal-device-manager</command>
|
---|
596 | communicating with the HAL daemon and displaying a tree of device
|
---|
597 | objects. The shown properties in the screenshot are for a device
|
---|
598 | object representing a hard disk.</para>
|
---|
599 | <indexterm zone="hal hal-device-manager">
|
---|
600 | <primary sortas="b-hal-device-manager">hal-device-manager</primary>
|
---|
601 | </indexterm>
|
---|
602 | </listitem>
|
---|
603 | </varlistentry>
|
---|
604 |
|
---|
605 | <varlistentry id="hal-disable-polling">
|
---|
606 | <term><command>hal-disable-polling</command></term>
|
---|
607 | <listitem>
|
---|
608 | <para>can be used to to disable and enable media detection on
|
---|
609 | drives with removable storage.</para>
|
---|
610 | <indexterm zone="hal hal-disable-polling">
|
---|
611 | <primary sortas="b-hal-disable-polling">hal-disable-polling</primary>
|
---|
612 | </indexterm>
|
---|
613 | </listitem>
|
---|
614 | </varlistentry>
|
---|
615 |
|
---|
616 | <varlistentry id="hal-find-by-capability">
|
---|
617 | <term><command>hal-find-by-capability</command></term>
|
---|
618 | <listitem>
|
---|
619 | <para>prints the Unique Device Identifiers for
|
---|
620 | <application>HAL</application> device objects of a given
|
---|
621 | capability.</para>
|
---|
622 | <indexterm zone="hal hal-find-by-capability">
|
---|
623 | <primary sortas="b-hal-find-by-capability">hal-find-by-capability</primary>
|
---|
624 | </indexterm>
|
---|
625 | </listitem>
|
---|
626 | </varlistentry>
|
---|
627 |
|
---|
628 | <varlistentry id="hal-find-by-property">
|
---|
629 | <term><command>hal-find-by-property</command></term>
|
---|
630 | <listitem>
|
---|
631 | <para>prints the Unique Device Identifiers for
|
---|
632 | <application>HAL</application> device objects where a given property
|
---|
633 | assumes a given value.</para>
|
---|
634 | <indexterm zone="hal hal-find-by-property">
|
---|
635 | <primary sortas="b-hal-find-by-property">hal-find-by-property</primary>
|
---|
636 | </indexterm>
|
---|
637 | </listitem>
|
---|
638 | </varlistentry>
|
---|
639 |
|
---|
640 | <varlistentry id="hal-get-property">
|
---|
641 | <term><command>hal-get-property</command></term>
|
---|
642 | <listitem>
|
---|
643 | <para>retrieves a property from a device.</para>
|
---|
644 | <indexterm zone="hal hal-get-property">
|
---|
645 | <primary sortas="b-hal-get-property">hal-get-property</primary>
|
---|
646 | </indexterm>
|
---|
647 | </listitem>
|
---|
648 | </varlistentry>
|
---|
649 |
|
---|
650 | <varlistentry id="hal-set-property">
|
---|
651 | <term><command>hal-set-property</command></term>
|
---|
652 | <listitem>
|
---|
653 | <para>attempts to set property for a device. Note that, due to
|
---|
654 | security considerations, it may not be possible to set a
|
---|
655 | property.</para>
|
---|
656 | <indexterm zone="hal hal-set-property">
|
---|
657 | <primary sortas="b-hal-set-property">hal-set-property</primary>
|
---|
658 | </indexterm>
|
---|
659 | </listitem>
|
---|
660 | </varlistentry>
|
---|
661 |
|
---|
662 | <varlistentry id="hal-is-caller-locked-out">
|
---|
663 | <term><command>hal-is-caller-locked-out</command></term>
|
---|
664 | <listitem>
|
---|
665 | <para>determines if a specific caller is locked out of a specific
|
---|
666 | <application>D-Bus</application> interface on a specific device.</para>
|
---|
667 | <indexterm zone="hal hal-is-caller-locked-out">
|
---|
668 | <primary sortas="b-hal-is-caller-locked-out">hal-is-caller-locked-out</primary>
|
---|
669 | </indexterm>
|
---|
670 | </listitem>
|
---|
671 | </varlistentry>
|
---|
672 |
|
---|
673 | <varlistentry id="hald">
|
---|
674 | <term><command>hald</command></term>
|
---|
675 | <listitem>
|
---|
676 | <para>is the <application>HAL</application> daemon program.</para>
|
---|
677 | <indexterm zone="hal hald">
|
---|
678 | <primary sortas="b-hald">hald</primary>
|
---|
679 | </indexterm>
|
---|
680 | </listitem>
|
---|
681 | </varlistentry>
|
---|
682 |
|
---|
683 | <varlistentry id="lshal">
|
---|
684 | <term><command>lshal</command></term>
|
---|
685 | <listitem>
|
---|
686 | <para>shows all devices and their properties. If the --monitor option
|
---|
687 | is given then the device list and all devices are monitored for
|
---|
688 | changes.</para>
|
---|
689 | <indexterm zone="hal lshal">
|
---|
690 | <primary sortas="b-lshal">lshal</primary>
|
---|
691 | </indexterm>
|
---|
692 | </listitem>
|
---|
693 | </varlistentry>
|
---|
694 |
|
---|
695 | <varlistentry id="libhal">
|
---|
696 | <term><filename class='libraryfile'>libhal.{so,a}</filename></term>
|
---|
697 | <listitem>
|
---|
698 | <para>contains the API functions required by the
|
---|
699 | <application>HAL</application> programs.</para>
|
---|
700 | <indexterm zone="hal libhal">
|
---|
701 | <primary sortas="c-libhal">libhal.{so,a}</primary>
|
---|
702 | </indexterm>
|
---|
703 | </listitem>
|
---|
704 | </varlistentry>
|
---|
705 |
|
---|
706 | <varlistentry id="libhal-storage">
|
---|
707 | <term><filename class='libraryfile'>libhal-storage.{so,a}</filename></term>
|
---|
708 | <listitem>
|
---|
709 | <para>contains the API functions required by the
|
---|
710 | <application>HAL</application> storage and volume utility
|
---|
711 | programs.</para>
|
---|
712 | <indexterm zone="hal libhal-storage">
|
---|
713 | <primary sortas="c-libhal-storage">libhal-storage.{so,a}</primary>
|
---|
714 | </indexterm>
|
---|
715 | </listitem>
|
---|
716 | </varlistentry>
|
---|
717 |
|
---|
718 | </variablelist>
|
---|
719 |
|
---|
720 | </sect2>
|
---|
721 |
|
---|
722 | </sect1>
|
---|