





Probably someting likeI can't figure out how to start distccd...
Code: Select all
urpmi distcc
chkconfig distcc on
service xinetd restartCode: Select all
root@jemima /mnt/tmp/etc/profile.d
><> cat tmpdir.sh
#!/bin/sh
# $Id: tmpdir.sh,v 1.12 2003/09/02 09:37:49 flepied Exp $
# Set TMPDIR to ~/tmp and create it if directory not exist.
if [ -f /etc/sysconfig/system ];then
. /etc/sysconfig/system
fi
if [ -f /etc/sysconfig/msec ];then
eval `grep ^SECURE_LEVEL= /etc/sysconfig/msec | head -1`
fi
[b]if [[ "$SECURE_TMP" = "yes" || "$SECURE_TMP" = "1" || "$SECURE_TMP" = "YES" || "$SECURE_LEVEL" -ge 2 ]];then[/b]
if [ -d ${HOME}/tmp -a -w ${HOME}/tmp ];then
export TMPDIR=${HOME}/tmp
export TMP=${HOME}/tmp
elif mkdir -p ${HOME}/tmp >/dev/null 2>&1;then
chmod 700 ${HOME}/tmp
export TMPDIR=${HOME}/tmp
export TMP=${HOME}/tmp
else
export TMPDIR=/tmp/
export TMP=/tmp/
fi
fi
root@jemima /mnt/tmp/etc/profile.d
><> cat ../sysconfig/msec
UMASK_ROOT=022
SECURE_LEVEL=1
UMASK_USER=022
TMOUT=0

Code: Select all
May 3 18:58:35 localhost distccd[3127]: (dcc_make_tmpnam) failed to create /root/tmp/distcc_38ee2358.stderr: Per
mission denied

Sure does.That error look familar?
Code: Select all
$SECURE_TMP" = "yes" || "$SECURE_TMP" = "1" || "$SECURE_TMP" = "YES" || "$SECURE_LEVEL"Code: Select all
root@jemima /mnt
><> mount /dev/hda6 tmp/; cd tmp/etc/
root@jemima /mnt/tmp/etc
><> find -type f | while read i; do if grep 'SECURE_TMP' "$i"; then echo $i; fi; done
if [[ "$SECURE_TMP" = "yes" || "$SECURE_TMP" = "1" || "$SECURE_TMP" = "YES" || "$SECURE_LEVEL" -ge 2 ]];then
./profile.d/tmpdir.shCode: Select all
source /etc/profile
Code: Select all
if [ -f /etc/sysconfig/msec ];then
eval `grep ^SECURE_LEVEL= /etc/sysconfig/msec | head -1`
fi
if [[ "$SECURE_TMP" = "yes" || "$SECURE_TMP" = "1" || "$SECURE_TMP" = "YES" || "$SECURE_LEVEL" -ge 2 ]];thenCode: Select all
if [ -f /etc/sysconfig/msec ];then
eval `grep ^SECURE_LEVEL= /etc/sysconfig/msec | head -1`
fi
# begin dirty, dirty hack
unset $SECURE_TMP
# end dirty, dirty hack
if [[ "$SECURE_TMP" = "yes" || "$SECURE_TMP" = "1" || "$SECURE_TMP" = "YES" || "$SECURE_LEVEL" -ge 2 ]];then

Unfortunately only you can decide that. I would do it like this. Now that you have set SECURE_LEVEL=1 in /etc/sysconfig/msecDo I need to change anything in tmpdir.sh or should I just execute it?
Code: Select all
unset TMP TPMDIR;
source /etc/profile.d/tmpdir.sh;
service inetd restart;Code: Select all
find /etc/sysconfig -type f | while read i; do if grep 'SECURE_' "$i"; then echo $i; fi; done Code: Select all
unset TMP TPMDIR;
source /etc/profile.d/tmpdir.sh;
service inetd restart;Code: Select all
echo '#Remove these when you figure out why they are being set incorrectly above' >> /etc/profile.d/tmpdir.sh;
echo "export TMPDIR=/tmp/" >> /etc/profile.d/tmpdir.sh;
echo "export TMP=/tmp/" >> /etc/profile.d/tmpdir.sh;
unset TMP TPMDIR;
source /etc/profile;
service inetd restart;

Code: Select all
May 12 14:10:43 hp4365 distccd[8610]: (dcc_check_client) connection from 192.168.0.5:37018
May 12 14:10:43 hp4365 distccd[8610]: compile from simple-x-f.tmp.ben.23105.i to tmp.hash.ben.23105.o
May 12 14:10:43 hp4365 distccd[8610]: (dcc_r_file_timed) 1212170 bytes received in 0.100423s, rate 11788kB/s
May 12 14:10:46 hp4365 distccd[8610]: (dcc_collect_child) cc times: user 2.319647s, system 0.122981s, 5754 minflt, 0 majflt
May 12 14:10:46 hp4365 distccd[8610]: gcc on localhost completed ok
May 12 14:10:46 hp4365 distccd[8610]: job completeI don't use them, so I can't really speculate about that.Any idea of why both distccmon-gnome and distccmon-text didn't report any of this while running on either box?

http://opendoorsoftware.com/cgi/http.pl ... tccKNOPPIXturtlendog wrote:I booted a Knoppix (3.2) cd yesterday looking for distcc (wanted to get as many computers compiling her distro as possible) but didn't find it. Now I'm going to see if there is a new release that has it.

Code: Select all
May 5 17:09:40 localhost distccd[7886]: (dcc_r_file) received 154250 bytes to file /tmp/distccd_bf390b53.i
May 5 17:09:40 localhost distccd[7886]: (dcc_r_file_timed) 154250 bytes received in 0.599968s, rate 251kB/s
....
May 5 17:09:41 localhost distccd[7886]: gcc on localhost completed ok
May 5 17:09:41 localhost distccd[7886]: job complete

Code: Select all
DISTCC_DIR="${PORTAGE_TMPDIR}/.distcc" distccmon-gnome