Re: [gentoo-user] USE ruby_targets_ruby20

2013-11-16 Thread Tanstaafl

On 2013-11-15 5:18 PM, Alan McKinnon alan.mckin...@gmail.com wrote:

On 15/11/2013 23:58, Tanstaafl wrote:

Now, the question is, what the heck is thin-provisioning in lvm2, am I
using it, and if not, do I need it?

I'm pretty sure I'm not using it, but how to be sure?



Google for thin-provisioning+in+lvm2, first three hits.

In a nutshell, you can define an LV without actually allocating the
storage yet that you are not using, it gets allocated on demand if you
will.

It's similar in concept to the general idea behind sparse files, lazy
initialization, fixed size vs dynamically allocated disks for VMs and do
on: allocate a resource only when you need it.

This lets you over-commit storage space as much of it is not being used
in practice.

If you use thin provisioning, you already know it. There are steps you
must take to put it to use.


Thanks Alan...

But fyi, my last questions were more just me talking to myself... of 
course my google-fu is fairly strong, and like you I found all of my 
answers this morning when I searched...


I chose not to use thin provisioning in vmWare because I just don't like 
the idea... maybe irrational, because I do see the advantages.


I'd be curious to learn if anyone here uses it with lvm, and what their 
experience has been - especially, are there any gotcha's to watch out for?


But for now, to rebuild my kernels without lvm thin provisioning (it is 
enabled) and emerge -C thin-provisioning-tools...




[gentoo-user] Thin provisioning with LVM

2013-11-16 Thread Tanstaafl

Just wanted to start a new thread about this...

Would appreciate any responses from anyone using this...

Why did you choose it?

What has your experience been?

Any problems? If so, how did you overcome them?

If you had to do it all over again, would you still use it? If so, would 
you do anything differently?


It appears that the best use scenario may be for cloud hosting providers 
like Linode - and they of course would also benefit greatly from the new 
systemd init system (which was funded/designed by RedHat primarily for 
this specific use case).




[gentoo-user] Tell cron to send email using sender:passwd@host:587 syntax?

2013-11-16 Thread Tanstaafl

Hi all...

I'm a little confused by something...

If I change the MAILURI in make.conf from the default, ie:


#PORTAGE_ELOG_MAILURI=root /usr/sbin/sendmail
PORTAGE_ELOG_MAILURI=recipi...@example.com 
sender:pas...@smtp.example.com:100587


I'm guessing portage still uses /usr/sbin/sendmail, but using the above 
defined credentials?


The reason I ask is, I have a new system I've been working on that will 
eventually replace my old mail server. I'm getting close, but now I'm 
tweaking a few system logging and reporting things, and while my system 
successfully sends emerge logs with the above, cron job emails are not 
successfully sent, and I get a message in the logs about my client being 
rejected (not allowed to relay), which is as it should be.


I think all I need to do is figure out how to tell cron to send emails 
the same way as portage using sender:pas...@smtp.example.com:587 (using 
TLS), but alas, my google-fu is failing on this one... I can't find a 
single mention anywhere of alternate examples of sending emails with 
cron, much less using sender:passwd@host:587 syntax...


So... anyone? I can't imagine it isn't possible... ?



Re: [gentoo-user] Tell cron to send email using sender:passwd@host:587 syntax?

2013-11-16 Thread Tanstaafl

On 2013-11-16 9:05 AM, Tanstaafl tansta...@libertytrek.org wrote:

Hi all...

I'm a little confused by something...

If I change the MAILURI in make.conf from the default, ie:


#PORTAGE_ELOG_MAILURI=root /usr/sbin/sendmail
PORTAGE_ELOG_MAILURI=recipi...@example.com
sender:pas...@smtp.example.com:100587


I'm guessing portage still uses /usr/sbin/sendmail, but using the above
defined credentials?


Well... now I'm more confused...

I just tested this by re-emerging something tiny and watching the 
logs... and there was *nothing* in the logs evidencing an email being 
sent (if it was using my postfix install, it would have been in the logs)...


But, the email was still successfully sent/received by my other server.

Wtf??? Does portage have it's own TLS capable MAIL binary/client?



Re: [gentoo-user] Tell cron to send email using sender:passwd@host:587 syntax?

2013-11-16 Thread Neil Bothwick
On Sat, 16 Nov 2013 09:05:52 -0500, Tanstaafl wrote:

  #PORTAGE_ELOG_MAILURI=root /usr/sbin/sendmail
  PORTAGE_ELOG_MAILURI=recipi...@example.com
  sender:pas...@smtp.example.com:100587  
 
 I'm guessing portage still uses /usr/sbin/sendmail, but using the above 
 defined credentials?

Not according to mail.conf.example

# mailserver: smtp server that should be used to deliver the mail (defaults to 
localhost)
# alternatively this can also be a the path to a sendmail binary if you don't 
want to use smtp

So it uses SMTP by default, Python has standard libraries that make this
simple, and only uses sendmail when you explicitly instruct it to do so.


-- 
Neil Bothwick

If nothing sticks to Teflon, how do they stick teflon on the pan?


signature.asc
Description: PGP signature


Re: [gentoo-user] Tell cron to send email using sender:passwd@host:587 syntax?

2013-11-16 Thread Tanstaafl

On 2013-11-16 9:56 AM, Neil Bothwick n...@digimed.co.uk wrote:

So it uses SMTP by default, Python has standard libraries that make this
simple, and only uses sendmail when you explicitly instruct it to do so.


Ok... so... the question remains - can I tell cron to send mail the same 
way?




Re: [gentoo-user] Tell cron to send email using sender:passwd@host:587 syntax?

2013-11-16 Thread Neil Bothwick
On Sat, 16 Nov 2013 09:59:09 -0500, Tanstaafl wrote:

 On 2013-11-16 9:56 AM, Neil Bothwick n...@digimed.co.uk wrote:
  So it uses SMTP by default, Python has standard libraries that make
  this simple, and only uses sendmail when you explicitly instruct it
  to do so.  
 
 Ok... so... the question remains - can I tell cron to send mail the
 same way?

You don't, cron sends mail via sendmail, to the recipient specified by
the MAILTO variable in the crontab file.


-- 
Neil Bothwick

Keep your words soft and sweet in case you have to eat them.


signature.asc
Description: PGP signature


Re: [gentoo-user] Tell cron to send email using sender:passwd@host:587 syntax?

2013-11-16 Thread Tanstaafl

On 2013-11-16 10:04 AM, Neil Bothwick n...@digimed.co.uk wrote:

On Sat, 16 Nov 2013 09:59:09 -0500, Tanstaafl wrote:


On 2013-11-16 9:56 AM, Neil Bothwick n...@digimed.co.uk wrote:

So it uses SMTP by default, Python has standard libraries that make
this simple, and only uses sendmail when you explicitly instruct it
to do so.


Ok... so... the question remains - can I tell cron to send mail the
same way?


You don't, cron sends mail via sendmail, to the recipient specified by
the MAILTO variable in the crontab file.


Thanks Neil, but... you said 'You don't'... not 'You CAN'T'...

Can you elaborate on this? If this is not possible - why is it not 
possible? In other words, if portage can do it, why can't cron?




Re: [gentoo-user] Tell cron to send email using sender:passwd@host:587 syntax?

2013-11-16 Thread Neil Bothwick
On Sat, 16 Nov 2013 10:17:07 -0500, Tanstaafl wrote:

  Ok... so... the question remains - can I tell cron to send mail the
  same way?  
 
  You don't, cron sends mail via sendmail, to the recipient specified by
  the MAILTO variable in the crontab file.  
 
 Thanks Neil, but... you said 'You don't'... not 'You CAN'T'...
 
 Can you elaborate on this? If this is not possible - why is it not 
 possible? In other words, if portage can do it, why can't cron?

Well, it's possible, you just patch cron to add SMTP code so that it can
send mail itself, rather than using the unix standard approach of doing
its own job and passing other tasks onto programs designed for those jobs.

Cron runs cron jobs, sendmail sends mail.


-- 
Neil Bothwick

A real programmer never documents his code.
It was hard to make, it should be hard to read


signature.asc
Description: PGP signature


Re: [gentoo-user] Tell cron to send email using sender:passwd@host:587 syntax?

2013-11-16 Thread Tanstaafl

On 2013-11-16 12:32 PM, Neil Bothwick n...@digimed.co.uk wrote:

sendmail sends mail.


And apparently so does portage...

So, anyone care to venture a guess as to why the gentoo devs decided to 
implement their own smtp server just so portage could send emails all by 
itself, rather than requiring the installation of an MTA?




[gentoo-user] re: a couple of power management questions

2013-11-16 Thread Alexander Kapshuk
I've been setting up power management on my HP compaq laptop using this
article, http://www.gentoo.org/doc/en/power-management-guide.xml, as a
reference.

Just a couple of questions I thought I'd ask.

(1). CONFIG_ACPI_VIDEO seems to be missing in the 3.10.17-gentoo kernel,
but is available in 3.10.7-r1.
for f in /usr/src/*/.config; do echo $f; grep CONFIG_ACPI_VIDEO $f ||
echo $?; done
/usr/src/linux-3.10.17-gentoo/.config
1
/usr/src/linux-3.10.7-gentoo-r1/.config
CONFIG_ACPI_VIDEO=y
/usr/src/linux/.config
1

(2). I've got my current kernel set up to use the 'userspace' governor
by default.

grep ^CONFIG_CPU_FREQ_DEFAULT_GOV .config
CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE=y

The settings below were set to use 'ondemand' by default, so I changed
them to 'userspace' to correspond to the kernel setting above. Is that
right, or should I have left it set to the original value, or set it to
something else?

/etc/laptop-mode/conf.d/cpufreq.conf
s/ondemand/userspace/
LM_AC_CPU_GOVERNOR=userspace
s/ondemand/userspace/
NOLM_AC_CPU_GOVERNOR=userspace

Thanks.




Re: [gentoo-user] Tell cron to send email using sender:passwd@host:587 syntax?

2013-11-16 Thread Benjamin Lee
On Sat, 16 Nov 2013 09:05:52 -0500, Tanstaafl tansta...@libertytrek.org wrote:
[...]
 I think all I need to do is figure out how to tell cron to send emails 
 the same way as portage using sender:pas...@smtp.example.com:587 (using 
 TLS), but alas, my google-fu is failing on this one... I can't find a 
 single mention anywhere of alternate examples of sending emails with 
 cron, much less using sender:passwd@host:587 syntax...
 
 So... anyone? I can't imagine it isn't possible... ?

You're asking about cron, which is the wrong question.

Run a local MTA and have it relay everything through the remote SMTP
server.  This is 3 lines in a Postfix configuration file [1] (only 1
line if you don't require authentication).  Any MTA can do this, as it
is a very common setup.

Then all programs (not just cron) that use the sendmail binary or relay
to localhost:25 will work automatically.

[1] http://www.postfix.org/SOHO_README.html#client_sasl_enable


-- 
Benjamin Lee
http://www.b1c1l1.com/


signature.asc
Description: PGP signature


Re: [gentoo-user] Tell cron to send email using sender:passwd@host:587 syntax?

2013-11-16 Thread Tanstaafl

On 2013-11-16 2:29 PM, Benjamin Lee b...@b1c1l1.com wrote:

On Sat, 16 Nov 2013 09:05:52 -0500, Tanstaafl tansta...@libertytrek.org wrote:
[...]

I think all I need to do is figure out how to tell cron to send emails
the same way as portage using sender:pas...@smtp.example.com:587 (using
TLS), but alas, my google-fu is failing on this one... I can't find a
single mention anywhere of alternate examples of sending emails with
cron, much less using sender:passwd@host:587 syntax...

So... anyone? I can't imagine it isn't possible... ?


You're asking about cron, which is the wrong question.


No...

I know all about running a local MTA.

My real question is, why can portage do this (send emails without a 
local MTA installed)?


Why did the gentoo devs decide to build an smtp client into it capable 
of doing TLS, instead of simply requiring an MTA to be able to email 
emerge logs?




Re: [gentoo-user] Tell cron to send email using sender:passwd@host:587 syntax?

2013-11-16 Thread Manuel McLure
On Sat, Nov 16, 2013 at 12:03 PM, Tanstaafl tansta...@libertytrek.orgwrote:

 No...

 I know all about running a local MTA.

 My real question is, why can portage do this (send emails without a local
 MTA installed)?

 Why did the gentoo devs decide to build an smtp client into it capable of
 doing TLS, instead of simply requiring an MTA to be able to email emerge
 logs?


They didn't. The smtp client is part of Python, not part of portage. If
you're developing in Python, you just call Python's mail API and let Python
take care of the mail, instead of calling the local MTA. Easier and faster
development.

Cron is written in C where you don't get mail functionality for free so
it's easier to use the local MTA.

-- 
Manuel A. McLure WW1FA man...@mclure.org http://www.mclure.org
...for in Ulthar, according to an ancient and significant law,
no man may kill a cat.   -- H.P. Lovecraft


Re: [gentoo-user] Tell cron to send email using sender:passwd@host:587 syntax?

2013-11-16 Thread Alan McKinnon
On 16/11/2013 19:42, Tanstaafl wrote:
 On 2013-11-16 12:32 PM, Neil Bothwick n...@digimed.co.uk wrote:
 sendmail sends mail.
 
 And apparently so does portage...
 
 So, anyone care to venture a guess as to why the gentoo devs decided to
 implement their own smtp server just so portage could send emails all by
 itself, rather than requiring the installation of an MTA?
 


portage DOES NOT implement an MTA. From Neil's earlier mail:

Python has standard libraries that make this
simple, and only uses sendmail when you explicitly instruct it to do so

That's about as simple as anything can get: one import, set up a few
config variables, one function call and your mail gets sent. It's far
easier than adding sendmail as a dep.

Or look at it this way: You need python to run portage, therefore you
already have basic mail sending capabilities already built-in. So use 'em

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




Re: [gentoo-user] Thin provisioning with LVM

2013-11-16 Thread Alan McKinnon
On 16/11/2013 15:20, Tanstaafl wrote:
 Just wanted to start a new thread about this...
 
 Would appreciate any responses from anyone using this...
 
 Why did you choose it?
 
 What has your experience been?
 
 Any problems? If so, how did you overcome them?
 
 If you had to do it all over again, would you still use it? If so, would
 you do anything differently?
 
 It appears that the best use scenario may be for cloud hosting providers
 like Linode - and they of course would also benefit greatly from the new
 systemd init system (which was funded/designed by RedHat primarily for
 this specific use case).
 


Do you need to overcommit storage? On this question, if you need it then
you are already very aware that you need it as you will have way too
many customers and way too few disk drives.

For all other general cases you do not need it, you just buy more (cheap
in relative terms) drives.

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




Re: [gentoo-user] Tell cron to send email using sender:passwd@host:587 syntax?

2013-11-16 Thread Neil Bothwick
On Sat, 16 Nov 2013 15:03:57 -0500, Tanstaafl wrote:

 My real question is, why can portage do this (send emails without a 
 local MTA installed)?

I already answered that, it uses Python's smtlib (or something equivalent,
I haven't checked). That's a core Python library and since portage
depends on Python it can be sure the library is available, which isn't
necessarily true of an MTA.


-- 
Neil Bothwick

3 things happen as you age: 1) Your memory goes; 2) uh..um


signature.asc
Description: PGP signature


[gentoo-user] Lenovo X201 waking from sleep crash after 3.8.10 kernel

2013-11-16 Thread Kfir Lavi
Hi,
My computer crash when waking up from sleep. I just see black screen and
then the computer boots up.
This happens in every kernel after 3.8.10. kernel 3.8.10  works fine and
the computer wakes up as expected.
Can someone help me debug this issue?

I'm using:
GRUB_CMDLINE_LINUX=intel_pstate=disable

Also tried:
GRUB_CMDLINE_LINUX=intel_pstate=disable modeset=1 i915_enable_rc6=1
i915_enable_fbc=1 lvds_downclock=1
But it didn't change a thing.

Thanks,
Kfir