You are not logged in.

#1 2008-05-13 07:01:45

From: Braunschweig, Germany
Registered: 2007-05-02
Posts: 145

How do you announce mt-daapd to avahi?

Has anyone of you successfully announced the mt-daapd service to avahi, so that e.g. Rhythmbox finds the DAAP-Share automatically on startup?

The mt-daapd service is running and I can connect Rhythmbox manually, but when I use "avahi-discover" the daap-Service is not shown and so no program will find it automatically. I must say, I am a bit overwhelmed by the config files for avahi and I don't know how I have to set it up correctly. I have a server that will host the Daap Share and will connect with my laptop. Services like SSH are found by avahi-discover. In the admin pages for mt-daapd there is a field that tells me that MDNS service is not running. I guess it has something to do with this. But I can not start the service from the web-interface.

any help is as always highly appreciated.


#2 2008-05-25 12:30:27

Registered: 2007-12-16
Posts: 33

Re: How do you announce mt-daapd to avahi?

Well, before doing anything i must tell you than you cannot have two or more mDNS servers in your system  (avahi is one and mt-daapd has another one), so you must tell mt-daapd to not load its mDNS server appending "-m" to the binary line in the daemon (/etc/rc.d/mt-daapd). There is another solution to this. If avahi-daemon runs first in your rc.conf you can configure it so when another program tries to registers its mDNS server avahi disallows it (disallow-other-stacks=yes in avahi-daemon.conf).

The second thing you must know is to add this to a file (for example, daap.service) in /etc/avahi/services:

<!DOCTYPE service-group SYSTEM "avahi-service.dtd">

<!-- $Id: ssh.service 1391 2007-02-07 11:54:54Z lennart $ -->

  This file is part of avahi.
  avahi is free software; you can redistribute it and/or modify it
  under the terms of the GNU Lesser General Public License as
  published by the Free Software Foundation; either version 2 of the
  License, or (at your option) any later version.

  avahi is distributed in the hope that it will be useful, but
  WITHOUT ANY WARRANTY; without even the implied warranty of
  General Public License for more details.

  You should have received a copy of the GNU Lesser General Public
  License along with avahi; if not, write to the Free Software
  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
  02111-1307 USA.

<!-- See avahi.service(5) for more information about this configuration file -->


  <name replace-wildcards="yes">%h</name>



,and restarting avahi you can see now the daapd server appears.

Last edited by reztho (2008-05-25 13:49:42)


Board footer

Powered by FluxBB