在ubuntu下安装distcc(后面两个可选):

1
sudo apt-get install distcc distccmon-gnome distcc-pump

设置环境变量:

1
export PATH="/usr/lib/distcc:$PATH"

打开/etc/default/distcc进行以下修改

1
2
3
4
STARTDISTCC="true"    # auto start
ALLOWEDNETS="192.168.39.0/24"    # ip range allowed
LISTENER=""   # if use on intranet, must be empty, otherwise distcc: connection refused
ZEROCONF="true"  # auto lookup distcc server

然后重启distcc服务

1
sudo /etc/init.d/distcc restart

搞定!:-)