Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is it possible that a single machine running avahi advertises other machines sharing files over afp ?

I have different machines running Gentoo but I don't want to run avahi on each server.

share|improve this question
up vote 3 down vote accepted

I've found the solution by trying to tune .config files !

/etc/avahi/services/ contains *.services like

  • Copy the afpd.servicies to match each machine you want to advertise : server1.service, server2.service, ...

  • Add the <host-name></host-name> tag in each .service

*.service :

<?xml version="1.0" standalone='no'?><!--*-nxml-*-->
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
<!-- Customize this to get a different name for your server in the Finder. -->
<name replace-wildcards="yes">MyHostname</name>
<!-- Customize this to get a different icon in the Finder. -->

Restart: /etc/init.d/avahi restart

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.