From owner-freebsd-current@FreeBSD.ORG Mon Aug 11 11:12:48 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 332E737B401 for ; Mon, 11 Aug 2003 11:12:48 -0700 (PDT) Received: from carebears.mine.nu (ti400720a080-0430.bb.online.no [80.212.161.174]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6564743FBD for ; Mon, 11 Aug 2003 11:12:47 -0700 (PDT) (envelope-from chgu@carebears.mine.nu) Received: from [192.168.0.9] (funshine.carebears.net [192.168.0.9]) by carebears.mine.nu (Postfix) with ESMTP id F38D3A10E4 for ; Mon, 11 Aug 2003 20:12:45 +0200 (CEST) From: Christer Gundersen To: freebsd-current@freebsd.org In-Reply-To: <200308111943.34485.coolvibe@hackerheaven.org> References: <1060622812.58159.2.camel@funshine.carebears.net> <200308111943.34485.coolvibe@hackerheaven.org> Content-Type: text/plain Message-Id: <1060625565.70020.4.camel@funshine.carebears.net> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.4 Date: Mon, 11 Aug 2003 20:12:46 +0200 Content-Transfer-Encoding: 7bit Subject: Re: distcc and freebsd X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Aug 2003 18:12:48 -0000 On Mon, 2003-08-11 at 19:43, Emiel Kollof wrote: > Op maandag 11 augustus 2003 19:26, schreef Christer Gundersen: > > anyone gotten this to work? > > Yes, I have. > > > It seems like I cant. I followed the howto on their page, but it seems > > like distccd dont startup right. ('ps aux' shows distccd running) > > Like, distccd runs but it dont open the port that it needs. I even tried > > using 'distccd --daemon -p 80' , but nmap did not find it, nor does a > > 'telnet localhost 80' seem to find anything. > > The monitor does not seem to respond either. > > Distcc wants to drop down it's privs (it doesn't like runnig as root). And > seeming that you are trying to bind distcc to a priviledged port, no wonder > it won't listen. Best is to create a locked distcc user without a shell that > can't log in. Then just run distccd, and edit the distcc hosts file so you > can distribute complies across machines. Don't forget to use -j flags with > make. > > To see if distccd is doing compile jobs, you can always attach a strace(1) (or > maybe even truss) to it's pid and watch if it's doing someting. > I followed the http://distcc.samba.org/ howto. Like this; 1.For each machine, download distcc, unpack, and do ./configure && make && sudo make install (distcc is ports. i used the one in the ports) 2. On each of the servers, run distccd --daemon, with --allow options to restrict access. (did this. no respons. I also tried using /usr/local/etc/rc.d/distccd.sh.sample, I guess thats the script i want to use) 3. Put the names of the servers in your environment: export DISTCC_HOSTS='localhost red green blue' (Yeap, I did this. 'export DISTCC_HOSTS="localhost tugs hugs"' 4. Build! (I tried 'make buildworld CC=/usr/local/bin/distcc' in /usr/src. It build, but distccmon-gnome shows me nothing. (i also did a ps aux on one of the machines, and it does not use any CPU power on distcc/gcc/cc) (The distccd is started up. I can also connect to it now(telnet 3632) -- Med Vennlig Hilsen / Best regards Christer Gundersen / dizzy tun3Z http://dtz.cjb.net - http://carebears.mine.nu When you're up to your nose in shit, be sure to keep your mouth shut.