Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
HOWTO:Download Cache for your LAN-Http-Replicator (ver 3.0)
View unanswered posts
View posts from last 24 hours

Goto page 1, 2, 3 ... 22, 23, 24  Next  
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
flybynite
l33t
l33t


Joined: 06 Dec 2002
Posts: 618

PostPosted: Fri May 14, 2004 12:31 am    Post subject: HOWTO:Download Cache for your LAN-Http-Replicator (ver 3.0) Reply with quote

!!!!!!!!!!!HTTP-REPLICATOR IS NOW IN PORTAGE!!!!!!!!
http://packages.gentoo.org/ebuilds/?http-replicator-3.0

This thread is long, but please read the howto on the first page and then check the last page or two for updates...


Have A Couple (or Couple Hundred) Boxes On A LAN?

Be a good Gentoo Netizen and Speed the updates with Http-Replicator! Http-Replicator is a proxy that works with Portage to serve packages from a cache. It saves you bandwidth and helps gentoo grow by minimizing the mirror abuse. The cache download speed is limited only by your disk and LAN Speeds!


Here is how it works. Http-Replicator is running on one of your machines and listens for connections from other gentoo boxes. If the package is in the cache, it sends it out at LAN speeds! If not in the cache, http-replicator will simultaneously download the file, and stream the file to multiple clients! No matter how many machines request the package, only one copy comes down the internet pipe. Multiple copies can stream out the LAN pipe.

This is the easiest, and most reliable way to share both source and binary packages.

Http-Replicator has been designed with speed and security in mind. Give it a try!!


1. Emerge http-replicator.

****If upgrading http-replicator installed from portage overlay, remove the overlay files and unmerge http-replicator first. Don't worry, your config files will not be touched and will work fine with the new official ebuild...


Code:

# emerge http-replicator




2. Modify /etc/make.conf on both the server and your other gentoo boxes.



Add the "http_proxy" to /etc/make.conf:
Code:

http_proxy="http://YourProxyHere.com:8080"

replacing YourProxyHere.com with the hostname or IP address of the box running http-replicator .


NOTE: Http-Replicator 3.0 no longer needs any special RESUMECOMMAND!! Please comment out (place # at the start of the line) the previous RESUMECOMMAND changes if upgrading from a version prior to 3.0!!

3. Check the config file /etc/conf.d/http-replicator and then run repcacheman to create the cache dir and transfer files to http-replicators cache.

Most people can just run 'repcacheman' which will create the default cache dir /var/cache/http-replicator and complete the setup. You can change the defaults if you have special needs. repcacheman will set up the cache dir and user according to the /etc/conf.d/http-replicator config file and doesn't need any special command line.

Code:

/usr/bin/repcacheman



NOTE: I created repcacheman to automate the install and maintenance of Http-Replicator's cache dir. If repcacheman doesn't work for you for some reason, send me the bug reports. Http-replicator will work without repcacheman, but you'll have to create the cache dir and chown the dir to complete the install. repcacheman also checksums your existing /usr/portage/distfiles before moving them to the cache dir. Portage leaves incomplete and corrupt files in the distfile directory and repcacheman will not move those files to the cache.

4. Next, start Http-Replicator on the server:

Code:

/etc/init.d/http-replicator start


5. You should add http-replicator to your default runlevel
Code:

rc-update add http-replicator default




Don't forget that portage needs mirrors! Edit GENTOO_MIRRORS in /etc/make.conf to add more http mirrors and place any ftp mirrors LAST. The default mirrors in gentoo leave something to be desired :-) Use mirrorselect if you need help in selecting mirrors.

Also, some packages in portage have a RESTRICT="nomirror" option which will prevent portage from checking replicator for those packages. The following will override this behavior. Create the file "/etc/portage/mirrors" containing:
Code:

# Http-Replicator Override for FTP and RESTRICT="nomirror packages
local http://gentoo.osuosl.org

You can replace gento.osuosl.org with your favorite HTTP:// mirror. If you already have a local setting, don't worry, as long as it is an http mirror this will still be effective.


Then update something and watch http-replicator go!! It doesn't matter which box or how many boxes you update at the same time!! Http-Replicator can handle it!!

I recommend running repcacheman after running emerge's on the server (except emerge sync). It will delete duplicates after the server box fetches any files and also import FTP'd or other files to the cache. The easiest way to do this is to run emerge's on the server like this:
Code:

emerge -uDva world && repcacheman

This runs the emerge then repcacheman when the emerge is complete.

To keep repcacheman fast and efficient, you should consider deleting any files that remain in your distfile directory after repcacheman runs. They are either:
1. No longer in Portage
2. Incomplete or corrupt
3. Just plain junk

Http-Replicator will serve binary file to clients!! Build once and use binary packages for the rest of your gentoo herd!! Great for mass installs!! Other http or ftp daemons not required!!

This needs a whole HOWTO but here is the quick version..
Add -b to your emerges on the server or set features buildpkg in /etc/make.conf. This will make a binary package after compiling. Then just set your clients PORTAGE_BINHOST (/etc/make.conf) to point to http://YourProxyHere:8080/All for a default gentoo install.

Example: a new install of xmms
Code:

emerge -vab xmms



Then run an emerge with the binary option -g on a client (see man portage for more options)
Code:

emerge -uvag xmms


-g will cause portage to use binary packages from the server if available, and compile if not on the server. Huge time saver for similar machines!!!

You don't have to re-emerge packages to make binaries.

Code:

quickpkg xmms


will create a binary package for the already installed xmms. quickpkg will use the installed config files for the package so any custom config's will be part of the new package!!



Version 1.9
No longer masked in portage
Version 1.8
Now an official package!!
http://packages.gentoo.org/ebuilds/?http-replicator-3.0
Version 1.7
http-replicator 3.0!!
Deleted reference to old versions
Added BINHOST info
Version 1.6c
Added note to delete old ebuilds for upgrades
Version 1.6b
Updated to any http://mirror and clarify conf
Version 1.6a
Updated http://gentoo.osuosl.org/ link
Version 1.6
Added repcacheman example
Some changes for 2.1
Version 1.5
Clarify repcacheman note
Version 1.4
Added repcacheman note
added /etc/portage/mirrors note
Version 1.3
Added repcacheman
Changed default cache dir
Version 1.2
Updated RESUMECOMMAND
Version 1.1
Added group permissions on /usr/portage/distfiles
Added mirror reminder
Simplify activation
Version 1.0


Last edited by flybynite on Sat Jan 28, 2006 3:21 am; edited 37 times in total
Back to top
View user's profile Send private message
Darkaxe
n00b
n00b


Joined: 22 Apr 2004
Posts: 10
Location: Melbourne

PostPosted: Sat May 15, 2004 9:20 am    Post subject: Http-Replicator is awesome!!! Reply with quote

Hi flybynite,
This ebuild should definately be in the official portage list of ebuilds.
It works a treat, is easy to setup and fixes a complicated (or people have made it complicated) problem. I think this is what most people are after instead of the other 5 or 6 solutions I've found on the forums.

Just a couple of questions for you tho...

1- Senario, I have 2 workstations and a little server. The Http-Replicator server is running on my beefy workstation where most of the packages are downloaded to. If I emerge a package onto the server and the workstation didn't have it, does that mean if I go to emerge the same package onto the workstation I have to download it again? Or will the package be stored on the workstation too?

2- Is there a way to automatically bypass the Http-Replicator if the source for the emerge is on an ftp server? Currently the emerge will fail if the only sources for the ebuild are on ftp servers (ie. kdebase-3.2.2.tar.bz2, kdegraphics-3.2.2.tar.bz2. The rest of the kde stuff is OK.) It comes up with an error about the proxy port is invalid...

Thanks :)
_________________
Even if your on the right track, you'll get run over if you just sit there...
Back to top
View user's profile Send private message
flybynite
l33t
l33t


Joined: 06 Dec 2002
Posts: 618

PostPosted: Sun May 16, 2004 4:50 am    Post subject: Re: Http-Replicator is awesome!!! Reply with quote

Darkaxe wrote:
Hi flybynite,
This ebuild should definately be in the official portage list of ebuilds.
It works a treat, is easy to setup and fixes a complicated (or people have made it complicated) problem. I think this is what most people are after instead of the other 5 or 6 solutions I've found on the forums.


Submitted: http://bugs.gentoo.org/show_bug.cgi?id=50872 Its just that gentoo devs seem overloaded lately :-)

Darkaxe wrote:

Just a couple of questions for you tho...

1- Senario, I have 2 workstations and a little server. The Http-Replicator server is running on my beefy workstation where most of the packages are downloaded to. If I emerge a package onto the server and the workstation didn't have it, does that mean if I go to emerge the same package onto the workstation I have to download it again? Or will the package be stored on the workstation too?


No package is ever downloaded twice, no matter who starts the download or when the download is started :-) Start the same emerge on all 3 boxes at once and only 1 copy is downloaded while all 3 boxes receive the file from http-replicator!! ( one exception, that is ftp mirrors aren't supported by HTTP-replicator :-( but there are plenty of good http mirrors! )


Darkaxe wrote:

2- Is there a way to automatically bypass the Http-Replicator if the source for the emerge is on an ftp server? Currently the emerge will fail if the only sources for the ebuild are on ftp servers (ie. kdebase-3.2.2.tar.bz2, kdegraphics-3.2.2.tar.bz2. The rest of the kde stuff is OK.) It comes up with an error about the proxy port is invalid...

Thanks :)


This happens automatically in my setup directions. You must have an ftp_proxy set some where in your environment leftover from another program, check for this. If you did try and set http-replicator as an ftp_proxy, the error would be different! You would get an ERROR -1: No data received, not proxy port invalid.


In http-replicator, we only set an http_proxy, not an ftp_proxy, so wget should not use the proxy for ftp transfers.

Make sure you have plenty of good http mirrors in GENTOO_MIRRORS in /etc/make.conf, not really for http-replictor, just for gentoo in general. Use mirrorselect if you need help selecting more mirrors. The default mirrors in gentoo aren't the best. I got kdebase etc from gentoo.oregonstate.edu when the ebuilds first came out!
Back to top
View user's profile Send private message
ja
n00b
n00b


Joined: 22 Feb 2004
Posts: 15

PostPosted: Sun May 16, 2004 3:50 pm    Post subject: Re: Http-Replicator is awesome!!! Reply with quote

Great ebuild :)

Darkaxe wrote:

2- Is there a way to automatically bypass the Http-Replicator if the source for the emerge is on an ftp server? Currently the emerge will fail if the only sources for the ebuild are on ftp servers (ie. kdebase-3.2.2.tar.bz2, kdegraphics-3.2.2.tar.bz2. The rest of the kde stuff is OK.) It comes up with an error about the proxy port is invalid...

Thanks :)



Yes some special ebuilds depend on ftp servers.

Replace:

Code:
# Default fetch command (5 tries, passive ftp for firewall compatibility)
 PROXY="http_proxy=http://YourMirrorHere.com:8080"
 FETCHCOMMAND="$PROXY /usr/bin/wget -t 5  \${URI} -P \${DISTDIR}"
 RESUMECOMMAND="$PROXY /usr/bin/wget -t 5  \${URI} -P \${DISTDIR}"



with:
Code:
# Default fetch command (5 tries, passive ftp for firewall compatibility)
http_proxy="http://YourLANproxyHere.com:8080"
FETCHCOMMAND="/usr/bin/wget -t 5  \${URI} -P \${DISTDIR}"
RESUMECOMMAND="/usr/bin/wget -t 5  \${URI} -P \${DISTDIR}"


and it works perfect, without using the proxy for ftp transfers.

Remember to only have http mirrors in your make.conf:

Code:

GENTOO_MIRRORS="http://xyz.com/gentoo http://xyz2.com/gentooo"



And:

I think you have to have an extra directory on your proxy for the files,
not the distfiles dir because portage and the replicator will save partial files there. A little bit confusing for both of them.

After emerging, at least in my System, the proxy didn't cache anything because "distfiles" didn't had the right permissions, too.
So i changed the dir in /etc/http-replicator.conf.
Back to top
View user's profile Send private message
flybynite
l33t
l33t


Joined: 06 Dec 2002
Posts: 618

PostPosted: Mon May 17, 2004 12:39 am    Post subject: Reply with quote

Ja,

The changes you made to make.conf are more simple, so I've changed the howto. Thanks ! Actually you don't even have to uncomment the FETCHCOMMAND, as that is the default anyway, only the RESUMECOMMAND is non standard. Neither the old or new way should cause ftp requests to go through http-replicator though. Ftp works just fine on my system following the howto.

I also added changes to the group/permissions to make it clear that http-replicator can write files in that directory. I don't know if some installs are different or what but this ensures everything works just fine.

Http-Replicator uses a special tmp file so there is no conflict between portage and http-replicator using the same directory. There is nothing wrong with separate directories though, using the same directory just makes things simple. It also means that if you have to use ftp to get some special file on the server, replicator can still cache that file to other machines using http!
Back to top
View user's profile Send private message
ja
n00b
n00b


Joined: 22 Feb 2004
Posts: 15

PostPosted: Mon May 17, 2004 1:10 am    Post subject: Reply with quote

After *heavy* interrupting (using strg+c) wget multiple times during transfers with the same files on the client and server my client started creating .1-xx files and emerge failed. I've used --fetchonly for testing.

It seems the Replicator started serving incomplete tmp files as complete files, wget recognized them as new files and starts renaming...

I havn't seen this with seperate directorys.

I used two machines 1 machine running the replicator and a 2nd one as a client.


For the proxy thing:

man make.conf says:
"Either define PROXY or PROXY_FTP and PROXY_HTTP."

I think with your old howto you configured the Replicator as a proxy for both protocols. Don't know why it was working for you.
Back to top
View user's profile Send private message
flybynite
l33t
l33t


Joined: 06 Dec 2002
Posts: 618

PostPosted: Mon May 17, 2004 8:37 am    Post subject: Reply with quote

ja, some good work my friend!!

Version 1.2 is now in the works. Change your RESUMECOMMAND everyone.

Seems I got the results of removing the -c option wrong when a rabid user kills the emerge multiple times :-)

It was emerge leaving those .1XX files because of my removing the -c option. Http-Replicator was never serving incomplete files!!

I'm hoping Http-Replicator should still work without problems in the same directory as portage with the new RESUMECOMMAND.

I see one more bug to fix. Till I get that squashed, quitting the fetch might require removing the partial file download.

Keep those bugs coming!!
Back to top
View user's profile Send private message
wizard69
Apprentice
Apprentice


Joined: 22 Sep 2003
Posts: 178
Location: Berlin

PostPosted: Mon May 17, 2004 4:25 pm    Post subject: Reply with quote

@flybynite THX for the howto and the great app sounds just like what i have been looking for for my home net. Is it worth waiting for the new version or is it safe to emerge now?
Back to top
View user's profile Send private message
flybynite
l33t
l33t


Joined: 06 Dec 2002
Posts: 618

PostPosted: Mon May 17, 2004 10:30 pm    Post subject: Reply with quote

Replicator works very well in normal use. The issue is a possible annoyance, not a safety or security issue at all.

