• [gentoo-user] rsync local mirror question

    From Walter Dnes@21:1/5 to All on Tue Oct 25 22:40:01 2022
    I followed https://wiki.gentoo.org/wiki/Local_Mirror instructions for
    doing a local rsync mirror. I ran commented the rsync mirrors line in
    the client's make.conf and ran "emerge --sync". The client still
    synced from a server on the internet. Do I need to manually force
    rsync to go local, e.g...

    [thimk][root][~] rsync 192.168.1.252::
    gentoo-portage Gentoo ebuild repository

    --
    I've seen things, you people wouldn't believe; Gopher, Netscape with
    frames, the first Browser Wars. Searching for pages with AltaVista,
    pop-up windows self-replicating, trying to uninstall RealPlayer. All
    those moments, will be lost in time like tears in rain... time to die.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Adam Carter@21:1/5 to waltdnes@waltdnes.org on Wed Oct 26 00:10:01 2022
    On Wed, Oct 26, 2022 at 7:35 AM Walter Dnes <waltdnes@waltdnes.org> wrote:

    I followed https://wiki.gentoo.org/wiki/Local_Mirror instructions for
    doing a local rsync mirror. I ran commented the rsync mirrors line in
    the client's make.conf and ran "emerge --sync". The client still
    synced from a server on the internet. Do I need to manually force
    rsync to go local, e.g...


    Maybe you missed this
    "Now, make the other computers use the local rsync mirror instead of a
    public one, by changing the *sync-uri* entry in the appropriate file in /etc/portage/repos.conf/ <https://wiki.gentoo.org/wiki/Project:Portage/Sync#Portage_configuration>."

    <div dir="ltr"><div dir="ltr"><div></div></div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Oct 26, 2022 at 7:35 AM Walter Dnes &lt;<a href="mailto:waltdnes@waltdnes.org">waltdnes@waltdnes.org</a>&gt; wrote:<br></div><blockquote
    class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">  I followed <a href="https://wiki.gentoo.org/wiki/Local_Mirror" rel="noreferrer" target="_blank">https://wiki.gentoo.org/wiki/Local_Mirror</a>
    instructions for<br>
    doing a local rsync mirror.  I ran commented the rsync mirrors line in<br>
    the client&#39;s make.conf and ran &quot;emerge --sync&quot;.  The client still<br>
    synced from a server on the internet.  Do I need to manually force<br>
    rsync to go local, e.g...<br>
    <br></blockquote><div><br></div><div><div dir="ltr"><div>Maybe you missed this</div><div>&quot;Now, make the other computers use the local rsync mirror instead of a public one, by changing the <b>sync-uri</b> entry in the appropriate file in <a href="
    https://wiki.gentoo.org/wiki/Project:Portage/Sync#Portage_configuration" title="Project:Portage/Sync"><span style="font-family:monospace;font-size:95%">/etc/portage/repos.conf/</span></a>.&quot;</div></div></div><div> </div></div></div>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Michael@21:1/5 to All on Tue Oct 25 23:07:14 2022
    On Tuesday, 25 October 2022 21:36:40 BST Walter Dnes wrote:
    I followed https://wiki.gentoo.org/wiki/Local_Mirror instructions for
    doing a local rsync mirror. I ran commented the rsync mirrors line in
    the client's make.conf and ran "emerge --sync". The client still
    synced from a server on the internet. Do I need to manually force
    rsync to go local, e.g...

    [thimk][root][~] rsync 192.168.1.252::
    gentoo-portage Gentoo ebuild repository

    No, you shouldn't have to do any such thing. Just make sure you have set up
    in your '/etc/portage/repos.conf/gentoo.conf' the correct rsync mirror and commented out the server on the Internet; e.g.:

    [snip ...]

    sync-type = rsync
    #sync-uri = rsync://rsync.gentoo.org/gentoo-portage
    sync-uri = rsync://192.168.1.252/gentoo-portage


    -----BEGIN PGP SIGNATURE-----

    iQIzBAABCAAdFiEEXqhvaVh2ERicA8Ceseqq9sKVZxkFAmNYXhIACgkQseqq9sKV Zxn3IxAAnq/woRDr3cd29+0SwgAhXqG/zR99ejg7KejuPo6INalxyzbw6ySfCs4G /QncAE5SRTbsBh5Is1pNaooPv6i1btpiSaFTiPgMGlWnagW5eezzaij2NpS74zeM k/xrunDja6G5WkUfFbmKwCFMBNAu0CdVgPAlu+hOXpxli+LThwyEJYCNwfeXjetg wHiLSL3I2yg2BoZ0ogw89m60ALgBox6jI78soET0OBYizR7b3K8ri7p76ixDNS4G Fra/pL5cZU4FN5BtvbYZJp9iZZefWkcX4cewDM2Tg9yjq3HK0xWuxLPgejscY8IJ zOrZYhbo3qmV2I4RCoT0+TeP0QQA+i2pGWEX3i33QyRuAOeK20VvDgrs9s3jgYx3 1FXZsyfdTSxn9HAMxVQzRGqRi6dWuX3ibL31JAP4Z5pxkxC6MuEAv6DTTYl2xSAh ELh/tPiX4gOcZTATgl4E++bgz9br5vGBCeYYqiLUSPz9ciizFq8kJ7Zq+vcJyEqH wGfmQD2z0qNX7bPJodZRplGP3P2d4LIdsB43jzEzdQUbtwY+rVeC4ZFJiSl+k98/ DX8goR0usHr0cI0Bs0eqpAjwKhh4Mx6A5JgIRWY4QIxMAXw8UiMQkc5U+1cSvr+a dl1SQonJyeMflufs954Crykixybm9ceMQMcpQlbtXqFWGqbLNuU=
    =LIi6
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Walter Dnes@21:1/5 to Michael on Wed Oct 26 04:10:01 2022
    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...

    ...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've seen things, you people wouldn't believe; Gopher, Netscape with
    frames, the first Browser Wars. Searching for pages with AltaVista,
    pop-up windows self-replicating, trying to uninstall RealPlayer. All
    those moments, will be lost in time like tears in rain... time to die.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Michael@21:1/5 to All on Wed Oct 26 09:54:25 2022
    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.
    -----BEGIN PGP SIGNATURE-----

    iQIzBAABCAAdFiEEXqhvaVh2ERicA8Ceseqq9sKVZxkFAmNY9cEACgkQseqq9sKV ZxmnKw//Sbxhs6pBbixuCKuBmXxoLeNtCmPEK8Rn5tjbQ9IAyDfJZSyYNZuuhUTv 56eKk3pCOw4/lBDtmF/Ub/7mQmT5n5j9jYbSb8gQ4NGiiqeXbbNlYPzhMD/2XxHN EBMUa58OOFfug13qTscyQC/hXmK5P26bT/wjg53hg5uBJq3Hqq899qd9IewDUjoa Dg+ElFoOx1kZI/Z+S9KIhAp3ddJnQnp066Lz8m7yB0rjagAoLPve/fSfv5vIs7TR k0PTYequVYNZiC/50/wzhtnwOkmzo94iFlgNshdGSW1zwF2RbO6M5KKKvGvc0Rq7 l1d4rourLTMte07Hzl8SJYY1RoesJKzowSzFwt4POuqRid7c1Cw4FhRorAS75Fl3 YIqVGUGWc2UBJoKi6khRlqdMm21nDmVJ5xl+lB8116M622B25NJFxuGV1nONSpMJ zZjPV6KcdFmxxIVVHiGoAg9M7+/U9rFfkVZe5cWGip//J4t/P2fThCC0WAy485XZ Pr9VvUBG+Be/UCw17+8AeVZ9Fx4jg0icZdEY1ANKjResHlC7X2yfs1kvY8T8CF3v Q5FgW+5VDBHHQN+GIVQzBezsSKGNA9cLAzAGUABhreEEa1HAa5eBQQp/JAo4AIyR c2Ak8oohM+WPbJ3AK0pQ8Wr2EPK16x+hwUxjHQr+c66PwnSQ+Fw=
    =E2uV
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)