Mailing List Archive

home gentoo server/mirror
Hi,

Will anybody be so kind to point me how to install gentoo home mirror?
I mean:

- there is home LAN (2 computers, both - gentoo)
- one of computers is connected to internet and is used
for syncing and getting distfiles
- the second may sync exclusively from portage copy of first one
- the second must fetch distfiles from the first one or, if absent, in
ordinary way.

According to last item of the above list: 1'st computer doesn't
have any installed servers sutable for fetching distfiles. Which
server/protocol is the most light for described needings? If I
understand well, such server then will be added to the beginning
of mirrors list in make.conf.

Thanks in advance,
Andrew

--
gentoo-user@gentoo.org mailing list
Re: home gentoo server/mirror [ In reply to ]
On Thursday 23 September 2004 10:48 am, Andrew Gaydenko wrote:
> - there is home LAN (2 computers, both - gentoo)
> - one of computers is connected to internet and is used
> for syncing and getting distfiles
> - the second may sync exclusively from portage copy of first one
> - the second must fetch distfiles from the first one or, if absent, in
> ordinary way.

Just nfs share /usr/portage.. Works great for all the above..

Jeff
Re: home gentoo server/mirror [ In reply to ]
It isn't sutable: 1st computer isn't turned on always. The 2d one
must have an own portage/distfiles local independent copy.


======= On Thursday 23 September 2004 19:48, Jeff Smelser wrote: =======
On Thursday 23 September 2004 10:48 am, Andrew Gaydenko wrote:
> - there is home LAN (2 computers, both - gentoo)
> - one of computers is connected to internet and is used
> for syncing and getting distfiles
> - the second may sync exclusively from portage copy of first one
> - the second must fetch distfiles from the first one or, if absent, in
> ordinary way.

Just nfs share /usr/portage.. Works great for all the above..

Jeff


--
gentoo-user@gentoo.org mailing list
Re: home gentoo server/mirror [ In reply to ]
On Thursday 23 September 2004 11:11 am, Andrew Gaydenko wrote:
> It isn't sutable: 1st computer isn't turned on always. The 2d one
> must have an own portage/distfiles local independent copy.

You can install apache and set it up as a mirror.. Ftp server as a mirror..
Set the first one up as a rsync mirror..

All pretty pointless if its not gonna be on half the time..

Jeff
Re: home gentoo server/mirror [ In reply to ]
On Thursday 23 September 2004 11:11 am, Andrew Gaydenko wrote:
> It isn't sutable: 1st computer isn't turned on always. The 2d one
> must have an own portage/distfiles local independent copy.

BTW, your using kmail and your top posting.. Thats not the default behavior..
Why you doing that?

Jeff
Re: home gentoo server/mirror [ In reply to ]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Andrew Gaydenko wrote:
| Hi,
|
| Will anybody be so kind to point me how to install gentoo home mirror?
| I mean:
|
| - there is home LAN (2 computers, both - gentoo)
| - one of computers is connected to internet and is used
| for syncing and getting distfiles
| - the second may sync exclusively from portage copy of first one
| - the second must fetch distfiles from the first one or, if absent, in
| ordinary way.
|
| According to last item of the above list: 1'st computer doesn't
| have any installed servers sutable for fetching distfiles. Which
| server/protocol is the most light for described needings? If I
| understand well, such server then will be added to the beginning
| of mirrors list in make.conf.
|
| Thanks in advance,
| Andrew

The description of what you want sounds exactly how I do it.

First you must run rsyncd on the computer that will be serving the
portage tree. Have something like the following in /etc/rsync/rsyncd.conf:

uid = nobody
gid = nobody
use chroot = yes
max connections = 5
pid file = /var/run/rsyncd.pid
transfer logging = yes
log format = %t %a %m %f %b
syslog facility = local3
timeout = 300

[gentoo-portage]
path = /usr/portage
comment = Gentoo Linux Portage tree
exclude = distfiles

start rsyncd: /etc/init.d/rsyncd start

On the client machine have in you make.conf:

SYNC=rsync://name_or_IP_of_rsync_server/gentoo-portage

For the distfiles, I prefer to serve them via HTTP (just create a
symlink from your htdocs dir to your distfiles dir) and then have the
server as the first server in GENTOO_MIRRORS.

There are other ways to serve distfiles (you can use rsync for that too
if you want), just pick the one that serves you best (pun intended).

HTH
- --
Some men are all right in their place -- if they only the knew the right
places! -- Mae West

