Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
With a build machine, slow machines can run gentoo.
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
crocket
Guru
Guru


Joined: 29 Apr 2017
Posts: 558

PostPosted: Sun May 02, 2021 4:40 am    Post subject: With a build machine, slow machines can run gentoo. Reply with quote

Only with 4GB, compiling GUI packages was not possible. My laptop's CPU is slow, too.

Thus, I extracted stage3 archive into folders on a fast build machine and created commands that execute commands in the folders.
  • sudo chroot-machine1 emerge -uDN @world
  • sudo chroot-machine2 emerge -uDN @world
  • ...

rsyncd runs on the build machine and serves as a remote binhost for slow machines.

/etc/portage/binrepos.conf
Code:
[main-binhost]
priority=9999
sync-uri = rsync://[ipv6-address]:port/machine1-binhost-module


Now, gentoo is useable on slow machines.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54588
Location: 56N 3W

PostPosted: Sun May 02, 2021 9:09 am    Post subject: Reply with quote

Moved from Portage & Programming to Documentation, Tips & Tricks as its not a support question
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
DeadlySyns
n00b
n00b


Joined: 14 May 2021
Posts: 8

PostPosted: Sat May 15, 2021 9:30 pm    Post subject: Re: With a build machine, slow machines can run gentoo. Reply with quote

crocket wrote:
Only with 4GB, compiling GUI packages was not possible. My laptop's CPU is slow, too.

Thus, I extracted stage3 archive into folders on a fast build machine and created commands that execute commands in the folders.
  • sudo chroot-machine1 emerge -uDN @world
  • sudo chroot-machine2 emerge -uDN @world
  • ...

rsyncd runs on the build machine and serves as a remote binhost for slow machines.

/etc/portage/binrepos.conf
Code:
[main-binhost]
priority=9999
sync-uri = rsync://[ipv6-address]:port/machine1-binhost-module


Now, gentoo is useable on slow machines.


There is a program called DistCC which is popular in these situations (indeed, it's the *only way* to build in some cases). I have an ancient SPARC server and a brand new 3700x. Cross compiling with DistCC saves me about a week of compiling.

If you don't want to down your main machine building for the slower one, and if you run linux on your main desktop, I advise you to look into DistCC.
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