SamatsWiki

Automatically generate ~/.distcc/hosts from avahi

If you've setup Avahi/Zeroconf for distcc, you can generate a hosts file with a DNS-SD query:

   1 avahi-browse _distcc._tcp -t -r | grep address | egrep -v : | cut -d [ -f 2 | cut -d ] -f 1 | paste -s -d' ' > ~/.distcc/hosts

This will exclude IPv6 addresses, which is useful since some versions of distcc have problems with IPv6 support.

From Diogo Gomes Blog.


CategoryCheatSheet

SamatsWiki: CheatSheet/distcc (last edited 2009-07-01 07:12:33 by SamatJain)