[gentoo-user] Re: eix settings for searching all layman overlays

2013-07-09 Thread Martin Vaeth
Thanasis  wrote:
>
> So, if I understand correctly, I _don't_ need any settings, and I should
> remove both KEEP_VIRTUALS and REMOTE_DEFAULT, and just use the -R option

You don't need KEEP_VIRTUALS.
Whether you prefer REMOTE_DEFAULT or not is up to you.

This has nothing to do with the necessity to call "eix-remote add"
after eix-sync: Otherwise your local portage tree will not get
"pushed" to the remote database /var/cache/eix/remote.eix

If you do not use REMOTE_DEFAULT, it is only less likely
that you will notice this since you will then see the outdated
local data only if you use -R  ;)




Re: [gentoo-user] k3b burning BD-Disk pretends to fail at 99.99%

2013-07-09 Thread Dale
Thomas Schmitt wrote:
> Hi,
>
> paul...@andor.dropbear.id.au wrote:
>>> "Settings" -> "Configure K3b" -> "Programs"
> michaelkintz...@gmail.com wrote:
>> This just displays what's there.  I can't change any of the listed programs 
>> from this screen.
> So one should rather repair growisofs.
> It is not a big deal.
>
>
> Have a nice day :)
>
> Thomas
>
>
>

I wonder if he can unmerge growisofs?  Or at least remove the file. 

Just a thought.

Dale

:-)  :-) 

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




Re: [gentoo-user] k3b burning BD-Disk pretends to fail at 99.99%

2013-07-09 Thread Thomas Schmitt
Hi,

paul...@andor.dropbear.id.au wrote:
> > "Settings" -> "Configure K3b" -> "Programs"

michaelkintz...@gmail.com wrote:
> This just displays what's there.  I can't change any of the listed programs 
> from this screen.

So one should rather repair growisofs.
It is not a big deal.


Have a nice day :)

Thomas




Re: [gentoo-user] Linux viruses

2013-07-09 Thread Dale
Walter Dnes wrote:
> On Tue, Jul 09, 2013 at 08:41:21PM -0500, Dale wrote
>
>> OK.  I do banking online.  I also pay my bills online along with social
>> sites as well.  I use Lastpass so that I can have some really REALLY
>> funky passwords.  I think I am one of few that has not had his facebook
>> hacked.  Anyway, I run Gentoo which is known here.  I use
>> Firefox/Seamonkey as my web browser.  So next question sort of takes us
>> back to my point with the knucklehead in the store.  Am I safer, much
>> safer, using Linux over windoze?  That answer would take into account
>> the fact that most virus/nasty code is written for windoze and not Linux
>> but also that Linux is just built with security in mind.  I belive that
>> I am much safer with Linux myself.
>   You are safer overall.  Just watch out for XSS (cross-site-scripting),
> java, Flash, and acrobat exploits.
>


That's my thinking but wanted a second opinion.  So far, I have never
had anything hacked.  That includes social sites, banking and other
financial stuff, email and other password protected stuff.  I keep
everything updated and use browsers that are popular and updated
frequently.  I think Lastpass helps too.  I have one good password and
it remember the really hard ones.  So far, it works well. 

Thanks for the second opinion.  It ended up like I thought.  ;-) 

Dale

:-)  :-) 

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




Re: [gentoo-user] Linux viruses

2013-07-09 Thread Walter Dnes
On Tue, Jul 09, 2013 at 08:41:21PM -0500, Dale wrote

> OK.  I do banking online.  I also pay my bills online along with social
> sites as well.  I use Lastpass so that I can have some really REALLY
> funky passwords.  I think I am one of few that has not had his facebook
> hacked.  Anyway, I run Gentoo which is known here.  I use
> Firefox/Seamonkey as my web browser.  So next question sort of takes us
> back to my point with the knucklehead in the store.  Am I safer, much
> safer, using Linux over windoze?  That answer would take into account
> the fact that most virus/nasty code is written for windoze and not Linux
> but also that Linux is just built with security in mind.  I belive that
> I am much safer with Linux myself.

  You are safer overall.  Just watch out for XSS (cross-site-scripting),
java, Flash, and acrobat exploits.

-- 
Walter Dnes 
I don't run "desktop environments"; I run useful applications



Re: [gentoo-user] Linux viruses

