[gentoo-user] Re: Ruby is borked on my system

2014-06-27 Thread Hans de Graaff
On Thu, 26 Jun 2014 23:36:00 -0400, Ajai Khattri wrote:

 !!! All ebuilds that could satisfy
 virtual/rubygems[ruby_targets_ruby18]
 have been masked.

You still have packages on your system that have been installed with the 
ruby18 RUBY_TARGET. It's not immediately clear which package that is from 
the output, but I suspect dev-ruby/rubygems? Re-emerging the packages 
still installed for ruby18 should fix this.

Hans




Re: [gentoo-user] Tuneing ext4 for reliability (not necessaryly speed)

2014-06-27 Thread thegeezer
On 06/26/2014 05:13 PM, meino.cra...@gmx.de wrote:
 Hi,

 for backup storage (see previous thread) I decided to use ext4. After
 craling the net the reports I found about brtfs seemed to mixed to me.
 If there are alternatives I overlooked...

 I searched the net for answeres to the following question, but only
 found outdated answeres...:

 What options are recommended to set while initializing the filesystem
 and later via tune2fs to increase the reliability of the filesystem?

 Thank you very much in advance for any help! :)
 Best regards,
 mcc






you might want to look up
# tune2fs -o journal_data_ordered



Re: [gentoo-user] Problem on Hardware Update

2014-06-27 Thread Walter Dnes
On Thu, Jun 26, 2014 at 07:50:10PM -0300, João Matos wrote

 I've updated the kernel (3.7.4 to 3.14.4), and the USB problem was solved,
 I don't know why. :)
 
 Now I'm having some other issues, but I've decide recompile the whole
 system before solving them. At least I'm already using my gentoo.

  I would boot with install ISO or rescueCD, chroot, make the necessary
changes and then emerge system and emerge world.  The necessary
changes are...

1) CFLAGS.  I use...
CFLAGS=-O2 -march=native -mfpmath=sse -fomit-frame-pointer -pipe 
-fno-unwind-tables -fno-asynchronous-unwind-tables
CXXFLAGS=${CFLAGS}

2) Check your USE flags (in both make.conf and package.use).  I have an
older Dell with an Intel.  I have mmx mmxext sse sse2 sse3 ssse3 USE
flags.  AMD cpus benefit from 3dnow 3dnowext and possibly other AMD-
specific flags.

-- 
Walter Dnes waltd...@waltdnes.org
I don't run desktop environments; I run useful applications



Re: [gentoo-user] Re: OT: Mapping random numbers (PRNG)

2014-06-27 Thread thegeezer
On 06/26/2014 11:07 PM, Kai Krakow wrote:

 It is worth noting that my approach has the tendency of generating random 
 characters in sequence.

sorry but had to share this http://dilbert.com/strips/comic/2001-10-25/



[gentoo-user] Help! - I cannot emerge anything any more

2014-06-27 Thread Helmut Jarausch

Hi,

I am in a very strange situation where I cannot emerge anything any  
more.
Since it occurs on two different machines it won't be a hardware  
problem.


When I try to emerge a package, say portage, it builds it just fine and
starts to install it (for portage, the last file shown is  
etc/etc-update.conf)
but then it hangs forever - no CPU / no IO. It looks as if it has  
locked itself out.

This is even with a single package emerge.
The only interesting things which are shown by lsof  are


emerge  1747 root  mem   REG   0,16  46678298  
/usr/lib64/gconv/gconv-modules.cache (path dev=0,18)

emerge  1747 root0u  CHR  136,0  0t03 /dev/pts/0
emerge  1747 root1u  CHR  136,0  0t03 /dev/pts/0
emerge  1747 root2u  CHR  136,0  0t03 /dev/pts/0
emerge  1747 root3w  REG   8,17 149138217  
/var/log/slim.log

emerge  1747 root4u  a_inode0,90   21 [eventpoll]
emerge  1747 root5r FIFO0,8  0t091938 pipe
emerge  1747 root6uW REG   0,30097094  
/var/tmp/portage/sys-apps/.portage-.portage_lockfile

emerge  1747 root7w FIFO0,8  0t091938 pipe
emerge  1747 root8r FIFO   0,30  0t091946  
/var/tmp/portage/sys-apps/portage-/.ipc_in

emerge  1747 root   10u  CHR5,2  0t0 1127 /dev/ptmx
emerge  1747 root   11u  CHR  136,0  0t03 /dev/pts/0
emerge  1747 root   12w  REG   0,30   28295491945  
/var/tmp/portage/sys-apps/portage-/temp/build.log



Yes, I've tried to remove anything from /var/tmp/portage and the  
problem persists after reboot.


Has anybody seen something similar and where to search for the problem?

Many thanks,
Helmut



Re: [gentoo-user] Re: Ruby is borked on my system

2014-06-27 Thread Peter Humphrey
On Friday 27 June 2014 08:16:08 Hans de Graaff wrote:
 On Thu, 26 Jun 2014 23:36:00 -0400, Ajai Khattri wrote:
  !!! All ebuilds that could satisfy
  virtual/rubygems[ruby_targets_ruby18]
  have been masked.
 
 You still have packages on your system that have been installed with the
 ruby18 RUBY_TARGET. It's not immediately clear which package that is from
 the output, but I suspect dev-ruby/rubygems? Re-emerging the packages
 still installed for ruby18 should fix this.

Some months ago I found myself wondering why I had ruby on this box at all. A 
little poking around revealed that the only thing that needed it was thin-
provisioning. Once I'd added -thin to my USE flags and recompiled lvm2 I could 
get rid of ruby altogether.

This won't suit everybody, I know, but maybe it's worth considering.

-- 
Regards
Peter




Re: [gentoo-user] Problem on Hardware Update

2014-06-27 Thread João Matos
2014-06-27 5:54 GMT-03:00 Walter Dnes waltd...@waltdnes.org:

 On Thu, Jun 26, 2014 at 07:50:10PM -0300, João Matos wrote

  I've updated the kernel (3.7.4 to 3.14.4), and the USB problem was
 solved,
  I don't know why. :)
 
  Now I'm having some other issues, but I've decide recompile the whole
  system before solving them. At least I'm already using my gentoo.

   I would boot with install ISO or rescueCD, chroot, make the necessary
 changes and then emerge system and emerge world.  The necessary
 changes are...


I'm already doing it... I hope I can access my GUI after it.


 1) CFLAGS.  I use...
 CFLAGS=-O2 -march=native -mfpmath=sse -fomit-frame-pointer -pipe
 -fno-unwind-tables -fno-asynchronous-unwind-tables
 CXXFLAGS=${CFLAGS}


I'm using

CFLAGS=-O2 -march=native -mprefer-avx128 -mvzeroupper -pipe

that I took from http://wiki.gentoo.org/wiki/Safe_CFLAGS#FX- . But
I'll take a look on these ones.


 2) Check your USE flags (in both make.conf and package.use).  I have an
 older Dell with an Intel.  I have mmx mmxext sse sse2 sse3 ssse3 USE
 flags.  AMD cpus benefit from 3dnow 3dnowext and possibly other AMD-
 specific flags.

 --
 Walter Dnes waltd...@waltdnes.org
 I don't run desktop environments; I run useful applications




-- 
João Neto
Linux User #461527
http://br.linkedin.com/pub/jo%C3%A3o-de-matos/7/316/552


Re: [gentoo-user] smartctrl drive error @60%

2014-06-27 Thread Mick
On Thursday 26 Jun 2014 16:08:52 Neil Bothwick wrote:
 On Thu, 26 Jun 2014 09:14:39 -0500, Dale wrote:
  Holy sheep.  It worked.  I lost my jaw yesterday I think it was.  I'm
  not sure what I am going to be missing now.  :-D  Neil and Allan will so
  impressed.  LOL
  
  OK.  So, what will send me a message now?  Do I need to tell it to send
  me something, say from smart stuff, or does it just know to do it?
 
 You tell cron where to mail reports by setting MAILTO=you@wherever at the
 top of /etc/crontab. It will then mail you every time a cronjob produces
 output.

Or complete the /etc/ssmtp/ssmtp.conf and revaliases with the info I have sent 
you in this thread and set MAILTO=root in your /etc/crontab.

I would think that your ISP providers in the US will be blocking outgoing port 
25 to stop compromised MSWindows machines spamming the rest of us.  If you use 
my suggestion there shouldn't be a problem.

If your internet connection is down for some reason, you should get deadletter 
files in /root/ with the output.

-- 
Regards,
Mick


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


Re: [gentoo-user] Re: Ruby is borked on my system

2014-06-27 Thread Ajai Khattri

On Fri, 27 Jun 2014, Hans de Graaff wrote:


On Thu, 26 Jun 2014 23:36:00 -0400, Ajai Khattri wrote:


!!! All ebuilds that could satisfy
virtual/rubygems[ruby_targets_ruby18]
have been masked.


You still have packages on your system that have been installed with the
ruby18 RUBY_TARGET. It's not immediately clear which package that is from
the output, but I suspect dev-ruby/rubygems? Re-emerging the packages
still installed for ruby18 should fix this.


