Distributed compilation using distcc ccache

sudo apt-get install distcc ccache
export CCACHE_PREFIX=distcc
export DISTCC_HOSTS='username@computer1/5:/usr/bin/distccd username@computer2/5:/usr/bin/distccd'
export ROS_PARALLEL_JOBS="-j10"
export PATH=${HOME}/local/bin:${PATH}
cd ~/local/DIR
mkdir -p ccache/bin
cd ccache/bin
ln -s /usr/bin/ccache cc
ln -s /usr/bin/ccache c++
ln -s /usr/bin/ccache gcc
ln -s /usr/bin/ccache g++
cd ../../
xstow ccache
Host *
  ControlMaster auto
  ControlPath ~/.ssh_tmp/master-%r@%h:%p
mkdir ~/.ssh_tmp

Refs: http://toychest.in.tum.de/wiki/robots:rosie_distcc

~~DISCUSSION~~