The thing is I would like replicator to be able to use /usr/portage/distfiles as a cache. Only on the server replicator and portage must play well using the same directory. The issue is when you interrupt a fetch on the server, Portage leaves an incomplete file and replicator doesn't know it is incomplete.

If for some reason you interrupt a portage fetch on the server, you might have to manually delete the incomplete file, thats all.

I use replicator every day and haven't had any problems in normal use because I don't interrupt portage downloads.

If you are paranoid, change the cache directory in /etc/http-replicator.conf to another directory. Then just move all the files from distfiles to the new directory to prime the cache. This will avoid the problem till I test some fixes.
Back to top
View user's profile Send private message
flybynite
l33t
l33t


Joined: 06 Dec 2002
Posts: 618

PostPosted: Mon May 24, 2004 3:27 am    Post subject: New Version Reply with quote

Please help test!!

While http-replicator itself hasn't changed, my install instructions and the repcacheman script is new.

This should fix the minor issues raised earlier.
Back to top
View user's profile Send private message
wizard69
Apprentice
Apprentice


Joined: 22 Sep 2003
Posts: 178
Location: Berlin

PostPosted: Mon May 24, 2004 3:37 pm    Post subject: Reply with quote

@flybynite Okay i willl give it a try an post the results

Okay i emerged http Replicator and followed your setup instructions for my Gentoo Server and one Gentoo client. But i am not quite sure if http Replicator is being used. How can i check on this because it doesn't seem to leave any entries in the log file.
Back to top
View user's profile Send private message
hammerhai
n00b
n00b


Joined: 18 Dec 2003
Posts: 17
Location: Darmstadt, Germany

PostPosted: Mon May 24, 2004 5:52 pm    Post subject: Reply with quote

Executing repcacheman doesn't work for me:
Code:
Checking authenticity and integrity of new files...
Searching for ebuilds's ....
Done!

Found 13954 ebuilds.

Extracting the checksums....
Missing digest: dev-libs/dvxml-0.1.4
Missing digest: dev-util/jconfig-2.5
Missing digest: media-plugins/tap-plugins-0.1
Missing digest: net-analyzer/authforce-0.9.6
Traceback (most recent call last):
  File "/usr/bin/repcacheman", line 157, in ?
    digestpath = os.path.dirname(digestpath)+"/files/digest-"+pv
  File "/usr/lib/python2.3/posixpath.py", line 119, in dirname
    return split(p)[0]
  File "/usr/lib/python2.3/posixpath.py", line 77, in split
    i = p.rfind('/') + 1
AttributeError: 'NoneType' object has no attribute 'rfind'
Back to top
View user's profile Send private message
wizard69
Apprentice
Apprentice


Joined: 22 Sep 2003
Posts: 178
Location: Berlin

PostPosted: Mon May 24, 2004 7:01 pm    Post subject: Reply with quote

have you tried to remerge python
Back to top
View user's profile Send private message
hammerhai
n00b
n00b


Joined: 18 Dec 2003
Posts: 17
Location: Darmstadt, Germany

PostPosted: Tue May 25, 2004 12:41 pm    Post subject: Reply with quote

Yes, but there is still the same error.
Back to top
View user's profile Send private message
flybynite
l33t
l33t


Joined: 06 Dec 2002
Posts: 618

PostPosted: Wed May 26, 2004 5:57 am    Post subject: Reply with quote

wizard69 wrote:
@flybynite Okay i willl give it a try an post the results
(snip)
How can i check on this because it doesn't seem to leave any entries in the log file.


The log file is written lazily, so it might take a while to flush to disk. You can tell its working by looking at the emerge. You'll see the port 8080 in the emerge - something like this:
Code:

Connecting to gate1.homenet.com[127.0.0.1]:8080... connected.


Of course, you'll see a download speed of ~ 11MB/s on cached files!
Back to top
View user's profile Send private message
flybynite
l33t
l33t


Joined: 06 Dec 2002
Posts: 618

PostPosted: Wed May 26, 2004 6:15 am    Post subject: Reply with quote