2013-07-09 Thread Dale
Alan McKinnon wrote:
> On 08/07/2013 15:24, Dale wrote:
>> Walter Dnes wrote:
>>> On Fri, Jul 05, 2013 at 05:21:25PM -0500, Dale wrote
>>>
 Well, no Wine here.  So that won't happen.  Actually, I don't have a
 copy of windoze here at all.  Neither of my two rigs have ever had
 windoze installed on them at all. 

 BTW, I have been known to open those attachments before. I usually open
 them with kwrite or something and try to see what is human readable in
 there.  Most is machine language but there is usually a small portion
 that is human readable.  They sent it and I'm nosy that way.  lol
>>>   The bad guys go after the "low hanging fruit", i.e. the easiest
>>> targets.  Years ago, it was Internet Explorer.  This also included
>>> Outlook and Outlook Express, which were glorified IE frontends.  There
>>> were many "drive-by-downloads", thanks to Active-X (aka "Active-Hacks").
>>>
>>>   MS has gotten its act together on IE, so the bad guys are now going
>>> after other stuff.  The "other stuff" is cross-platform stuff like Java
>>> and Javascript and Adobe Acrobat and Flash (known affectionately as
>>> "Schlockwave Trash").  So yes... it can happen here.
>>>
>>>   I've been Java-free for years.  I use Noscript and Flashblock on
>>> Firefox.  I keep Opera around for those sites that don't work on
>>> Firefox.  I also use mupdf instead of the bloated Acrobat Reader
>>> monstrosity.
>>>
>>
>> Questions.  Can a virus infect the OS when running on Linux through
>> java/javascript/flash?  
> Yes. If you can get the payload to run, then that code will run and will
> do whatever the environment it is in will let it do.
>
>> Or would the infection at the least be limited
>> to that user? 
> That's the normal case, but by no means the only one.
>
> If you have sudoers set up to run any command as root without using a
> password, well then
>
>> How is html5 going to affect this?  Better or worse? 
>
> I think you need to gain a deeper understanding of how computer software
> works Dale. You are asking black/white questions, and the world just is
> not like that. It's all grey.
>
> These questions do not have simple answers. Windows well-deserved it's
> bad rep from many years ago - that came not from bad security or
> loopholes but more from the simple fact that early Windows had no
> security to speak of. It wasn't poor locks, there just wasn't a lock,
> not a door ... oh stuff it there wasn't even a wall to put the door in
> for many years!
>
> Things have vastly improved now and Windows in the hands of someone with
> clue rates about the same as (more-or-less conventional) Linux in the
> hands of someone with clue.
>
> Lastly, gaining root permissions is no longer the holy grail it used to
> be. Nowadays first prize is ability to send mail through your mail
> accounts, access your browsing history, and get into your password
> wallet. All of which by their very nature, MUST be accessible to the
> user's account.
>
>

I'm getting there Alan.  I'm always learning something.  It's retaining
it that is the issue.  ;-)

Dale

:-)  :-) 

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




Re: [gentoo-user] Linux viruses

2013-07-09 Thread Dale
Paul Hartman wrote:
> On Mon, Jul 8, 2013 at 8:24 AM, Dale  wrote:
>> Questions.  Can a virus infect the OS when running on Linux through
>> java/javascript/flash?  Or would the infection at the least be limited
>> to that user?
> I think how they typically work, on any OS, is they exploit a bug in
> the browser (or a browser plug-in) to run code on your local machine,
> and then that code exploits the operating system in order to get
> root-level privileges. After it has that, the possibilities are
> endless...
>
> There's nothing special about Linux that would make that scenario play
> out any better than it does on Windows, but in reality the number of
> exploits found for Windows has been greater, and the number of Linux
> web browser users is far fewer, so it's pretty rare to see web pages
> that target Linux exploits (but I do read about them from time to
> time).
>
> I personally use Firefox with RequestPolicy, NoScript and Adblock
> Plus. That still won't protect me from a bug in Firefox itself. I
> suppose if I really wanted to be paranoid I would run it in a virtual
> machine (but, hey, those can be exploited, too). At some point, you
> have to just go with it and hope for the best. Either that or turn off
> the computer. :)
>

That's my thinking to but also see my reply to Walter.  I use Linux for
several reasons and security is one of them.  Linux is more security
oriented and faster with fixes be it a browser or some other package. 
Gentoo works with upstream to get serious issues fixed pretty fast. 


