Re: [gentoo-user] Re: The NVIDIA/Kernel fiasco -- is it safe to sync yet?

2013-08-27 Thread Alan McKinnon
On 27/08/2013 04:06, »Q« wrote:
 On Mon, 26 Aug 2013 08:02:32 +0200
 Alan McKinnon alan.mckin...@gmail.com wrote:
 
 On 26/08/2013 03:52, »Q« wrote:
 I doubt your wiki page idea will work, it will be just accurate
 enough
 to look like it might work and just inaccurate enough to be
 useless. Which brings you back to the previous paragraph - try
 emerge nvidia-drivers and if it fails then don't use that kernel.
 I was unclear to the point of being misleading.  I'm sorry.

 The wiki idea is only for a page which tells which
 kernel/nvidia-drivers combinations the Gentoo nvidia-drivers
 maintainers support.  And by support, I mean they'll look into
 bugs and fix build problems if they're able to.  This is exactly
 the info I'm grepping out of ewarn messages in their ebuilds now.


 That list is the list of kernels that nVidia supports, which is easy
 to find.
 
 Where?  AIUI from reading various threads about this, sometimes that
 info can be found in nVidia's developer web forum, but I've never been
 able to find it there.  nVidia's READMEs give a minimum kernel version,
 but no max.


So ask nVidia to clearly and unambiguously state in an easily found
place what kernels *they* support.

Look, all issues with building the driver shim are directly the
responsibility of nVidia themselves, a result of *their* business
decisions. The correct thing to do is to make it nVidia's problem and
not force the community to jump through hoops trying to track down what
does and does not work today.

Or, you could do the heavy lifting yourself. You test all current
drivers with all recent kernels and maintain a gentoo wiki page that
lists the info you want.


-- 
Alan McKinnon
alan.mckin...@gmail.com




Re: [gentoo-user] looking for a couple of systemd units

2013-08-27 Thread covici
Canek Peláez Valdés can...@gmail.com wrote:

 On Mon, Aug 26, 2013 at 11:06 PM, Canek Peláez Valdés can...@gmail.com 
 wrote:
  On Mon, Aug 26, 2013 at 10:52 PM,  cov...@ccs.covici.com wrote:
  Hi.  I am looking for a couple of systemd units which I have not been
  able to find -- one for mailman and one for innd which is a shell script
  by itself.
 
  Thanks in advance for any suggestions.
 
  I use this one in production for mailman with Gentoo:
 
  
  [Unit]
  Description=Mailman mailing list service
  After=network.target
 
  [Service]
  Type=forking
  ExecStart=/usr/lib/mailman/bin/mailmanctl -s start
  ExecStop=/usr/lib/mailman/bin/mailmanctl stop
  User=mailman
  Group=mailman
 
  [Install]
  WantedBy=multi-user.target
  
 
  I don't have any for innd.
 
 If innd is the one from net-nntp/inn, then the following should work:
 
 
 [Unit]
 Description=The Internet News daemon
 Documentation=man:innd(8)
 ConditionPathExists=/var/run/news
 
 [Service]
 Type=simple
 ExecStart=/usr/lib/news/bin/rc.news
 ExecStop=/usr/lib/news/bin/rc.news stop
 User=news
 Group=news
 
 [Install]
 WantedBy=multi-user.target
 
 
 If the binary rc.news forks itself (and there is no option to force it
 to run in the foreground), use Type=forking. The former is preferred
 over the latter. Also, to guarantee that the directory /var/run/news
 always is present, add the following to a new file
 /etc/tmpfiles.d/innd.conf:
 
 
 d/var/run/news   0755 news news 10d -
 
 
 You can replace 10d with - (hypen), so the directory is never cleaned
 automatically. If you try this unit and it works as expected, please
 let us know.
 

OK, thanks again.  I have one question which this brings up -- and this
applies to openrc as well -- I never have let it migrate /var/run to
/run  and /var/lock likewise because I have directories in those which
are owned by various users, etc. and the packages themselves almost
never create such -- is putting things in  /etc/tmpfiles.d the correct
way to fix this?


-- 
Your life is like a penny.  You're going to lose it.  The question is:
How do
you spend it?

 John Covici
 cov...@ccs.covici.com



Re: [gentoo-user] Optional /usr merge in Gentoo

2013-08-27 Thread Alan McKinnon
On 27/08/2013 04:04, Thomas Mueller wrote:
 On the issue of whether ZFS can be shipped with the Linux kernel, FreeBSD 
 includes ZFS 
 with the kernel, binary and source.
 
 So does that mean it would be OK for Linux too?

No.

 FreeBSD has a different license (BSD) than Linux (GPL 2 or 3).

Please read file COPYING in the kernel sources, the Linux kernel ships
with license GPL-2

Not a later version at your choice (2.x) and certainly never GPL-3

The issue is that the Linux kernel devs consider the license terms for
ZFS to be incompatible with GPL-2.0 and therefore ZFS cannot be
redistributed as a Linux kernel module.

There's nothing in the GPL-2 to stop you as a user from building and
running ZFS on Linux, as GPL does not interfere with your right to run
whatever you wish. The GPL only kicks in when code is redistributed.

The BSD license has none of these conditions, in layman terms that
license essentially says you can take this code and pretty much do with
it whatever you want, we don't care

 I am not a lawyer!
 
 Tom
 
 





-- 
Alan McKinnon
alan.mckin...@gmail.com




Re: [gentoo-user] Optional /usr merge in Gentoo

2013-08-27 Thread Alan McKinnon
On 26/08/2013 23:37, Joerg Schilling wrote:
 Neil Bothwick n...@digimed.co.uk wrote:
 
 On Mon, 26 Aug 2013 19:30:05 +0200, Joerg Schilling wrote:

 The licensing conflict means that would not be possible. You have the
 install the kernel source and then merge in the ZFS source yourself,
 it can't be done for you and distributed.  

 Why do you believe this?

 ZFS id doubtlessly an own work independent from the rest of the Linux
 kernel and for this reason, adding ZFS just creates a collective work
 that is not affected by the GPL.

 But the CCDL licence of ZFS precludes its being distributed with the
 kernel. At least, that's how I understand it and the fact that no distro
 distributes a ZFS-enabled kernel makes me believe it is true.
 
 Did you ever read the CDDL?
 
 People who believe that there is a problem use a wrong interpretation of the 
 GPL. The CDDL definitely does not prevent combinations with other software.

The problem is not with CDDL, the problem is with the GPL.

ZFS in the kernel requires that ZFS as shipped be relicensed as GPL, it
forms a derivative work of the kernel. No external license can change
the terms of the GPL.

Admittedly this gets murky due to XFS.

But the clincher would appear to be that Oracle own ZFS and also
distribute a branded RedHat derivative distro. To the best of my
knowledge Oracle themselves do not ship a ZFS-enabled kernel. Surely, as
the owners of the code and with a large dev team, Oracle themselves
could solve this issue by doing just that? But they haven't done so.

Especially as ZFS is production-ready today whereas the competing btrfs
is not.

-- 
Alan McKinnon
alan.mckin...@gmail.com




Re: [gentoo-user] looking for a couple of systemd units

2013-08-27 Thread Canek Peláez Valdés
On Tue, Aug 27, 2013 at 1:10 AM,  cov...@ccs.covici.com wrote:
 Canek Peláez Valdés can...@gmail.com wrote:

 On Mon, Aug 26, 2013 at 11:06 PM, Canek Peláez Valdés can...@gmail.com 
 wrote:
  On Mon, Aug 26, 2013 at 10:52 PM,  cov...@ccs.covici.com wrote:
  Hi.  I am looking for a couple of systemd units which I have not been
  able to find -- one for mailman and one for innd which is a shell script
  by itself.
 
  Thanks in advance for any suggestions.
 
  I use this one in production for mailman with Gentoo:
 
  
  [Unit]
  Description=Mailman mailing list service
  After=network.target
 
  [Service]
  Type=forking
  ExecStart=/usr/lib/mailman/bin/mailmanctl -s start
  ExecStop=/usr/lib/mailman/bin/mailmanctl stop
  User=mailman
  Group=mailman
 
  [Install]
  WantedBy=multi-user.target
  
 
  I don't have any for innd.

 If innd is the one from net-nntp/inn, then the following should work:

 
 [Unit]
 Description=The Internet News daemon
 Documentation=man:innd(8)
 ConditionPathExists=/var/run/news

 [Service]
 Type=simple
 ExecStart=/usr/lib/news/bin/rc.news
 ExecStop=/usr/lib/news/bin/rc.news stop
 User=news
 Group=news

 [Install]
 WantedBy=multi-user.target
 

 If the binary rc.news forks itself (and there is no option to force it
 to run in the foreground), use Type=forking. The former is preferred
 over the latter. Also, to guarantee that the directory /var/run/news
 always is present, add the following to a new file
 /etc/tmpfiles.d/innd.conf:

 
 d/var/run/news   0755 news news 10d -
 

 You can replace 10d with - (hypen), so the directory is never cleaned
 automatically. If you try this unit and it works as expected, please
 let us know.


 OK, thanks again.  I have one question which this brings up -- and this
 applies to openrc as well -- I never have let it migrate /var/run to
 /run  and /var/lock likewise because I have directories in those which
 are owned by various users, etc. and the packages themselves almost
 never create such -- is putting things in  /etc/tmpfiles.d the correct
 way to fix this?

tmpfiles.d is from systemd:

http://www.freedesktop.org/software/systemd/man/tmpfiles.d.html

However, I think OpenRC developers were thinking about supporting it.
I don't know if that actually happened.

With systemd in Gentoo, /var/run is bind mounted from /run, and it's a
tmpfs dir, so everything there goes away after a reboot. The config
files in tmpfiles.d allows the creation (and automatic removal) of
directories and files there.

I don't know if it's the correct way to fix anything; but it works.

Regards.
-- 
Canek Peláez Valdés
Posgrado en Ciencia e Ingeniería de la Computación
Universidad Nacional Autónoma de México



Re: [gentoo-user] grub2 or kernel config - unable to properly boot

2013-08-27 Thread Michael Hampicke
Am 26.08.2013 20:11, schrieb Francisco Ares:
 Hi, Michael, thanks for you reply.
 
 Please forgive me for not having mentioned grub2-mkconfig and
 grub2-install. The mentioned grub.cfg was a sample from a working system,
 with legacy grub:0, from which I have recovered parts of the kernel command
 line parameters.
 
 After genkernel finished to build the kernel, I've issued:
 
 grub2-mkconfig -o /boot/grub2/grub.cfg
 grub2-install /dev/sda
 
 Sorry for this.
 Francisco
On a failed boot, can you reach the rescue system from the initramfs?
(The message is something like enter password for rescue or ctrl+d) If
so, are you able mount your actual root partiton (sda5) manually?



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] looking for a couple of systemd units

2013-08-27 Thread covici
Canek Peláez Valdés can...@gmail.com wrote:

 On Tue, Aug 27, 2013 at 1:10 AM,  cov...@ccs.covici.com wrote:
  Canek Peláez Valdés can...@gmail.com wrote:
 
  On Mon, Aug 26, 2013 at 11:06 PM, Canek Peláez Valdés can...@gmail.com 
  wrote:
   On Mon, Aug 26, 2013 at 10:52 PM,  cov...@ccs.covici.com wrote:
   Hi.  I am looking for a couple of systemd units which I have not been
   able to find -- one for mailman and one for innd which is a shell script
   by itself.
  
   Thanks in advance for any suggestions.
  
   I use this one in production for mailman with Gentoo:
  
   
   [Unit]
   Description=Mailman mailing list service
   After=network.target
  
   [Service]
   Type=forking
   ExecStart=/usr/lib/mailman/bin/mailmanctl -s start
   ExecStop=/usr/lib/mailman/bin/mailmanctl stop
   User=mailman
   Group=mailman
  
   [Install]
   WantedBy=multi-user.target
   
  
   I don't have any for innd.
 
  If innd is the one from net-nntp/inn, then the following should work:
 
  
  [Unit]
  Description=The Internet News daemon
  Documentation=man:innd(8)
  ConditionPathExists=/var/run/news
 
  [Service]
  Type=simple
  ExecStart=/usr/lib/news/bin/rc.news
  ExecStop=/usr/lib/news/bin/rc.news stop
  User=news
  Group=news
 
  [Install]
  WantedBy=multi-user.target
  
 
  If the binary rc.news forks itself (and there is no option to force it
  to run in the foreground), use Type=forking. The former is preferred
  over the latter. Also, to guarantee that the directory /var/run/news
  always is present, add the following to a new file
  /etc/tmpfiles.d/innd.conf:
 
  
  d/var/run/news   0755 news news 10d -
  
 
  You can replace 10d with - (hypen), so the directory is never cleaned
  automatically. If you try this unit and it works as expected, please
  let us know.
 
 
  OK, thanks again.  I have one question which this brings up -- and this
  applies to openrc as well -- I never have let it migrate /var/run to
  /run  and /var/lock likewise because I have directories in those which
  are owned by various users, etc. and the packages themselves almost
  never create such -- is putting things in  /etc/tmpfiles.d the correct
  way to fix this?
 
 tmpfiles.d is from systemd:
 
 http://www.freedesktop.org/software/systemd/man/tmpfiles.d.html
 
 However, I think OpenRC developers were thinking about supporting it.
 I don't know if that actually happened.
 
 With systemd in Gentoo, /var/run is bind mounted from /run, and it's a
 tmpfs dir, so everything there goes away after a reboot. The config
 files in tmpfiles.d allows the creation (and automatic removal) of
 directories and files there.
 
 I don't know if it's the correct way to fix anything; but it works.

It looks like openrc is supporting some version of this, but not very
well documented at all except they refer you to some man page as of a
certain date.


-- 
Your life is like a penny.  You're going to lose it.  The question is:
How do
you spend it?

 John Covici
 cov...@ccs.covici.com



Re: [gentoo-user] Re: The NVIDIA/Kernel fiasco -- is it safe to sync yet?

2013-08-27 Thread Pandu Poluan
On Tue, Aug 27, 2013 at 12:57 PM, Alan McKinnon alan.mckin...@gmail.com wrote:

 On 27/08/2013 04:06, »Q« wrote:
  On Mon, 26 Aug 2013 08:02:32 +0200
  Alan McKinnon alan.mckin...@gmail.com wrote:
 
  On 26/08/2013 03:52, »Q« wrote:
  I doubt your wiki page idea will work, it will be just accurate
  enough
  to look like it might work and just inaccurate enough to be
  useless. Which brings you back to the previous paragraph - try
  emerge nvidia-drivers and if it fails then don't use that kernel.
  I was unclear to the point of being misleading.  I'm sorry.
 
  The wiki idea is only for a page which tells which
  kernel/nvidia-drivers combinations the Gentoo nvidia-drivers
  maintainers support.  And by support, I mean they'll look into
  bugs and fix build problems if they're able to.  This is exactly
  the info I'm grepping out of ewarn messages in their ebuilds now.
 
 
  That list is the list of kernels that nVidia supports, which is easy
  to find.
 
  Where?  AIUI from reading various threads about this, sometimes that
  info can be found in nVidia's developer web forum, but I've never been
  able to find it there.  nVidia's READMEs give a minimum kernel version,
  but no max.


 So ask nVidia to clearly and unambiguously state in an easily found
 place what kernels *they* support.

 Look, all issues with building the driver shim are directly the
 responsibility of nVidia themselves, a result of *their* business
 decisions. The correct thing to do is to make it nVidia's problem and
 not force the community to jump through hoops trying to track down what
 does and does not work today.

 Or, you could do the heavy lifting yourself. You test all current
 drivers with all recent kernels and maintain a gentoo wiki page that
 lists the info you want.


Hmm... reading this thread makes me understand why Linus gave nVidia 'the bird'.


Rgds,
-- 
FdS Pandu E Poluan
~ IT Optimizer ~



Re: [gentoo-user] Re: The NVIDIA/Kernel fiasco -- is it safe to sync yet?

2013-08-27 Thread Alan McKinnon
On 27/08/2013 09:14, Pandu Poluan wrote:
 That list is the list of kernels that nVidia supports, which is easy
   to find.
  
   Where?  AIUI from reading various threads about this, sometimes that
   info can be found in nVidia's developer web forum, but I've never been
   able to find it there.  nVidia's READMEs give a minimum kernel version,
   but no max.
 
 
  So ask nVidia to clearly and unambiguously state in an easily found
  place what kernels *they* support.
 
  Look, all issues with building the driver shim are directly the
  responsibility of nVidia themselves, a result of *their* business
  decisions. The correct thing to do is to make it nVidia's problem and
  not force the community to jump through hoops trying to track down what
  does and does not work today.
 
  Or, you could do the heavy lifting yourself. You test all current
  drivers with all recent kernels and maintain a gentoo wiki page that
  lists the info you want.
 
 Hmm... reading this thread makes me understand why Linus gave nVidia 'the 
 bird'.



I'm not so sure. I can understand nVidia's position. They make and sell
hardware. They want their stuff to run on as many things as possible.

They also have a huge codebase driven mostly by the primary OS of their
users - Windows. Maintaining that is a large job so they'd like to
re-use the bulk of it across all OSes. Business-wise this does make
sense. But it does mean that they have to drop support for much built-in
goodness on Linux (KMS, shipped OpenGL and more) and provide that bit
themselves. No biggy - they have it all already for Windows.

The kernel shim module is GPL'ed, but not in mainline, and there's this
little thing about the Linux kernel - the famous stable api nonsense. So
they are forever playing catch-up, and the kernel DOES rip out huge
chunks of the api as and when needed.

So what's nVidia to do? By and large their support for X11 is pretty
good, and I've seen much worse. Yes, they are behind current kernel
releases. No, they are not years behind. For the most part their code
keeps up with the major binary distros.

To those users who want to run whatever kernel Linux shipped today and
expect nVidia to always keep up, I have an answer: get real people.

nvidia support Linux, they never promised to keep up with Linus. Why do
users think they have a right to demand something from a vendor that the
vendor never promised to do?

Why do some users think it correct and proper to demand the Gentoo
maintainers jump through hoops to provide functionality that nVidia
never promised, for versions they do not support *yet*?

Seriously, to all the nVidia dumpers (not you Pandu), get a life people
and get real. You bought hardware knowing full well what the conditions
for drivers were going to be. The vendor does an OK job in the market
place and if you don't like that, well that's tough. Buy different
hardware. But don't expect entities to do stuff they never agreed to do.

To Gentoo users who dump on this matter, when you installed Gentoo you
implicitly agreed to be your own packager. There is no PPA or Yum repo
and there's no paid staff member building packages. The work the
packager does for Ubuntu and RedHat is now you now have to do yourself,
and part of that is dealing with the times when shit don't work.



-- 
Alan McKinnon
alan.mckin...@gmail.com




Re: [gentoo-user] Optional /usr merge in Gentoo

2013-08-27 Thread Joerg Schilling
Thomas Mueller mueller6...@bellsouth.net wrote:

 On the issue of whether ZFS can be shipped with the Linux kernel, FreeBSD 
 includes ZFS with the kernel, binary and source.

 So does that mean it would be OK for Linux too?

 FreeBSD has a different license (BSD) than Linux (GPL 2 or 3).

For FreeBSD, things are less easy than for Linux.

FreeBSD comes with a license that gives real freedom and the CDDL
being copyleft, is a license that intentionally limits the freedom a bit
in order to achieve other benefits.

The GPL limits freedom in a way far beyond what the CDDl does.
Adding code (ZFS) that gives more freedom than the base project (Linux) 
is easy...

It however was a real challenge for me to convince the FreeBSD people in early 
2006 to add something to their code that reduces the freedom of the FreeBSD
project. I succeeded because I could explain them that ZFS is not code that is 
_needed_ in order to run FreeBSD - you just could use their UFS variant instead.
The same arguments worked for integrating DTrace into FreeBSD.


Jörg

-- 
 EMail:jo...@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin
   j...@cs.tu-berlin.de(uni)  
   joerg.schill...@fokus.fraunhofer.de (work) Blog: 
http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily



Re: [gentoo-user] looking for a couple of systemd units

2013-08-27 Thread covici
Canek Peláez Valdés can...@gmail.com wrote:

 On Tue, Aug 27, 2013 at 1:10 AM,  cov...@ccs.covici.com wrote:
  Canek Peláez Valdés can...@gmail.com wrote:
 
  On Mon, Aug 26, 2013 at 11:06 PM, Canek Peláez Valdés can...@gmail.com 
  wrote:
   On Mon, Aug 26, 2013 at 10:52 PM,  cov...@ccs.covici.com wrote:
   Hi.  I am looking for a couple of systemd units which I have not been
   able to find -- one for mailman and one for innd which is a shell script
   by itself.
  
   Thanks in advance for any suggestions.
  
   I use this one in production for mailman with Gentoo:
  
   
   [Unit]
   Description=Mailman mailing list service
   After=network.target
  
   [Service]
   Type=forking
   ExecStart=/usr/lib/mailman/bin/mailmanctl -s start
   ExecStop=/usr/lib/mailman/bin/mailmanctl stop
   User=mailman
   Group=mailman
  
   [Install]
   WantedBy=multi-user.target
   
  
   I don't have any for innd.
 
  If innd is the one from net-nntp/inn, then the following should work:
 
  
  [Unit]
  Description=The Internet News daemon
  Documentation=man:innd(8)
  ConditionPathExists=/var/run/news
 
  [Service]
  Type=simple
  ExecStart=/usr/lib/news/bin/rc.news
  ExecStop=/usr/lib/news/bin/rc.news stop
  User=news
  Group=news
 
  [Install]
  WantedBy=multi-user.target
  
 
  If the binary rc.news forks itself (and there is no option to force it
  to run in the foreground), use Type=forking. The former is preferred
  over the latter. Also, to guarantee that the directory /var/run/news
  always is present, add the following to a new file
  /etc/tmpfiles.d/innd.conf:
 
  
  d/var/run/news   0755 news news 10d -
  
 
  You can replace 10d with - (hypen), so the directory is never cleaned
  automatically. If you try this unit and it works as expected, please
  let us know.
 
 
  OK, thanks again.  I have one question which this brings up -- and this
  applies to openrc as well -- I never have let it migrate /var/run to
  /run  and /var/lock likewise because I have directories in those which
  are owned by various users, etc. and the packages themselves almost
  never create such -- is putting things in  /etc/tmpfiles.d the correct
  way to fix this?
 
 tmpfiles.d is from systemd:
 
 http://www.freedesktop.org/software/systemd/man/tmpfiles.d.html
 
 However, I think OpenRC developers were thinking about supporting it.
 I don't know if that actually happened.
 
 With systemd in Gentoo, /var/run is bind mounted from /run, and it's a
 tmpfs dir, so everything there goes away after a reboot. The config
 files in tmpfiles.d allows the creation (and automatic removal) of
 directories and files there.
 
 I don't know if it's the correct way to fix anything; but it works.
 
Can I use the d action to change the permissions of an existing
directory and if not, how can I do this?


-- 
Your life is like a penny.  You're going to lose it.  The question is:
How do
you spend it?

 John Covici
 cov...@ccs.covici.com



Re: [gentoo-user] Optional /usr merge in Gentoo

2013-08-27 Thread Joerg Schilling
Alan McKinnon alan.mckin...@gmail.com wrote:

 The issue is that the Linux kernel devs consider the license terms for
 ZFS to be incompatible with GPL-2.0 and therefore ZFS cannot be
 redistributed as a Linux kernel module.

Isn't it strange that those people seem to have less problems with closed 
source than with a license that gives more freedom than the GPL? But 
you are correct that the problem seem to be humans and not a license text.

 There's nothing in the GPL-2 to stop you as a user from building and
 running ZFS on Linux, as GPL does not interfere with your right to run
 whatever you wish. The GPL only kicks in when code is redistributed.

There is nothing non-void in the GPL that stops you from distributing binaries.

Jörg

-- 
 EMail:jo...@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin
   j...@cs.tu-berlin.de(uni)  
   joerg.schill...@fokus.fraunhofer.de (work) Blog: 
http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily



Re: [gentoo-user] Optional /usr merge in Gentoo

2013-08-27 Thread Joerg Schilling
Alan McKinnon alan.mckin...@gmail.com wrote:

  People who believe that there is a problem use a wrong interpretation of 
  the 
  GPL. The CDDL definitely does not prevent combinations with other software.

 The problem is not with CDDL, the problem is with the GPL.

 ZFS in the kernel requires that ZFS as shipped be relicensed as GPL, it
 forms a derivative work of the kernel. No external license can change
 the terms of the GPL.

The law can!

The GPL is in conflict with the law and therefore the parts you have in mind 
are just void.

BTW: I am still waiting for a legally acceptable explanation on why the GPL
should be compatible to the BSD license. Note that the BSD license is very 
liberal, but it definitely does not permit to relicense code that was published
under the BSD license withour written permission of the Copyright holder.

So is the problem just a social problem given the fact that Linux comes with 
BSD licensed parts?

Jörg

-- 
 EMail:jo...@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin
   j...@cs.tu-berlin.de(uni)  
   joerg.schill...@fokus.fraunhofer.de (work) Blog: 
http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily



[gentoo-user] PMTUD

2013-08-27 Thread Grant
How is PMTUD enabled/disabled on Gentoo?  I've recently been made
aware of the existence of MTU and I'm wondering if mine is set
properly for a cell phone tethered connection.

- Grant



Re: [gentoo-user] Optional /usr merge in Gentoo

2013-08-27 Thread Alan McKinnon
On 27/08/2013 09:59, Joerg Schilling wrote:
 Alan McKinnon alan.mckin...@gmail.com wrote:
 
 People who believe that there is a problem use a wrong interpretation of 
 the 
 GPL. The CDDL definitely does not prevent combinations with other software.

 The problem is not with CDDL, the problem is with the GPL.

 ZFS in the kernel requires that ZFS as shipped be relicensed as GPL, it
 forms a derivative work of the kernel. No external license can change
 the terms of the GPL.
 
 The law can!
 
 The GPL is in conflict with the law and therefore the parts you have in mind 
 are just void.

Which law is the GPL in conflict with, and in which jurisdiction, and
what is the extent of the conflict?

To the best of my knowledge, what you claim has not been tested in a
court of law with jurisdiction, and is not a matter of law. Until that
happens, it is an untested legal opinion and as we know, opinions can vary.

The kernel devs have their position, you have yours. In this case, the
opinion of the kernel devs is the one that carries as they control what
does and does not ship.


 
 BTW: I am still waiting for a legally acceptable explanation on why the GPL
 should be compatible to the BSD license. Note that the BSD license is very 
 liberal, but it definitely does not permit to relicense code that was 
 published
 under the BSD license withour written permission of the Copyright holder.

There is no requirement that the GPL should be compatible with the BSD
license. The GPL only requires that derivative works comply with the
terms of the GPL.

If BSD code is shipped with GPL code and the BSD code is the derivative
work, the BSD license does not demand that the code be published.
However, the GPL does so the entire codebase is published under the
terms of the GPL. Thus the conditions of both licenses are satisfied,
and no relicensing is involved.

 
 So is the problem just a social problem given the fact that Linux comes with 
 BSD licensed parts?

I don't follow your reasoning here. How does the BSD license affect CDDL
code in this case?


 
 Jörg
 


-- 
Alan McKinnon
alan.mckin...@gmail.com




Re: [gentoo-user] Optional /usr merge in Gentoo

2013-08-27 Thread Alan McKinnon
On 27/08/2013 09:53, Joerg Schilling wrote:
 Alan McKinnon alan.mckin...@gmail.com wrote:
 
 The issue is that the Linux kernel devs consider the license terms for
 ZFS to be incompatible with GPL-2.0 and therefore ZFS cannot be
 redistributed as a Linux kernel module.
 
 Isn't it strange that those people seem to have less problems with closed 
 source than with a license that gives more freedom than the GPL? But 
 you are correct that the problem seem to be humans and not a license text.

You are aware that the GPL was not really intended to be used together
with other licenses? It was really intended to create an entire
operating system, all of which was 100% licensed as GPL, all of which
comprise an original work written from scratch

Stallman never makes this claim as bluntly as I've said it here, but
it's the only intelligent reading of his intent as far as I can make
out. This is why so many arguments arise over the GPL, the wording of
that license was not really intended to have it co-exist with other
licenses.

That's how I see it anyway.

 
 There's nothing in the GPL-2 to stop you as a user from building and
 running ZFS on Linux, as GPL does not interfere with your right to run
 whatever you wish. The GPL only kicks in when code is redistributed.
 
 There is nothing non-void in the GPL that stops you from distributing 
 binaries.

That's a question of packaging and bundling, which is not covered by the
GPL. But kernel code and kernel modules are not mere bundles, they are
derivative works by virtue of how tightly they integrate with the
kernel, and how the code can only ever run unchanged on Linux.

That is how ZFS as a fuse module works, no license issues with the
kernel there at all.

-- 
Alan McKinnon
alan.mckin...@gmail.com




Re: [gentoo-user] Optional /usr merge in Gentoo

2013-08-27 Thread Joerg Schilling
Alan McKinnon alan.mckin...@gmail.com wrote:

  The law can!
  
  The GPL is in conflict with the law and therefore the parts you have in 
  mind 
  are just void.

 Which law is the GPL in conflict with, and in which jurisdiction, and
 what is the extent of the conflict?

The GPL is in conflict with US Copyright law Section 17 Paragraph 106.
In Europe, the law on business conditions apply and allow the licensee to 
chose his best interpretation in case of 

 To the best of my knowledge, what you claim has not been tested in a
 court of law with jurisdiction, and is not a matter of law. Until that
 happens, it is an untested legal opinion and as we know, opinions can vary.

There is no need to test something so obvious in court.
A license is not allowed to redefine the definition of what a derivative work 
is and the problem with the GPL only exists in case the GPL succeeds to redefine
the lawful definition of a drivative work.

 The kernel devs have their position, you have yours. In this case, the
 opinion of the kernel devs is the one that carries as they control what
 does and does not ship.

While I am quoting the papers from lawyers (Determann, Rosen, Gordon)
you are quoting laymen.

Note that Lothar Determan is professor of law at Freie Univerität Berlin _and_
the university of San Francisco.


  
  BTW: I am still waiting for a legally acceptable explanation on why the GPL
  should be compatible to the BSD license. Note that the BSD license is very 
  liberal, but it definitely does not permit to relicense code that was 
  published
  under the BSD license withour written permission of the Copyright holder.

 There is no requirement that the GPL should be compatible with the BSD
 license. The GPL only requires that derivative works comply with the
 terms of the GPL.

The GPL requires to relicense the whole work under the GPL and this is not 
permitted for code under the BSD license.


 If BSD code is shipped with GPL code and the BSD code is the derivative
 work, the BSD license does not demand that the code be published.
 However, the GPL does so the entire codebase is published under the
 terms of the GPL. Thus the conditions of both licenses are satisfied,
 and no relicensing is involved.

If the Linux kernel uses the BSD code, it is the Linux kernel that has become 
the derivative work.

Note that you cannot publishe the entire codebase under GPL as parts are under 
BSD license already.

  So is the problem just a social problem given the fact that Linux comes 
  with 
  BSD licensed parts?

 I don't follow your reasoning here. How does the BSD license affect CDDL
 code in this case?

It demonstrates that the Linux kernel people do not really honor the GPL and I 
see no difference between adding code under BSD compared to code under CDDL.
Both licenses do not allow relicensing without written permission of the 
Copyright owner.

Jörg

-- 
 EMail:jo...@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin
   j...@cs.tu-berlin.de(uni)  
   joerg.schill...@fokus.fraunhofer.de (work) Blog: 
http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily



Re: [gentoo-user] Optional /usr merge in Gentoo

2013-08-27 Thread Joerg Schilling
Alan McKinnon alan.mckin...@gmail.com wrote:

  Isn't it strange that those people seem to have less problems with closed 
  source than with a license that gives more freedom than the GPL? But 
  you are correct that the problem seem to be humans and not a license text.

 You are aware that the GPL was not really intended to be used together
 with other licenses? It was really intended to create an entire
 operating system, all of which was 100% licensed as GPL, all of which
 comprise an original work written from scratch

But it has been proven that you cannot create a 100% GPL OS.
More than 50% of all Linux distros are under different licenses...

 Stallman never makes this claim as bluntly as I've said it here, but
 it's the only intelligent reading of his intent as far as I can make
 out. This is why so many arguments arise over the GPL, the wording of
 that license was not really intended to have it co-exist with other
 licenses.

Stallman does not look at reality. The first GCC version in 1986 has been 
published under something I call GPLv0 and this license did not permit a legal 
use of the GCC in public.

The license was later converted to GPLv1 by using proposals I made but 
Stallman still only talks about what has been in GPLv0.

  There is nothing non-void in the GPL that stops you from distributing 
  binaries.

 That's a question of packaging and bundling, which is not covered by the
 GPL. But kernel code and kernel modules are not mere bundles, they are
 derivative works by virtue of how tightly they integrate with the
 kernel, and how the code can only ever run unchanged on Linux.

If a kernel uses ZFS, you have to decide on whether the kernel is a derivative 
work of ZFS or whether just a collective work exists.

_Using_ ZFS definitely does not make ZFS a derivative work.

Jörg

-- 
 EMail:jo...@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin
   j...@cs.tu-berlin.de(uni)  
   joerg.schill...@fokus.fraunhofer.de (work) Blog: 
http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily



Re: [gentoo-user] Optional /usr merge in Gentoo

2013-08-27 Thread Joerg Schilling
Joerg Schilling joerg.schill...@fokus.fraunhofer.de wrote:

 Alan McKinnon alan.mckin...@gmail.com wrote:

   Isn't it strange that those people seem to have less problems with closed 
   source than with a license that gives more freedom than the GPL? But 
   you are correct that the problem seem to be humans and not a license text.
 
  You are aware that the GPL was not really intended to be used together
  with other licenses? It was really intended to create an entire
  operating system, all of which was 100% licensed as GPL, all of which
  comprise an original work written from scratch

 But it has been proven that you cannot create a 100% GPL OS.
 More than 50% of all Linux distros are under different licenses...


Sorry, this should be: More than 50% of a typical Linux distro is 
under different licenses...

Jörg

-- 
 EMail:jo...@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin
   j...@cs.tu-berlin.de(uni)  
   joerg.schill...@fokus.fraunhofer.de (work) Blog: 
http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily



Re: [gentoo-user] Re: Questions about java SDK ebuilds for linux

2013-08-27 Thread Wolfgang Liebich

Am 2013-08-26 18:40, schrieb James:

Wolfgang Liebich wolfgang.liebich at siemens-enterprise.com writes:



Hi,
I'm using GENTOO linux as development platform for Java applications.
JAVA 8 is not officially out there, but still I would like to start
testing it, and there are early access
downloads at the oracle website.


Checkout project sunrise and then other overlay sites for early offerings...


Is there something like a comprehensive guide to the overlays, or a overlay 
search engine?
I looked around in some of the JAVA overlays, but they look rather dated (or 
contain only java based
application's ebuilds).




Furthermore, the ebuilds for the IBM JDKs seem to be somewhat abandoned -

is there an build for the ibm jdk V7

available somewhere? I did not
find anything (yet)...


IMHO, JAVA get's a bad rap in the open source world for a variety,
sometimes very good, reasons. What JAVA on gentoo lacks is devoted
afficionado team to keep up with supporting JAVA on Gentoo...


There was a JAVA project for gentoo, but it seems quite dead. The wiki pages 
refer to the transition to JAVA 5,
was...well... some time ago :-)

This is a pity, though, as the java-config mechanism is really very useful.




YMMV,
hth, James










Re: [gentoo-user] grub2 or kernel config - unable to properly boot

2013-08-27 Thread Francisco Ares
2013/8/27 Michael Hampicke m...@hadt.biz

 Am 26.08.2013 20:11, schrieb Francisco Ares:
  Hi, Michael, thanks for you reply.
 
  Please forgive me for not having mentioned grub2-mkconfig and
  grub2-install. The mentioned grub.cfg was a sample from a working system,
  with legacy grub:0, from which I have recovered parts of the kernel
 command
  line parameters.
 
  After genkernel finished to build the kernel, I've issued:
 
  grub2-mkconfig -o /boot/grub2/grub.cfg
  grub2-install /dev/sda
 
  Sorry for this.
  Francisco
 On a failed boot, can you reach the rescue system from the initramfs?
 (The message is something like enter password for rescue or ctrl+d) If
 so, are you able mount your actual root partiton (sda5) manually?


No, unfortunately. But I am able to use the grub console prior to boot.

By doing so, I have listed the command about to be used to boot the first
entry in the grub menu, it installs some modules. In regard of file
systems, it only loads a ext2 module, and the root partition is ext4
formated.

Although this kernel has ext2, ext3 and ext4 built in (not modules), can
this be a cue?  Right now I am preparing to format the root partition as
ext2, just to check this out.

Thanks again
Francisco


Re: [gentoo-user] grub2 or kernel config - unable to properly boot

2013-08-27 Thread Wang Xuerui
2013/8/27 Francisco Ares fra...@gmail.com:
 In regard of file systems,
 it only loads a ext2 module, and the root partition is ext4 formated.

 Although this kernel has ext2, ext3 and ext4 built in (not modules), can
 this be a cue?  Right now I am preparing to format the root partition as
 ext2, just to check this out.

Well, GRUB modules are *GRUB* modules, that is, they're there only for
GRUB to be able to understand your partition table and read your
filesystems. After successfully reading the kernel into memory and
passing control to it, they're not relevant any more, so you really
don't have to reformat /.

Instead, focus on your initramfs as the error shows some inconsistency
between the expected and actual initramfs content. Also that last line
seems to come from initramfs, based on its appearance (unlike dmesg
lines). You may understand your problem better there.

Hope that helps.



Re: [gentoo-user] grub2 or kernel config - unable to properly boot

2013-08-27 Thread Francisco Ares
2013/8/27 Francisco Ares fra...@gmail.com


 2013/8/27 Michael Hampicke m...@hadt.biz

 Am 26.08.2013 20:11, schrieb Francisco Ares:
  Hi, Michael, thanks for you reply.
 
  Please forgive me for not having mentioned grub2-mkconfig and
  grub2-install. The mentioned grub.cfg was a sample from a working
 system,
  with legacy grub:0, from which I have recovered parts of the kernel
 command
  line parameters.
 
  After genkernel finished to build the kernel, I've issued:
 
  grub2-mkconfig -o /boot/grub2/grub.cfg
  grub2-install /dev/sda
 
  Sorry for this.
  Francisco
 On a failed boot, can you reach the rescue system from the initramfs?
 (The message is something like enter password for rescue or ctrl+d) If
 so, are you able mount your actual root partiton (sda5) manually?


 No, unfortunately. But I am able to use the grub console prior to boot.

 By doing so, I have listed the command about to be used to boot the first
 entry in the grub menu, it installs some modules. In regard of file
 systems, it only loads a ext2 module, and the root partition is ext4
 formated.

 Although this kernel has ext2, ext3 and ext4 built in (not modules), can
 this be a cue?  Right now I am preparing to format the root partition as
 ext2, just to check this out.

 Thanks again
 Francisco


It didn't work, so I suppose the embedded ext2, ext3 and ext4 in the kernel
is not the issue, and might be working.  Going to explore the grub console
now.

Thanks
Francisco


[gentoo-user] {OT} DNS: no SOA record or DNSSEC

2013-08-27 Thread Grant
I use a fairly well-known (free) DNS provider.  I just checked my DNS
settings at dnscheck.pingdom.com and I got:

1. No SOA record was found when querying the name server. This is most
probably due to a misconfiguration at the name server - a zone must
have a SOA record.

2. Nameserver * does not do DNSSEC extra processing.

Are either of these something to worry about?

- Grant



Re: [gentoo-user] Optional /usr merge in Gentoo

2013-08-27 Thread Tanstaafl
Ummm... I didn't suggest that ZFS be shipped with or distributed with 
the kernel...


I was talking about some kind of overlay or patch system, where I could 
add zfs to my kernel use flag, and it would pull the gentoo-sources from 
wherver it pulls them, and pul;l the patch from a *separate*/*different* 
source/location, and then put the patch where it needs to go to be 
properly compiled into the kernel.


Again, the overlay would *not* contain or provide the kernel sources, 
only the zfs 'patch'.


I don't see a problem with that.

On 2013-08-26 10:04 PM, Thomas Mueller mueller6...@bellsouth.net wrote:

On the issue of whether ZFS can be shipped with the Linux kernel, FreeBSD 
includes ZFS with the kernel, binary and source.

So does that mean it would be OK for Linux too?

FreeBSD has a different license (BSD) than Linux (GPL 2 or 3).

I am not a lawyer!

Tom







Re: [gentoo-user] grub2 or kernel config - unable to properly boot

2013-08-27 Thread Francisco Ares
2013/8/27 Wang Xuerui idontknw.w...@gmail.com

 2013/8/27 Francisco Ares fra...@gmail.com:
  In regard of file systems,
  it only loads a ext2 module, and the root partition is ext4 formated.
 
  Although this kernel has ext2, ext3 and ext4 built in (not modules), can
  this be a cue?  Right now I am preparing to format the root partition as
  ext2, just to check this out.

 Well, GRUB modules are *GRUB* modules, that is, they're there only for
 GRUB to be able to understand your partition table and read your
 filesystems. After successfully reading the kernel into memory and
 passing control to it, they're not relevant any more, so you really
 don't have to reformat /.

 Instead, focus on your initramfs as the error shows some inconsistency
 between the expected and actual initramfs content. Also that last line
 seems to come from initramfs, based on its appearance (unlike dmesg
 lines). You may understand your problem better there.

 Hope that helps.


Thanks for your reply, Wang

You are probably right, because using the grub console interface, it was
possible to mount any other partitions using commands like

root=(hd0,msdos5)

I have used genkernel to build both the kernel and the initramfs, so I
don't know what could be wrong. In fact, I have never tried to build my own
initramfs.

Any hints on how to diagnose a initramfs?  AFAIK it is a filesystem.  How
can I mount it to check its contents?

Thanks again,
Francisco


Re: [gentoo-user] grub2 or kernel config - unable to properly boot

2013-08-27 Thread Francisco Ares
2013/8/27 Francisco Ares fra...@gmail.com


 2013/8/27 Francisco Ares fra...@gmail.com


 2013/8/27 Michael Hampicke m...@hadt.biz

 Am 26.08.2013 20:11, schrieb Francisco Ares:
  Hi, Michael, thanks for you reply.
 
  Please forgive me for not having mentioned grub2-mkconfig and
  grub2-install. The mentioned grub.cfg was a sample from a working
 system,
  with legacy grub:0, from which I have recovered parts of the kernel
 command
  line parameters.
 
  After genkernel finished to build the kernel, I've issued:
 
  grub2-mkconfig -o /boot/grub2/grub.cfg
  grub2-install /dev/sda
 
  Sorry for this.
  Francisco
 On a failed boot, can you reach the rescue system from the initramfs?
 (The message is something like enter password for rescue or ctrl+d) If
 so, are you able mount your actual root partiton (sda5) manually?


 No, unfortunately. But I am able to use the grub console prior to boot.

 By doing so, I have listed the command about to be used to boot the first
 entry in the grub menu, it installs some modules. In regard of file
 systems, it only loads a ext2 module, and the root partition is ext4
 formated.

 Although this kernel has ext2, ext3 and ext4 built in (not modules), can
 this be a cue?  Right now I am preparing to format the root partition as
 ext2, just to check this out.

 Thanks again
 Francisco


 It didn't work, so I suppose the embedded ext2, ext3 and ext4 in the
 kernel is not the issue, and might be working.  Going to explore the grub
 console now.

 Thanks
 Francisco



In the grub console, prior to boot, I was able to mount any partition using
commands like:

root=(hd0,msdos5)

and then listing the directory tree structure with  ls /  gave the
expected results.

Francisco


Re: [gentoo-user] Optional /usr merge in Gentoo

2013-08-27 Thread Tanstaafl

On 2013-08-26 2:23 AM, Alan McKinnon alan.mckin...@gmail.com wrote:

I run it on my NASes, and the thing that really sold me was what it lets
me as the admin do:

I get all the benefits of directories with none of the downsides.
I get all the benefits of mount points with none of the downsides.
I get all the benefits of discrete filesystems with none of the downsides.

Like you say, a truly modern fs built for modern needs.


Are these home-built NAS's running FreeBSD (or maybe FreeNAS)? Or 
TrueNAS or Nexenta boxes?


I'm wondering what the best way would be to get something set up for ZFS 
file storage. I have some older servers that I can use, so was leaning 
toward FreeNAS...




Re: [gentoo-user] Optional /usr merge in Gentoo

2013-08-27 Thread Alan McKinnon
On 27/08/2013 13:36, Tanstaafl wrote:
 On 2013-08-26 2:23 AM, Alan McKinnon alan.mckin...@gmail.com wrote:
 I run it on my NASes, and the thing that really sold me was what it lets
 me as the admin do:

 I get all the benefits of directories with none of the downsides.
 I get all the benefits of mount points with none of the downsides.
 I get all the benefits of discrete filesystems with none of the
 downsides.

 Like you say, a truly modern fs built for modern needs.
 
 Are these home-built NAS's running FreeBSD (or maybe FreeNAS)? Or
 TrueNAS or Nexenta boxes?
 
 I'm wondering what the best way would be to get something set up for ZFS
 file storage. I have some older servers that I can use, so was leaning
 toward FreeNAS...
 

Mine are HP mini-servers (the cube shaped ones) with 4 SATA bays running
FreeNAS 8.0.something.

Dunno if you've worked with FreeNAS before, but it's literally a case of
write the image to USB or flash storage and boot off it. Then play.

You will need to be able to boot off a USB stick, CF card or similar,
FreeNAS uses an entire drive for it's system partition and it's a shame
to waste a whole high-capacity disk just for a 2G system image



-- 
Alan McKinnon
alan.mckin...@gmail.com




Re: [gentoo-user] {OT} DNS: no SOA record or DNSSEC

2013-08-27 Thread Alan McKinnon
On 27/08/2013 12:30, Grant wrote:
 I use a fairly well-known (free) DNS provider.  I just checked my DNS
 settings at dnscheck.pingdom.com and I got:
 
 1. No SOA record was found when querying the name server. This is most
 probably due to a misconfiguration at the name server - a zone must
 have a SOA record.
 
 2. Nameserver * does not do DNSSEC extra processing.
 
 Are either of these something to worry about?


Yes. Without an SOA record you don't actually have a zone.

You should stop using those crappy dns checker sites, they tend to be
full of shit, unreliable and operate off someone's idea of how DNS
should be instead of reading the actual RFCs on the matter. Our abuse
team has long ticket lists from people trusting those sites and now
think there's something with how we do glue. Hint: Our glue is right and
proper :-)


Instead just use dig, using google.com as an example get the NS records
first:

$ dig ns google.com +short
ns3.google.com.
ns2.google.com.
ns1.google.com.
ns4.google.com.


Then query each of those name server in turn directly for the SOA:

$ dig soa google.com +short @ns3.google.com
ns1.google.com. dns-admin.google.com. 2013081400 7200 1800 1209600 300

That's a correct SOA record.

What could have happened with that test site is the query timed out and
the site assumed the universe was therefore about to explode. Use such
if you want but always verify the results yourself using dig.

The DNSSEC message is not a problem. It means your provider does not use
DNSSEC. Again, the universe will not explode from this, we all got along
just fine with plain unsigned DNS transfers for 30 years. DNSSEC is a
way to digitally sign zone transfers and updates. Nothing to do with
zone resolution.

-- 
Alan McKinnon
alan.mckin...@gmail.com




Re: [gentoo-user] Optional /usr merge in Gentoo

2013-08-27 Thread Tanstaafl

On 2013-08-27 7:42 AM, Alan McKinnon alan.mckin...@gmail.com wrote:

On 27/08/2013 13:36, Tanstaafl wrote:

I'm wondering what the best way would be to get something set up for ZFS
file storage. I have some older servers that I can use, so was leaning
toward FreeNAS...



Mine are HP mini-servers (the cube shaped ones) with 4 SATA bays running
FreeNAS 8.0.something.

Dunno if you've worked with FreeNAS before, but it's literally a case of
write the image to USB or flash storage and boot off it. Then play.

You will need to be able to boot off a USB stick, CF card or similar,
FreeNAS uses an entire drive for it's system partition and it's a shame
to waste a whole high-capacity disk just for a 2G system image


I haven't worked with it before, but this comment of yours means I soon 
will be - thanks... :)


So, once I have something up and running and fully configured, it is 
relatively easy to backup the new/running system image, in case the 
flash drive ever crashes and burns?


Thanks Alan, starting to get excited about playing with ZFS.

How would you rate their docs and support community (for the free version)?

Thanks again Alan

Charles



Re: [gentoo-user] grub2 or kernel config - unable to properly boot

2013-08-27 Thread Francisco Ares
2013/8/27 Francisco Ares fra...@gmail.com


 2013/8/27 Francisco Ares fra...@gmail.com


 2013/8/27 Francisco Ares fra...@gmail.com


 2013/8/27 Michael Hampicke m...@hadt.biz

 Am 26.08.2013 20:11, schrieb Francisco Ares:
  Hi, Michael, thanks for you reply.
 
  Please forgive me for not having mentioned grub2-mkconfig and
  grub2-install. The mentioned grub.cfg was a sample from a working
 system,
  with legacy grub:0, from which I have recovered parts of the kernel
 command
  line parameters.
 
  After genkernel finished to build the kernel, I've issued:
 
  grub2-mkconfig -o /boot/grub2/grub.cfg
  grub2-install /dev/sda
 
  Sorry for this.
  Francisco
 On a failed boot, can you reach the rescue system from the initramfs?
 (The message is something like enter password for rescue or ctrl+d) If
 so, are you able mount your actual root partiton (sda5) manually?


 No, unfortunately. But I am able to use the grub console prior to boot.

 By doing so, I have listed the command about to be used to boot the
 first entry in the grub menu, it installs some modules. In regard of file
 systems, it only loads a ext2 module, and the root partition is ext4
 formated.

 Although this kernel has ext2, ext3 and ext4 built in (not modules), can
 this be a cue?  Right now I am preparing to format the root partition as
 ext2, just to check this out.

 Thanks again
 Francisco


 It didn't work, so I suppose the embedded ext2, ext3 and ext4 in the
 kernel is not the issue, and might be working.  Going to explore the grub
 console now.

 Thanks
 Francisco



 In the grub console, prior to boot, I was able to mount any partition
 using commands like:

 root=(hd0,msdos5)

 and then listing the directory tree structure with  ls /  gave the
 expected results.

 Francisco



I think I might have found it.  Although I have selected in the kernel
menuconfig to compress the initramfs using gzip and deselected all other
decompression forms. a simple file initramfs-xxx told me that it was XZ
compressed data, so now I am rebuilding the kernel with all decompression
algorithms built in.

I will (hope) soon post the results.

Thanks,
Francisco


Re: [gentoo-user] grub2 or kernel config - unable to properly boot

2013-08-27 Thread Neil Bothwick
On Tue, 27 Aug 2013 08:31:05 -0300, Francisco Ares wrote:

 Any hints on how to diagnose a initramfs?  AFAIK it is a filesystem.
 How can I mount it to check its contents?

http://www.thegeekstuff.com/2009/07/how-to-view-modify-and-recreate-initrd-img/


-- 
Neil Bothwick

Why is the word abbreviation so long?


signature.asc
Description: PGP signature


Re: [gentoo-user] Optional /usr merge in Gentoo

2013-08-27 Thread Neil Bothwick
On Tue, 27 Aug 2013 06:33:52 -0400, Tanstaafl wrote:

 Ummm... I didn't suggest that ZFS be shipped with or distributed with 
 the kernel...
 
 I was talking about some kind of overlay or patch system, where I could 
 add zfs to my kernel use flag, and it would pull the gentoo-sources
 from wherver it pulls them, and pul;l the patch from a
 *separate*/*different* source/location, and then put the patch where it
 needs to go to be properly compiled into the kernel.

I already posted the script I use to do exactly that.

emerge gentoo-sources
run the script

I wonder it it would be possible to have the spl and zfs-kmod ebuilds do
this with an appropriate USE flag.


-- 
Neil Bothwick

Bury a lawyer 12 feet under, because deep down they're nice.


signature.asc
Description: PGP signature


Re: [gentoo-user] SLES or gentoo ... ?

2013-08-27 Thread Tanstaafl

On 2013-08-26 11:51 AM, Pandu Poluan pa...@poluan.info wrote:

Then the 6 disks as JBOD and use it within a RAIDZ2 array.

Or, 6 disks in JBOD, add them a 3 ZFS mirror vdev's.


Where is the best docs for understanding and working with ZFS?

RAID types, Best Practices (especially for disaster recovery), etc...

Anything I can print out for offline reading/studying?

Thanks



Re: [gentoo-user] Optional /usr merge in Gentoo

2013-08-27 Thread Tanstaafl

On 2013-08-27 8:25 AM, Neil Bothwick n...@digimed.co.uk wrote:

On Tue, 27 Aug 2013 06:33:52 -0400, Tanstaafl wrote:


Ummm... I didn't suggest that ZFS be shipped with or distributed with
the kernel...

I was talking about some kind of overlay or patch system, where I could
add zfs to my kernel use flag, and it would pull the gentoo-sources
from wherver it pulls them, and pul;l the patch from a
*separate*/*different* source/location, and then put the patch where it
needs to go to be properly compiled into the kernel.


I already posted the script I use to do exactly that.

emerge gentoo-sources
run the script

I wonder it it would be possible to have the spl and zfs-kmod ebuilds do
this with an appropriate USE flag.


Thats what I'm looking for... something that is automatic and basically 
'just works'.


Manually running a script as part of each kernel update just... well, 
computers do automation best.


But thanks very much for your script. I'm just not comfortable (at this 
point at least) doing it that way on a production system...




Re: [gentoo-user] Re: Questions about java SDK ebuilds for linux

2013-08-27 Thread Yohan Pereira
On 27/08/13 at 12:04pm, Wolfgang Liebich wrote:
 Am 2013-08-26 18:40, schrieb James:
  Wolfgang Liebich wolfgang.liebich at siemens-enterprise.com writes:
 
 
  Hi,
  I'm using GENTOO linux as development platform for Java applications.
  JAVA 8 is not officially out there, but still I would like to start
  testing it, and there are early access
  downloads at the oracle website.
 
  Checkout project sunrise and then other overlay sites for early offerings...
 
 Is there something like a comprehensive guide to the overlays, or a overlay 
 search engine?
 I looked around in some of the JAVA overlays, but they look rather dated (or 
 contain only java based
 application's ebuilds).

If you use eix, theres eix-remote which lets you search remote overlays
using eix the same way one would use it to search the local portage tree.
 

-- 

- Yohan Pereira

The difference between a Miracle and a Fact is exactly the difference
between a mermaid and a seal.
-- Mark Twain



Re: [gentoo-user] Optional /usr merge in Gentoo

2013-08-27 Thread Alan McKinnon
On 27/08/2013 14:05, Tanstaafl wrote:
 On 2013-08-27 7:42 AM, Alan McKinnon alan.mckin...@gmail.com wrote:
 On 27/08/2013 13:36, Tanstaafl wrote:
 I'm wondering what the best way would be to get something set up for ZFS
 file storage. I have some older servers that I can use, so was leaning
 toward FreeNAS...
 
 Mine are HP mini-servers (the cube shaped ones) with 4 SATA bays running
 FreeNAS 8.0.something.

 Dunno if you've worked with FreeNAS before, but it's literally a case of
 write the image to USB or flash storage and boot off it. Then play.

 You will need to be able to boot off a USB stick, CF card or similar,
 FreeNAS uses an entire drive for it's system partition and it's a shame
 to waste a whole high-capacity disk just for a 2G system image
 
 I haven't worked with it before, but this comment of yours means I soon
 will be - thanks... :)
 
 So, once I have something up and running and fully configured, it is
 relatively easy to backup the new/running system image, in case the
 flash drive ever crashes and burns?

It's a small image (100M compressed), so just keep a copy handy
somewhere and reflash. The GUI has a function where you can backup the
running config, a restore is a simple matter of click restore in the GUI

The USBstick/CF card you boot off will keep a copy of the current image
and one version back (i.e. the one the current one replaced), so you can
boot the old system by pressing F2 if the new one fails for some weird
reason.

Most of the config is GUI-driven in a browser, a lot but not all options
can be set on the CLI. But honestly, it's a file server and you will
find that once you set your shares up the way you like you will seldom
change stuff. Your main interaction will probably be watching the pretty
connectd graphs in a browser

For shares you get everything you could possibly need - cifs, nfs (2,3
and 4), iSCSI, FTP, scp, some Apple thing, and tftp and a few more. And
rsync!

 Thanks Alan, starting to get excited about playing with ZFS.
 
 How would you rate their docs and support community (for the free version)?

Support is top-notch, on par with what you find around here if that
helps ;-)

Each major.minor version has a .pdf manual published, while the next
version is in development, the docs get updated on a wiki and the final
version is an export of that. There's a forum with knowledgeable users
and the devs hang around just in case regular users can't help with a
question.

No mailing list though :-(
And the forum does have a lot of noise from n00bs, but that's common
with web forums. Like on Gentoo, you quickly learn to spot those posts
and scan over them.

 
 Thanks again Alan
 
 Charles
 


-- 
Alan McKinnon
alan.mckin...@gmail.com




Re: [gentoo-user] Optional /usr merge in Gentoo

2013-08-27 Thread Tanstaafl

On 2013-08-27 9:03 AM, Alan McKinnon alan.mckin...@gmail.com wrote:

Each major.minor version has a .pdf manual published, while the next
version is in development, the docs get updated on a wiki and the final
version is an export of that. There's a forum with knowledgeable users
and the devs hang around just in case regular users can't help with a
question.


Ok, that brings up another issue...

One thing I've always loved about gentoo is it is a rolling release, 
which means no 'major update' pains to speak of (at least not like 
binary based distros like redhat etc)...


So, have you ever gone through any major system updates, and if so, any 
issues to speak of?


Thanks again for sharing this...



Re: [gentoo-user] Optional /usr merge in Gentoo

2013-08-27 Thread Alan McKinnon
On 27/08/2013 15:11, Tanstaafl wrote:
 On 2013-08-27 9:03 AM, Alan McKinnon alan.mckin...@gmail.com wrote:
 Each major.minor version has a .pdf manual published, while the next
 version is in development, the docs get updated on a wiki and the final
 version is an export of that. There's a forum with knowledgeable users
 and the devs hang around just in case regular users can't help with a
 question.
 
 Ok, that brings up another issue...
 
 One thing I've always loved about gentoo is it is a rolling release,
 which means no 'major update' pains to speak of (at least not like
 binary based distros like redhat etc)...
 
 So, have you ever gone through any major system updates, and if so, any
 issues to speak of?
 
 Thanks again for sharing this...
 


No issues ever whatsoever. An upgrade is almost exactly the same as
upgrading firmware on your DSL router or reflashing OpenElec[1]. The
longest part is waiting for the NAS to reboot twice and get through
whatever your disk controller does at power up :-)

Once in the early days I had an incompatible database format for configs
and got a message at the start, so I had to do something manually to get
past that. But that was long ago. These days the migration script always
just dealt with it properly.


[1] another awesome project that JustWorks. I'm getting to like these
Unix-based appliances that JustWork. if I need to get under the overs
and tweak stuff, I can. Most mostly I don't need to :-)



-- 
Alan McKinnon
alan.mckin...@gmail.com




Re: [gentoo-user] SLES or gentoo ... ?

2013-08-27 Thread Neil Bothwick
On Tue, 27 Aug 2013 08:34:38 -0400, Tanstaafl wrote:

 Where is the best docs for understanding and working with ZFS?

There are plenty of links on the zfsforlinux site.


-- 
Neil Bothwick

BING But It's Not Google


signature.asc
Description: PGP signature


Re: [gentoo-user] SLES or gentoo ... ?

2013-08-27 Thread Stefan G. Weichinger
Am 27.08.2013 14:34, schrieb Tanstaafl:
 On 2013-08-26 11:51 AM, Pandu Poluan pa...@poluan.info wrote:
 Then the 6 disks as JBOD and use it within a RAIDZ2 array.
 
 Or, 6 disks in JBOD, add them a 3 ZFS mirror vdev's.
 
 Where is the best docs for understanding and working with ZFS?
 
 RAID types, Best Practices (especially for disaster recovery),
 etc...
 
 Anything I can print out for offline reading/studying?

Phew, sorry, nothing specific in my mind. Back then I also did a lot of
googling, watching youtube-videos of ZFS-speeches, tutorials etc.

The Oracle Administration Guide might be a good reference, but dunno
about offline availability:

http://docs.oracle.com/cd/E19253-01/819-5461/index.html

For initial learning purposes you can also build a pool out of files
(instead of physical drives) ... just in case.

Stefan



Re: [gentoo-user] Optional /usr merge in Gentoo

2013-08-27 Thread Neil Bothwick
On Tue, 27 Aug 2013 08:37:54 -0400, Tanstaafl wrote:

  I already posted the script I use to do exactly that.
 
  emerge gentoo-sources
  run the script
 
  I wonder it it would be possible to have the spl and zfs-kmod ebuilds
  do this with an appropriate USE flag.  
 
 Thats what I'm looking for... something that is automatic and basically 
 'just works'.
 
 Manually running a script as part of each kernel update just... well, 
 computers do automation best.

I use a script to configure, build and install new kernels. It's called
from there, so it is automatic for me :)

 But thanks very much for your script. I'm just not comfortable (at this 
 point at least) doing it that way on a production system...

That's the recommended way, since the script follows the instructions for
merging the modules in the kernel tree and uses the make scripts that
come with the sources. It will not mess up your kernel since it only adds
code, code that isn't even used until you enable it in the .config.


-- 
Neil Bothwick

MACINTOSH: Most Applications Crash; If Not, The Operating System Hangs


signature.asc
Description: PGP signature


Re: [gentoo-user] looking for a couple of systemd units

2013-08-27 Thread Canek Peláez Valdés
On Tue, Aug 27, 2013 at 2:46 AM,  cov...@ccs.covici.com wrote:
 Canek Peláez Valdés can...@gmail.com wrote:

 On Tue, Aug 27, 2013 at 1:10 AM,  cov...@ccs.covici.com wrote:
  Canek Peláez Valdés can...@gmail.com wrote:
 
  On Mon, Aug 26, 2013 at 11:06 PM, Canek Peláez Valdés can...@gmail.com 
  wrote:
   On Mon, Aug 26, 2013 at 10:52 PM,  cov...@ccs.covici.com wrote:
   Hi.  I am looking for a couple of systemd units which I have not been
   able to find -- one for mailman and one for innd which is a shell 
   script
   by itself.
  
   Thanks in advance for any suggestions.
  
   I use this one in production for mailman with Gentoo:
  
   
   [Unit]
   Description=Mailman mailing list service
   After=network.target
  
   [Service]
   Type=forking
   ExecStart=/usr/lib/mailman/bin/mailmanctl -s start
   ExecStop=/usr/lib/mailman/bin/mailmanctl stop
   User=mailman
   Group=mailman
  
   [Install]
   WantedBy=multi-user.target
   
  
   I don't have any for innd.
 
  If innd is the one from net-nntp/inn, then the following should work:
 
  
  [Unit]
  Description=The Internet News daemon
  Documentation=man:innd(8)
  ConditionPathExists=/var/run/news
 
  [Service]
  Type=simple
  ExecStart=/usr/lib/news/bin/rc.news
  ExecStop=/usr/lib/news/bin/rc.news stop
  User=news
  Group=news
 
  [Install]
  WantedBy=multi-user.target
  
 
  If the binary rc.news forks itself (and there is no option to force it
  to run in the foreground), use Type=forking. The former is preferred
  over the latter. Also, to guarantee that the directory /var/run/news
  always is present, add the following to a new file
  /etc/tmpfiles.d/innd.conf:
 
  
  d/var/run/news   0755 news news 10d -
  
 
  You can replace 10d with - (hypen), so the directory is never cleaned
  automatically. If you try this unit and it works as expected, please
  let us know.
 
 
  OK, thanks again.  I have one question which this brings up -- and this
  applies to openrc as well -- I never have let it migrate /var/run to
  /run  and /var/lock likewise because I have directories in those which
  are owned by various users, etc. and the packages themselves almost
  never create such -- is putting things in  /etc/tmpfiles.d the correct
  way to fix this?

 tmpfiles.d is from systemd:

 http://www.freedesktop.org/software/systemd/man/tmpfiles.d.html

 However, I think OpenRC developers were thinking about supporting it.
 I don't know if that actually happened.

 With systemd in Gentoo, /var/run is bind mounted from /run, and it's a
 tmpfs dir, so everything there goes away after a reboot. The config
 files in tmpfiles.d allows the creation (and automatic removal) of
 directories and files there.

 I don't know if it's the correct way to fix anything; but it works.

 Can I use the d action to change the permissions of an existing
 directory and if not, how can I do this?

I don't think so. The contents of /run (and /var/run before it) are,
by definition, used only at run time. They are not intended to be
preserved, and they actually should be cleaned from time to time
(hence the age field in tmpfiles.d). Therefore tmpfiles.d only deals
with creation (and cleaning up) of files/directories, not updating
them, since they should not be even present when the system boots up.

The files in /etc/tmpfiles.d are used by the systemd-tmpfiles-* units,
and (AFAIU) they only create files/directories at boot time, and then
only clean afterwards.

My /run directory is really empty. When my systems boot up, systemd
mounts a tmpfs on it:

# mount | grep on /run
tmpfs on /run type tmpfs (rw,nosuid,nodev,mode=755)

Then the var-run.mount unit binds mount /run into /var/run. So no
file/directory there is actually written into any physical disk ever.

Regards.
-- 
Canek Peláez Valdés
Posgrado en Ciencia e Ingeniería de la Computación
Universidad Nacional Autónoma de México



Re: [gentoo-user] SLES or gentoo ... ?

2013-08-27 Thread Pandu Poluan
On Tue, Aug 27, 2013 at 8:53 PM, Neil Bothwick n...@digimed.co.uk wrote:
 On Tue, 27 Aug 2013 08:34:38 -0400, Tanstaafl wrote:

 Where is the best docs for understanding and working with ZFS?

 There are plenty of links on the zfsforlinux site.


on Linux, not for Linux ... http://zfsonlinux.org/

:-)

That said, I just discovered the mbuffer trick [1]  to speed up ZFS
snapshot shipping (my self-made term) from one server to another.

Never thought that I'd see the GbE saturated...

Of course the Network Admin gave me the evil eye :-P


[1] 
http://blogs.everycity.co.uk/alasdair/2010/07/using-mbuffer-to-speed-up-slow-zfs-send-zfs-receive/



Rgds,
-- 
FdS Pandu E Poluan
~ IT Optimizer ~

 • LOPSA Member #15248
 • Blog : http://pepoluan.tumblr.com
 • Linked-In : http://id.linkedin.com/in/pepoluan



Re: [gentoo-user] looking for a couple of systemd units

2013-08-27 Thread Samuli Suominen

On 27/08/13 09:24, Canek Peláez Valdés wrote:

On Tue, Aug 27, 2013 at 1:10 AM,  cov...@ccs.covici.com wrote:

Canek Peláez Valdés can...@gmail.com wrote:


On Mon, Aug 26, 2013 at 11:06 PM, Canek Peláez Valdés can...@gmail.com wrote:

On Mon, Aug 26, 2013 at 10:52 PM,  cov...@ccs.covici.com wrote:

Hi.  I am looking for a couple of systemd units which I have not been
able to find -- one for mailman and one for innd which is a shell script
by itself.

Thanks in advance for any suggestions.


I use this one in production for mailman with Gentoo:


[Unit]
Description=Mailman mailing list service
After=network.target

[Service]
Type=forking
ExecStart=/usr/lib/mailman/bin/mailmanctl -s start
ExecStop=/usr/lib/mailman/bin/mailmanctl stop
User=mailman
Group=mailman

[Install]
WantedBy=multi-user.target


I don't have any for innd.


If innd is the one from net-nntp/inn, then the following should work:


[Unit]
Description=The Internet News daemon
Documentation=man:innd(8)
ConditionPathExists=/var/run/news

[Service]
Type=simple
ExecStart=/usr/lib/news/bin/rc.news
ExecStop=/usr/lib/news/bin/rc.news stop
User=news
Group=news

[Install]
WantedBy=multi-user.target


If the binary rc.news forks itself (and there is no option to force it
to run in the foreground), use Type=forking. The former is preferred
over the latter. Also, to guarantee that the directory /var/run/news
always is present, add the following to a new file
/etc/tmpfiles.d/innd.conf:


d/var/run/news   0755 news news 10d -


You can replace 10d with - (hypen), so the directory is never cleaned
automatically. If you try this unit and it works as expected, please
let us know.



OK, thanks again.  I have one question which this brings up -- and this
applies to openrc as well -- I never have let it migrate /var/run to
/run  and /var/lock likewise because I have directories in those which
are owned by various users, etc. and the packages themselves almost
never create such -- is putting things in  /etc/tmpfiles.d the correct
way to fix this?


tmpfiles.d is from systemd:

http://www.freedesktop.org/software/systemd/man/tmpfiles.d.html

However, I think OpenRC developers were thinking about supporting it.
I don't know if that actually happened.


openrc-0.11.8 already had initial tmpfiles support, but it's very buggy

however ~arch has now openrc-0.12, you could say, complete tmpfiles 
support and it's already being used at production level packages like 
sys-apps/kmod's kmod-static-nodes init script


so the same tmpfiles systemd uses, will work fine on openrc-0.12 too, 
long as tmpfiles.setup is in the boot runlevel...


- Samuli



Re: [gentoo-user] PMTUD

2013-08-27 Thread Mick
On Tuesday 27 Aug 2013 09:10:39 Grant wrote:
 How is PMTUD enabled/disabled on Gentoo?  I've recently been made
 aware of the existence of MTU and I'm wondering if mine is set
 properly for a cell phone tethered connection.
 
 - Grant

# sysctl -A | grep -i pmtu
net.ipv4.ip_no_pmtu_disc = 0
net.ipv4.route.min_pmtu = 552

Use echo to change a value as required and then modify your /etc/sysctl.d/ 
accordingly (first read /etc/sysctl.d/README)

-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] {OT} DNS: no SOA record or DNSSEC

2013-08-27 Thread William Kenworthy
I used to use dlint for this, but the package no longer builds easily
- is there any equivalent package as dig is not ideal to find what the
problem actually is?

BillK


On 27/08/13 19:53, Alan McKinnon wrote:
 On 27/08/2013 12:30, Grant wrote:
 I use a fairly well-known (free) DNS provider.  I just checked my DNS
 settings at dnscheck.pingdom.com and I got:

 1. No SOA record was found when querying the name server. This is most
 probably due to a misconfiguration at the name server - a zone must
 have a SOA record.

 2. Nameserver * does not do DNSSEC extra processing.

 Are either of these something to worry about?
 
 
 Yes. Without an SOA record you don't actually have a zone.
 
 You should stop using those crappy dns checker sites, they tend to be
 full of shit, unreliable and operate off someone's idea of how DNS
 should be instead of reading the actual RFCs on the matter. Our abuse
 team has long ticket lists from people trusting those sites and now
 think there's something with how we do glue. Hint: Our glue is right and
 proper :-)
 
 
 Instead just use dig, using google.com as an example get the NS records
 first:
 
 $ dig ns google.com +short
 ns3.google.com.
 ns2.google.com.
 ns1.google.com.
 ns4.google.com.
 
 
 Then query each of those name server in turn directly for the SOA:
 
 $ dig soa google.com +short @ns3.google.com
 ns1.google.com. dns-admin.google.com. 2013081400 7200 1800 1209600 300
 
 That's a correct SOA record.
 
 What could have happened with that test site is the query timed out and
 the site assumed the universe was therefore about to explode. Use such
 if you want but always verify the results yourself using dig.
 
 The DNSSEC message is not a problem. It means your provider does not use
 DNSSEC. Again, the universe will not explode from this, we all got along
 just fine with plain unsigned DNS transfers for 30 years. DNSSEC is a
 way to digitally sign zone transfers and updates. Nothing to do with
 zone resolution.
 




Re: [gentoo-user] looking for a couple of systemd units

2013-08-27 Thread covici
Canek Peláez Valdés can...@gmail.com wrote:

 On Tue, Aug 27, 2013 at 2:46 AM,  cov...@ccs.covici.com wrote:
  Canek Peláez Valdés can...@gmail.com wrote:
 
  On Tue, Aug 27, 2013 at 1:10 AM,  cov...@ccs.covici.com wrote:
   Canek Peláez Valdés can...@gmail.com wrote:
  
   On Mon, Aug 26, 2013 at 11:06 PM, Canek Peláez Valdés 
   can...@gmail.com wrote:
On Mon, Aug 26, 2013 at 10:52 PM,  cov...@ccs.covici.com wrote:
Hi.  I am looking for a couple of systemd units which I have not been
able to find -- one for mailman and one for innd which is a shell 
script
by itself.
   
Thanks in advance for any suggestions.
   
I use this one in production for mailman with Gentoo:
   

[Unit]
Description=Mailman mailing list service
After=network.target
   
[Service]
Type=forking
ExecStart=/usr/lib/mailman/bin/mailmanctl -s start
ExecStop=/usr/lib/mailman/bin/mailmanctl stop
User=mailman
Group=mailman
   
[Install]
WantedBy=multi-user.target

   
I don't have any for innd.
  
   If innd is the one from net-nntp/inn, then the following should work:
  
   
   [Unit]
   Description=The Internet News daemon
   Documentation=man:innd(8)
   ConditionPathExists=/var/run/news
  
   [Service]
   Type=simple
   ExecStart=/usr/lib/news/bin/rc.news
   ExecStop=/usr/lib/news/bin/rc.news stop
   User=news
   Group=news
  
   [Install]
   WantedBy=multi-user.target
   
  
   If the binary rc.news forks itself (and there is no option to force it
   to run in the foreground), use Type=forking. The former is preferred
   over the latter. Also, to guarantee that the directory /var/run/news
   always is present, add the following to a new file
   /etc/tmpfiles.d/innd.conf:
  
   
   d/var/run/news   0755 news news 10d -
   
  
   You can replace 10d with - (hypen), so the directory is never cleaned
   automatically. If you try this unit and it works as expected, please
   let us know.
  
  
   OK, thanks again.  I have one question which this brings up -- and this
   applies to openrc as well -- I never have let it migrate /var/run to
   /run  and /var/lock likewise because I have directories in those which
   are owned by various users, etc. and the packages themselves almost
   never create such -- is putting things in  /etc/tmpfiles.d the correct
   way to fix this?
 
  tmpfiles.d is from systemd:
 
  http://www.freedesktop.org/software/systemd/man/tmpfiles.d.html
 
  However, I think OpenRC developers were thinking about supporting it.
  I don't know if that actually happened.
 
  With systemd in Gentoo, /var/run is bind mounted from /run, and it's a
  tmpfs dir, so everything there goes away after a reboot. The config
  files in tmpfiles.d allows the creation (and automatic removal) of
  directories and files there.
 
  I don't know if it's the correct way to fix anything; but it works.
 
  Can I use the d action to change the permissions of an existing
  directory and if not, how can I do this?
 
 I don't think so. The contents of /run (and /var/run before it) are,
 by definition, used only at run time. They are not intended to be
 preserved, and they actually should be cleaned from time to time
 (hence the age field in tmpfiles.d). Therefore tmpfiles.d only deals
 with creation (and cleaning up) of files/directories, not updating
 them, since they should not be even present when the system boots up.
 
 The files in /etc/tmpfiles.d are used by the systemd-tmpfiles-* units,
 and (AFAIU) they only create files/directories at boot time, and then
 only clean afterwards.
 
 My /run directory is really empty. When my systems boot up, systemd
 mounts a tmpfs on it:
 
 # mount | grep on /run
 tmpfs on /run type tmpfs (rw,nosuid,nodev,mode=755)
 
 Then the var-run.mount unit binds mount /run into /var/run. So no
 file/directory there is actually written into any physical disk ever.

But I need to change the permissions of /var/lock to 777, if I can't use
tmpfiles.d how can I do this?


-- 
Your life is like a penny.  You're going to lose it.  The question is:
How do
you spend it?

 John Covici
 cov...@ccs.covici.com



Re: [gentoo-user] looking for a couple of systemd units

2013-08-27 Thread Canek Peláez Valdés
On Tue, Aug 27, 2013 at 9:41 AM,  cov...@ccs.covici.com wrote:
 Canek Peláez Valdés can...@gmail.com wrote:

 On Tue, Aug 27, 2013 at 2:46 AM,  cov...@ccs.covici.com wrote:
  Canek Peláez Valdés can...@gmail.com wrote:
 
  On Tue, Aug 27, 2013 at 1:10 AM,  cov...@ccs.covici.com wrote:
   Canek Peláez Valdés can...@gmail.com wrote:
  
   On Mon, Aug 26, 2013 at 11:06 PM, Canek Peláez Valdés 
   can...@gmail.com wrote:
On Mon, Aug 26, 2013 at 10:52 PM,  cov...@ccs.covici.com wrote:
Hi.  I am looking for a couple of systemd units which I have not 
been
able to find -- one for mailman and one for innd which is a shell 
script
by itself.
   
Thanks in advance for any suggestions.
   
I use this one in production for mailman with Gentoo:
   

[Unit]
Description=Mailman mailing list service
After=network.target
   
[Service]
Type=forking
ExecStart=/usr/lib/mailman/bin/mailmanctl -s start
ExecStop=/usr/lib/mailman/bin/mailmanctl stop
User=mailman
Group=mailman
   
[Install]
WantedBy=multi-user.target

   
I don't have any for innd.
  
   If innd is the one from net-nntp/inn, then the following should work:
  
   
   [Unit]
   Description=The Internet News daemon
   Documentation=man:innd(8)
   ConditionPathExists=/var/run/news
  
   [Service]
   Type=simple
   ExecStart=/usr/lib/news/bin/rc.news
   ExecStop=/usr/lib/news/bin/rc.news stop
   User=news
   Group=news
  
   [Install]
   WantedBy=multi-user.target
   
  
   If the binary rc.news forks itself (and there is no option to force it
   to run in the foreground), use Type=forking. The former is preferred
   over the latter. Also, to guarantee that the directory /var/run/news
   always is present, add the following to a new file
   /etc/tmpfiles.d/innd.conf:
  
   
   d/var/run/news   0755 news news 10d -
   
  
   You can replace 10d with - (hypen), so the directory is never cleaned
   automatically. If you try this unit and it works as expected, please
   let us know.
  
  
   OK, thanks again.  I have one question which this brings up -- and this
   applies to openrc as well -- I never have let it migrate /var/run to
   /run  and /var/lock likewise because I have directories in those which
   are owned by various users, etc. and the packages themselves almost
   never create such -- is putting things in  /etc/tmpfiles.d the correct
   way to fix this?
 
  tmpfiles.d is from systemd:
 
  http://www.freedesktop.org/software/systemd/man/tmpfiles.d.html
 
  However, I think OpenRC developers were thinking about supporting it.
  I don't know if that actually happened.
 
  With systemd in Gentoo, /var/run is bind mounted from /run, and it's a
  tmpfs dir, so everything there goes away after a reboot. The config
  files in tmpfiles.d allows the creation (and automatic removal) of
  directories and files there.
 
  I don't know if it's the correct way to fix anything; but it works.
 
  Can I use the d action to change the permissions of an existing
  directory and if not, how can I do this?

 I don't think so. The contents of /run (and /var/run before it) are,
 by definition, used only at run time. They are not intended to be
 preserved, and they actually should be cleaned from time to time
 (hence the age field in tmpfiles.d). Therefore tmpfiles.d only deals
 with creation (and cleaning up) of files/directories, not updating
 them, since they should not be even present when the system boots up.

 The files in /etc/tmpfiles.d are used by the systemd-tmpfiles-* units,
 and (AFAIU) they only create files/directories at boot time, and then
 only clean afterwards.

 My /run directory is really empty. When my systems boot up, systemd
 mounts a tmpfs on it:

 # mount | grep on /run
 tmpfs on /run type tmpfs (rw,nosuid,nodev,mode=755)

 Then the var-run.mount unit binds mount /run into /var/run. So no
 file/directory there is actually written into any physical disk ever.

 But I need to change the permissions of /var/lock to 777, if I can't use
 tmpfiles.d how can I do this?

chmod 777 /var/lock? I don't understand the question. What program do
you need that requires universal writing access for /var/lock? In my
systems, /var/lock is either bind mounted from /run/lock, or a soft
link to /run/lock, and /run/lock is root:root and 755.

Regards.
-- 
Canek Peláez Valdés
Posgrado en Ciencia e Ingeniería de la Computación
Universidad Nacional Autónoma de México



Re: [gentoo-user] {OT} DNS: no SOA record or DNSSEC

2013-08-27 Thread Michael Orlitzky
On 08/27/2013 10:36 AM, William Kenworthy wrote:
 I used to use dlint for this, but the package no longer builds easily
 - is there any equivalent package as dig is not ideal to find what the
 problem actually is?
 

The 'donuts' tool from net-dns/dnssec-tools can supposedly do this, if
you can figure out how to use it (I gave up).




Re: [gentoo-user] looking for a couple of systemd units

2013-08-27 Thread covici
Canek Peláez Valdés can...@gmail.com wrote:

 On Tue, Aug 27, 2013 at 9:41 AM,  cov...@ccs.covici.com wrote:
  Canek Peláez Valdés can...@gmail.com wrote:
 
  On Tue, Aug 27, 2013 at 2:46 AM,  cov...@ccs.covici.com wrote:
   Canek Peláez Valdés can...@gmail.com wrote:
  
   On Tue, Aug 27, 2013 at 1:10 AM,  cov...@ccs.covici.com wrote:
Canek Peláez Valdés can...@gmail.com wrote:
   
On Mon, Aug 26, 2013 at 11:06 PM, Canek Peláez Valdés 
can...@gmail.com wrote:
 On Mon, Aug 26, 2013 at 10:52 PM,  cov...@ccs.covici.com wrote:
 Hi.  I am looking for a couple of systemd units which I have not 
 been
 able to find -- one for mailman and one for innd which is a shell 
 script
 by itself.

 Thanks in advance for any suggestions.

 I use this one in production for mailman with Gentoo:

 
 [Unit]
 Description=Mailman mailing list service
 After=network.target

 [Service]
 Type=forking
 ExecStart=/usr/lib/mailman/bin/mailmanctl -s start
 ExecStop=/usr/lib/mailman/bin/mailmanctl stop
 User=mailman
 Group=mailman

 [Install]
 WantedBy=multi-user.target
 

 I don't have any for innd.
   
If innd is the one from net-nntp/inn, then the following should work:
   

[Unit]
Description=The Internet News daemon
Documentation=man:innd(8)
ConditionPathExists=/var/run/news
   
[Service]
Type=simple
ExecStart=/usr/lib/news/bin/rc.news
ExecStop=/usr/lib/news/bin/rc.news stop
User=news
Group=news
   
[Install]
WantedBy=multi-user.target

   
If the binary rc.news forks itself (and there is no option to force 
it
to run in the foreground), use Type=forking. The former is preferred
over the latter. Also, to guarantee that the directory /var/run/news
always is present, add the following to a new file
/etc/tmpfiles.d/innd.conf:
   

d/var/run/news   0755 news news 10d -

   
You can replace 10d with - (hypen), so the directory is never cleaned
automatically. If you try this unit and it works as expected, please
let us know.
   
   
OK, thanks again.  I have one question which this brings up -- and 
this
applies to openrc as well -- I never have let it migrate /var/run to
/run  and /var/lock likewise because I have directories in those which
are owned by various users, etc. and the packages themselves almost
never create such -- is putting things in  /etc/tmpfiles.d the correct
way to fix this?
  
   tmpfiles.d is from systemd:
  
   http://www.freedesktop.org/software/systemd/man/tmpfiles.d.html
  
   However, I think OpenRC developers were thinking about supporting it.
   I don't know if that actually happened.
  
   With systemd in Gentoo, /var/run is bind mounted from /run, and it's a
   tmpfs dir, so everything there goes away after a reboot. The config
   files in tmpfiles.d allows the creation (and automatic removal) of
   directories and files there.
  
   I don't know if it's the correct way to fix anything; but it works.
  
   Can I use the d action to change the permissions of an existing
   directory and if not, how can I do this?
 
  I don't think so. The contents of /run (and /var/run before it) are,
  by definition, used only at run time. They are not intended to be
  preserved, and they actually should be cleaned from time to time
  (hence the age field in tmpfiles.d). Therefore tmpfiles.d only deals
  with creation (and cleaning up) of files/directories, not updating
  them, since they should not be even present when the system boots up.
 
  The files in /etc/tmpfiles.d are used by the systemd-tmpfiles-* units,
  and (AFAIU) they only create files/directories at boot time, and then
  only clean afterwards.
 
  My /run directory is really empty. When my systems boot up, systemd
  mounts a tmpfs on it:
 
  # mount | grep on /run
  tmpfs on /run type tmpfs (rw,nosuid,nodev,mode=755)
 
  Then the var-run.mount unit binds mount /run into /var/run. So no
  file/directory there is actually written into any physical disk ever.
 
  But I need to change the permissions of /var/lock to 777, if I can't use
  tmpfiles.d how can I do this?
 
 chmod 777 /var/lock? I don't understand the question. What program do
 you need that requires universal writing access for /var/lock? In my
 systems, /var/lock is either bind mounted from /run/lock, or a soft
 link to /run/lock, and /run/lock is root:root and 755.
 

I need regular users to put files in /var/lock and it is annoying to
have to change the 

Re: [gentoo-user] looking for a couple of systemd units

2013-08-27 Thread Stefan G. Weichinger

While we are at it ...

I am currently migrating one of my basement servers ... it boots and
runs with systemd already.

I am fiddling with service-files for:

mysql
mythbackend
tftp-hpa

(more to come)

working my way through ... making arch-linux-files fit etc.

If someone already has those for gentoo ... pls post and share!

Stefan



Re: [gentoo-user] looking for a couple of systemd units

2013-08-27 Thread Canek Peláez Valdés
On Tue, Aug 27, 2013 at 10:39 AM,  cov...@ccs.covici.com wrote:
 Canek Peláez Valdés can...@gmail.com wrote:

 On Tue, Aug 27, 2013 at 9:41 AM,  cov...@ccs.covici.com wrote:
  Canek Peláez Valdés can...@gmail.com wrote:
 
  On Tue, Aug 27, 2013 at 2:46 AM,  cov...@ccs.covici.com wrote:
   Canek Peláez Valdés can...@gmail.com wrote:
  
   On Tue, Aug 27, 2013 at 1:10 AM,  cov...@ccs.covici.com wrote:
Canek Peláez Valdés can...@gmail.com wrote:
   
On Mon, Aug 26, 2013 at 11:06 PM, Canek Peláez Valdés 
can...@gmail.com wrote:
 On Mon, Aug 26, 2013 at 10:52 PM,  cov...@ccs.covici.com wrote:
 Hi.  I am looking for a couple of systemd units which I have not 
 been
 able to find -- one for mailman and one for innd which is a 
 shell script
 by itself.

 Thanks in advance for any suggestions.

 I use this one in production for mailman with Gentoo:

 
 [Unit]
 Description=Mailman mailing list service
 After=network.target

 [Service]
 Type=forking
 ExecStart=/usr/lib/mailman/bin/mailmanctl -s start
 ExecStop=/usr/lib/mailman/bin/mailmanctl stop
 User=mailman
 Group=mailman

 [Install]
 WantedBy=multi-user.target
 

 I don't have any for innd.
   
If innd is the one from net-nntp/inn, then the following should 
work:
   

[Unit]
Description=The Internet News daemon
Documentation=man:innd(8)
ConditionPathExists=/var/run/news
   
[Service]
Type=simple
ExecStart=/usr/lib/news/bin/rc.news
ExecStop=/usr/lib/news/bin/rc.news stop
User=news
Group=news
   
[Install]
WantedBy=multi-user.target

   
If the binary rc.news forks itself (and there is no option to force 
it
to run in the foreground), use Type=forking. The former is preferred
over the latter. Also, to guarantee that the directory /var/run/news
always is present, add the following to a new file
/etc/tmpfiles.d/innd.conf:
   

d/var/run/news   0755 news news 10d -

   
You can replace 10d with - (hypen), so the directory is never 
cleaned
automatically. If you try this unit and it works as expected, please
let us know.
   
   
OK, thanks again.  I have one question which this brings up -- and 
this
applies to openrc as well -- I never have let it migrate /var/run to
/run  and /var/lock likewise because I have directories in those 
which
are owned by various users, etc. and the packages themselves almost
never create such -- is putting things in  /etc/tmpfiles.d the 
correct
way to fix this?
  
   tmpfiles.d is from systemd:
  
   http://www.freedesktop.org/software/systemd/man/tmpfiles.d.html
  
   However, I think OpenRC developers were thinking about supporting it.
   I don't know if that actually happened.
  
   With systemd in Gentoo, /var/run is bind mounted from /run, and it's a
   tmpfs dir, so everything there goes away after a reboot. The config
   files in tmpfiles.d allows the creation (and automatic removal) of
   directories and files there.
  
   I don't know if it's the correct way to fix anything; but it works.
  
   Can I use the d action to change the permissions of an existing
   directory and if not, how can I do this?
 
  I don't think so. The contents of /run (and /var/run before it) are,
  by definition, used only at run time. They are not intended to be
  preserved, and they actually should be cleaned from time to time
  (hence the age field in tmpfiles.d). Therefore tmpfiles.d only deals
  with creation (and cleaning up) of files/directories, not updating
  them, since they should not be even present when the system boots up.
 
  The files in /etc/tmpfiles.d are used by the systemd-tmpfiles-* units,
  and (AFAIU) they only create files/directories at boot time, and then
  only clean afterwards.
 
  My /run directory is really empty. When my systems boot up, systemd
  mounts a tmpfs on it:
 
  # mount | grep on /run
  tmpfs on /run type tmpfs (rw,nosuid,nodev,mode=755)
 
  Then the var-run.mount unit binds mount /run into /var/run. So no
  file/directory there is actually written into any physical disk ever.
 
  But I need to change the permissions of /var/lock to 777, if I can't use
  tmpfiles.d how can I do this?

 chmod 777 /var/lock? I don't understand the question. What program do
 you need that requires universal writing access for /var/lock? In my
 systems, /var/lock is either bind mounted from /run/lock, or a soft
 link to /run/lock, and /run/lock is root:root and 755.


 I need 

Re: [gentoo-user] Optional /usr merge in Gentoo

2013-08-27 Thread Tanstaafl

On 2013-08-27 9:03 AM, Alan McKinnon alan.mckin...@gmail.com wrote:

It's a small image (100M compressed), so just keep a copy handy
somewhere and reflash. The GUI has a function where you can backup the
running config, a restore is a simple matter of click restore in the GUI

The USBstick/CF card you boot off will keep a copy of the current image
and one version back (i.e. the one the current one replaced), so you can
boot the old system by pressing F2 if the new one fails for some weird
reason.


Crazy question...

Wondering of I could run this in a VM on my ESXi server?

Purpose would be threefold...

hosting windows user homes and roaming profiles

hosting alternate email storage for dovecot (for mail archival)

hosting email backups (rsync)

hmm maybe I could even make it primary mail storage?

Have to give this some thought...



Re: [gentoo-user] looking for a couple of systemd units

2013-08-27 Thread Canek Peláez Valdés
On Tue, Aug 27, 2013 at 10:55 AM, Stefan G. Weichinger li...@xunil.at wrote:

 While we are at it ...

 I am currently migrating one of my basement servers ... it boots and
 runs with systemd already.

 I am fiddling with service-files for:

 mysql
 mythbackend
 tftp-hpa

 (more to come)

 working my way through ... making arch-linux-files fit etc.

 If someone already has those for gentoo ... pls post and share!

This is my mysqld.service file used in production with Gentoo:


[Unit]
Description=mySQL Server
After=network.target
Documentation=man:mysqld(8)

[Service]
Type=simple
ExecStart=/usr/sbin/mysqld --defaults-file=/etc/mysql/my.cnf
--basedir=/usr --datadir=/var/lib/mysql
--pid-file=/var/run/mysqld/mysqld.pid
--socket=/var/run/mysqld/mysqld.sock
ExecStop=/bin/kill -15 $MAINPID
PIDFile=/var/run/mysqld/mysql.pid
Restart=always
CPUSchedulingPolicy=idle
CPUSchedulingPriority=0

[Install]
WantedBy=multi-user.target


You can omit/ignore the CPScheduling* entries (it runs in a very old
machine, and I need mysql not to hog all the CPU).

Also, I use this in /etc/tmpfiles.d/mysqld.conf:


D /run/mysqld 0755 mysql mysql - -


I don't use mythbackend nor tftp-hpa, but if you have the init scripts
for them it should be easy to write the corresponding unit files.

Regards.
-- 
Canek Peláez Valdés
Posgrado en Ciencia e Ingeniería de la Computación
Universidad Nacional Autónoma de México



Re: [gentoo-user] Optional /usr merge in Gentoo

2013-08-27 Thread Alan McKinnon
On 27/08/2013 17:55, Tanstaafl wrote:
 On 2013-08-27 9:03 AM, Alan McKinnon alan.mckin...@gmail.com wrote:
 It's a small image (100M compressed), so just keep a copy handy
 somewhere and reflash. The GUI has a function where you can backup the
 running config, a restore is a simple matter of click restore in the GUI

 The USBstick/CF card you boot off will keep a copy of the current image
 and one version back (i.e. the one the current one replaced), so you can
 boot the old system by pressing F2 if the new one fails for some weird
 reason.
 
 Crazy question...
 
 Wondering of I could run this in a VM on my ESXi server?
 
 Purpose would be threefold...
 
 hosting windows user homes and roaming profiles
 
 hosting alternate email storage for dovecot (for mail archival)
 
 hosting email backups (rsync)
 
 hmm maybe I could even make it primary mail storage?
 
 Have to give this some thought...
 


Many people do just that (for testing and evaluation). ESXi lets you
present an image file as a boot device so that's sorted.

As always with VMs, IO performance is pretty sucky if you present
file-based storage to the guest. It's OK to evaluate and learn the
commands with, but for production you really want direct access to
proper storage devices. Just make sure your backend storage is NOT
itself doing RAID - ZFS doesn't play nicely with that. It really wants a
JBOD with no firmware interference.




-- 
Alan McKinnon
alan.mckin...@gmail.com




Re: [gentoo-user] looking for a couple of systemd units

2013-08-27 Thread Stefan G. Weichinger
Am 27.08.2013 18:02, schrieb Canek Peláez Valdés:
 On Tue, Aug 27, 2013 at 10:55 AM, Stefan G. Weichinger li...@xunil.at wrote:

 While we are at it ...

 I am currently migrating one of my basement servers ... it boots and
 runs with systemd already.

 I am fiddling with service-files for:

 mysql
 mythbackend
 tftp-hpa

 (more to come)

 working my way through ... making arch-linux-files fit etc.

 If someone already has those for gentoo ... pls post and share!
 
 This is my mysqld.service file used in production with Gentoo:
 
 
 [Unit]
 Description=mySQL Server
 After=network.target
 Documentation=man:mysqld(8)
 
 [Service]
 Type=simple
 ExecStart=/usr/sbin/mysqld --defaults-file=/etc/mysql/my.cnf
 --basedir=/usr --datadir=/var/lib/mysql
 --pid-file=/var/run/mysqld/mysqld.pid
 --socket=/var/run/mysqld/mysqld.sock
 ExecStop=/bin/kill -15 $MAINPID
 PIDFile=/var/run/mysqld/mysql.pid
 Restart=always
 CPUSchedulingPolicy=idle
 CPUSchedulingPriority=0
 
 [Install]
 WantedBy=multi-user.target
 
 
 You can omit/ignore the CPScheduling* entries (it runs in a very old
 machine, and I need mysql not to hog all the CPU).
 
 Also, I use this in /etc/tmpfiles.d/mysqld.conf:
 
 
 D /run/mysqld 0755 mysql mysql - -
 


Shouldn't it be /var/run/mysqld ... ?

I had a similar service-file   still fiddling to make it work,
nearly there. Thanks!


 I don't use mythbackend nor tftp-hpa, but if you have the init scripts
 for them it should be easy to write the corresponding unit files.

mythtv-Wiki provided a service file ... I will check after mysqld ...

Stefan



Re: [gentoo-user] looking for a couple of systemd units

2013-08-27 Thread Canek Peláez Valdés
On Tue, Aug 27, 2013 at 11:16 AM, Stefan G. Weichinger li...@xunil.at wrote:
 Am 27.08.2013 18:02, schrieb Canek Peláez Valdés:
 On Tue, Aug 27, 2013 at 10:55 AM, Stefan G. Weichinger li...@xunil.at 
 wrote:

 While we are at it ...

 I am currently migrating one of my basement servers ... it boots and
 runs with systemd already.

 I am fiddling with service-files for:

 mysql
 mythbackend
 tftp-hpa

 (more to come)

 working my way through ... making arch-linux-files fit etc.

 If someone already has those for gentoo ... pls post and share!

 This is my mysqld.service file used in production with Gentoo:

 
 [Unit]
 Description=mySQL Server
 After=network.target
 Documentation=man:mysqld(8)

 [Service]
 Type=simple
 ExecStart=/usr/sbin/mysqld --defaults-file=/etc/mysql/my.cnf
 --basedir=/usr --datadir=/var/lib/mysql
 --pid-file=/var/run/mysqld/mysqld.pid
 --socket=/var/run/mysqld/mysqld.sock
 ExecStop=/bin/kill -15 $MAINPID
 PIDFile=/var/run/mysqld/mysql.pid
 Restart=always
 CPUSchedulingPolicy=idle
 CPUSchedulingPriority=0

 [Install]
 WantedBy=multi-user.target
 

 You can omit/ignore the CPScheduling* entries (it runs in a very old
 machine, and I need mysql not to hog all the CPU).

 Also, I use this in /etc/tmpfiles.d/mysqld.conf:

 
 D /run/mysqld 0755 mysql mysql - -
 


 Shouldn't it be /var/run/mysqld ... ?

It doesn't matter; as per the discussion above, /var/run should be a
bind mount of /run (the default in Gentoo), or a symbolic link to
/run. In either case, /var/run/mysqld *is* /run/mysqld.

Regards.
-- 
Canek Peláez Valdés
Posgrado en Ciencia e Ingeniería de la Computación
Universidad Nacional Autónoma de México



Re: [gentoo-user] looking for a couple of systemd units

2013-08-27 Thread Stefan G. Weichinger
Am 27.08.2013 18:16, schrieb Stefan G. Weichinger:

 I don't use mythbackend nor tftp-hpa, but if you have the init scripts
 for them it should be easy to write the corresponding unit files.
 
 mythtv-Wiki provided a service file ... I will check after mysqld ...

up and running after a reboot, both mysqld and mythbackend (recording
already)!

-

Now for in.tftpd (needed for PXE-booting my mythtv-frontend).

https://wiki.archlinux.org/index.php/Tftpd_server

shows something, no success so far ...

But libvirt and my qemu-kvm-guests already work as well, fine!

Stefan



[gentoo-user] How can I unsubscribe from gentoo-news?

2013-08-27 Thread Jarry

Hi Gentoo-users,

I'd like to stop receiving news, how can I do that?

Or better said, I'd like to receive gentoo-news only
on one of my 6 servers, and turn this feature off
on remaining 5...

Jarry
--
___
This mailbox accepts e-mails only from selected mailing-lists!
Everything else is considered to be spam and therefore deleted.



Re: [gentoo-user] looking for a couple of systemd units

2013-08-27 Thread Stefan G. Weichinger
Am 27.08.2013 18:35, schrieb Stefan G. Weichinger:
 Am 27.08.2013 18:16, schrieb Stefan G. Weichinger:
 
 I don't use mythbackend nor tftp-hpa, but if you have the init scripts
 for them it should be easy to write the corresponding unit files.

 mythtv-Wiki provided a service file ... I will check after mysqld ...
 
 up and running after a reboot, both mysqld and mythbackend (recording
 already)!
 
 -
 
 Now for in.tftpd (needed for PXE-booting my mythtv-frontend).
 
 https://wiki.archlinux.org/index.php/Tftpd_server
 
 shows something, no success so far ...

Nearly there ... it also needs a socket ...




Re: [gentoo-user] looking for a couple of systemd units

2013-08-27 Thread Stefan G. Weichinger
Am 27.08.2013 18:40, schrieb Stefan G. Weichinger:

 Nearly there ... it also needs a socket ...

For the records:

# tftpd.service

[Unit]
Description=hpa's original TFTP daemon

[Service]
EnvironmentFile=/etc/conf.d/in.tftpd
ExecStart=/usr/sbin/in.tftpd ${INTFTPD_OPTS}
StandardInput=socket
StandardOutput=inherit
StandardError=journal

# tftpd.socket

[Socket]
ListenDatagram=69

[Install]
WantedBy=sockets.target

---

Next: NFS-server ;-)  (for exporting stuff to the mythfrontend)

... googling again ...

Canek, how to best tell the gentoo-devs about all these files?
Filing bugs for every single file?

Stefan




Re: [gentoo-user] looking for a couple of systemd units

2013-08-27 Thread Canek Peláez Valdés
On Tue, Aug 27, 2013 at 11:46 AM, Stefan G. Weichinger li...@xunil.at wrote:
 Am 27.08.2013 18:40, schrieb Stefan G. Weichinger:

 Nearly there ... it also needs a socket ...

 For the records:

 # tftpd.service

 [Unit]
 Description=hpa's original TFTP daemon

 [Service]
 EnvironmentFile=/etc/conf.d/in.tftpd
 ExecStart=/usr/sbin/in.tftpd ${INTFTPD_OPTS}
 StandardInput=socket
 StandardOutput=inherit
 StandardError=journal

 # tftpd.socket

 [Socket]
 ListenDatagram=69

 [Install]
 WantedBy=sockets.target

 ---

 Next: NFS-server ;-)  (for exporting stuff to the mythfrontend)

 ... googling again ...

 Canek, how to best tell the gentoo-devs about all these files?
 Filing bugs for every single file?

Yeah, to the package in question. Probably with a CC to the systemd
team, so they add the unit file if the maintainer takes too much to
acknowledge the bug.

I haven't done it myself with all the units I already have, I haven't
gotten the time.

Regards.
-- 
Canek Peláez Valdés
Posgrado en Ciencia e Ingeniería de la Computación
Universidad Nacional Autónoma de México



Re: [gentoo-user] looking for a couple of systemd units

2013-08-27 Thread Stefan G. Weichinger
Am 27.08.2013 18:46, schrieb Stefan G. Weichinger:
 Am 27.08.2013 18:40, schrieb Stefan G. Weichinger:
 
 Nearly there ... it also needs a socket ...
 
 For the records:
 
 # tftpd.service
 
 [Unit]
 Description=hpa's original TFTP daemon
 
 [Service]
 EnvironmentFile=/etc/conf.d/in.tftpd
 ExecStart=/usr/sbin/in.tftpd ${INTFTPD_OPTS}

sorry, this is not working as intended.

The syntax does not match (I thought I could read the default config-file).

For now:

ExecStart=/usr/sbin/in.tftpd /mnt/mypxe

S




Re: [gentoo-user] looking for a couple of systemd units

2013-08-27 Thread Stefan G. Weichinger
Am 27.08.2013 19:27, schrieb Stefan G. Weichinger:

 For now:
 
 ExecStart=/usr/sbin/in.tftpd /mnt/mypxe

And wrong again, it needs -s as well. Sorry for the noise!

ExecStart=/usr/sbin/in.tftpd -s /mnt/mypxe

-

For NFS I copied most out of this Wiki:

http://gentoo-en.vfose.ru/wiki/Systemd#NFS

for now I only use the parts for NFSv3 server ... mythfrontend starts up
right now!

slowly getting there ...



Re: [gentoo-user] looking for a couple of systemd units

2013-08-27 Thread Stefan G. Weichinger
Am 27.08.2013 18:57, schrieb Canek Peláez Valdés:

 Canek, how to best tell the gentoo-devs about all these files?
 Filing bugs for every single file?
 
 Yeah, to the package in question. Probably with a CC to the systemd
 team, so they add the unit file if the maintainer takes too much to
 acknowledge the bug.
 
 I haven't done it myself with all the units I already have, I haven't
 gotten the time.

Yes, I understand.




Re: [gentoo-user] looking for a couple of systemd units

2013-08-27 Thread Stefan G. Weichinger
Am 27.08.2013 19:31, schrieb Stefan G. Weichinger:

 slowly getting there ...

Ok, I think I got that done.

Compared my /etc/runlevels/default and checked if I have all relevant
services up and running. Looks good!

What was/is missing (on my specific server) ?

services and sockets for:

in.tftpd
libvirtd
mythbackend
mysqld
nfs server
vixie-cron

While mythtv isn't really mainstream there are other daemons in this
list that really *should* be supported with USE=systemd, I assume
(sure, mythtv should get its file as well ...).

For sure this migration wasn't really *necessary* for me but kind of an
exercise and if I find the time and motivation to file all the bugs
other gentoo-users might benefit in the future.

I am gonna test-drive this setup now by watching TV on my PXE-booted
mythfrontend ;-)

Greets, Stefan




Re: [gentoo-user] looking for a couple of systemd units

2013-08-27 Thread Canek Peláez Valdés
On Tue, Aug 27, 2013 at 1:12 PM, Stefan G. Weichinger li...@xunil.at wrote:
 Am 27.08.2013 19:31, schrieb Stefan G. Weichinger:

 slowly getting there ...

 Ok, I think I got that done.

 Compared my /etc/runlevels/default and checked if I have all relevant
 services up and running. Looks good!

 What was/is missing (on my specific server) ?

 services and sockets for:

 in.tftpd
 libvirtd
 mythbackend
 mysqld
 nfs server
 vixie-cron

 While mythtv isn't really mainstream there are other daemons in this
 list that really *should* be supported with USE=systemd, I assume
 (sure, mythtv should get its file as well ...).

No; the unit files should be installed by default by their respective
packages. No systemd USE flag, the same way there is no need for an
openrc USE flag to install init scripts in /etc/init.d

 For sure this migration wasn't really *necessary* for me but kind of an
 exercise and if I find the time and motivation to file all the bugs
 other gentoo-users might benefit in the future.

Thanks for doing that.

 I am gonna test-drive this setup now by watching TV on my PXE-booted
 mythfrontend ;-)

Regards.
-- 
Canek Peláez Valdés
Posgrado en Ciencia e Ingeniería de la Computación
Universidad Nacional Autónoma de México



Re: [gentoo-user] looking for a couple of systemd units

2013-08-27 Thread Stefan G. Weichinger
Am 27.08.2013 20:12, schrieb Stefan G. Weichinger:
 Am 27.08.2013 19:31, schrieb Stefan G. Weichinger:
 
 slowly getting there ...
 
 Ok, I think I got that done.
 
 Compared my /etc/runlevels/default and checked if I have all relevant
 services up and running. Looks good!
 
 What was/is missing (on my specific server) ?

And rsyncd:

https://github.com/vonSchlotzkow/systemd-gentoo-units/blob/master/sys-apps/systemd-units/files/services-server/rsyncd.service

S



Re: [gentoo-user] looking for a couple of systemd units

2013-08-27 Thread Stefan G. Weichinger
Am 27.08.2013 20:15, schrieb Canek Peláez Valdés:

 While mythtv isn't really mainstream there are other daemons in this
 list that really *should* be supported with USE=systemd, I assume
 (sure, mythtv should get its file as well ...).
 
 No; the unit files should be installed by default by their respective
 packages. No systemd USE flag, the same way there is no need for an
 openrc USE flag to install init scripts in /etc/init.d

Yes, ok ... I will leave that to the devs then :-)

 For sure this migration wasn't really *necessary* for me but kind of an
 exercise and if I find the time and motivation to file all the bugs
 other gentoo-users might benefit in the future.
 
 Thanks for doing that.

It was a pleasure so far ;-)
Stefan




Re: [gentoo-user] looking for a couple of systemd units

2013-08-27 Thread Stefan G. Weichinger
Am 27.08.2013 20:12, schrieb Stefan G. Weichinger:

 What was/is missing (on my specific server) ?

I quickly browsed bugs.gentoo.org ...

libvirtd: I was wrong! The ebuild brings service-files.

No bugs filed yet for these:

in.tftpd mythbackend nfs server vixie-cron rsync

mysqld has a related bug already:

https://bugs.gentoo.org/show_bug.cgi?id=466084





Re: [gentoo-user] SLES or gentoo ... ?

2013-08-27 Thread Neil Bothwick
On Tue, 27 Aug 2013 21:07:58 +0700, Pandu Poluan wrote:

  There are plenty of links on the zfsforlinux site.
   
 
 on Linux, not for Linux ... http://zfsonlinux.org/

That one too ;-)


-- 
Neil Bothwick

If at first you don't succeed, give up. No use being a damn fool.


signature.asc
Description: PGP signature


Re: [gentoo-user] Optional /usr merge in Gentoo

2013-08-27 Thread joost
Alan McKinnon alan.mckin...@gmail.com wrote:
On 27/08/2013 13:36, Tanstaafl wrote:
 On 2013-08-26 2:23 AM, Alan McKinnon alan.mckin...@gmail.com wrote:
 I run it on my NASes, and the thing that really sold me was what it
lets
 me as the admin do:

 I get all the benefits of directories with none of the downsides.
 I get all the benefits of mount points with none of the downsides.
 I get all the benefits of discrete filesystems with none of the
 downsides.

 Like you say, a truly modern fs built for modern needs.
 
 Are these home-built NAS's running FreeBSD (or maybe FreeNAS)? Or
 TrueNAS or Nexenta boxes?
 
 I'm wondering what the best way would be to get something set up for
ZFS
 file storage. I have some older servers that I can use, so was
leaning
 toward FreeNAS...
 

Mine are HP mini-servers (the cube shaped ones) with 4 SATA bays
running
FreeNAS 8.0.something.

Dunno if you've worked with FreeNAS before, but it's literally a case
of
write the image to USB or flash storage and boot off it. Then play.

You will need to be able to boot off a USB stick, CF card or similar,
FreeNAS uses an entire drive for it's system partition and it's a shame
to waste a whole high-capacity disk just for a 2G system image



-- 
Alan McKinnon
alan.mckin...@gmail.com

Alan.

How is the security settings on the shares now?

I had issues when accessing through NFS and CIFS simultaneously where files 
written over NFS had to have the permissions altered before they were 
accessible over CIFS.

Other issue I had was inability to have users only being able to access files 
they were allowed to. With CIFS it sort of worked. But with NFS I had full 
access to all files.

That is the reason why I setup my NAS manually using Gentoo.

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

Re: [gentoo-user] Optional /usr merge in Gentoo

2013-08-27 Thread Alan McKinnon
On 27/08/2013 21:24, jo...@antarean.org wrote:
 Alan McKinnon alan.mckin...@gmail.com wrote:
 
 On 27/08/2013 13:36, Tanstaafl wrote:
 
 On 2013-08-26 2:23 AM, Alan McKinnon alan.mckin...@gmail.com
 wrote:
 
 I run it on my NASes, and the thing that really sold me was
 what it lets
 me as the admin do:
 
 I get all the benefits of directories with none of the
 downsides.
 I get all the benefits of mount points with none of the
 downsides.
 I get all the benefits of discrete filesystems with none of the
 downsides.
 
 Like you say, a truly modern fs built for modern needs.
 
 
 Are these home-built NAS's running FreeBSD (or maybe FreeNAS)? Or
 TrueNAS or Nexenta boxes?
 
 I'm wondering what the best way would be to get something set up
 for ZFS
 file storage. I have some older servers that I can use, so was
 leaning
 toward FreeNAS...
 
 
 
 Mine are HP mini-servers (the cube shaped ones) with 4 SATA bays running
 FreeNAS 8.0.something.
 
 Dunno if you've worked with FreeNAS before, but it's literally a case of
 write the image to USB or flash storage and boot off it. Then play.
 
 You will need to be able to boot off a USB stick, CF card or similar,
 FreeNAS uses an entire drive for it's system partition and it's a shame
 to waste a whole high-capacity disk just for a 2G system image
 
 
 
 Alan.
 
 How is the security settings on the shares now?
 
 I had issues when accessing through NFS and CIFS simultaneously where
 files written over NFS had to have the permissions altered before they
 were accessible over CIFS.

I've never run into this situation myself, my shares are either accessed
via cfs or via nfs, but never both at the same time.

The permissions issue is an artifact of how NFS works. Sun designed it
to deliver entire filesystems over the network (most often /usr and-or
/home) to trusted clients. trusted being the operative word. To get
Unix permissions to work, the uid on the share and client have to match
- that's why we also have NIS - but I've never seen NIS actually used
anywhere, so UIDs tend to be a mix 'n match and almost always devolves
into full access to get it to work.

CIFS work different, it auths users by username and supports per-field
access control. That's how that protocol works.

There is no known way to fix NFS v2  v3 in a mixed network and still
stay sane. NFS v4 does a good job but it's not NFS v3 :-)

it's common for NAS vendors to recommend you not try share the same
files over CIFS and NFS, especially if write access is involced.



 
 Other issue I had was inability to have users only being able to access
 files they were allowed to. With CIFS it sort of worked. But with NFS I
 had full access to all files.
 
 That is the reason why I setup my NAS manually using Gentoo.
 
 --
 Joost
 -- 
 Sent from my Android phone with K-9 Mail. Please excuse my brevity.


-- 
Alan McKinnon
alan.mckin...@gmail.com




Re: [gentoo-user] How can I unsubscribe from gentoo-news?

2013-08-27 Thread Alan McKinnon
On 27/08/2013 18:35, Jarry wrote:
 Hi Gentoo-users,
 
 I'd like to stop receiving news, how can I do that?
 
 Or better said, I'd like to receive gentoo-news only
 on one of my 6 servers, and turn this feature off
 on remaining 5...
 
 Jarry



It's in the mail headers:

mailto:gentoo-user+unsubscr...@lists.gentoo.org

you would obviously use -news and not -user


Normal practice (at least with Mailman) is to have such links in the
email footer. I see Gentoo lists don't do that; I believe because they
run Encartis?

-- 
Alan McKinnon
alan.mckin...@gmail.com




Re: [gentoo-user] looking for a couple of systemd units

2013-08-27 Thread covici
Canek Peláez Valdés can...@gmail.com wrote:

 On Tue, Aug 27, 2013 at 10:39 AM,  cov...@ccs.covici.com wrote:
  Canek Peláez Valdés can...@gmail.com wrote:
 
  On Tue, Aug 27, 2013 at 9:41 AM,  cov...@ccs.covici.com wrote:
   Canek Peláez Valdés can...@gmail.com wrote:
  
   On Tue, Aug 27, 2013 at 2:46 AM,  cov...@ccs.covici.com wrote:
Canek Peláez Valdés can...@gmail.com wrote:
   
On Tue, Aug 27, 2013 at 1:10 AM,  cov...@ccs.covici.com wrote:
 Canek Peláez Valdés can...@gmail.com wrote:

 On Mon, Aug 26, 2013 at 11:06 PM, Canek Peláez Valdés 
 can...@gmail.com wrote:
  On Mon, Aug 26, 2013 at 10:52 PM,  cov...@ccs.covici.com 
  wrote:
  Hi.  I am looking for a couple of systemd units which I have 
  not been
  able to find -- one for mailman and one for innd which is a 
  shell script
  by itself.
 
  Thanks in advance for any suggestions.
 
  I use this one in production for mailman with Gentoo:
 
  
  [Unit]
  Description=Mailman mailing list service
  After=network.target
 
  [Service]
  Type=forking
  ExecStart=/usr/lib/mailman/bin/mailmanctl -s start
  ExecStop=/usr/lib/mailman/bin/mailmanctl stop
  User=mailman
  Group=mailman
 
  [Install]
  WantedBy=multi-user.target
  
 
  I don't have any for innd.

 If innd is the one from net-nntp/inn, then the following should 
 work:

 
 [Unit]
 Description=The Internet News daemon
 Documentation=man:innd(8)
 ConditionPathExists=/var/run/news

 [Service]
 Type=simple
 ExecStart=/usr/lib/news/bin/rc.news
 ExecStop=/usr/lib/news/bin/rc.news stop
 User=news
 Group=news

 [Install]
 WantedBy=multi-user.target
 

 If the binary rc.news forks itself (and there is no option to 
 force it
 to run in the foreground), use Type=forking. The former is 
 preferred
 over the latter. Also, to guarantee that the directory 
 /var/run/news
 always is present, add the following to a new file
 /etc/tmpfiles.d/innd.conf:

 
 d/var/run/news   0755 news news 10d -
 

 You can replace 10d with - (hypen), so the directory is never 
 cleaned
 automatically. If you try this unit and it works as expected, 
 please
 let us know.


 OK, thanks again.  I have one question which this brings up -- and 
 this
 applies to openrc as well -- I never have let it migrate /var/run 
 to
 /run  and /var/lock likewise because I have directories in those 
 which
 are owned by various users, etc. and the packages themselves almost
 never create such -- is putting things in  /etc/tmpfiles.d the 
 correct
 way to fix this?
   
tmpfiles.d is from systemd:
   
http://www.freedesktop.org/software/systemd/man/tmpfiles.d.html
   
However, I think OpenRC developers were thinking about supporting it.
I don't know if that actually happened.
   
With systemd in Gentoo, /var/run is bind mounted from /run, and it's 
a
tmpfs dir, so everything there goes away after a reboot. The config
files in tmpfiles.d allows the creation (and automatic removal) of
directories and files there.
   
I don't know if it's the correct way to fix anything; but it works.
   
Can I use the d action to change the permissions of an existing
directory and if not, how can I do this?
  
   I don't think so. The contents of /run (and /var/run before it) are,
   by definition, used only at run time. They are not intended to be
   preserved, and they actually should be cleaned from time to time
   (hence the age field in tmpfiles.d). Therefore tmpfiles.d only deals
   with creation (and cleaning up) of files/directories, not updating
   them, since they should not be even present when the system boots up.
  
   The files in /etc/tmpfiles.d are used by the systemd-tmpfiles-* units,
   and (AFAIU) they only create files/directories at boot time, and then
   only clean afterwards.
  
   My /run directory is really empty. When my systems boot up, systemd
   mounts a tmpfs on it:
  
   # mount | grep on /run
   tmpfs on /run type tmpfs (rw,nosuid,nodev,mode=755)
  
   Then the var-run.mount unit binds mount /run into /var/run. So no
   file/directory there is actually written into any physical disk ever.
  
   But I need to change the permissions of /var/lock to 777, if I can't use
   tmpfiles.d how can I do this?
 
  chmod 777 /var/lock? I don't understand the question. What 

Re: [gentoo-user] How can I unsubscribe from gentoo-news?

2013-08-27 Thread Wang Xuerui
在 2013-8-28 上午4:03,Alan McKinnon alan.mckin...@gmail.com写道:

 On 27/08/2013 18:35, Jarry wrote:
  Hi Gentoo-users,
 
  I'd like to stop receiving news, how can I do that?
 
  Or better said, I'd like to receive gentoo-news only
  on one of my 6 servers, and turn this feature off
  on remaining 5...
 
  Jarry



 It's in the mail headers:

 mailto:gentoo-user+unsubscr...@lists.gentoo.org

 you would obviously use -news and not -user


 Normal practice (at least with Mailman) is to have such links in the
 email footer. I see Gentoo lists don't do that; I believe because they
 run Encartis?

 --
 Alan McKinnon
 alan.mckin...@gmail.com



Ah, I think he actually means those news items as seen in eselect news
read, as some keywords like server and turn off suggest...


Re: [gentoo-user] How can I unsubscribe from gentoo-news?

2013-08-27 Thread Jarry

On 27-Aug-13 21:59, Alan McKinnon wrote:

On 27/08/2013 18:35, Jarry wrote:


I'd like to stop receiving news, how can I do that?

Or better said, I'd like to receive gentoo-news only
on one of my 6 servers, and turn this feature off
on remaining 5...



It's in the mail headers:
mailto:gentoo-user+unsubscr...@lists.gentoo.org

you would obviously use -news and not -user


I probably did not express myself correctly. What I mean
is portage-news. News I get sometimes after emerge --sync.
Not news-mailinglist...

Jarry
--
___
This mailbox accepts e-mails only from selected mailing-lists!
Everything else is considered to be spam and therefore deleted.



Re: [gentoo-user] looking for a couple of systemd units

2013-08-27 Thread covici
Canek Peláez Valdés can...@gmail.com wrote:

 On Tue, Aug 27, 2013 at 10:55 AM, Stefan G. Weichinger li...@xunil.at wrote:
 
  While we are at it ...
 
  I am currently migrating one of my basement servers ... it boots and
  runs with systemd already.
 
  I am fiddling with service-files for:
 
  mysql
  mythbackend
  tftp-hpa
 
  (more to come)
 
  working my way through ... making arch-linux-files fit etc.
 
  If someone already has those for gentoo ... pls post and share!
 
 This is my mysqld.service file used in production with Gentoo:
 
 
 [Unit]
 Description=mySQL Server
 After=network.target
 Documentation=man:mysqld(8)
 
 [Service]
 Type=simple
 ExecStart=/usr/sbin/mysqld --defaults-file=/etc/mysql/my.cnf
 --basedir=/usr --datadir=/var/lib/mysql
 --pid-file=/var/run/mysqld/mysqld.pid
 --socket=/var/run/mysqld/mysqld.sock
 ExecStop=/bin/kill -15 $MAINPID
 PIDFile=/var/run/mysqld/mysql.pid
 Restart=always
 CPUSchedulingPolicy=idle
 CPUSchedulingPriority=0
 
 [Install]
 WantedBy=multi-user.target
 
 
 You can omit/ignore the CPScheduling* entries (it runs in a very old
 machine, and I need mysql not to hog all the CPU).
 
 Also, I use this in /etc/tmpfiles.d/mysqld.conf:
 
 
 D /run/mysqld 0755 mysql mysql - -
 
 
 I don't use mythbackend nor tftp-hpa, but if you have the init scripts
 for them it should be easy to write the corresponding unit files.

Thanks for that, I will need thatas well.

-- 
Your life is like a penny.  You're going to lose it.  The question is:
How do
you spend it?

 John Covici
 cov...@ccs.covici.com



Re: [gentoo-user] Optional /usr merge in Gentoo

2013-08-27 Thread Alan McKinnon
On 27/08/2013 11:08, Joerg Schilling wrote:
 Alan McKinnon alan.mckin...@gmail.com wrote:
 
 Isn't it strange that those people seem to have less problems with closed 
 source than with a license that gives more freedom than the GPL? But 
 you are correct that the problem seem to be humans and not a license text.

 You are aware that the GPL was not really intended to be used together
 with other licenses? It was really intended to create an entire
 operating system, all of which was 100% licensed as GPL, all of which
 comprise an original work written from scratch
 
 But it has been proven that you cannot create a 100% GPL OS.
 More than 50% of all Linux distros are under different licenses...
 
 Stallman never makes this claim as bluntly as I've said it here, but
 it's the only intelligent reading of his intent as far as I can make
 out. This is why so many arguments arise over the GPL, the wording of
 that license was not really intended to have it co-exist with other
 licenses.
 
 Stallman does not look at reality. The first GCC version in 1986 has been 
 published under something I call GPLv0 and this license did not permit a 
 legal 
 use of the GCC in public.
 
 The license was later converted to GPLv1 by using proposals I made but 
 Stallman still only talks about what has been in GPLv0.


I didn't bring this up to discuss fine points of licenses. I brought it
up for those who might want to understand what the GPL is intended to
do; that can only be truly understood by determining what Stallman
intended. The GPL is a reflection of Stallman's intent, and can only be
truly understood in that light.

Whether the legal wording accurately matches his intent is another
matter altogether. I personally feel it doesn't, won't and cannot, for
reasons of psychology and philosophy, not for reasons of technology or
law. What the GPL tries to do and how it does it is quite foreign to
most who practice law. Humans don't like foreign concepts. Heck, GPL-2
doesn't even remotely read like something that came off a lawyer's desk.


 
 There is nothing non-void in the GPL that stops you from distributing 
 binaries.

 That's a question of packaging and bundling, which is not covered by the
 GPL. But kernel code and kernel modules are not mere bundles, they are
 derivative works by virtue of how tightly they integrate with the
 kernel, and how the code can only ever run unchanged on Linux.
 
 If a kernel uses ZFS, you have to decide on whether the kernel is a 
 derivative 
 work of ZFS or whether just a collective work exists.
 
 _Using_ ZFS definitely does not make ZFS a derivative work.

I never said it did. I was concentrating on those parts of ZFS that
interact with kernel internals - that might not be been entirely clear

You are making a spurious claim by saying you have to decide on whether
the kernel is a derivative work of ZFS or ...

In what possible way could the entire Linux kernel be considered a
derivative work of ZFS? That doesn't make any sense.



-- 
Alan McKinnon
alan.mckin...@gmail.com




Re: [gentoo-user] grub2 or kernel config - unable to properly boot

2013-08-27 Thread Francisco Ares
2013/8/27 Francisco Ares fra...@gmail.com


 2013/8/27 Francisco Ares fra...@gmail.com


 2013/8/27 Francisco Ares fra...@gmail.com


 2013/8/27 Francisco Ares fra...@gmail.com


 2013/8/27 Michael Hampicke m...@hadt.biz

 Am 26.08.2013 20:11, schrieb Francisco Ares:
  Hi, Michael, thanks for you reply.
 
  Please forgive me for not having mentioned grub2-mkconfig and
  grub2-install. The mentioned grub.cfg was a sample from a working
 system,
  with legacy grub:0, from which I have recovered parts of the kernel
 command
  line parameters.
 
  After genkernel finished to build the kernel, I've issued:
 
  grub2-mkconfig -o /boot/grub2/grub.cfg
  grub2-install /dev/sda
 
  Sorry for this.
  Francisco
 On a failed boot, can you reach the rescue system from the initramfs?
 (The message is something like enter password for rescue or ctrl+d) If
 so, are you able mount your actual root partiton (sda5) manually?


 No, unfortunately. But I am able to use the grub console prior to boot.

 By doing so, I have listed the command about to be used to boot the
 first entry in the grub menu, it installs some modules. In regard of file
 systems, it only loads a ext2 module, and the root partition is ext4
 formated.

 Although this kernel has ext2, ext3 and ext4 built in (not modules),
 can this be a cue?  Right now I am preparing to format the root partition
 as ext2, just to check this out.

 Thanks again
 Francisco


 It didn't work, so I suppose the embedded ext2, ext3 and ext4 in the
 kernel is not the issue, and might be working.  Going to explore the grub
 console now.

 Thanks
 Francisco



 In the grub console, prior to boot, I was able to mount any partition
 using commands like:

 root=(hd0,msdos5)

 and then listing the directory tree structure with  ls /  gave the
 expected results.

 Francisco



 I think I might have found it.  Although I have selected in the kernel
 menuconfig to compress the initramfs using gzip and deselected all other
 decompression forms. a simple file initramfs-xxx told me that it was XZ
 compressed data, so now I am rebuilding the kernel with all decompression
 algorithms built in.

 I will (hope) soon post the results.

 Thanks,
 Francisco



It did not work :-(

Francisco


Re: [gentoo-user] grub2 or kernel config - unable to properly boot

2013-08-27 Thread Francisco Ares
2013/8/27 Neil Bothwick n...@digimed.co.uk

 On Tue, 27 Aug 2013 08:31:05 -0300, Francisco Ares wrote:

  Any hints on how to diagnose a initramfs?  AFAIK it is a filesystem.
  How can I mount it to check its contents?


 http://www.thegeekstuff.com/2009/07/how-to-view-modify-and-recreate-initrd-img/


 --
 Neil Bothwick

 Why is the word abbreviation so long?



Thanks, Neil, gonna check it right now.

Francisco


Re: [gentoo-user] Optional /usr merge in Gentoo

2013-08-27 Thread Joerg Schilling
Alan McKinnon alan.mckin...@gmail.com wrote:

 The permissions issue is an artifact of how NFS works. Sun designed it
 to deliver entire filesystems over the network (most often /usr and-or
 /home) to trusted clients. trusted being the operative word. To get
 Unix permissions to work, the uid on the share and client have to match
 - that's why we also have NIS - but I've never seen NIS actually used
 anywhere, so UIDs tend to be a mix 'n match and almost always devolves
 into full access to get it to work.

This is how NFS was designed before 1987, when Kerberos came up

 CIFS work different, it auths users by username and supports per-field
 access control. That's how that protocol works.

This is how NFSv4 works.

BTW: as long as Linux does not support modern ACLs (originally defined by NTFS, 
now standardized by NFSv4) Linux will not be able to take advantage from CIFS 
ACLs.

Jörg

-- 
 EMail:jo...@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin
   j...@cs.tu-berlin.de(uni)  
   joerg.schill...@fokus.fraunhofer.de (work) Blog: 
http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily



Re: [gentoo-user] looking for a couple of systemd units

2013-08-27 Thread covici
Stefan G. Weichinger li...@xunil.at wrote:

 Am 27.08.2013 18:46, schrieb Stefan G. Weichinger:
  Am 27.08.2013 18:40, schrieb Stefan G. Weichinger:
  
  Nearly there ... it also needs a socket ...
  
  For the records:
  
  # tftpd.service
  
  [Unit]
  Description=hpa's original TFTP daemon
  
  [Service]
  EnvironmentFile=/etc/conf.d/in.tftpd
  ExecStart=/usr/sbin/in.tftpd ${INTFTPD_OPTS}
 
 sorry, this is not working as intended.
 
 The syntax does not match (I thought I could read the default config-file).
 
 For now:
 
 ExecStart=/usr/sbin/in.tftpd /mnt/mypxe

Omit the braces.
-- 
Your life is like a penny.  You're going to lose it.  The question is:
How do
you spend it?

 John Covici
 cov...@ccs.covici.com



Re: [gentoo-user] looking for a couple of systemd units

2013-08-27 Thread Stefan G. Weichinger
Am 27.08.2013 20:38, schrieb Stefan G. Weichinger:

 No bugs filed yet for these:
 
 in.tftpd mythbackend nfs server vixie-cron rsync

Filed some related bugs now:

https://bugs.gentoo.org/show_bug.cgi?id=482712
https://bugs.gentoo.org/show_bug.cgi?id=482714
https://bugs.gentoo.org/show_bug.cgi?id=482716
https://bugs.gentoo.org/show_bug.cgi?id=482718
https://bugs.gentoo.org/show_bug.cgi?id=482720

We'll see ...

Greets, Stefan



Re: [gentoo-user] Optional /usr merge in Gentoo

2013-08-27 Thread Alan McKinnon
On 27/08/2013 11:26, Joerg Schilling wrote:
 Joerg Schilling joerg.schill...@fokus.fraunhofer.de wrote:
 
 Alan McKinnon alan.mckin...@gmail.com wrote:

 Isn't it strange that those people seem to have less problems with closed 
 source than with a license that gives more freedom than the GPL? But 
 you are correct that the problem seem to be humans and not a license text.

 You are aware that the GPL was not really intended to be used together
 with other licenses? It was really intended to create an entire
 operating system, all of which was 100% licensed as GPL, all of which
 comprise an original work written from scratch

 But it has been proven that you cannot create a 100% GPL OS.
 More than 50% of all Linux distros are under different licenses...

 
 Sorry, this should be: More than 50% of a typical Linux distro is 
 under different licenses...


All we can state for sure is that no-one has yet created a fully 100%
GPL operating system. If you persuade FSF to relicense glibc to you as
GPL it *is* possible to do it for kernel and (a somewhat crippled)
userland. But not for firmware.

But this is beside the point, I was illustrating Stallman's intent, not
whether that intent could be realized or not.


-- 
Alan McKinnon
alan.mckin...@gmail.com




Re: [gentoo-user] How can I unsubscribe from gentoo-news?

2013-08-27 Thread Alan McKinnon
On 27/08/2013 22:19, Jarry wrote:
 On 27-Aug-13 21:59, Alan McKinnon wrote:
 On 27/08/2013 18:35, Jarry wrote:

 I'd like to stop receiving news, how can I do that?

 Or better said, I'd like to receive gentoo-news only
 on one of my 6 servers, and turn this feature off
 on remaining 5...


 It's in the mail headers:
 mailto:gentoo-user+unsubscr...@lists.gentoo.org

 you would obviously use -news and not -user
 
 I probably did not express myself correctly. What I mean
 is portage-news. News I get sometimes after emerge --sync.
 Not news-mailinglist...

Ah, that makes more sense ;-)
I *did* wonder why you hadn't thought to read the headers!

from the GLEP:

Users who really don't care about news items can use rsync_excludes to
filter out the metadata/news/ directory.

http://www.gentoo.org/proj/en/glep/glep-0042.html


man 5 make.conf also documents FEATURES=news
Oddly enough, we all know how to enable FEATURES (just add to the list),
but I have no idea how to disable them!

I don't have news in my FEATURES but I do get the newsitems. Is

FEATURES=-news

even valid sysntax?


-- 
Alan McKinnon
alan.mckin...@gmail.com




Re: [gentoo-user] looking for a couple of systemd units

2013-08-27 Thread Stefan G. Weichinger
Am 27.08.2013 22:52, schrieb cov...@ccs.covici.com:

 Omit the braces.

thanks ... doesn't work here anyway ... because $INTFTPD_OPTS also
includes ${INTFTPD_PATH} from within /etc/conf.d/in.tftpd (which can't
be resolved this way).

What works:

EnvironmentFile=/etc/conf.d/in.tftpd
ExecStart=/usr/sbin/in.tftpd -R 4096:32767 -s $INTFTPD_PATH

but ... still not satisfying. I think there might be a separate
conf.d-file or something.

Stefan



Re: [gentoo-user] Optional /usr merge in Gentoo

2013-08-27 Thread Joerg Schilling
Alan McKinnon alan.mckin...@gmail.com wrote:

  That's a question of packaging and bundling, which is not covered by the
  GPL. But kernel code and kernel modules are not mere bundles, they are
  derivative works by virtue of how tightly they integrate with the
  kernel, and how the code can only ever run unchanged on Linux.
  
  If a kernel uses ZFS, you have to decide on whether the kernel is a 
  derivative 
  work of ZFS or whether just a collective work exists.
  
  _Using_ ZFS definitely does not make ZFS a derivative work.

 I never said it did. I was concentrating on those parts of ZFS that
 interact with kernel internals - that might not be been entirely clear

You wrote that modules become derivatives of the Linux kernel and this is the 
same as writing ZFS would become a kernel derivative.

The linux kernel does not come with a modern VFS implementation, so if you like 
to use ZFS on Linux you first need to provide a suitable VFS interface.
ZFS will not interact with the Linux kernel directly but with the expected VFS 
layer. Shouldn't it be possible to put this intermediate layer under a license 
that makes even the zealots happy?

 You are making a spurious claim by saying you have to decide on whether
 the kernel is a derivative work of ZFS or ...

If you go the non-lawful Stallman way and insist in a derivative work to be 
build, then the linux kernel is the derivative work. I prefer to assume that 
this just builds a collective work ;-)

 In what possible way could the entire Linux kernel be considered a
 derivative work of ZFS? That doesn't make any sense.

I am just quoting claims from Stallman ;-)

Jörg

-- 
 EMail:jo...@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin
   j...@cs.tu-berlin.de(uni)  
   joerg.schill...@fokus.fraunhofer.de (work) Blog: 
http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily



Re: [gentoo-user] How can I unsubscribe from gentoo-news?

2013-08-27 Thread Paul Hartman
On Tue, Aug 27, 2013 at 3:59 PM, Alan McKinnon alan.mckin...@gmail.com wrote:
 man 5 make.conf also documents FEATURES=news
 Oddly enough, we all know how to enable FEATURES (just add to the list),
 but I have no idea how to disable them!

 I don't have news in my FEATURES but I do get the newsitems. Is

 FEATURES=-news

 even valid sysntax?

I believe that is the correct way to do it.



Re: [gentoo-user] How can I unsubscribe from gentoo-news?

2013-08-27 Thread Michael Orlitzky
On 08/27/2013 05:09 PM, Paul Hartman wrote:
 On Tue, Aug 27, 2013 at 3:59 PM, Alan McKinnon alan.mckin...@gmail.com 
 wrote:
 man 5 make.conf also documents FEATURES=news
 Oddly enough, we all know how to enable FEATURES (just add to the list),
 but I have no idea how to disable them!

 I don't have news in my FEATURES but I do get the newsitems. Is

 FEATURES=-news

 even valid sysntax?
 
 I believe that is the correct way to do it.
 

Or stick 'eselect news read new' in one of your coworkers' ~/.bashrc files.




[gentoo-user] portage 2.2 in ~amd64

2013-08-27 Thread gottlieb
I was away for two weeks.  I just resynced and see that 2.2.1 is now in
testing (and my current version 2.1.13.1 is not in the tree).

Am I correct in believing that when I upgrade to 2.2.1, all the commands
from 2.1.x.y will continue to work?  I know that several readers have
used 2.2 for years with success.

thanks,
allan



Re: [gentoo-user] How can I unsubscribe from gentoo-news?

2013-08-27 Thread Mick
On Tuesday 27 Aug 2013 22:09:12 Paul Hartman wrote:
 On Tue, Aug 27, 2013 at 3:59 PM, Alan McKinnon alan.mckin...@gmail.com 
wrote:
  man 5 make.conf also documents FEATURES=news
  Oddly enough, we all know how to enable FEATURES (just add to the list),
  but I have no idea how to disable them!
  
  I don't have news in my FEATURES but I do get the newsitems. Is
  
  FEATURES=-news
  
  even valid sysntax?
 
 I believe that is the correct way to do it.

In case it doesn't work or cause an error, also try  marks:

FEATURES=-news

-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] portage 2.2 in ~amd64

2013-08-27 Thread Dale
gottl...@nyu.edu wrote:
 I was away for two weeks.  I just resynced and see that 2.2.1 is now in
 testing (and my current version 2.1.13.1 is not in the tree).

 Am I correct in believing that when I upgrade to 2.2.1, all the commands
 from 2.1.x.y will continue to work?  I know that several readers have
 used 2.2 for years with success.

 thanks,
 allan



I use unstable here and the only difference I have seen is the addition
of more options, better handling of blocks and such as that.  I would
upgrade and then give the man page a good looking over.  You may find
some things there that interest you and may be helpful in some situations. 

I don't recall any commands changing tho.  Still emerge and such. 

Hope that helps.

Dale

:-)  :-) 

-- 
I am only responsible for what I said ... Not for what you understood or how 
you interpreted my words!




Re: [gentoo-user] portage 2.2 in ~amd64

2013-08-27 Thread gottlieb
On Tue, Aug 27 2013, Dale wrote:

 gottl...@nyu.edu wrote:
 I was away for two weeks.  I just resynced and see that 2.2.1 is now in
 testing (and my current version 2.1.13.1 is not in the tree).

 Am I correct in believing that when I upgrade to 2.2.1, all the commands
 from 2.1.x.y will continue to work?  I know that several readers have
 used 2.2 for years with success.

 thanks,
 allan



 I use unstable here and the only difference I have seen is the addition
 of more options, better handling of blocks and such as that.  I would
 upgrade and then give the man page a good looking over.  You may find
 some things there that interest you and may be helpful in some situations. 

 I don't recall any commands changing tho.  Still emerge and such. 

 Hope that helps.

 Dale

I does indeed.
Thanks,
allan



[gentoo-user] Re: The NVIDIA/Kernel fiasco -- is it safe to sync yet?

2013-08-27 Thread »Q«
On Tue, 27 Aug 2013 07:57:20 +0200
Alan McKinnon alan.mckin...@gmail.com wrote:

 On 27/08/2013 04:06, »Q« wrote:
  On Mon, 26 Aug 2013 08:02:32 +0200
  Alan McKinnon alan.mckin...@gmail.com wrote:
  
  That list is the list of kernels that nVidia supports, which is
  easy to find.
  
  Where?  AIUI from reading various threads about this, sometimes that
  info can be found in nVidia's developer web forum, but I've never
  been able to find it there.  nVidia's READMEs give a minimum kernel
  version, but no max.
 
 So ask nVidia to clearly and unambiguously state in an easily found
 place what kernels *they* support.

Nah, they wouldn't help.  I only asked you because you said it was easy
to find.