I rebuiltd rubygems and the virtual but still no go.
Then I rebuilt rdoc (which pulled in a bunch of other stuff) but now 
emerge world says I have nothing left to build.


Hopefully I can revdep-rebuild and all should be OK.


Thanks,
--
A



Re: [gentoo-user] Re: OT: Mapping random numbers (PRNG)

2014-06-27 Thread Matti Nykyri
 On Jun 27, 2014, at 11:55, thegeezer thegee...@thegeezer.net wrote:
 
 On 06/26/2014 11:07 PM, Kai Krakow wrote:
 
 It is worth noting that my approach has the tendency of generating random 
 characters in sequence.
 
 sorry but had to share this http://dilbert.com/strips/comic/2001-10-25/
 

This is a good one :) have really been thinking this same comic previosly when 
writing to this thread...


Re: [gentoo-user] Re: Ruby is borked on my system

2014-06-27 Thread covici
Peter Humphrey pe...@prh.myzen.co.uk wrote:

 On Friday 27 June 2014 08:16:08 Hans de Graaff wrote:
  On Thu, 26 Jun 2014 23:36:00 -0400, Ajai Khattri wrote:
   !!! All ebuilds that could satisfy
   virtual/rubygems[ruby_targets_ruby18]
   have been masked.
  
  You still have packages on your system that have been installed with the
  ruby18 RUBY_TARGET. It's not immediately clear which package that is from
  the output, but I suspect dev-ruby/rubygems? Re-emerging the packages
  still installed for ruby18 should fix this.
 
 Some months ago I found myself wondering why I had ruby on this box at all. A 
 little poking around revealed that the only thing that needed it was thin-
 provisioning. Once I'd added -thin to my USE flags and recompiled lvm2 I 
 could 
 get rid of ruby altogether.
 
 This won't suit everybody, I know, but maybe it's worth considering.

What exactly does this do -- is it for a thin client or something?


-- 
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



[gentoo-user] Re: Re: OT: Mapping random numbers (PRNG)

2014-06-27 Thread Kai Krakow
thegeezer thegee...@thegeezer.net schrieb:

 On 06/26/2014 11:07 PM, Kai Krakow wrote:

 It is worth noting that my approach has the tendency of generating random
 characters in sequence.
 
 sorry but had to share this http://dilbert.com/strips/comic/2001-10-25/

:-)

I'm no mathematician, but well, I think the swapping approach fixes it. What 
this makes clear, however, is that randomness on its own does not completely 
ensure unpredictable items if combined with other functions. One has to 
carefully think about it. I, for myself, would always stay away from using 
modulo to clip the random numbers. It will always create bias. My first idea 
introduced predictable followers (you always knew that the next char had a 
specific probability related to the tail length of the list).

You can actually learn from Dilbert comics. ;-)

-- 
Replies to list only preferred.




Re: [gentoo-user] smartctrl drive error @60%

2014-06-27 Thread Neil Bothwick
On Fri, 27 Jun 2014 14:22:09 +0100, Mick wrote:

  You tell cron where to mail reports by setting MAILTO=you@wherever at
  the top of /etc/crontab. It will then mail you every time a cronjob
  produces output.  
 
 Or complete the /etc/ssmtp/ssmtp.conf and revaliases with the info I
 have sent you in this thread and set MAILTO=root in your /etc/crontab.
 
 I would think that your ISP providers in the US will be blocking
 outgoing port 25 to stop compromised MSWindows machines spamming the
 rest of us.  If you use my suggestion there shouldn't be a problem.

It makes no difference whether you address it directly to your ISP
address or via an alias. The ISP won't block port 25 connections to its
own servers from its own customers, otherwise none of them could send
email at all!


-- 
Neil Bothwick

NOTE: In order to control energy costs the light at the end
of the tunnel has been shut off until further notice...


signature.asc
Description: PGP signature


Re: [gentoo-user] Re: Ruby is borked on my system

2014-06-27 Thread Neil Bothwick
On Fri, 27 Jun 2014 12:39:29 -0400, cov...@ccs.covici.com wrote:

  Some months ago I found myself wondering why I had ruby on this box
  at all. A little poking around revealed that the only thing that
  needed it was thin- provisioning. Once I'd added -thin to my USE
  flags and recompiled lvm2 I could get rid of ruby altogether.
  
  This won't suit everybody, I know, but maybe it's worth considering.  
 
 What exactly does this do -- is it for a thin client or something?

No, it's an LVM feature. It's one of those if you don't know what it is
you don't need it type features so I don't understand whey it is enabled
by default in the ebuild.