hammerhai wrote:
Executing repcacheman doesn't work for me:
Code:

(snip)
Missing digest: net-analyzer/authforce-0.9.6
Traceback (most recent call last):
  File "/usr/bin/repcacheman", line 157, in ?
    digestpath = os.path.dirname(digestpath)+"/files/digest-"+pv
(snip)
 


I should have made it obvious that repcacheman is not strictly needed. Http-Replicator will work fine without it. Right now, any new emerge's you do will be cached!!

I wrote repcacheman to help new users create the cache directory and move your existing files from /usr/portage/distfiles to the cache directory. It also checks those files for corruption, just in case. Portage leaves incomplete downloads in /usr/portage/distfiles, repcacheman won't copy those files to the replicator cache.

Now back to your error. This is caused by a gentoo developer forgetting to include a digest file for a new or changed ebuild. My guess this will be fixed by now. Just sync and try it again. If that doesn't work, just copy all the packages (/usr/portage/distfiles) to the cache dir yourself (/var/cache/http-replicator), and tell me your portage version. I'll add code to catch this error as soon as I get the chance....
Back to top
View user's profile Send private message
flybynite
l33t
l33t


Joined: 06 Dec 2002
Posts: 618

PostPosted: Fri May 28, 2004 1:07 am    Post subject: Reply with quote

Updated HOWTO to ver 1.4
Back to top
View user's profile Send private message
senectus
Guru
Guru


Joined: 17 Jul 2003
Posts: 533

PostPosted: Sun May 30, 2004 10:10 pm    Post subject: Reply with quote

8O :? ye gods..

I have 4-5 gentoo boxes on my home lan.. with a view to expand.. so I thought I'd be a responsable gentooist and make my own rsync.. so I started here:
http://forums.gentoo.org/viewtopic.php?t=59134&postdays=0&postorder=asc&highlight=rsync+mirror&start=0

which was great until I saw this post in the thread (halfway through making the mirror of course)
http://forums.gentoo.org/viewtopic.php?t=110973&postdays=0&postorder=asc&start=0

Then I thought.. ooooh this is much better.. so I started doing that.. until I noticed THIS THREAD!

Now I think I'm going to use the first link to do my rsync updates and this threads solution to actually get the files.. 8O :lol: (that "should" work shouldn't it?)

anyway.. thanks for the fantastic voyage of discovery... :lol: but I think in future I'll surf this forum with my eyes closed.. :wink:
_________________
2800+XP A7N8X FX6600GT
www.modmeup.net |
Belief is 9/10 of YOUR reality.
Wise man say: A skilled troll is a master baiter.
Back to top
View user's profile Send private message
dhurt
Apprentice
Apprentice


Joined: 14 May 2003
Posts: 278
Location: Davis, CA

PostPosted: Tue Jun 01, 2004 9:56 am    Post subject: Reply with quote

Thanks for the excellent program. I went through the exact same chain of programs as senectus ;) Works like a charm :D
_________________
"And isn't sanity really just a one-trick pony, anyway? I mean, all you get is one trick, rational thinking, but when you're good and crazy, ooh ooh ooh, the sky's the limit!" -- The Tick
Back to top
View user's profile Send private message
flybynite
l33t
l33t


Joined: 06 Dec 2002
Posts: 618

PostPosted: Tue Jun 01, 2004 11:41 am    Post subject: Reply with quote

OK, your killing me knowing there is some outdated info out there. The rsync mirror described by the HOWTO: Central Gentoo Mirror for Internal Network at http://forums.gentoo.org/viewtopic.php?t=59134 is currently outdated (as of June 1, 2004) and uses insecure options. Although I believe there will be a fix in a later version of rsync, till then, following that old howto is insecure!!

I created an updated version - HOWTO:Local Rsync Mirror at http://forums.gentoo.org/viewtopic.php?t=180336
Back to top
View user's profile Send private message
dhurt
Apprentice
Apprentice


