source: networking/netutils/avahi.xml@ 00ff1df

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 00ff1df was c38730c3, checked in by DJ Lucas <dj@…>, 8 years ago

Fix Avahi instructions for systemd

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@17499 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 21.4 KB
Line 
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 avahi-download-http "https://github.com/lathiat/avahi/releases/download/v&avahi-version;/avahi-&avahi-version;.tar.gz">
8 <!ENTITY avahi-download-ftp " ">
9 <!ENTITY avahi-md5sum "22b5e705d3eabb31d26f2e1e7b074013">
10 <!ENTITY avahi-size "1.2 MB">
11 <!ENTITY avahi-buildsize "23 MB">
12 <!ENTITY avahi-time "0.3 SBU">
13]>
14
15<sect1 id="avahi" xreflabel="Avahi-&avahi-version;">
16 <?dbhtml filename="avahi.html"?>
17
18 <sect1info>
19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
21 </sect1info>
22
23 <title>Avahi-&avahi-version;</title>
24
25 <indexterm zone="avahi">
26 <primary sortas="a-Avahi">Avahi</primary>
27 </indexterm>
28
29 <sect2 role="package">
30 <title>Introduction to Avahi</title>
31
32 <para>
33 The <application>Avahi</application> package is a system which
34 facilitates service discovery on a local network.
35 </para>
36
37 &lfs79_checked;
38
39 <bridgehead renderas="sect3">Package Information</bridgehead>
40 <itemizedlist spacing="compact">
41 <listitem>
42 <para>
43 Download (HTTP): <ulink url="&avahi-download-http;"/>
44 </para>
45 </listitem>
46 <listitem>
47 <para>
48 Download (FTP): <ulink url="&avahi-download-ftp;"/>
49 </para>
50 </listitem>
51 <listitem>
52 <para>
53 Download MD5 sum: &avahi-md5sum;
54 </para>
55 </listitem>
56 <listitem>
57 <para>
58 Download size: &avahi-size;
59 </para>
60 </listitem>
61 <listitem>
62 <para>
63 Estimated disk space required: &avahi-buildsize;
64 </para>
65 </listitem>
66 <listitem>
67 <para>
68 Estimated build time: &avahi-time;
69 </para>
70 </listitem>
71 </itemizedlist>
72
73 <bridgehead renderas="sect3">Avahi Dependencies</bridgehead>
74
75 <bridgehead renderas="sect4">Required</bridgehead>
76 <para role="required">
77 <xref linkend="glib2"/>
78 </para>
79
80 <bridgehead renderas="sect4">Recommended</bridgehead>
81 <para role="recommended">
82 <xref linkend="gobject-introspection"/>,
83 <xref linkend="gtk2"/>,
84 <xref linkend="gtk3"/>,
85 <xref linkend="libdaemon"/> and
86 <xref linkend="libglade"/>
87 </para>
88
89 <bridgehead renderas="sect4">Optional</bridgehead>
90 <para role="optional">
91 <xref linkend="dbus-python"/> and
92 <xref linkend="pygtk"/>
93 </para>
94
95 <para condition="html" role="usernotes">User Notes:
96 <ulink url="&blfs-wiki;/avahi"/>
97 </para>
98 </sect2>
99
100 <sect2 role="installation">
101 <title>Installation of Avahi</title>
102
103 <para>
104 There should be a dedicated user and group to take control
105 of the <command>avahi-daemon</command> daemon after it is
106 started. Issue the following commands as the
107 <systemitem class="username">root</systemitem> user:
108 </para>
109
110<screen role="root"><userinput>groupadd -fg 84 avahi &amp;&amp;
111useradd -c "Avahi Daemon Owner" -d /var/run/avahi-daemon -u 84 \
112 -g avahi -s /bin/false avahi</userinput></screen>
113
114 <para>
115 There should also be a dedicated priviliged access group for
116 <application>Avahi</application> clients. Issue the following command as
117 the <systemitem class="username">root</systemitem> user:
118 </para>
119
120<screen role="root"><userinput>groupadd -fg 86 netdev</userinput></screen>
121
122 <para>Install <application>Avahi</application> by running the following
123 commands:</para>
124
125<!-- final part of sed removes " -DGDK_DISABLE_DEPRECATED=1 -DGTK_DISABLE_DEPRECATED=1 \" -->
126<screen revision="sysv"><userinput>./configure --prefix=/usr \
127 --sysconfdir=/etc \
128 --localstatedir=/var \
129 --disable-static \
130 --disable-mono \
131 --disable-monodoc \
132 --disable-python \
133 --disable-qt3 \
134 --disable-qt4 \
135 --enable-core-docs \
136 --with-distro=none \
137 --with-systemdsystemunitdir=no &amp;&amp;
138make</userinput></screen>
139
140<screen revision="systemd"><userinput>./configure --prefix=/usr \
141 --sysconfdir=/etc \
142 --localstatedir=/var \
143 --disable-static \
144 --disable-mono \
145 --disable-monodoc \
146 --disable-python \
147 --disable-qt3 \
148 --disable-qt4 \
149 --enable-core-docs \
150 --with-distro=none \
151 --with-systemdsystemunitdir=/lib/systemd/system &amp;&amp;
152make</userinput></screen>
153
154 <para>
155 This package does not come with a test suite.
156 </para>
157
158 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
159
160<screen role="root"><userinput>make install</userinput></screen>
161
162 </sect2>
163
164 <sect2 role="commands">
165 <title>Command Explanations</title>
166
167 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
168 href="../../xincludes/static-libraries.xml"/>
169
170 <para>
171 <parameter>--disable-mono</parameter>: This parameter disables the
172 <application>Mono</application> bindings.
173 </para>
174
175 <para>
176 <parameter>--disable-monodoc</parameter>: This parameter disables
177 documentation for the <application>Mono</application> bindings.
178 </para>
179
180 <para>
181 <parameter>--disable-python</parameter>: This parameter disables the
182 scripts that depend on <application>Python</application>. It also
183 allows a regular install to complete successfully.
184 </para>
185
186 <para>
187 <parameter>--disable-qt3</parameter>: This parameter disables the
188 attempt to build the obsolete <application>Qt3</application>
189 portions of the package.
190 </para>
191
192 <para>
193 <parameter>--disable-qt4</parameter>: This parameter disables the
194 attempt to build the obsolete <application>Qt4Core</application>
195 portions of the package.
196 </para>
197
198 <para>
199 <parameter>--enable-core-docs</parameter>: This parameter enables the
200 building of documentation.
201 </para>
202
203 <para>
204 <parameter>--with-distro=none</parameter>: There is an obsolete
205 boot script in the distribution for LFS. This option disables it.
206 </para>
207
208 <para revision="sysv">
209 <parameter>--with-systemdsystemunitdir=no</parameter>: Without it, the
210 daemon fails to start in BLFS, which does not support
211 <application>systemd</application>.
212 </para>
213
214 <para revision="systemd">
215 <parameter>--with-systemdsystemunitdir=/lib/systemd/system</parameter>:
216 This parameter is used to set the correct installation directory for
217 systemd units.
218 </para>
219
220 <para>
221 <option>--disable-dbus</option>: This parameter disables the use
222 of <application>D-Bus</application>.
223 </para>
224
225 <para>
226 <option>--disable-gtk</option>: This parameter disables the use
227 of <application>GTK+2</application>.
228 </para>
229
230 <para>
231 <option>--disable-gtk3</option>: This parameter disables the use
232 of <application>GTK+3</application>.
233 </para>
234
235 <para>
236 <option>--disable-libdaemon</option>: This parameter disables the use
237 of <application>libdaemon</application>. If you use this option,
238 <command>avahi-daemon</command> won't be built.
239 </para>
240
241 <para>
242 <option>--enable-tests</option>: This option enables the building of
243 tests and examples.
244 </para>
245
246 <para>
247 <option>--enable-compat-howl</option>: This option enables the
248 compatibility layer for <application>HOWL</application>.
249 </para>
250
251 <para>
252 <option>--enable-compat-libdns_sd</option>: This option enables the
253 compatibility layer for <application>libdns_sd</application>.
254 </para>
255
256 </sect2>
257
258 <sect2 role="configuration">
259 <title>Configuring avahi</title>
260
261 <sect3 id="avahi-init">
262 <title>Boot Script</title>
263
264 <para revision="sysv">
265 To automatically start the <command>avahi-daemon</command>
266 when the system is rebooted, install the
267 <filename>/etc/rc.d/init.d/avahi</filename> bootscript from
268 the <xref linkend="bootscripts"/> package.
269 </para>
270
271 <para revision="systemd">
272 To start the <command>avahi-daemon</command> daemon at boot, enable
273 the previously installed systemd unit by running the following command
274 as the <systemitem class="username">root</systemitem> user:
275 </para>
276
277 <indexterm zone="avahi avahi-init">
278 <primary sortas="f-avahi">avahi</primary>
279 </indexterm>
280
281<screen role="root" revision="sysv"><userinput>make install-avahi</userinput></screen>
282
283<screen role="root" revision="systemd"><userinput>systemctl enable avahi-daemon</userinput></screen>
284
285 <para revision="systemd">
286 To start the <command>avahi-dnsconfd</command> daemon at boot, enable
287 the previously installed systemd unit by running the following command
288 as the <systemitem class="username">root</systemitem> user:
289 </para>
290
291<screen role="root" revision="systemd"><userinput>systemctl enable avahi-dnsconfd</userinput></screen>
292
293 </sect3>
294
295 </sect2>
296
297 <sect2 role="content">
298 <title>Contents</title>
299
300 <segmentedlist>
301 <segtitle>Installed Programs</segtitle>
302 <segtitle>Installed Libraries</segtitle>
303 <segtitle>Installed Directories</segtitle>
304
305 <seglistitem>
306 <seg>avahi-autoipd, avahi-bookmarks, avahi-browse, avahi-browse-domains,
307 avahi-daemon, avahi-discover, avahi-discover-standalone, avahi-dnsconfd,
308 avahi-publish, avahi-publish-address, avahi-publish-service,
309 avahi-resolve, avahi-resolve-address, avahi-resolve-host-name,
310 avahi-set-host-name, bshell, bssh, and bvnc</seg>
311 <seg>libavahi-client.so, libavahi-common.so,
312 libavahi-core.so, libavahi-glib.so, libavahi-gobject.so,
313 libavahi-ui-gtk3.so,, libavahi-ui.so, libdns_sd.so, and
314 libhowl.so,</seg>
315 <seg>/etc/avahi/services, /usr/{include/{avahi-client,avahi-common,
316 avahi-compat-howl/{corby,discovery,rendezvous,salt},
317 avahi-compat-libdns_sd,avahi-core,avahi-glib,avahi-gobject,avahi-ui},
318 lib/{avahi,python&python2-majorver;/site-packages/{avahi,
319 avahi_discover}},share/{avahi/interfaces,locale/en_NZ/LC_MESSAGES}}</seg>
320 </seglistitem>
321 </segmentedlist>
322
323 <variablelist>
324 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
325 <?dbfo list-presentation="list"?>
326 <?dbhtml list-presentation="table"?>
327
328 <varlistentry id="avahi-autoipd">
329 <term><command>avahi-autoipd</command></term>
330 <listitem>
331 <para>is a IPv4LL network address configuration daemon.</para>
332 <indexterm zone="avahi avahi-autoipd">
333 <primary sortas="b-avahi-autoipd">avahi-autoipd</primary>
334 </indexterm>
335 </listitem>
336 </varlistentry>
337
338 <varlistentry id="avahi-bookmarks">
339 <term><command>avahi-bookmarks</command></term>
340 <listitem>
341 <para>is a Web service showing mDNS/DNS-SD announced HTTP services
342 using the <application>Avahi</application> daemon.</para>
343 <indexterm zone="avahi avahi-bookmarks">
344 <primary sortas="b-avahi-bookmarks">avahi-bookmarks</primary>
345 </indexterm>
346 </listitem>
347 </varlistentry>
348
349 <varlistentry id="avahi-browse">
350 <term><command>avahi-browse</command></term>
351 <listitem>
352 <para>browses for mDNS/DNS-SD services using the
353 <application>Avahi</application> daemon.</para>
354 <indexterm zone="avahi avahi-browse">
355 <primary sortas="b-avahi-browse">avahi-browse</primary>
356 </indexterm>
357 </listitem>
358 </varlistentry>
359
360 <varlistentry id="avahi-browse-domains">
361 <term><command>avahi-browse-domains</command></term>
362 <listitem>
363 <para>browses for mDNS/DNS-SD services using the
364 <application>Avahi</application> daemon.</para>
365 <indexterm zone="avahi avahi-browse-domains">
366 <primary sortas="b-avahi-browse-domains">avahi-browse-domains</primary>
367 </indexterm>
368 </listitem>
369 </varlistentry>
370
371 <varlistentry id="avahi-daemon">
372 <term><command>avahi-daemon</command></term>
373 <listitem>
374 <para>is the <application>Avahi</application> mDNS/DNS-SD
375 daemon.</para>
376 <indexterm zone="avahi avahi-daemon">
377 <primary sortas="b-avahi-daemon">avahi-daemon</primary>
378 </indexterm>
379 </listitem>
380 </varlistentry>
381
382 <varlistentry id="avahi-discover">
383 <term><command>avahi-discover</command></term>
384 <listitem>
385 <para>browses for mDNS/DNS-SD services using the
386 <application>Avahi</application> daemon.</para>
387 <indexterm zone="avahi avahi-discover">
388 <primary sortas="b-avahi-discover">avahi-discover</primary>
389 </indexterm>
390 </listitem>
391 </varlistentry>
392
393 <varlistentry id="avahi-discover-standalone">
394 <term><command>avahi-discover-standalone</command></term>
395 <listitem>
396 <para>browses for mDNS/DNS-SD services using the
397 <application>Avahi</application> daemon.</para>
398 <indexterm zone="avahi avahi-discover-standalone">
399 <primary sortas="b-avahi-discover-standalone">avahi-discover-standalone</primary>
400 </indexterm>
401 </listitem>
402 </varlistentry>
403
404 <varlistentry id="avahi-dnsconfd">
405 <term><command>avahi-dnsconfd</command></term>
406 <listitem>
407 <para>is a Unicast DNS server from mDNS/DNS-SD configuration
408 daemon.</para>
409 <indexterm zone="avahi avahi-dnsconfd">
410 <primary sortas="b-avahi-dnsconfd">avahi-dnsconfd</primary>
411 </indexterm>
412 </listitem>
413 </varlistentry>
414
415 <varlistentry id="avahi-publish">
416 <term><command>avahi-publish</command></term>
417 <listitem>
418 <para>registers a mDNS/DNS-SD service or host name or address mapping
419 using the <application>Avahi</application> daemon.</para>
420 <indexterm zone="avahi avahi-publish">
421 <primary sortas="b-avahi-publish">avahi-publish</primary>
422 </indexterm>
423 </listitem>
424 </varlistentry>
425
426 <varlistentry id="avahi-publish-address">
427 <term><command>avahi-publish-address</command></term>
428 <listitem>
429 <para>registers a mDNS/DNS-SD service or host name or address mapping
430 using the <application>Avahi</application> daemon.</para>
431 <indexterm zone="avahi avahi-publish-address">
432 <primary sortas="b-avahi-publish-address">avahi-publish-address</primary>
433 </indexterm>
434 </listitem>
435 </varlistentry>
436
437 <varlistentry id="avahi-publish-service">
438 <term><command>avahi-publish-service</command></term>
439 <listitem>
440 <para>registers a mDNS/DNS-SD service or host name or address mapping
441 using the <application>Avahi</application> daemon.</para>
442 <indexterm zone="avahi avahi-publish-service">
443 <primary sortas="b-avahi-publish-service">avahi-publish-service</primary>
444 </indexterm>
445 </listitem>
446 </varlistentry>
447
448 <varlistentry id="avahi-resolve">
449 <term><command>avahi-resolve</command></term>
450 <listitem>
451 <para>resolves one or more mDNS/DNS host name(s) to IP address(es)
452 (and vice versa) using the <application>Avahi</application>
453 daemon.</para>
454 <indexterm zone="avahi avahi-resolve">
455 <primary sortas="b-avahi-resolve">avahi-resolve</primary>
456 </indexterm>
457 </listitem>
458 </varlistentry>
459
460 <varlistentry id="avahi-resolve-address">
461 <term><command>avahi-resolve-address</command></term>
462 <listitem>
463 <para>resolves one or more mDNS/DNS host name(s) to IP address(es)
464 (and vice versa) using the <application>Avahi</application>
465 daemon.</para>
466 <indexterm zone="avahi avahi-resolve-address">
467 <primary sortas="b-avahi-resolve-address">avahi-resolve-address</primary>
468 </indexterm>
469 </listitem>
470 </varlistentry>
471
472 <varlistentry id="avahi-resolve-host-name">
473 <term><command>avahi-resolve-host-name</command></term>
474 <listitem>
475 <para>resolves one or more mDNS/DNS host name(s) to IP address(es)
476 (and vice versa) using the <application>Avahi</application>
477 daemon.</para>
478 <indexterm zone="avahi avahi-resolve-host-name">
479 <primary sortas="b-avahi-resolve-host-name">avahi-resolve-host-name</primary>
480 </indexterm>
481 </listitem>
482 </varlistentry>
483
484 <varlistentry id="avahi-set-host-name">
485 <term><command>avahi-set-host-name</command></term>
486 <listitem>
487 <para>changes the mDNS host name.</para>
488 <indexterm zone="avahi avahi-set-host-name">
489 <primary sortas="b-avahi-set-host-name">avahi-set-host-name</primary>
490 </indexterm>
491 </listitem>
492 </varlistentry>
493
494 <!--<varlistentry id="bshell">
495 <term><command>bshell</command></term>
496 <listitem>
497 <para>does this .....</para>
498 <indexterm zone="avahi bshell">
499 <primary sortas="b-bshell">bshell</primary>
500 </indexterm>
501 </listitem>
502 </varlistentry>-->
503
504 <varlistentry id="bssh">
505 <term><command>bssh</command></term>
506 <listitem>
507 <para>browses for SSH servers on the local network.</para>
508 <indexterm zone="avahi bssh">
509 <primary sortas="b-bssh">bssh</primary>
510 </indexterm>
511 </listitem>
512 </varlistentry>
513
514 <varlistentry id="bvnc">
515 <term><command>bvnc</command></term>
516 <listitem>
517 <para>browses for VNC servers on the local network.</para>
518 <indexterm zone="avahi bvnc">
519 <primary sortas="b-bvnc">bvnc</primary>
520 </indexterm>
521 </listitem>
522 </varlistentry>
523
524 <!--<varlistentry id="libavahi-client">
525 <term><filename class='libraryfile'>libavahi-client.{so,a}</filename></term>
526 <listitem>
527 <para>contains functions that .....</para>
528 <indexterm zone="avahi libavahi-client">
529 <primary sortas="c-libavahi-client">libavahi-client.{so,a}</primary>
530 </indexterm>
531 </listitem>
532 </varlistentry>
533
534 <varlistentry id="libavahi-common">
535 <term><filename class='libraryfile'>libavahi-common.{so,a}</filename></term>
536 <listitem>
537 <para>contains functions that .....</para>
538 <indexterm zone="avahi libavahi-common">
539 <primary sortas="c-libavahi-common">libavahi-common.{so,a}</primary>
540 </indexterm>
541 </listitem>
542 </varlistentry>
543
544 <varlistentry id="libavahi-core">
545 <term><filename class='libraryfile'>libavahi-core.{so,a}</filename></term>
546 <listitem>
547 <para>contains functions that .....</para>
548 <indexterm zone="avahi libavahi-core">
549 <primary sortas="c-libavahi-core">libavahi-core.{so,a}</primary>
550 </indexterm>
551 </listitem>
552 </varlistentry>
553
554 <varlistentry id="libavahi-glib">
555 <term><filename class='libraryfile'>libavahi-glib.{so,a}</filename></term>
556 <listitem>
557 <para>contains functions that .....</para>
558 <indexterm zone="avahi libavahi-glib">
559 <primary sortas="c-libavahi-glib">libavahi-glib.{so,a}</primary>
560 </indexterm>
561 </listitem>
562 </varlistentry>
563
564 <varlistentry id="libavahi-gobject">
565 <term><filename class='libraryfile'>libavahi-gobject.{so,a}</filename></term>
566 <listitem>
567 <para>contains functions that .....</para>
568 <indexterm zone="avahi libavahi-gobject">
569 <primary sortas="c-libavahi-gobject">libavahi-gobject.{so,a}</primary>
570 </indexterm>
571 </listitem>
572 </varlistentry>
573
574 <varlistentry id="libavahi-ui-gtk3">
575 <term><filename class='libraryfile'>libavahi-ui-gtk3.{so,a}</filename></term>
576 <listitem>
577 <para>contains functions that .....</para>
578 <indexterm zone="avahi libavahi-ui-gtk3">
579 <primary sortas="c-libavahi-ui-gtk3">libavahi-ui-gtk3.{so,a}</primary>
580 </indexterm>
581 </listitem>
582 </varlistentry>
583
584 <varlistentry id="libavahi-ui">
585 <term><filename class='libraryfile'>libavahi-ui.{so,a}</filename></term>
586 <listitem>
587 <para>contains functions that .....</para>
588 <indexterm zone="avahi libavahi-ui">
589 <primary sortas="c-libavahi-ui">libavahi-ui.{so,a}</primary>
590 </indexterm>
591 </listitem>
592 </varlistentry>
593
594 <varlistentry id="libdns_sd">
595 <term><filename class='libraryfile'>libdns_sd.{so,a}</filename></term>
596 <listitem>
597 <para>contains functions that .....</para>
598 <indexterm zone="avahi libdns_sd">
599 <primary sortas="c-libdns_sd">libdns_sd.{so,a}</primary>
600 </indexterm>
601 </listitem>
602 </varlistentry>
603
604 <varlistentry id="libhowl">
605 <term><filename class='libraryfile'>libhowl.{so,a}</filename></term>
606 <listitem>
607 <para>contains functions that .....</para>
608 <indexterm zone="avahi libhowl">
609 <primary sortas="c-libhowl">libhowl.{so,a}</primary>
610 </indexterm>
611 </listitem>
612 </varlistentry>-->
613
614 </variablelist>
615
616 </sect2>
617
618</sect1>
Note: See TracBrowser for help on using the repository browser.