Thin volumes in LVM use only the space they need, so the space you
allocate to them, so you can create volumes with a total size greater
than the available disk space.


-- 
Neil Bothwick

The people who are wrapped up in themselves are overdressed.


signature.asc
Description: PGP signature


Re: [gentoo-user] Re: Re: OT: Mapping random numbers (PRNG)

2014-06-27 Thread Neil Bothwick
On Fri, 27 Jun 2014 19:50:15 +0200, Kai Krakow wrote:

 You can actually learn from Dilbert comics. ;-)

Unless you're a PHB, they never learn.


-- 
Neil Bothwick

You know how dumb the average person is? Well, statistically, half of
them are even dumber than that - Lewton, P.I.


signature.asc
Description: PGP signature


Re: [gentoo-user] Re: OT: Mapping random numbers (PRNG)

2014-06-27 Thread Matti Nykyri
 On Jun 27, 2014, at 0:00, Kai Krakow hurikha...@gmail.com wrote:
 
 Matti Nykyri matti.nyk...@iki.fi schrieb:
 
 If you are looking a mathematically perfect solution there is a simple
 one even if your list is not in the power of 2! Take 6 bits at a time of
 the random data. If the result is 62 or 63 you will discard the data and
 get the next 6 bits. This selectively modifies the random data but keeps
 the probabilities in correct balance. Now the probability for index of
 0-61 is 1/62 because the probability to get 62-63 out of 64 if 0.
 
 Why not do just something like this?
 
 index = 0;
 while (true) {
  index = (index + get_6bit_random()) % 62;
  output  char_array[index];
 }
 
 Done, no bits wasted. Should have perfect distribution also. We also don't 
 have to throw away random data just to stay within unaligned boundaries. The 
 unalignment is being taken over into the next loop so the error corrects 
 itself over time (it becomes distributed over the whole set).

Distribution will not be perfect. The same original problem persists. 
Probability for index 0 to 1 will be 2/64 and for 2 to 61 it will be 1/64. Now 
the addition changes this so that index 0 to 1 reflects to previous character 
and not the original index.

The distribution of like 10GB of data should be quite even but not on a small 
scale. The next char will depend on previous char. It is 100% more likely that 
the next char is the same or one index above the previous char then any of the 
other ones in the series. So it is likely that you will have long sets of same 
character.

Random means that for next char the probability is always even, 1/62. And like 
mentioned in Dilbert it is impossible to say that something is random but 
possible to say that it isn't.

If wasting 6bit of data seems large, do this:

index = get_6bit_random();
while (index  61) {
 index = 1;
 index |= get_1bit_random();
 index = 0x3F;
}
return index;

It will waste 1 bit at a time until result is less than 62. This will slightly 
change probabilities though :/


[gentoo-user] Re: smartctrl drive error @60%

2014-06-27 Thread Grant Edwards
On 2014-06-27, Neil Bothwick n...@digimed.co.uk wrote:
 On Fri, 27 Jun 2014 14:22:09 +0100, Mick wrote:

 You tell cron where to mail reports by setting MAILTO=you@wherever at
 the top of /etc/crontab. It will then mail you every time a cronjob
 produces output.  
 
 Or complete the /etc/ssmtp/ssmtp.conf and revaliases with the info I
 have sent you in this thread and set MAILTO=root in your
 /etc/crontab.
 
 I would think that your ISP providers in the US will be blocking
 outgoing port 25 to stop compromised MSWindows machines spamming the
 rest of us.  If you use my suggestion there shouldn't be a problem.

 It makes no difference whether you address it directly to your ISP
 address or via an alias. The ISP won't block port 25 connections to
 its own servers from its own customers, otherwise none of them could
 send email at all!

They _might_ block port 25 and require you to use SMTP/SSL on port
465.  More likely, they would still allow an initial plaintext
connection to port 25 and require use of the starttls command.

-- 
Grant Edwards   grant.b.edwardsYow! I wonder if I could
  at   ever get started in the
  gmail.comcredit world?




Re: [gentoo-user] Re: smartctrl drive error @60%

2014-06-27 Thread Rich Freeman
On Fri, Jun 27, 2014 at 5:26 PM, Grant Edwards
grant.b.edwa...@gmail.com wrote:
 They _might_ block port 25 and require you to use SMTP/SSL on port
 465.  More likely, they would still allow an initial plaintext
 connection to port 25 and require use of the starttls command.

Check with your ISP.  The rules vary.

I have Verizon FIOS and I'm pretty sure they block port 25 from their
own customers regardless of TLS.  I guess that must means the virus
writers have to write an extra 5 lines of code to extract the password
from the configuration of whatever email software is in use...

Rich