Re: [gentoo-user] to install portage on other gentoo installs

2014-02-14 Thread Nilesh Govindrajan
On 14 Feb 2014 12:46, Edward M edwardm.gentoo.j...@live.com wrote:

 On Thu, 13 Feb 2014 19:11:44 +0100
 J. Roeleveld jo...@antarean.org wrote:

  If you want to do NFS. Let us know.
  It can be done easier then Alan makes out. But you then need to
  ensure only your machines are connected to the network.

  That is so kind of you. when i have problems i will ask for help
  thank you.


  In simple terms:
  Configure NFS to allow every user from any machine (or network ip
  range) has access to the files. The NFS server can be told to replace
  any connecting user with a single user on the server.
 
  That is what I do. With a good firewall preventing non wired owned
  machines to have any access.

ipsec was mentioned i may need to use this. The nfs will be  in my
LAN. i think ipsec may be better  just realized my cable modem
has firewall built in will that interfere with ipsec?
 --
 Learing Linux with Gentoo to earn LPIC1.


ipset! = ipsec


Re: [gentoo-user] to install portage on other gentoo installs

2014-02-14 Thread Edward M
On Fri, 14 Feb 2014 13:38:50 +0530
Nilesh Govindrajan m...@nileshgr.com wrote:

 On 14 Feb 2014 12:46, Edward M edwardm.gentoo.j...@live.com wrote:
 
  On Thu, 13 Feb 2014 19:11:44 +0100
  J. Roeleveld jo...@antarean.org wrote:
 
   If you want to do NFS. Let us know.
   It can be done easier then Alan makes out. But you then need to
   ensure only your machines are connected to the network.
 
   That is so kind of you. when i have problems i will ask for help
   thank you.
 
 
   In simple terms:
   Configure NFS to allow every user from any machine (or network ip
   range) has access to the files. The NFS server can be told to
   replace any connecting user with a single user on the server.
  
   That is what I do. With a good firewall preventing non wired owned
   machines to have any access.
 
 ipsec was mentioned i may need to use this. The nfs will be  in
  my LAN. i think ipsec may be better  just realized my cable modem
 has firewall built in will that interfere with ipsec?
  --
  Learing Linux with Gentoo to earn LPIC1.
 
 
 ipset! = ipsec

  
 I do not know why I've got Internet Protocol Security etched in my
 mind. Thank You for bringing this to my attention. 

-- 
Best regards,
Edward M. 

Learing Linux with Gentoo to earn LPIC1.




Re: [gentoo-user] to install portage on other gentoo installs

2014-02-14 Thread J. Roeleveld
On Fri, February 14, 2014 08:05, Edward M wrote:
 On Fri, 14 Feb 2014 00:13:19 +0530
 Nilesh Govindrajan m...@nileshgr.com wrote:

 My favorite firewall rule to do this don't restrict any kind of
 traffic between own network and filter the rest.
 Use ipset. Very easy.

   I have zero  knowledge how ipsec works. once i have nfs set i'll do
   ipsec second. nfs will be in my private network for my gentoo
   systems(laptops,server,client) boxes.  thanks for the tip.

Important:
Nilesh was talking about ipseT (it's part of iptables, which provides
firewall functionality in Linux.)

ipseC is VPN/encryption. Not easy to implement and only necessary if you
want to be able to access your home network from a variety of other
devices.
That is NOT necessary for what you are asking for.

--
Joost




Re: [gentoo-user] to install portage on other gentoo installs

2014-02-14 Thread J. Roeleveld
On Fri, February 14, 2014 08:05, Edward M wrote:
 On Fri, 14 Feb 2014 00:13:19 +0530
 Nilesh Govindrajan m...@nileshgr.com wrote:

 My favorite firewall rule to do this don't restrict any kind of
 traffic between own network and filter the rest.
 Use ipset. Very easy.

   I have zero  knowledge how ipsec works. once i have nfs set i'll do
   ipsec second. nfs will be in my private network for my gentoo
   systems(laptops,server,client) boxes.  thanks for the tip.

Important:
Nilesh was talking about ipseT (it's part of iptables, which provides
firewall functionality in Linux.)

ipseC is VPN/encryption. Not easy to implement and only necessary if you
want to be able to access your home network from a variety of other
devices.
That is NOT necessary for what you are asking for.

--
Joost




[gentoo-user] Re: to install portage on other gentoo installs

2014-02-14 Thread eroen
On Wed, 12 Feb 2014 16:40:22 -0800, Edward M
edwardm.gentoo.j...@live.com wrote:
 Howdy,
 
 Been busy learning Linux :-) got new email other was getting crowded. 
 I'm planing on installing Gentoo on a few systems and I was wondering
 to save bandwidth, i could install portage to the other Gentoo
 installs from my system instead downloading from mirrors? 
 
 Thanks in advance!

Setting up a local rsync mirror for a portage tree is fairly simple,
you share the working tree at /usr/portage on a local server to
the network and make sure the server is up-to-date before syncing other
clients to it. This is documented in [1]. After setting up the mirror,
you only need to sync-uri in /etc/portage/repos.conf on the other
(local) clients. See portage(5)[2], section 'repos.conf' and
make.conf(5)[3], section 'SYNC' for details on client configuration.
Please *do* read those sections, as much of the information on the wiki
regarding the SYNC variable is outdated.

For sharing distfiles between hosts, a http server sharing the
distfiles folder and prepending the server's uri to GENTOO_MIRRORS in
make.conf[3] might be sufficient for your needs. If the installs are
not homogenous, you can even set up http servers on all of them, and
add all the other local hosts to GENTOO_MIRRORS.

You might want to skim through the FEATURES section in make.conf(5)[3]
for using local distfiles mirrors, as some of them can improve the
usefulness of the mirror significantly.

NFS is another possibility for both portage tree and distfiles and can
reduce total disk space needs, but it incurs significant network
latency which is especially noticeable for portage trees. I use it
myself for virtual machines, but would not suggest it for use over a
physical network. Also note that portage has PORTAGE_RO_DISTDIRS[3] as
an alternative to GENTOO_MIRRORS for eg. read-only *mounted* network
shares which may provide some extra flexibility.

1: 
https://wiki.gentoo.org/wiki/Project:Infrastructure/Rsync#Setting_up_your_own_local_rsync_mirror
2: https://dev.gentoo.org/~zmedico/portage/doc/man/portage.5.html
3: https://dev.gentoo.org/~zmedico/portage/doc/man/make.conf.5.html

-- 
eroen


signature.asc
Description: PGP signature


[gentoo-user] How to run 2.6.25 kernel (no DEVTMPFS)?

2014-02-14 Thread Grant Edwards
I need to do some testing with kernels as far back as 2.6.25.  I've
currently got a Gentoo box that can build and run kernels ranging from
3.14.rc2 to 2.6.32. There are various gcc and make issues which have
been successfully dealt with, but now I'm stuck on DEVTMPFS.

Prior to 2.6.32 DEVTMPFS isn't available, so even though I can build
and boot a 2.6.25 kernel, udev craps out.

There are plenty of spare paritions to play with, so doing a Linux
install to test with kernels older than 2.6.32 is no problem.

I'm wondering if instead of downloading an old Ubuntu or Fedora DVD,
is there any way to install an old version of Gentoo that will work
with pre-DEVTMPFS kernels?

-- 
Grant Edwards   grant.b.edwardsYow! Are we THERE yet?
  at   My MIND is a SUBMARINE!!
  gmail.com




Re: [gentoo-user] How to run 2.6.25 kernel (no DEVTMPFS)?

2014-02-14 Thread Mike Gilbert
On Fri, Feb 14, 2014 at 4:12 PM, Grant Edwards
grant.b.edwa...@gmail.com wrote:
 I need to do some testing with kernels as far back as 2.6.25.  I've
 currently got a Gentoo box that can build and run kernels ranging from
 3.14.rc2 to 2.6.32. There are various gcc and make issues which have
 been successfully dealt with, but now I'm stuck on DEVTMPFS.

 Prior to 2.6.32 DEVTMPFS isn't available, so even though I can build
 and boot a 2.6.25 kernel, udev craps out.

 There are plenty of spare paritions to play with, so doing a Linux
 install to test with kernels older than 2.6.32 is no problem.

 I'm wondering if instead of downloading an old Ubuntu or Fedora DVD,
 is there any way to install an old version of Gentoo that will work
 with pre-DEVTMPFS kernels?


Do you actually need udev? If you can get away with just having a
static /dev with pre-created device nodes, that would be the simplest
solution.



[gentoo-user] Re: How to run 2.6.25 kernel (no DEVTMPFS)?

2014-02-14 Thread Grant Edwards
On 2014-02-14, Mike Gilbert flop...@gentoo.org wrote:
 On Fri, Feb 14, 2014 at 4:12 PM, Grant Edwards
grant.b.edwa...@gmail.com wrote:
 I need to do some testing with kernels as far back as 2.6.25.  I've
 currently got a Gentoo box that can build and run kernels ranging from
 3.14.rc2 to 2.6.32. There are various gcc and make issues which have
 been successfully dealt with, but now I'm stuck on DEVTMPFS.

 Prior to 2.6.32 DEVTMPFS isn't available, so even though I can build
 and boot a 2.6.25 kernel, udev craps out.

 There are plenty of spare paritions to play with, so doing a Linux
 install to test with kernels older than 2.6.32 is no problem.

 I'm wondering if instead of downloading an old Ubuntu or Fedora DVD,
 is there any way to install an old version of Gentoo that will work
 with pre-DEVTMPFS kernels?

 Do you actually need udev?

Good question -- I probably don't.  For the testing in question I 
should be able to live with a static /dev directory.  Is there any
documentation on doing a Gentoo install without udev?

 If you can get away with just having a static /dev with pre-created
 device nodes, that would be the simplest solution.

It would probably be asking for too much to try to toggle between udev
and static /dev at boot time in a single installation...

-- 
Grant Edwards   grant.b.edwardsYow! Yes, but will I
  at   see the EASTER BUNNY in
  gmail.comskintight leather at an
   IRON MAIDEN concert?




Re: [gentoo-user] Re: How to run 2.6.25 kernel (no DEVTMPFS)?

2014-02-14 Thread J. Roeleveld
On 14 February 2014 22:31:54 CET, Grant Edwards grant.b.edwa...@gmail.com 
wrote:
On 2014-02-14, Mike Gilbert flop...@gentoo.org wrote:
 On Fri, Feb 14, 2014 at 4:12 PM, Grant Edwards
grant.b.edwa...@gmail.com wrote:
 I need to do some testing with kernels as far back as 2.6.25.  I've
 currently got a Gentoo box that can build and run kernels ranging
from
 3.14.rc2 to 2.6.32. There are various gcc and make issues which have
 been successfully dealt with, but now I'm stuck on DEVTMPFS.

 Prior to 2.6.32 DEVTMPFS isn't available, so even though I can build
 and boot a 2.6.25 kernel, udev craps out.

 There are plenty of spare paritions to play with, so doing a Linux
 install to test with kernels older than 2.6.32 is no problem.

 I'm wondering if instead of downloading an old Ubuntu or Fedora DVD,
 is there any way to install an old version of Gentoo that will
work
 with pre-DEVTMPFS kernels?

 Do you actually need udev?

Good question -- I probably don't.  For the testing in question I 
should be able to live with a static /dev directory.  Is there any
documentation on doing a Gentoo install without udev?

 If you can get away with just having a static /dev with pre-created
 device nodes, that would be the simplest solution.

It would probably be asking for too much to try to toggle between udev
and static /dev at boot time in a single installation...

Not aware of documentation.
Mkdev would be a good start for google.

To toggle at boottime, use different runlevels.

1 that mounts tmpfs over /dev and starts udev.
Another that doesn't.

And /dev contains static device nodes.

--
Joost
-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.



Re: [gentoo-user] Re: How to run 2.6.25 kernel (no DEVTMPFS)?

2014-02-14 Thread Kerin Millar

On 14/02/2014 21:31, Grant Edwards wrote:

On 2014-02-14, Mike Gilbert flop...@gentoo.org wrote:

On Fri, Feb 14, 2014 at 4:12 PM, Grant Edwards
grant.b.edwa...@gmail.com wrote:

I need to do some testing with kernels as far back as 2.6.25.  I've
currently got a Gentoo box that can build and run kernels ranging from
3.14.rc2 to 2.6.32. There are various gcc and make issues which have
been successfully dealt with, but now I'm stuck on DEVTMPFS.

Prior to 2.6.32 DEVTMPFS isn't available, so even though I can build
and boot a 2.6.25 kernel, udev craps out.

There are plenty of spare paritions to play with, so doing a Linux
install to test with kernels older than 2.6.32 is no problem.

I'm wondering if instead of downloading an old Ubuntu or Fedora DVD,
is there any way to install an old version of Gentoo that will work
with pre-DEVTMPFS kernels?


Do you actually need udev?


Good question -- I probably don't.  For the testing in question I
should be able to live with a static /dev directory.  Is there any
documentation on doing a Gentoo install without udev?


If you can get away with just having a static /dev with pre-created
device nodes, that would be the simplest solution.


It would probably be asking for too much to try to toggle between udev
and static /dev at boot time in a single installation...



I remember that it was possible to toggle before openrc was introduced.

As things stand now, you would probably have to replace sys-fs/udev with 
sys-fs/static-dev (which satisfies virtual/dev-manager). NeddySeagoon 
mentions it here:


http://dev.gentoo.org/~neddyseagoon/Old_Fashioned_Gentoo_2.xml

He also describes its coverage as being incomplete. In that case, this 
may help to populate /dev to a reasonable extent:


https://bugs.gentoo.org/show_bug.cgi?id=368597#c97

--Kerin



Re: [gentoo-user] Re: to install portage on other gentoo installs

2014-02-14 Thread Edward M
On Fri, 14 Feb 2014 19:03:10 +0100
eroen er...@falcon.eroen.eu wrote:

 On Wed, 12 Feb 2014 16:40:22 -0800, Edward M
 edwardm.gentoo.j...@live.com wrote:
  Howdy,
  
  Been busy learning Linux :-) got new email other was getting
  crowded. I'm planing on installing Gentoo on a few systems and I
  was wondering to save bandwidth, i could install portage to the
  other Gentoo installs from my system instead downloading from
  mirrors? 
  
  Thanks in advance!
 
 Setting up a local rsync mirror for a portage tree is fairly simple,
 you share the working tree at /usr/portage on a local server to
 the network and make sure the server is up-to-date before syncing
 other clients to it. This is documented in [1]. After setting up the
 mirror, you only need to sync-uri in /etc/portage/repos.conf on the
 other (local) clients. See portage(5)[2], section 'repos.conf' and
 make.conf(5)[3], section 'SYNC' for details on client configuration.
 Please *do* read those sections, as much of the information on the
 wiki regarding the SYNC variable is outdated.
 
 For sharing distfiles between hosts, a http server sharing the
 distfiles folder and prepending the server's uri to GENTOO_MIRRORS in
 make.conf[3] might be sufficient for your needs. If the installs are
 not homogenous, you can even set up http servers on all of them, and
 add all the other local hosts to GENTOO_MIRRORS.
 
 You might want to skim through the FEATURES section in make.conf(5)[3]
 for using local distfiles mirrors, as some of them can improve the
 usefulness of the mirror significantly.
 
 NFS is another possibility for both portage tree and distfiles and can
 reduce total disk space needs, but it incurs significant network
 latency which is especially noticeable for portage trees. I use it
 myself for virtual machines, but would not suggest it for use over a
 physical network. Also note that portage has PORTAGE_RO_DISTDIRS[3] as
 an alternative to GENTOO_MIRRORS for eg. read-only *mounted* network
 shares which may provide some extra flexibility.
 
 1:
 https://wiki.gentoo.org/wiki/Project:Infrastructure/Rsync#Setting_up_your_own_local_rsync_mirror
 2: https://dev.gentoo.org/~zmedico/portage/doc/man/portage.5.html 3:
 https://dev.gentoo.org/~zmedico/portage/doc/man/make.conf.5.html
 

 Thank you for suppling  great lesson and links. I will go over the
 sections you mentioned and take notes. I will be having fun this
 weekend...configuring Gentoo, with all the great knowledge i was
 given from kind Gentoo users. Thanks again. 

 Best regards,
 Ed
-- 

Learing Linux with Gentoo to earn LPIC1.




Re: [gentoo-user] to install portage on other gentoo installs

2014-02-14 Thread Edward M
On Fri, 14 Feb 2014 11:20:26 +0100
J. Roeleveld jo...@antarean.org wrote:

 On Fri, February 14, 2014 08:05, Edward M wrote:
  On Fri, 14 Feb 2014 00:13:19 +0530
  Nilesh Govindrajan m...@nileshgr.com wrote:
 
  My favorite firewall rule to do this don't restrict any kind of
  traffic between own network and filter the rest.
  Use ipset. Very easy.
 
I have zero  knowledge how ipsec works. once i have nfs set i'll
  do ipsec second. nfs will be in my private network for my gentoo
systems(laptops,server,client) boxes.  thanks for the tip.
 
 Important:
 Nilesh was talking about ipseT (it's part of iptables, which provides
 firewall functionality in Linux.)
 
 ipseC is VPN/encryption. Not easy to implement and only necessary if
 you want to be able to access your home network from a variety of
 other devices.
 That is NOT necessary for what you are asking for.
 
 --
 Joost
 
 

   Thank you for explaining what ipsec is used for, some reason i
automatically read as ipsec when Nilesh mentioned it. Nilesh brought it
up to my attention earliar; it was ipset not ipsec. thanks again for
the explanation.

   Best regards
   Ed 
-- 

Learing Linux with Gentoo to earn LPIC1.




Re: [gentoo-user] Is there a way to keyword a whole overlay as ~arch ?

2014-02-14 Thread Michael Higgins
On Sun, 26 Jan 2014 20:14:17 -0500
Michael Orlitzky m...@gentoo.org wrote:

 On 01/26/2014 05:12 PM, Thanasis wrote:
  I am following stable (ACCEPT_KEYWORDS=amd64).
  In order to install the mate desktop I need to install the mate
  overlay and keyword all its packages as ~amd64.
  Is there a way to do it easily for the whole overlay?
  
 
 Yep, you just need to know the overlay name. In
 package.accept_keywords:
 
   */*::overlay-name ~amd64
 
 The */* syntax means any category, any package name. The :: then
 specifies the repository name. If you don't know the repository name,
 it can often be found in path/to/overlay/profiles/repo_name.
 
 

I wonder, can we get a hint of this function echo-ed at the end of every
new layman install? It would make using, say, perl-experimental, far
less unwieldy than without. 

(Apologies in advance for the noise.)

I had no idea this was possible, but it seems the only way to use the
overlay without making of mess of package.accept_keywords, which is
what I have had when installing anything useful in the perl development
area.

Does this make any sense? Do all the overlays work that way, that is,
kw-masking everything so you have to enable the ~arch per package? This
always seemed absurd to me, as I added the overlay, I must have meant
to use it... but anyway...

I suppose it should be printed in red use if you know what it
means, kind of thing. I can see it being a PITA if it breaks stuff in
the main gentoo tree.


. . .

FWIW, I tried adding that incantation and emerging world, which gave no
changes to my install.

Then I tried:
emerge -av dev-perl/Catalyst-Model-DBIC-Schema

(Which created a bloated keyword file on my other machine.)

This time, it only wants to unmask things perl in the gentoo tree...
but --autounmask-write proposes to list every overlay dep as a comment.

Ugh.

Before, I'd do something like:

mv /etc/portage/package.accept_keywords ~/
mkdir /etc/portage/package.accept_keywords
cp 
package.accept_keywords /etc/portage/package.accept_keywords/99_portage
eix -c --only-in-overlay 0 -C dev-perl|grep '(~' |cut -d ' '
-f 2  | while read a ; do echo $a ~x86 ;done
  /etc/portage/package.accept_keywords/00_perl

emerge -auDNtv world

Nothing to merge; quitting.

... Which I did. Then /me thinks, for a change.

If */*::overlay-name ~amd64, then:

dev-perl/*::gentoo ~amd64 should work too.

Now, 

emerge -av dev-perl/Catalyst-Model-DBIC-Schema

Gives:

Total: 37 packages (34 upgrades, 3 new), Size of downloads: 5,905 kB

Would you like to merge these packages? [Yes/No] 

And no guff from portage. OMG, what a treat. I wept.

. . .

So wow, if I'd known about that before now, it would have saved me
hours, if not days, worth of hassle.

I think that should be the recommendation for anyone who installs the
perl overlay. Maybe I'm crazy, but it seems to DWIW.

Thanks Michael. Very helpful to know, at least. Does anyone who may
have read this far think this would be a good thing to mention from the
start for a new user of an overlay, like echoed at the end of emerging
layman, or adding a new overlay?

And, yes, it's a full moon, so I'm posting to the list. As is my
habit. ;-)

Cheers [I recommend Flat Tail seriously budget barley wine],

- mykhyggz (who lost his .sig)