Distributed compilation (FAST COMPILATION)
Save your time!! Reduce the compilation time.
Edit and use the script below (debiandistcc_quickinstall.sh) :
—————————————————————————————–
#!/bin/bash
##########################################
# CHANGE BELOW
##########################################
SUBNETWORK=192.168.1.0/24
# name or ip from machines
MACHINES=”machineA machineB localhost”
# max number of threads — we recommend : NUMBER OF CPUs * 4 = 3 * 4 = 12
NCONCURRENCY=”12″
##########################################
# DO NOT CHANGE BELOW
##########################################
#install distcc
apt-get install distcc
apt-get install distccmon-gnome
#configure distcc
echo ‘STARTDISTCC=”true”‘>/etc/default/distcc
echo ‘ALLOWEDNETS=”$SUBNETWORK”‘>>/etc/default/distcc
echo ‘LISTENER=”0.0.0.0″‘>>/etc/default/distcc
#distcc executable
mkdir -p /usr/local/distcc/bin
cd /usr/local/distcc/bin
ln -s /usr/bin/distcc c++
ln -s /usr/bin/distcc cc
ln -s /usr/bin/distcc g++
ln -s /usr/bin/distcc gcc
#exporting distcc
echo ‘CONCURRENCY_LEVEL=$NCONCURRENCY’ >> ~/.bashrc
echo ‘DISTCC_HOSTS=”$MACHINES”‘ >> ~/.bashrc
echo ‘PATH=”/usr/local/distcc/bin:${PATH}”‘ >> ~/.bashrc
echo ‘export CONCURRENCY_LEVEL DISTCC_HOSTS PATH’ >> ~/.bashrc
source ~/.bashrc
—————————————————————————————–
Compiling kernel
* cd YOUR_KERNEL_TREE
* make clean
* make ”’-j12”’
HAPPY COMPILATION!!!
Reference:
http://distcc.samba.org/

3. Excellent post. I was checking continuously this blog and I am impressed! Very useful info specifically the last part
I care for such info much. I was looking for this certain info for a long time. Thank you and best of luck.