#!/usr/bin/env bash apt-get install -y distcc distcc-pump ccache dmucs distccmon-gnome # For avahi/bonjour mdns support apt-get install avahi-daemon avahi-utils libnss-mdns #apt-get install avahi-ui-utils avahi-discover # Update the symlinks found in /usr/sbin/update-ccache-symlinks ## distcc will use Avahi Zeroconf DNS Service Discovery (DNS-SD) to locate any available distccd servers on the local network. # # The distccd server must be started with --zeroconf or /etc/default/distcc STARTDISTCC set to true. # # NB An important caveat is that in the current implementation, pump mode (",cpp") and compression (",lzo") will never be used for hosts located via zeroconf. Enabling compression makes the distcc client and server use more CPU time, but less network traffic. The added CPU time is insignificant for pump mode. Compression is usually economical on networks slower than 100Mbps cat > /etc/distcc/hosts </share/dmucs/hosts-info). #Here is a sample hosts-info file: # Format: machine number-of-cpus power-index # #linux-comp-1 4 10 #solaris-comp-1 2 5 #solaris-comp-2 2 5 #old-linux-comp-1 1 4 #old-solaris-comp-3 1 2 #169.144.80.25 1 2 cat > /etc/dmuc.conf <