Aaron Walker - Gentoo Developer [ Gentoo/BSD / forensics herd ]
ka0ttic@gentoo.org http://dev.gentoo.org/~ka0ttic/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFBUvucC3poscuANHARAs8wAKDR7SoWpBwnfxoRYakYEKCTJt1I9gCeKiU8
R/DMlK0LwDdwwKCKHpRLk7A=
=jvaU
-----END PGP SIGNATURE-----

--
gentoo-user@gentoo.org mailing list
Re: home gentoo server/mirror [ In reply to ]
Jeff,

My ugly english doesn't allow me to understand an exactly meaning of
"your top posting". Probably it means my Re:'s takes place above quoting.
If it so, well, it is common way among few my colleagues (including me).
If you think such formatting may be annoying for wide range of readers,
I'll try to find something useful in KMail configuration.

Andrew

======= On Thursday 23 September 2004 20:14, Jeff Smelser wrote: =======
On Thursday 23 September 2004 11:11 am, Andrew Gaydenko wrote:
> It isn't sutable: 1st computer isn't turned on always. The 2d one
> must have an own portage/distfiles local independent copy.

BTW, your using kmail and your top posting.. Thats not the default behavior..
Why you doing that?

Jeff


--
gentoo-user@gentoo.org mailing list
Re: home gentoo server/mirror [ In reply to ]
Aaron,

Thanks, it helped for syncing. But when I try to use rsyncd for
distfiles fetching, emerge says about "Unsupported scheme". I have
added these lines to conf file:

[anli-distfiles]
path = /x/portage
comment = Anli Distfiles
hosts allow = 192.168.1.2

Distfiles are allocated in /x/portage/distfiles, /x/portage is
chmod-ed as -R 666, client's make.conf has this line:

GENTOO_MIRRORS="rsync://192.168.1.1/anli-distfiles"

Where is my fault?

Andrew

======= On Thursday 23 September 2004 20:36, Aaron Walker wrote: =======
Andrew Gaydenko wrote:
| Hi,
|
| Will anybody be so kind to point me how to install gentoo home mirror?
| I mean:
|
| - there is home LAN (2 computers, both - gentoo)
| - one of computers is connected to internet and is used
| for syncing and getting distfiles
| - the second may sync exclusively from portage copy of first one
| - the second must fetch distfiles from the first one or, if absent, in
| ordinary way.
|
| According to last item of the above list: 1'st computer doesn't
| have any installed servers sutable for fetching distfiles. Which
| server/protocol is the most light for described needings? If I
| understand well, such server then will be added to the beginning
| of mirrors list in make.conf.
|
| Thanks in advance,
| Andrew

The description of what you want sounds exactly how I do it.

First you must run rsyncd on the computer that will be serving the
portage tree. Have something like the following in /etc/rsync/rsyncd.conf:

uid = nobody
gid = nobody
use chroot = yes
max connections = 5
pid file = /var/run/rsyncd.pid
transfer logging = yes
log format = %t %a %m %f %b
syslog facility = local3
timeout = 300

[gentoo-portage]
path = /usr/portage
comment = Gentoo Linux Portage tree
exclude = distfiles

start rsyncd: /etc/init.d/rsyncd start

On the client machine have in you make.conf:

SYNC=rsync://name_or_IP_of_rsync_server/gentoo-portage

For the distfiles, I prefer to serve them via HTTP (just create a
symlink from your htdocs dir to your distfiles dir) and then have the
server as the first server in GENTOO_MIRRORS.

There are other ways to serve distfiles (you can use rsync for that too
if you want), just pick the one that serves you best (pun intended).

HTH
--
Some men are all right in their place -- if they only the knew the right
places! -- Mae West

Aaron Walker - Gentoo Developer [ Gentoo/BSD / forensics herd ]
ka0ttic@gentoo.org http://dev.gentoo.org/~ka0ttic/

--
gentoo-user@gentoo.org mailing list



--
gentoo-user@gentoo.org mailing list
Re: home gentoo server/mirror [ In reply to ]
On Thursday 23 September 2004 02:00 pm, Andrew Gaydenko wrote:
> Jeff,
>
> My ugly english doesn't allow me to understand an exactly meaning of
> "your top posting". Probably it means my Re:'s takes place above quoting.
> If it so, well, it is common way among few my colleagues (including me).
> If you think such formatting may be annoying for wide range of readers,
> I'll try to find something useful in KMail configuration.

Not for me so much, but a lot of people in the email list world do not like
it..

Jeff
Re: top posting (WAS home gentoo server/mirror) [ In reply to ]
Jeff Smelser wrote:

>>"your top posting". Probably it means my Re:'s takes place above quoting.
> Not for me so much, but a lot of people in the email list world do not like
> it..

my biggest beef with top posting is that most top posters don't "trim"
the email after they write their wisdom. After several iterations of
this, you have the entire thread in one reply - why have thread capable
email clients if this is supposed to be the case?

Of course, there are some bottom posters who do the same, and that
annoys me even more as they are even *lazier* than the top posters. Ya
took the time to configure your client to bottom post, and you don't
even trim the fat? That's like going to the kitchen to get some food,
and not bothering because you'd have to open the refrigerator.

--
gentoo-user@gentoo.org mailing list
Re: top posting (WAS home gentoo server/mirror) [ In reply to ]
On Thursday 23 September 2004 02:10 pm, Billy wrote:
> Of course, there are some bottom posters who do the same, and that
> annoys me even more as they are even *lazier* than the top posters. Ya
> took the time to configure your client to bottom post, and you don't
> even trim the fat? That's like going to the kitchen to get some food,
> and not bothering because you'd have to open the refrigerator.

Well said.. :) Had not heard that one before..

Usually those are the ones you skip down 100 lines and it says, I agree.. :)

Jeff
Re: home gentoo server/mirror [ In reply to ]
OK, after googling I have replaced old distfiles-aware fragment with:

[gentoo-packages]
path = /x/portage/distfiles
comment = Anli Linux Packages mirror

Still "Unsupported scheme" msg takes place.

---------- Forwarded Message ----------
Aaron,

Thanks, it helped for syncing. But when I try to use rsyncd for
distfiles fetching, emerge says about "Unsupported scheme". I have
added these lines to conf file:

[anli-distfiles]
path = /x/portage
comment = Anli Distfiles
hosts allow = 192.168.1.2

Distfiles are allocated in /x/portage/distfiles, /x/portage is
chmod-ed as -R 666, client's make.conf has this line:

GENTOO_MIRRORS="rsync://192.168.1.1/anli-distfiles"

Where is my fault?

Andrew

======= On Thursday 23 September 2004 20:36, Aaron Walker wrote: =======
Andrew Gaydenko wrote:
| Hi,
|
| Will anybody be so kind to point me how to install gentoo home mirror?
| I mean:
|
| - there is home LAN (2 computers, both - gentoo)
| - one of computers is connected to internet and is used
| for syncing and getting distfiles
| - the second may sync exclusively from portage copy of first one
| - the second must fetch distfiles from the first one or, if absent, in
| ordinary way.
|
| According to last item of the above list: 1'st computer doesn't
| have any installed servers sutable for fetching distfiles. Which
| server/protocol is the most light for described needings? If I
| understand well, such server then will be added to the beginning
| of mirrors list in make.conf.
|
| Thanks in advance,
| Andrew


--
gentoo-user@gentoo.org mailing list
Re: home gentoo server/mirror [ In reply to ]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Andrew Gaydenko wrote:
| OK, after googling I have replaced old distfiles-aware fragment with:
|
| [gentoo-packages]
| path = /x/portage/distfiles
| comment = Anli Linux Packages mirror
|
| Still "Unsupported scheme" msg takes place.

To be honest, I'm not sure. I do remember that when I first set this up
(more than a year ago), I was also unable to get distfiles to serve over
rsync, but I cannot remember why. You might want to try searching the
forums for "local rsync mirror" in the tips, tricks, & docs section, as
that's where I saw the original guide I used, which iirc, explains how
to use rsync for distfiles.

HTH

| ---------- Forwarded Message ----------
| Aaron,
|
| Thanks, it helped for syncing. But when I try to use rsyncd for
| distfiles fetching, emerge says about "Unsupported scheme". I have
| added these lines to conf file:
|
| [anli-distfiles]
| path = /x/portage
| comment = Anli Distfiles
| hosts allow = 192.168.1.2
|
| Distfiles are allocated in /x/portage/distfiles, /x/portage is
| chmod-ed as -R 666, client's make.conf has this line:
|
| GENTOO_MIRRORS="rsync://192.168.1.1/anli-distfiles"
|
| Where is my fault?
|
| Andrew

- --
If it wasn't for Newton, we wouldn't have to eat bruised apples.

Aaron Walker - Gentoo Developer [ Gentoo/BSD / forensics herd ]
ka0ttic@gentoo.org http://dev.gentoo.org/~ka0ttic/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFBVC2UC3poscuANHARAh0UAKDkhZgu1/Q/DyrBNiPKfGWYDdW68ACdFdyr
XYcn8zs4uy4EBI+ue3+Oq0o=
=wEZi
-----END PGP SIGNATURE-----

--
gentoo-user@gentoo.org mailing list