LWN.net Logo

Poettering: systemd for Administrators, Part IX

Poettering: systemd for Administrators, Part IX

Posted Jul 25, 2011 11:05 UTC (Mon) by nye (guest, #51576)
In reply to: Poettering: systemd for Administrators, Part IX by elanthis
Parent article: Poettering: systemd for Administrators, Part IX

>I like systemd. I like pulseaudio. I liked avahi.

I realise this is offtopic but since you use avahi I wonder if you could give me some idea of what it's actually for. It's one of those random daemons that get installed automatically on new Linux installs but doesn't seem to do anything, and reading the wikipedia page leaves me none the wiser.

I gather it's only of relevance if you have a network which doesn't have a router doing DHCP and DNS, but you still want local name resolution; it that correct? Certainly I've always removed it with no problems - discovery of other machines and file shares still works fine.

With PulseAudio I've worked out that it's useful if one or more of the following cases applies:
* You want to hotplug audio devices frequently and have the appropriate one chosen automatically
* You want per-application volume controls for applications that don't have their own volume setting
* You want to be able to transfer a running audio stream between devices.
None of these apply to me which is why it seemed useless to me for ages and I couldn't figure out why anyone might want it.

Is there a similar list of cases in which one might want to use avahi?


(Log in to post comments)

Poettering: systemd for Administrators, Part IX

Posted Jul 26, 2011 5:40 UTC (Tue) by elanthis (guest, #6227) [Link]

> I gather it's only of relevance if you have a network which doesn't have a router doing DHCP and DNS, but you still want local name resolution; it that correct?

It does two things. For people without DHCP, it lets you allocate a unique IP address amongst your local peers.

Second, it lets you discover both hostnames and services on the local network. For instance, "find a printer on the local network" becomes very easy.

Some printers, multimedia, and chat services use it for local networks. Even if DHCP and DNS are enabled.

If you aren't using any of those services and never have a need of building an ad-hoc network, you probably don't need it running.

Poettering: systemd for Administrators, Part IX

Posted Jul 26, 2011 10:28 UTC (Tue) by nye (guest, #51576) [Link]

>If you aren't using any of those services and never have a need of building an ad-hoc network, you probably don't need it running.

Great, thanks!

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds