Changes

Jump to: navigation, search

Distcc Setup

56 bytes removed, 14:48, 29 January 2009
distcc Setup Steps
'''Configuration'''
On the server machine Create a new user the daemon will run under without a home dir or workgroup<pre>$ adduser distcc daemon(distccd) needs to be started. At prompt as root type "distccd –-daemon –-user YOURUSERNAME –N -allow 142.204.133.0M </24"pre>
Start the distcc daemon
<pre>$ distccd --daemon --user distcc --allow 142.204.133.0/24</pre>
Argument --user is if distccd gets executed as root, change to user USER, --allow IPADDR[/MASK] instructs distccd to accept connections from the IP address. A CIDR mask length can be supplied optionally after a trailing slash, e.g. 192.168.0.0/24, in which case addresses that match in the most significant MASK bits will be allowed.
Now we need to setup the IPTABLES to allow connections to the distcc daemon. Before doing anything make a backup file of the original iptables file located in /etc/sysconfig/iptables. To do this we simply type “cp <pre>$ cp /etc/sysconfig/iptables [backupfile name]“. To allow connections type “iptables $ iptables -I INPUT 7 -i eth0 -p tcp -s 142.204.133.0/24 –dport 3632 -j ACCEPT”. To apply type “service ACCEPT$ service iptables save”.save </pre>
Argument -I is insert and -i is and network interface device and -p is protocol -s is source ipaddress and subnet, –dport is destination port and -j is rule.
On the client machine the server names need to be added to the host environment variable DISTCC_HOSTS. Ex: “export DISTCC_HOSTS=’ireland australia’”hosts listed in the file located at <pre>/ect/distcc/hosts</pre>
'''Testing'''
1
edit

Navigation menu