Joined: 14 May 2003
Posts: 278
Location: Davis, CA

PostPosted: Tue Jun 01, 2004 4:00 pm    Post subject: Reply with quote

Now that will be one more post to go through in the chain of different options ;)
_________________
"And isn't sanity really just a one-trick pony, anyway? I mean, all you get is one trick, rational thinking, but when you're good and crazy, ooh ooh ooh, the sky's the limit!" -- The Tick
Back to top
View user's profile Send private message
dhurt
Apprentice
Apprentice


Joined: 14 May 2003
Posts: 278
Location: Davis, CA

PostPosted: Tue Jun 01, 2004 11:21 pm    Post subject: Reply with quote

In the above setup, is there any problem with using the cache directory as the source directory for server to get the files it needs?

So for instance setting in /etc/make.conf
Code:

PKGDIR= /var/cache/http-replicator


I was wondering if this would cause write issues as the proxy is downloading the file to cache directory while giving it to the localhost which is in turn saving it to the same place. I guess this could be overcome by turning off the http_proxy for the localhost? Is there a problem with this configuration, something that I am not seeing?

Thanks for the program :D
_________________
"And isn't sanity really just a one-trick pony, anyway? I mean, all you get is one trick, rational thinking, but when you're good and crazy, ooh ooh ooh, the sky's the limit!" -- The Tick
Back to top
View user's profile Send private message
flybynite
l33t
l33t


Joined: 06 Dec 2002
Posts: 618

PostPosted: Wed Jun 02, 2004 4:46 am    Post subject: Reply with quote

ender2431 wrote:
In the above setup, is there any problem with using the cache directory as the source directory for server to get the files it needs?

So for instance setting in /etc/make.conf
Code:

PKGDIR= /var/cache/http-replicator



Well PKGDIR is for the .tbz2 binary packages portage creates, I think you meant DISTDIR by your description, which is where portage stores it's downloaded tarballs?

Using DISTDIR (/usr/portage/distfiles) for replicator's cache is not recommended, for now.

That is the reason I created the 'repcacheman' script. It manages portages DISTDIR and replicator's cache directory very intelligently. With repcacheman, there really isn't any drawbacks to following my howto exactly and having DISTDIR separate from replicator's cache.

I originally intended replicator to share the directory with portage - but portage needs to learn how to share first :-)
Back to top
View user's profile Send private message
mjr104
n00b
n00b


Joined: 30 Apr 2004
Posts: 2

PostPosted: Thu Jun 03, 2004 12:40 am    Post subject: Reply with quote

Hi,

I've just started to play with various portage caching ideas and have setup the http-replicator and the local rsync mirror. Great!

I'm slightly lost with all the options and suggestions so I have a quick question about binary packages if that's ok.

What's the best/simplest way to also share the binary packages that are in the packages directory of the machine hosting the replicator? This machine has already built a large number of packages and I ultimately want this machine to build and serve all the packages for my network as they get updated.

I assume that the replicator only serves the files that (nominally) live in distfiles? The option in make.conf for binary packages seems to suggest I need http or ftp access to a server - serving the packages directory?

Cheers

Mike
Back to top
View user's profile Send private message
senectus
Guru
Guru


Joined: 17 Jul 2003
Posts: 533

PostPosted: Thu Jun 03, 2004 1:40 am    Post subject: Reply with quote

ok.. here is a carry on question to the one above..

Lets say that I want to build packages on lots of machines.. of different spec's then host the binaries on one PC so that I can have a whole host of binaries on the network for network installations (the idea is to make Gentoo a feasable distro to install at installfests)..
_________________
2800+XP A7N8X FX6600GT
www.modmeup.net |
Belief is 9/10 of YOUR reality.
Wise man say: A skilled troll is a master baiter.
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
Goto page 1, 2, 3 ... 22, 23, 24  Next
Page 1 of 24

 
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