>> How is html5 going to affect this?  Better or worse?
> HTML5 is already here and you're probably already using it. :) The
> biggest benefit to using "anything but Flash" is the idea that the
> code is not in Adobe's hands and that the community would identify and
> fix bugs sooner. But that's not guaranteed to be the case.
>
> A web browser is perhaps the most complicated piece of software most
> of us will ever run on our computers, and there's a lot of room for
> mistakes to happen in those millions of lines of code. Anything can
> happen.
>
> .
>

I have opted in for html5 on youtube.  I think I also have a plugin that
enables html5 as well when available.  I have one for https as well. 
Given this NSA mess, may help a little anyway.  O_O

Dale

:-)  :-) 

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




Re: [gentoo-user] Linux viruses

2013-07-09 Thread Dale
Walter Dnes wrote:
> On Mon, Jul 08, 2013 at 08:24:03AM -0500, Dale wrote
>
>> Questions.  Can a virus infect the OS when running on Linux through
>> java/javascript/flash?
>   There are two levels of "infection"...
>
> 1) One-off execution of bad stuff when you visit a web page.
>
> 2) A more permanent infection that survives restarting the web browser,
> and rebooting the machine.  But that would need to be linux executable.


OK.  I do banking online.  I also pay my bills online along with social
sites as well.  I use Lastpass so that I can have some really REALLY
funky passwords.  I think I am one of few that has not had his facebook
hacked.  Anyway, I run Gentoo which is known here.  I use
Firefox/Seamonkey as my web browser.  So next question sort of takes us
back to my point with the knucklehead in the store.  Am I safer, much
safer, using Linux over windoze?  That answer would take into account
the fact that most virus/nasty code is written for windoze and not Linux
but also that Linux is just built with security in mind.  I belive that
I am much safer with Linux myself.  Just a rough example of what some
passwords look like for me:

5u9YU7335cb29hPE

I don't actually use that as a password so no need in some script kiddy
trying it.  LOL


>> Or would the infection at the least be limited to that user?
>   Usually, unless they find a privilege escalation hole.  Then again,
> it's the user-info (bank login and password, credit card number, etc)
> that's really profitable for organized crime.

I can certainly agree with that.  I have a few people that use windoze
and refuse to even think about ordering online, banking or anything that
requires financial type info.  If they are not going to keep their stuff
up to date, may be a good idea.  These are the same folks that don't
update anti-virus and such too.  :/


>
>> How is html5 going to affect this?  Better or worse?
>   If/when it results in the end of Flash, that's an improvement.  The
> thing I worry about is that anything "powerful enough" can be (ab)used.
>

I was hoping if they was going to all the trouble on creating this that
it was going to do some sort of good and improve security.  I don't mean
just for Linux folks either.  For the record, I use https everywhere and
I think I have a similar thing for html5 too.  I know I opted in for
youtube. 

Thanks for the answers.  I think you see where I am going with this.  I
still laugh when I think about what that guy said tho. 

Dale

:-)  :-) 

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




[gentoo-user] strange eix-sync

2013-07-09 Thread meino . cramer
Hi,

eix-syncing my Beaglebone results in some strange output 
and no eix-sync at all.

Especially those 

rsync: failed to set permissions on "/tmp/.tmpNBwK63.n6Acda": Function not 
implemented (38)

are mysterious.

I added the complete log below.

I dont want to trigger a ban of my IP for too many
/try/change/try/change...cycles...so better to ask the
pros... ;)

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



beaglebone:/root>eix-sync
 * Running emerge --sync
>>> Starting rsync with rsync://140.211.166.189/gentoo-portage...
>>> Checking server timestamp ...
Welcome to bobolink.gentoo.org / rsync.gentoo.org

Server Address : 140.211.166.189
Contact Name   : mirror-ad...@gentoo.org
Hardware   : 4 x Intel(R) Atom(TM) CPU D510 @ 1.66GHz, 3960MB RAM
Sponsor: Gentoo Linux, Open Source Lab, Corvallis, OR, USA

Please note: common gentoo-netiquette says you should not sync more
than once a day.  Users who abuse the rsync.gentoo.org rotation
may be added to a temporary ban list.

MOTD autogenerated by update-rsync-motd on Sun Apr  1 01:06:12 UTC 2012

receiving incremental file list
timestamp.chk
rsync: failed to set permissions on "/tmp/.tmpNBwK63.n6Acda": Function not 
implemented (38)

