Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
distcc on window boxes to speed up install
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
Golovko
n00b
n00b


Joined: 08 Aug 2003
Posts: 2

PostPosted: Fri Aug 08, 2003 7:41 am    Post subject: distcc on window boxes to speed up install Reply with quote

I just finished my first gentoo install. I am very impressed so far gentoo, the whole compile from scratch idea, as well as gentoo's documentation (still being pretty much a linux newb, this was definitely a plus). I wanted to share a tip I used to make initial install go faster:

From reading the forums its quite easy of course to use distcc to reduce the amount of time spent installing (aka reading a good book). Well for those who also have windows boxes running locally and want to harness that cpu power as well, I would recommend you check out the knoppix based distcc distro available at www.opendoorsoftware.com . The great part of course is this requires no hard drive modifications/installs on the windows machines, as it runs entirely from cd/memory. Even cooler is the fact that it is only 38 MB, which fits easily onto a business card cd, the 3" mini cd's, or even a USB memory drive/stick.

Once I downloaded and burned the iso, it was as simple as sticking the cd in the windows, and rebooting (made sure boot cd option was on in BIOS). After knoppix/distcc boots, the machine will be running the distcc daemon. It looks like the boot script tries to echo its dynamically acquired ip right before it starts the command shell, but that didn't work for me. Oh well, just type ifconfig eth0 and you have the ip to add to the install machine's distcc hosts.

For actually setting up the install machine I used lisa's great guide on getting distcc working in gentoo:

http://dev.gentoo.org/~lisa/distcc/distcc.html

Add the windows machine(s) ip and start compiling!

(My apologies if this is well known, but I didn't see much in reference to it when searching forums on distcc)

Gol
Back to top
View user's profile Send private message
jonaswhale
n00b
n00b


Joined: 17 Jul 2003
Posts: 38
Location: Maryland

PostPosted: Fri Aug 08, 2003 7:47 am    Post subject: thank you Reply with quote

very informative. Thank you for posting.
_________________
Technology should be indistinguishable from magic.
Back to top
View user's profile Send private message
Golovko
n00b
n00b


Joined: 08 Aug 2003
Posts: 2

PostPosted: Fri Aug 08, 2003 10:03 am    Post subject: Reply with quote

Forgot to add:

Knoppix, and likewise the distccKNOPPIX, use /etc/hosts.allow and /etc/hosts.deny which by default will not allow you to connect to the distcc daemon.

I did the following to get it to work, but there really should be a way to edit them and save (they seem to point to files on read-only right now)

Remove the two sym links:
Code:
rm /etc/hosts.allow
rm /etc/hosts.deny

Flush the changes?:
Code:
/etc/init.d/inetd restart
Back to top
View user's profile Send private message
deuce
n00b
n00b


Joined: 11 Dec 2002
Posts: 56

PostPosted: Sun Aug 10, 2003 12:44 am    Post subject: Reply with quote

One thing to note: You need to be careful about the gcc version. Well, you don't have to, but the distcc FAQ says better safe than sorry. What version does the CD have?
Back to top
View user's profile Send private message
hadfield
Retired Dev
Retired Dev


Joined: 18 Mar 2003
Posts: 308
Location: Vancouver, BC, Canada

PostPosted: Tue Nov 18, 2003 12:31 am    Post subject: Reply with quote

I just wanted to add a possibility other than knoppix. Using the knoppix CD on the windows workstation would prevent you from using your windows workstation when you were using distcc. An alternative would be to install cygwin on the windows workstation, and from the distcc FAQ, distcc reportedly works in cygwin.

You could even install portage on cygwin, just to make it a little more gentooish. :-)

Note: I have yet to try this myself, but I see no reason why it shouldn't work.
Back to top
View user's profile Send private message
tsigo
Tux's lil' helper
Tux's lil' helper


Joined: 09 Jul 2002
Posts: 122

PostPosted: Thu Dec 18, 2003 7:53 pm    Post subject: Reply with quote

I tried it on Cygwin today. distcc works and the Windows box gets the compiler job, but eventually the compile will fail. I think it's because Cygwin compiles the code to run on Cygwin/Windows, so that's of no use to the Gentoo box.

Or am I missing some setting in Cygwin?
Back to top
View user's profile Send private message
hadfield
Retired Dev
Retired Dev


Joined: 18 Mar 2003
Posts: 308
Location: Vancouver, BC, Canada

PostPosted: Thu Dec 18, 2003 9:09 pm    Post subject: Reply with quote

You might want to check this thread out:
HOWTO: Use a Windows box as a distcc server for linux.

It looks like they've got cygwin and distcc working properly.
Back to top
View user's profile Send private message
sanity
n00b
n00b


Joined: 19 May 2002
Posts: 39
Location: Iowa

PostPosted: Sat Dec 20, 2003 5:38 am    Post subject: Knoppix has Wine... Reply with quote

shadfiel wrote:
I just wanted to add a possibility other than knoppix. Using the knoppix CD on the windows workstation would prevent you from using your windows workstation when you were using distcc. An alternative would be to install cygwin on the windows workstation, and from the distcc FAQ, distcc reportedly works in cygwin.

You could even install portage on cygwin, just to make it a little more gentooish. :-)

Note: I have yet to try this myself, but I see no reason why it shouldn't work.


I wouldn't. That kills the main reasons I use Linux -- I don't want my Linux coming from Windows machines. But even if you aren't as paranoid as me, I've had good luck with Knoppix + Wine.

The only time I use Cygwin is when I have a Windows machine that cannot be converted that needs a backup. (I use my own rsync/perl/ssh mess.)
_________________
Every time you read a signature, God kills a kitten.
Back to top
View user's profile Send private message
Veto
Tux's lil' helper
Tux's lil' helper


Joined: 04 Jul 2003
Posts: 83

PostPosted: Wed Dec 24, 2003 6:46 pm    Post subject: Reply with quote

I have created a new verstion of my my cross-linux toolkit dist for Cygwin. It is a complete toolchain and utilities for makign a Cygwin host a distcc host. It includes:

binutils-2.14.90.0.6
glibc-2.3.2
gcc-3.2.3 (from -r3)
distcc-2.11.1

This 27MB .tar.bz2 can be downloaded and untarred into /usr and it will create a local directory (or overlay your own). In /usr/local/bin you can find a script called 'mkservice' which will install distcc as a NT service (as long as you have cygrunsrv installed).

Once you've done this and started the distcc service (net start distccd) you should have a complete distcc host ready to run. I have tested it by compling the 2.4.22 kernel only on my Cygwin-Distcc hosts and it completes fine.

It can be found at ftp://ftp.dympna.com/pub

--
Veto
Back to top
View user's profile Send private message
Veto
Tux's lil' helper
Tux's lil' helper


Joined: 04 Jul 2003
Posts: 83

PostPosted: Thu Dec 25, 2003 7:00 am    Post subject: Reply with quote

I've fixed the FTP server for those of you who tried to connect earlier.

--
Veto
Back to top
View user's profile Send private message
Veto
Tux's lil' helper
Tux's lil' helper


Joined: 04 Jul 2003
Posts: 83

PostPosted: Wed Jan 21, 2004 6:51 am    Post subject: Reply with quote

My toolchain has been updated:

https://forums.gentoo.org/viewtopic.php?p=795399#795399
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum