public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Michael <confabulate@kintzios.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] rsync local mirror question
Date: Wed, 26 Oct 2022 09:54:25 +0100	[thread overview]
Message-ID: <1931256.PYKUYFuaPT@lenovo.localdomain> (raw)
In-Reply-To: <Y1iWG8+uOm+X59F+@waltdnes.org>

[-- Attachment #1: Type: text/plain, Size: 2149 bytes --]

On Wednesday, 26 October 2022 03:06:19 BST Walter Dnes wrote:
> On Tue, Oct 25, 2022 at 11:07:14PM +0100, Michael wrote
> 
> > sync-type = rsync
> > #sync-uri = rsync://rsync.gentoo.org/gentoo-portage
> > sync-uri = rsync://192.168.1.252/gentoo-portage
> 
>   Thanks Michael (and Adam).  I did indeed forget to update sync-uri.
> I subscribe to Netflix, which requires Google-Chrome.  It nags for
> security updates every few days, so I'll soon find out how well the
> corrected mirror setup works.
> 
>   Question:  Can I leave "GENTOO_MIRRORS" uncommented in make.conf?  The
> minimal change for my laptop would be...

Yes, you may leave your GENTOO_MIRRORS URIs as you have it, unless you don't 
want to be downloading the same source files more than once for machines in 
your LAN.

If downloading chrome source files many times a week separately for multiple 
machines is no fun, you can set up a local http proxy caching server with its 
webroot pointing to its distfiles directory.  Then in your clients' 
GENTOO_MIRRORS directive add as the first mirror your LAN Gentoo address/port.  
The only drawback is you will have to sync and then emerge --fetchonly, or --
fetch-all-uri, on the local mirror before you start emerging the various 
client PCs.  A cron job can ensure this is all done by the time you're ready 
to run sync & emerge on the rest of your clients.

You can use any number of available webservers with small footprint; e.g. 
nginx, lighttpd, boa, etc.  The http-replicator is no longer available.


> ...when at home on my LAN...
> 
> #sync-uri = rsync://rsync.gentoo.org/gentoo-portage
> sync-uri = rsync://192.168.1.252/gentoo-portage
> 
> ...when taking the laptop out of my apartment...
> 
> sync-uri = rsync://rsync.gentoo.org/gentoo-portage
> #sync-uri = rsync://192.168.1.252/gentoo-portage

I don't know if you can set more than one sync server, so if the first is not 
available it will try the next and so on.  When the sync URI was defined in 
make.conf this was the case.  I suppose you can try it.  If it works it'll 
save you having to manually edit the file each time you move your laptop away 
from your LAN.

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

  reply	other threads:[~2022-10-26  8:54 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-25 20:36 [gentoo-user] rsync local mirror question Walter Dnes
2022-10-25 22:06 ` Adam Carter
2022-10-25 22:07 ` Michael
2022-10-26  2:06   ` Walter Dnes
2022-10-26  8:54     ` Michael [this message]
2022-10-26 15:48   ` [gentoo-user] [SOLVED] " Walter Dnes
2022-10-26 16:42     ` Michael
2022-10-27  0:24       ` Walter Dnes
2022-10-27  7:51         ` Michael

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1931256.PYKUYFuaPT@lenovo.localdomain \
    --to=confabulate@kintzios.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox