Changes

Jump to: navigation, search

Distcc Setup

1,591 bytes added, 16:05, 11 May 2009
OOo Category
(add more)
== Team A Assigned machine ==
* Setting up Ireland (142.204.133.26 ) - Tested & Working - [[User:Minicheong|Frankie Law]] (irc Mini_Cheong), Australia 133[[User:dmoon4|Daeseon Moon]] (irc daeseon)* Germany (142.204.24 , Germany 133.102, (one more to come)** - Tested & Working - Andrew Braini (aBraini)** Australia (142.204.133.24) - Tested & Working - [[User:dmoon4wfred|Daeseon MoonFred Wang]] (daeseonWFred)* China (142.204.133.36) - Tested & Working - Aaron Chan (achan66)*Liberia (142.204.133.123) - Tested & Working - [http://lzahir.blogspot.com/2009/01/my-distcc-setup-and-distributed.html Ladan Zahiroleslam] (irc: l_zahir, LZahir)* Hongkong (142.204.133.30) - Tested & Working - [[User:Minicheongjtpau|Frankie LawJerry Pau]] (irc Mini_CheongjPau)** Bartosz Barcicki India (142.204.133.28) - Tested & Working - [[User:rmwang|Ryan Wang]] (rmwang), [[User:Tiago|Tiago Moreira]] (irc nick?Kamots)
'''Status'''
* Ireland is setup (server and client)'''India'''* Australia is * network connection went down again around 2pm, could not complete distcc setup (server and client)--- [[User:Tiago|Tiago]]* Germany is setup (server and client)* Tried compilation with both Ireland and Ran through tutorial on Australia and Germanyit seemed good. Distcc on any should I managed to compile on all three.* Check Apache --- [[httpUser://daeseonmoon.wordpress.com/ Deaseon's blogTiago|Tiago]]
== Team B ==*'''Germany'''** distccd user created, hosts file setup, tested and working on Thu 29 Jan, 2009 --- [[User:Arbraini|ABraini]]
* Setting up China 142.204.133.36 , India 142.204.133.28'''Australia'''** [[User:rmwang|Ryan Wang]] (rmwang)distccd is running under distcc account** Aaron Chan (achan66)* hosts file setting done** * user "distcc" created for running distccd. --- [[User:wfreddmoon4|Fred WangDaeseon Moon]] (WFred)
(log your work here)*'''Hong Kong'''** distcc user created, hosts file setup done
== Team C ==*'''Ireland'''** distcc user created, hosts file setup done
* Setting up Hongkong 133.30, Liberia 133.123'''India'''** [http://lzahir.blogspot.com/2009/01/my-distcc-setup-and-distributed.html Ladan Zahiroleslam] (irc: l_zahir, LZahir)user created** Tiago Moreira (irc nick?)** Your name goes here (irc nick?)hosts file modified
(log your work here)*'''Liberia'''** distcc user created** hosts file modified *'''China'''** distcc user created** hosts file modified
= 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 --dport 3632 -j ACCEPT”ACCEPT$ service iptables save </pre> *Important Note: It seems the -I INPUT 7 argument is confusing a lot of people. -I INPUT 7 was used in Daeson's case for the machine he was working on at the time, however this may not be the same for all machines. In Daeson's case there was a REJECT line in the INPUT CHAIN at line 8. So in order for us to get our port open we need to insert ie. -I into the INPUT CHAIN at line 7 before the REJECT line. On Machines with an INPUT CHAIN shorter then 7 lines this will cause an error. On machines without a REJECT line a simple "-A" appened aurgument can take the place of "-I INPUT 7". To apply type “service iptables save” On a machine with a REJECT INPUT on a line before 8 you simply need to change the number to one smaller as long as it is before the REJECT line. ** I'm not sure if we need to do this command, because if the file "HOSTS" at /etc/distcc/ is configured to have all the hosts name - distcc seems to distribute all compilation throughout the hosts.
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>/etc/distcc/hosts</pre>
To close/shut down the daemon (do not unless needed)
<pre>$ service distccd stop</pre>
'''Testing'''
* things forgotten or left out.
== How to compile with distcc ==
 
[[Category:OpenOffice.org]]
3
edits

Navigation menu