Number of files: 1
Number of files transferred: 1
Total file size: 32 bytes
Total transferred file size: 32 bytes
Literal data: 32 bytes
Matched data: 0 bytes
File list size: 27
File list generation time: 0.001 seconds
File list transfer time: 0.000 seconds
Total bytes sent: 98
Total bytes received: 646

sent 98 bytes  received 646 bytes  212.57 bytes/sec
total size is 32  speedup is 0.04
rsync error: some files/attrs were not transferred (see previous errors) (code 
23) at main.c(1518) [generator=3.0.9]
>>> Retrying...


>>> Starting retry 1 of 6 with rsync://88.198.83.250/gentoo-portage
>>> Checking server timestamp ...
rsync: failed to connect to 88.198.83.250 (88.198.83.250): Connection refused 
(111)
rsync error: error in socket IO (code 10) at clientserver.c(122) 
[Receiver=3.0.9]
>>> Retrying...


>>> Starting retry 2 of 6 with rsync://209.177.148.226/gentoo-portage
>>> Checking server timestamp ...
Welcome to magpie.gentoo.org / rsync.gentoo.org

Server Address : 209.177.148.226, 2607:f740:0:29:230:48ff:fef8:a064
Contact Name   : mirror-ad...@gentoo.org
Hardware   : 4 x Intel(R) Xeon(R) CPU X3330 @ 2.66GHz, 3957MB RAM
Sponsor: Host Virtual, San Jose, CA, USA

Please note: common gentoo-netiquette says you should not sync more
than once a day.  Users who abuse the rsync.gentoo.org rotation
may be added to a temporary ban list.

MOTD autogenerated by update-rsync-motd on Mon Sep 17 20:05:05 UTC 2012

receiving incremental file list
timestamp.chk
rsync: failed to set permissions on "/tmp/.tmpd7GTJG.cbU5Pd": Function not 
implemented (38)

Number of files: 1
Number of files transferred: 1
Total file size: 32 bytes
Total transferred file size: 32 bytes
Literal data: 32 bytes
Matched data: 0 bytes
File list size: 27
File list generation time: 0.001 seconds
File list transfer time: 0.000 seconds
Total bytes sent: 98
Total bytes received: 661

sent 98 bytes  received 661 bytes  303.60 bytes/sec
total size is 32  speedup is 0.04
rsync error: some files/attrs were not transferred (see previous errors) (code 
23) at main.c(1518) [generator=3.0.9]
>>> Retrying...


>>> Starting retry 3 of 6 with rsync://91.186.30.235/gentoo-portage
>>> Checking server timestamp ...
Welcome to boobie.gentoo.org / rsync.gentoo.org

Server Address : 91.186.30.235
Contact Name   : mirror-ad...@gentoo.org
Hardware   : 2 x Intel(R) Xeon(R) CPU 3050 @ 2.13GHz, 3958MB RAM
Sponsor: EUKhost, Maidenhead, England

Please note: common gentoo-netiquette says you should not sync more
than once a day.  Users who abuse the rsync.gentoo.org rotation
may be added to a temporary ban list.

MOTD autogenerated by update-rsync-motd on Sun Apr  1 01:05:34 UTC 2012

receiving incremental file list
timestamp.chk
rsync: failed to set permissions on "/tmp/.tmpFmdYeR.y0q8Nx": Function not 
implemented (38)

Number of files: 1
Number of files transferred: 1
Total file size: 32 bytes
Total transferred file size: 32 bytes
Literal data: 32 bytes
Matched data: 0 bytes
File list size: 27
File list generation time: 0.001 seconds
File list transfer time: 0.000 seconds
Total bytes sent: 98
Total bytes received: 620

sent 98 bytes  received 620 bytes  478.67 bytes/sec
total size is 32  speedup is 0.04
rsync error: some files/attrs were not transferred (see previous errors) (code 
23) at main.c(1518) [generator=3.0.9]
>>> Retrying...


>>> Starting retry 4 of 6 with rsync://88.198.83.249/gentoo-portage
>>> Checking server timestamp ...
rsync: failed to connect to 88.198.83.249 (88.198.83.249): Connection refused 
(111)
rsync error: error in socket IO (code 10) at clientserver.c(122) 
[Receiver=3.0.9]
>>> Retrying...


>>> Starting retry 5 of 6 with 
>>> rsync://[2607:f740:0:29:230:48ff:fef8:a064]/gentoo-portage
>>> Checking serve

Re: [gentoo-user] hp H222 SAS controller

2013-07-09 Thread Paul Hartman
On Mon, Jul 8, 2013 at 1:27 PM, Stefan G. Weichinger  wrote:
> Does it make sense to apply some sort of burn-in-procedure before
> actually formatting and using the disks? Running badblocks or something?
>
> I ask because I wait for that shiny new server and doing so might not
> hurt before installing gentoo. Or is that too paranoid and a waste of time?

Initially I ran the SMART long test and it found no errors. Then I did
badblocks read-only scan and it found some bad sectors. After that,
SMART tests failed to complete due to "failure reading LBA x".
I used hdparm to remap those sectors, but didn't feel entirely
confident in the disk at that point in time.

So I ran the badblocks destructive read-write test and it completed
(after a couple days) with zero errors! How can it be?

Checking the SMART statistics afterward, I can see now there are
dozens of newly reallocated sectors. So that means the drive silently
replaced those bad sectors with spares, which is good! That is what it
is supposed to do! I don't feel happy about the fact that those bad
sectors exist in the first place, but the drive did what it was
designed to do when it encountered them.

After the r/w badblocks test cycle finished, I ran SMART long-scan
again and this time it completed with no errors.

So I recommend to do the destructive read-write badblocks test, if you
can afford the hours (or days) spent waiting for it to complete.

SMART alone did not detect the errors initially, but neither did
badblocks actually identify the errors during its write test (because
the drive hides it). But the combination of badblocks and the
self-repairing code in the drive's firmware accomplished the goal of
making my disk free of errors (logically).

Notes:

WARNING! Be careful to give the correct device name when doing the
badblocks write test! There is no confirmation prompt! It immediately
starts destroying data at the beginning of the disk.

If you have a disk with 4k sector size, be sure to tell badblocks to
use a 4096 byte block size. It uses 1k block size by default, which
can cause the test to be very slow! In my system badblocks with 1k
block size read at 15MB/sec, while 4k block size read at over
160MB/sec! Using 1k block size on a 4k-sector disk also causes all
errors to be reported 4 times each.

Good luck :)



Re: [gentoo-user] k3b burning BD-Disk pretends to fail at 99.99%

2013-07-09 Thread Mick
On Monday 08 Jul 2013 07:53:14 Paul Colquhoun wrote:
> On Sun, 7 Jul 2013 14:06:36 Alexander Puchmayr wrote:
> > On Samstag, 6. Juli 2013, 23:55:52 Joerg Schilling wrote:
> > [...]
> > 
> > > > Any ideas what could have gone wrong?
> > > 
> > > It is interesting that there is no error message in the output from
> > > your attachment.
> > > 
> > > k3b should usew cdrecord instead of growisofs in case that cdrecord is
> > > installed. Is cdrecord missing or why did k3b use growisofs?
> > > 
> > > Did you explicitely try cdrecord?
> > 
> > Hi,
> > 
> > cdrecord is installed, I have no idea why k3b chose to use growisofs for
> > creating the >10G isofs.
> > 
> > I did not try cdrecord (How can I change which programs k3b uses?)
> 
> "Settings" -> "Configure K3b" -> "Programs"

This just displays what's there.  I can't change any of the listed programs 
from this screen.
-- 
Regards,
Mick


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


Re: [gentoo-user] Linux viruses

2013-07-09 Thread Walter Dnes
On Mon, Jul 08, 2013 at 08:24:03AM -0500, Dale wrote

> Questions.  Can a virus infect the OS when running on Linux through
> java/javascript/flash?

  There are two levels of "infection"...

1) One-off execution of bad stuff when you visit a web page.

2) A more permanent infection that survives restarting the web browser,
and rebooting the machine.  But that would need to be linux executable.

> Or would the infection at the least be limited to that user?

  Usually, unless they find a privilege escalation hole.  Then again,
it's the user-info (bank login and password, credit card number, etc)
that's really profitable for organized crime.

> How is html5 going to affect this?  Better or worse?

  If/when it results in the end of Flash, that's an improvement.  The
thing I worry about is that anything "powerful enough" can be (ab)used.

-- 
Walter Dnes 
I don't run "desktop environments"; I run useful applications



[gentoo-user] syslog-ng-3.4: time_sleep() deprecated or not?

2013-07-09 Thread Jarry

Hi Gentoo-users,

today I updated syslog-ng on my server. When I checked config
file, I got this message:

# /etc/init.d/syslog-ng checkconfig
* Checking your configfile (/etc/syslog-ng/syslog-ng.conf) ...
WARNING: Your configuration file uses an obsoleted keyword, please
update your configuration; keyword='time_sleep', change='time_sleep()
has been deprecated since syslog-ng 3.3' [ ok ]
#

So I checked the new syslog-ng-ose-v3.4-guide-admin.pdf,
but there is nothing about time_sleep() being obsolete
or deprecated. Quite on the contrary: it is listed as
valid option, and even mentioned in the chapter 17
"best practices" as a way of handling lots of parallel
connections.

So how is it then? Is time_sleep() supported and valid,
or obsolete/deprecated?

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



Re: [gentoo-user] pop up windows with text message

2013-07-09 Thread Neil Bothwick
On Tue, 9 Jul 2013 10:54:31 -0600, Joseph wrote:

> I would like to check if file is present via and open a terminal window
> with a simple message. I think a simple bash script and a cron job
> would do the trick or is there a better solution?
> 
> I've tried cron + bash script

I think incron may be a better fit, its jobs are triggered by file
creation, deletion or modification.


> When I open terminal and type: "terminal" new windows pops up
> But if close all the terminals and run wall.sh script the terminal will
> not open. I get an error message: (terminal:24945): Gtk-WARNING **:
> cannot open display:

You probably need to export DISPLAY in your script.


-- 
Neil Bothwick

I get enough exercise just pushing my luck.


signature.asc
Description: PGP signature


[gentoo-user] Re: 3D printers && Gentoo

2013-07-09 Thread James
Jean-Christophe Bach  gmail.com> writes:

> Of course, all these software are working without any problem on
> Gentoo. 
> JC

> [1]  http://www.nybi.cc (in Frenchi :\ )
> [2]  http://www.reprap.org
> [3]  http://www.thingiverse.com
> [4]  http://www.thingiverse.com/watsdesign/designs
> [5]  http://reprap.org/wiki/FoldaRap
> [6]  http://www.ulule.com/foldarap/ (first batch)
> [7]  http://goteo.org/project/foldarap-peer-to-peer-edition (2nd batch)
> [8]  http://www.reprappro.com
> [9]  http://github.com/kliment/Printrun
> [10] http://slic3r.org



Hello Jean-Christophe

Thanks for sharing your experiences. I read overviews of how
folks are (3D) printing with metals, but find few details.

I have some ideas on larger things to build, but in a 50-100
components sizes that fit together. 

 I what to build a series of modules using a 3D printer that fit together
with the lamiated beams to realize the a pickup-camper shell. I found
super-strong, light weight composites that can be laminated for
the structural beams, in lieu of metal. I'll have to design
and model thing, but I have used Autocad and ProE so no worries
on using Blender for the modelling

So my real need is to find some resources (folks) that know about
the myriad of different feedstock material you can use in a 3D printer
and the resulting strengths. Platics, Polymers and such are
are not my area of expertise, but I do have a petrochemical degree
and some chemical process (refinery) experience. 

How do you find out about which 3D printers handle which matierals?
Is it difficult to build a modified 3D printer to handle customized
feedstock materials? 

James






Re: [gentoo-user] hp H222 SAS controller

2013-07-09 Thread Alan McKinnon
On 08/07/2013 20:27, Stefan G. Weichinger wrote:
> Am 08.07.2013 17:58, schrieb Alan McKinnon:
>> On 08/07/2013 17:39, Paul Hartman wrote:
>>> On Thu, Jul 4, 2013 at 9:04 PM, Paul Hartman
>>>  wrote:
 ST4000DM000
>>>
>>> As a side-note these two Seagate 4TB "Desktop" edition drives I bought
>>> already, after about than 100 hours of power-on usage, both drives
>>> have each encountered dozens of unreadable sectors so far. I was able
>>> to correct them (force reallocation) using hdparm... So it should be
>>> "fixed", and I'm reading that this is "normal" with newer drives and
>>> "don't worry about it", but I'm still coming from the time when 1 bad
>>> sector = red alert, replace the drive ASAP.  I guess I will need to
>>> monitor and see if it gets worse.
>>>
>>
>>
>> Way back when in the bad old days of drives measured in 100s of megs,
>> you'd get a few bad sectors now and then, and would have to mark them as
>> faulty. This didn't bother us then much
>>
>> Nowadays we have drives that are 8,000 bigger than that so all other
>> things being equal we'd expect sectors to fail 8,000 time more (more
>> being a very fuzzy concept, and I know full well I'm using it loosely :-) )
>>
>> Our drives nowadays also have smart firmware, something we had to
>> introduce when CHS no longer cut it, this lead to sector failures being
>> somewhat "invisible" leaving us with the happy delusion that drives were
>> vastly reliable etc etc etc. But you know all this.
>>
>> A mere few dozen failures in the first 100 hours is a failure rate of
>> (Alan whips out the trust sci calculator) 4.8E-6%. Pretty damn
>> spectacular if you ask me and WELL within probabilities.
>>
>> There is likely nothing wrong with your drives. If they are faulty, it's
>> highly likely a systemic manufacturing fault of the mechanicals (servo
>> systems, motor bearing etc)
>>
>> You do realize that modern hard drives have for the longest time been up
>> there in the Top X list of Most Reliable Devices Made By Mankind Ever?
> 
> Does it make sense to apply some sort of burn-in-procedure before
> actually formatting and using the disks? Running badblocks or something?
> 
> I ask because I wait for that shiny new server and doing so might not
> hurt before installing gentoo. Or is that too paranoid and a waste of time?

If it makes you feel better, then by all means go through the motions
.

For my money, I reckon that's exactly what it is - motions and ritual. I
havew any anecdotal evidence to back it up, but it's fairly strong
anecdotal evidence:

Over the last 5 years, the team I'm in, the teams we work closely with
and the Storage guys have commissioned >1000 pieces of hardware and
probably more than 4000 drives, the vast majority from Dell. I have no
idea what burn-in Dell applies, if any. We've had our fair share of
infant mortality failures, prob ably less than 20 in 5 years. And here's
the kicker - every single one failed in production.

Most of that hardware, and ALL of the SANs, went through heavy
pre-deployment testing. Usually, this means cloning the -dev system onto
it and running the crap out of it for a decent length of time. Once the
techies were happy, install the production version and switch it on.

I conclude that the likely reason we only found failure in prod is that
only prod gives a decent viable test that approximates real life and dev
is always a mere simulation. It's not usage that kills a few drives
early, it's the almost random pattern of disk access that you get in
real life. That tends to shake out the weak links better than any test.

However, this is all anecdotal so use or discard as you see fit :-). I
no longer worry about data loss as we have 4 hour warranty turnaround
SLAs in place and company policy is to only deploy storage that is
guaranteed to survive loss of any one drive in an array.


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




[gentoo-user] pop up windows with text message

2013-07-09 Thread Joseph

How to design a sticky note pop-up when file is present?

I would like to check if file is present via and open a terminal window with a 
simple message.
I think a simple bash script and a cron job would do the trick or is there a 
better solution?

I've tried cron + bash script

cron:
32 10 * * * sh /home/joseph/xp_share/wall.sh

wall.sh
terminal
wall file ready

When I open terminal and type: "terminal" new windows pops up
But if close all the terminals and run wall.sh script the terminal will not 
open.
I get an error message: (terminal:24945): Gtk-WARNING **: cannot open
display:

--
Joseph



Re: [gentoo-user] Re: eix settings for searching all layman overlays

2013-07-09 Thread Thanasis
on 07/08/2013 09:39 PM Martin Vaeth wrote the following:
> Thanasis  wrote:
>>
>> So in /etc/eixrc/00-eixrc I have set
>> KEEP_VIRTUALS=true
>> REMOTE_DEFAULT=1
> 
> With the current default setting of separate databases for the
> local eix cache (normally /var/cache/eix/portage.eix) and
> for the remote eix cache (/var/cache/eix/remote.eix),
> KEEP_VIRTUALS=true makes no sense:
> 
> The purpose of KEEP_VIRTUALS=true was to update the local
> cache data without changing the remote data with eix-update
> (if both are in the same file).
> 
> However, especially if you set REMOTE_DEFAULT you should call
> eix-remote add1
> after every eix-sync so that your local eix cache is
> copied into the remote eix cache
> (see the manpage how to do this automatically with eix-sync).
> 


Thanks, Martin.
So, if I understand correctly, I _don't_ need any settings, and I should
remove both KEEP_VIRTUALS and REMOTE_DEFAULT, and just use the -R option
when I want to search the remote cache and no option for searching the
local (installed) overlays and portage, is that correct?