Re: [gentoo-user] look for a file type + sort

2013-09-13 Thread Jean-Christophe Bach
* Canek Peláez Valdés can...@gmail.com [13.09.2013. @00:16:51 -0500]:

 On Fri, Sep 13, 2013 at 12:11 AM, Joseph syscon...@gmail.com wrote:
  On 09/13/13 00:04, Canek Peláez Valdés wrote:
 
  On Thu, Sep 12, 2013 at 11:58 PM, Canek Peláez Valdés can...@gmail.com
  wrote:
 
  On Thu, Sep 12, 2013 at 11:48 PM, Joseph syscon...@gmail.com wrote:
 
  I want to list recursively certain type of files eg. *.pdf but I want to
  display: date, path and newest file first.
 
  What is the easiest way of doing it?
 
 
  ls -l --sort=time $(find /path -iname *.pdf)
 
  If there are no spaces in the filenames/directories, you can drop the
  quotes from $().
 
 
  Sorry, it doesn't work with spaces even with the quotes; if you don't
  have spaces in the directories/filenames, do
 
  ls -l --sort=time $(find /path -iname *.pdf)
 
  If you have spaces, you need to set/restore IFS:
 
  S=${IFS}; IFS=$'\n'; ls -l --sort=time $(find . -iname *.pdf); IFS=${S}
 
  Regards.
  --
  Canek Peláez Valdés
  Posgrado en Ciencia e Ingeniería de la Computación
  Universidad Nacional Autónoma de México
 
 
  Hm, I've tried:
  ls -l --sort=time $(find /home/joseph -iname *.jpg)
 
  got:
  ls: invalid option -- '/'
 
 The exact same command (changing joseph with canek) works for me,
 except in directories/filenames with spaces, as expected. Do you have
 an alias for ls? What does find /home/joseph -iname *.jpg returns?
 
 Regards.
 -- 
 Canek Peláez Valdés

Hi,

This one should work:

find /home/joseph/ -iname *.pdf -exec ls -l --sort=time {} +

Regards,

JC


signature.asc
Description: Digital signature


Re: [gentoo-user] look for a file type + sort

2013-09-13 Thread Florian Philipp
Am 13.09.2013 08:24, schrieb Jean-Christophe Bach:
 * Canek Peláez Valdés can...@gmail.com [13.09.2013. @00:16:51 -0500]:
 
 On Fri, Sep 13, 2013 at 12:11 AM, Joseph syscon...@gmail.com wrote:
 On 09/13/13 00:04, Canek Peláez Valdés wrote:

 On Thu, Sep 12, 2013 at 11:58 PM, Canek Peláez Valdés can...@gmail.com
 wrote:

 On Thu, Sep 12, 2013 at 11:48 PM, Joseph syscon...@gmail.com wrote:

 I want to list recursively certain type of files eg. *.pdf but I want to
 display: date, path and newest file first.

 What is the easiest way of doing it?


 ls -l --sort=time $(find /path -iname *.pdf)

 If there are no spaces in the filenames/directories, you can drop the
 quotes from $().


 Sorry, it doesn't work with spaces even with the quotes; if you don't
 have spaces in the directories/filenames, do

 ls -l --sort=time $(find /path -iname *.pdf)

 If you have spaces, you need to set/restore IFS:

 S=${IFS}; IFS=$'\n'; ls -l --sort=time $(find . -iname *.pdf); IFS=${S}

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


 Hm, I've tried:
 ls -l --sort=time $(find /home/joseph -iname *.jpg)

 got:
 ls: invalid option -- '/'

 The exact same command (changing joseph with canek) works for me,
 except in directories/filenames with spaces, as expected. Do you have
 an alias for ls? What does find /home/joseph -iname *.jpg returns?

 Regards.
 -- 
 Canek Peláez Valdés
 
 Hi,
 
 This one should work:
 
 find /home/joseph/ -iname *.pdf -exec ls -l --sort=time {} +
 
 Regards,
 
 JC
 

This won't work if there are too many files because find will eventually
start ls multiple times.

Try this instead:
find /path -iname '*.pdf' -printf '%T@\t%Tc\t%p\n' | sort -nr |
cut -f 2-

Regards,
Florian Philipp




signature.asc
Description: OpenPGP digital signature


[gentoo-user] How do I downgrade chromium below 29.0.1547.57?

2013-09-13 Thread Chris Stankevitz
Arg...

dev-lang/v8-3.19.18.19 breaks sci-geosciences/osgearth-2.4.

Downgrading to dev-lang/v8-3.18.5.14 breaks www-client/chromium-29.0.1547.57

Can't downgrade www-client/chromium below 29.0.1547.57 because there
is no older version in chromium.

Bonus: I'm afraid to upgrade my kernel since I use nvidia.

Chris :(



[gentoo-user] KDE: unwanted dependencies

2013-09-13 Thread Yuri K. Shatroff

Hi people,

I am about to update KDE from 4.10.4 to 4.11.1.
Is it possible to avoid installing various nepomuks and akonadis which 
appear to be required now? I have set USE=-semantic-desktop but it 
doesn't seem to help.
My current KDE installation is quite happy without that stuff (which 
also brings along tons of other crap).


--
Best wishes,
Yuri K. Shatroff



Re: [gentoo-user] KDE: unwanted dependencies

2013-09-13 Thread Alan McKinnon
On 13/09/2013 12:10, Yuri K. Shatroff wrote:
 Hi people,
 
 I am about to update KDE from 4.10.4 to 4.11.1.
 Is it possible to avoid installing various nepomuks and akonadis which

No


 appear to be required now? I have set USE=-semantic-desktop but it
 doesn't seem to help.
 My current KDE installation is quite happy without that stuff (which
 also brings along tons of other crap).


The KDE maintainers posted quite extensively about this some time back.

It is too hard to try and extract semantic-desktop out of the KDE build
whilst not breaking everything else. What you now do is allow the stuff
to be built, and disable the function in System Settings.

What this in effect means is you spend an extra 20 minutes building and
have a few more meg of disk space consumed by code than you never run.


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




Re: [gentoo-user] KDE: unwanted dependencies

2013-09-13 Thread Yuri K. Shatroff

On 13.09.2013 14:14, Alan McKinnon wrote:

On 13/09/2013 12:10, Yuri K. Shatroff wrote:

Hi people,

I am about to update KDE from 4.10.4 to 4.11.1.
Is it possible to avoid installing various nepomuks and akonadis which


No


Pity.


appear to be required now? I have set USE=-semantic-desktop but it
doesn't seem to help.
My current KDE installation is quite happy without that stuff (which
also brings along tons of other crap).



The KDE maintainers posted quite extensively about this some time back.


Some time back I heard that KDE devs were striving to make KDE more 
modular.



It is too hard to try and extract semantic-desktop out of the KDE build
whilst not breaking everything else. What you now do is allow the stuff
to be built, and disable the function in System Settings.


Well why wasn't it too hard before? It's not quite obvious why one's got 
to extract some additional functionality, as opposed to including it 
when needed. A strange approach, all in all.



What this in effect means is you spend an extra 20 minutes building and
have a few more meg of disk space consumed by code than you never run.


I personally care little about the megs, but the moral effect. Thousands 
of people posted much about these doubtful features and disabling them, 
and asked not to include them into KDE base, but all effort was vain. In 
trite words, KDE followed the windows way: we know better what you need...

(Okay, no offense.)
BTW, it seems that mysql is also a hard dependency for QT now. At least, 
the average joe can't be scorned any more for not having a server. Hey 
to all localhost admins! :)


Thanks for clarification, Alan.

--
Best wishes,
Yuri K. Shatroff



Re: [gentoo-user] systemd and lvm

2013-09-13 Thread Stefan G. Weichinger
Am 12.09.2013 20:23, schrieb Canek Peláez Valdés:

 Stefan, what initramfs are you using?

dracut, run via your kerninst-script.

 Could you please explain how is exactly your layout? From drives to
 partitions to PVs, VGs and LVs? And throw in there also the LUKS and
 RAID (if used) setup. I will try to replicate that in a VM. Next week,
 since we have a holiday weekend coming.

thanks for your offer.

I wil happily list my setup BUT let me tell at first that the latest
sys-fs/lvm2-2.02.100 seems to have fixed that semaphore-issue.

After booting my desktop with it I quickly tested:

# lvcreate -n test -L1G VG03
  Logical volume test created
#

fine!

Three times ok ...

But I still face the fact that the LVs weren't activated at boot time.
Manual vgchange -ay needed ... or that self-written lvm.service
enabled as mentioned somewhat earlier.

Here my setup:

# lsblk
NAME MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINT
sda8:00 931,5G  0 disk
├─sda1 8:10 2M  0 part
├─sda2 8:20 2G  0 part  [SWAP]
├─sda3 8:30   600G  0 part
│ └─md127  9:127  0 595,1G  0 raid1
│   ├─VG03-music 253:00   190G  0 lvm   /mnt/music
│   ├─VG03-platz 253:10   200G  0 lvm   /mnt/platz
│   ├─VG03-media 253:2045G  0 lvm   /mnt/media
│   ├─VG03-home  253:3030G  0 lvm
│   ├─VG03-oopsfiles 253:4012G  0 lvm   /mnt/oopsfiles
│   ├─VG03-dropbox   253:50 5G  0 lvm   /mnt/dropbox
│   ├─VG03-distfiles 253:6010G  0 lvm   /usr/portage/distfiles
│   ├─VG03-gentoo32  253:7015G  0 lvm   /mnt/gentoo32
│   ├─VG03-xp253:8040G  0 lvm
│   └─VG03-test  253:90 1G  0 lvm
└─sda6 8:6050G  0 part
  └─md49:4050G  0 raid1
sdb8:16   0 931,5G  0 disk
├─sdb1 8:17   0   100M  0 part
├─sdb2 8:18   0  98,8G  0 part
├─sdb3 8:19   050G  0 part
│ └─md49:4050G  0 raid1
├─sdb4 8:20   0  12,4G  0 part
└─sdb6 8:22   0 595,1G  0 part
  └─md127  9:127  0 595,1G  0 raid1
├─VG03-music 253:00   190G  0 lvm   /mnt/music
├─VG03-platz 253:10   200G  0 lvm   /mnt/platz
├─VG03-media 253:2045G  0 lvm   /mnt/media
├─VG03-home  253:3030G  0 lvm
├─VG03-oopsfiles 253:4012G  0 lvm   /mnt/oopsfiles
├─VG03-dropbox   253:50 5G  0 lvm   /mnt/dropbox
├─VG03-distfiles 253:6010G  0 lvm   /usr/portage/distfiles
├─VG03-gentoo32  253:7015G  0 lvm   /mnt/gentoo32
├─VG03-xp253:8040G  0 lvm
└─VG03-test  253:90 1G  0 lvm
sdc8:32   0  55,9G  0 disk
├─sdc1 8:33   025G  0 part  /
├─sdc2 8:34   0 2G  0 part
└─sdc3 8:35   0  28,9G  0 part  /home
sr0   11:01  1024M  0 rom



This pretty much says it all, right?

2 hdds sda and sdb
1 ssd sdc

root-fs and /home on ssd ...

sda and sdb build two RAID-arrays (rather ugly names and partitions ...
grown over time):

# cat /proc/mdstat
Personalities : [raid1]
md4 : active raid1 sdb3[0] sda6[2]
  52395904 blocks super 1.2 [2/2] [UU]

md127 : active raid1 sdb6[0] sda3[1]
  623963072 blocks [2/2] [UU]

unused devices: none


# pvs
  PV VG   Fmt  Attr PSize   PFree
  /dev/md127 VG03 lvm2 a--  595,05g 47,05g


--- thanks in advance, Stefan




Re: [gentoo-user] look for a file type + sort

2013-09-13 Thread Joseph

On 09/13/13 08:50, Florian Philipp wrote:
[snip]


Hm, I've tried:
ls -l --sort=time $(find /home/joseph -iname *.jpg)

got:
ls: invalid option -- '/'


The exact same command (changing joseph with canek) works for me,
except in directories/filenames with spaces, as expected. Do you have
an alias for ls? What does find /home/joseph -iname *.jpg returns?

Regards.
--
Canek Peláez Valdés


Hi,

This one should work:

find /home/joseph/ -iname *.pdf -exec ls -l --sort=time {} +

Regards,

JC



This won't work if there are too many files because find will eventually
start ls multiple times.

Try this instead:
find /path -iname '*.pdf' -printf '%T@\t%Tc\t%p\n' | sort -nr |
cut -f 2-

Regards,
Florian Philipp


They both work thank you! 
But Florian solution seems to work better eg.


Solution 1:
find /home/joseph/ -iname *.jpg -exec ls -l --sort=time {} + |more
-rw-r--r-- 1 joseph users  113350 Aug 16 20:11 
/home/joseph/business/Drawings/tolsink_devices/Fostex-HP-P1_to_Ibasso-D12_2.6cm_c2c_69deg.jpg
-rw-r--r-- 1 joseph users  175335 Aug 14 17:16 
/home/joseph/business/Drawings/tolsink_devices/M8-AK120_3.4cm_c2c_32deg.jpg.jpg
...

Solution 2.
find /home/joseph -iname '*.jpg' -printf '%T@\t%Tc\t%p\n' | sort -nr | cut -f 
2- |more
Fri 30 Aug 2013 11:12:22 PM MDT /home/joseph/xp_share/img216.jpg
Tue 27 Aug 2013 05:18:56 PM MDT /home/joseph/Documents/albums/kuya_boy.jpg
Tue 27 Aug 2013 05:18:56 PM MDT /home/joseph/xp_share/kuya_boy.jpg
Tue 20 Aug 2013 10:31:29 PM MDT /home/joseph/0209C-SS_eyelets.jpg
Tue 20 Aug 2013 10:31:12 PM MDT /home/joseph/0210C.jpg
Fri 16 Aug 2013 08:11:59 PM MDT 
/home/joseph/business/Drawings/tolsink_devices/Fostex-HP-P1_to_Ibasso-D12_2.6cm_c2c_69deg.jpg
Wed 14 Aug 2013 05:16:13 PM MDT 
/home/joseph/business/Drawings/tolsink_devices/M8-AK120_3.4cm_c2c_32deg.jpg.jpg
...

The first solution did not find the first 5-files showing up in the Solution 2.

--
Joseph



Re: [gentoo-user] systemd and lvm

2013-09-13 Thread Stefan G. Weichinger

new info here (for me):

https://bugs.gentoo.org/show_bug.cgi?id=480066#c19

gotta test ... right now I don't have the time.

S



Re: [gentoo-user] systemd and lvm

2013-09-13 Thread Stefan G. Weichinger
Am 13.09.2013 14:54, schrieb Stefan G. Weichinger:
 
 new info here (for me):
 
 https://bugs.gentoo.org/show_bug.cgi?id=480066#c19
 
 gotta test ... right now I don't have the time.

first tests with genkernel --udev ... : negative.

More details maybe later this evening.




Re: [gentoo-user] look for a file type + sort

2013-09-13 Thread Yuri K. Shatroff

On 13.09.2013 10:24, Jean-Christophe Bach wrote:
[ ... ]


This one should work:

find /home/joseph/ -iname *.pdf -exec ls -l --sort=time {} +


-exec is not suitable here because it spawns a `ls` process per each 
found entry; aside from being slow, this disallows sorting at all.

You'd prefer
find /home/joseph/ -iname *.pdf |xargs ls -l --sort=time

or, to be space-proof
find /home/joseph/ -iname *.pdf -print0 |xargs -0 ls -l --sort=time

A little late but HTH.
--
Best wishes,
Yuri K. Shatroff



Re: [gentoo-user] look for a file type + sort

2013-09-13 Thread Mark David Dumlao
On Fri, Sep 13, 2013 at 9:36 PM, Yuri K. Shatroff yks-...@yandex.ru wrote:
 On 13.09.2013 10:24, Jean-Christophe Bach wrote:
 [ ... ]


 This one should work:

 find /home/joseph/ -iname *.pdf -exec ls -l --sort=time {} +


 -exec is not suitable here because it spawns a `ls` process per each found
 entry; aside from being slow, this disallows sorting at all.

This is incorrect. If you terminate exec with '+' instead of '\;', only a single
instance of the command is run - the command line is built by appending
each found file to the end of the {} placeholder.

The only reason I see for it to fail is if you have so many files that
it can't be
passed to the argv of the receiving command.
-- 
This email is:[ ] actionable   [x] fyi[ ] social
Response needed:  [ ] yes  [x] up to you  [ ] no
Time-sensitive:   [ ] immediate[ ] soon   [x] none



[gentoo-user] Re: KDE: unwanted dependencies

2013-09-13 Thread Michael Palimaka

On 13/09/2013 21:35, Yuri K. Shatroff wrote:

On 13.09.2013 14:14, Alan McKinnon wrote:

On 13/09/2013 12:10, Yuri K. Shatroff wrote:

Hi people,

I am about to update KDE from 4.10.4 to 4.11.1.
Is it possible to avoid installing various nepomuks and akonadis which


No


Pity.


appear to be required now? I have set USE=-semantic-desktop but it
doesn't seem to help.
While the USE flag has disappeared, you could try putting nepomuk and 
akonadi into your package.provided file.



My current KDE installation is quite happy without that stuff (which
also brings along tons of other crap).



The KDE maintainers posted quite extensively about this some time back.


Some time back I heard that KDE devs were striving to make KDE more
modular.
KDE upstream is, yes, and how this will affect semantic-desktop remains 
to be seen.



It is too hard to try and extract semantic-desktop out of the KDE build
whilst not breaking everything else. What you now do is allow the stuff
to be built, and disable the function in System Settings.


Well why wasn't it too hard before? It's not quite obvious why one's got
to extract some additional functionality, as opposed to including it
when needed. A strange approach, all in all.
The decision to remove the USE flag happened mostly because it maintain, 
and was in general not well supported anyway.


There have been a number of proposals about the situation: do nothing, 
do a full revert, or implement some compromise. I would hope that we 
make a final decision about this before stabilising any 4.11 version.



BTW, it seems that mysql is also a hard dependency for QT now. At least,
the average joe can't be scorned any more for not having a server. Hey
to all localhost admins! :)
That shouldn't be the case. The default akonadi backend is mysql, why 
could explain why it's being pulled in.






Re: [gentoo-user] look for a file type + sort

2013-09-13 Thread Yuri K. Shatroff

On 13.09.2013 17:43, Mark David Dumlao wrote:

On Fri, Sep 13, 2013 at 9:36 PM, Yuri K. Shatroff yks-...@yandex.ru wrote:

On 13.09.2013 10:24, Jean-Christophe Bach wrote:
[ ... ]



This one should work:

find /home/joseph/ -iname *.pdf -exec ls -l --sort=time {} +



-exec is not suitable here because it spawns a `ls` process per each found
entry; aside from being slow, this disallows sorting at all.


This is incorrect. If you terminate exec with '+' instead of '\;', only a single
instance of the command is run - the command line is built by appending
each found file to the end of the {} placeholder.


Sorry, I'm ashamed
I didn't know about this feature. Does it also handle spaces correctly?


The only reason I see for it to fail is if you have so many files that
it can't be
passed to the argv of the receiving command.


There's always an opportunity to use tempfiles ;)


--
Best wishes,
Yuri K. Shatroff



[gentoo-user] Re: How do I downgrade chromium below 29.0.1547.57?

2013-09-13 Thread Michael Palimaka

On 13/09/2013 19:10, Chris Stankevitz wrote:

Arg...

dev-lang/v8-3.19.18.19 breaks sci-geosciences/osgearth-2.4.

Downgrading to dev-lang/v8-3.18.5.14 breaks www-client/chromium-29.0.1547.57

Can't downgrade www-client/chromium below 29.0.1547.57 because there
is no older version in chromium.

Bonus: I'm afraid to upgrade my kernel since I use nvidia.

Chris :(




Hi,

All old ebuilds are always available in CVS: 
http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/www-client/chromium/?hideattic=0, 
which you could put in a local overlay.


Don't forget to file a bug so the science team knows about the breakage! :-)

Best regards,
Michael




Re: [gentoo-user] Re: KDE: unwanted dependencies

2013-09-13 Thread Yuri K. Shatroff

On 13.09.2013 17:50, Michael Palimaka wrote:

On 13/09/2013 21:35, Yuri K. Shatroff wrote:

On 13.09.2013 14:14, Alan McKinnon wrote:

On 13/09/2013 12:10, Yuri K. Shatroff wrote:

Hi people,

I am about to update KDE from 4.10.4 to 4.11.1.
Is it possible to avoid installing various nepomuks and akonadis which


No


Pity.


appear to be required now? I have set USE=-semantic-desktop but it
doesn't seem to help.

While the USE flag has disappeared, you could try putting nepomuk and
akonadi into your package.provided file.


My current KDE installation is quite happy without that stuff (which
also brings along tons of other crap).



The KDE maintainers posted quite extensively about this some time back.


Some time back I heard that KDE devs were striving to make KDE more
modular.

KDE upstream is, yes, and how this will affect semantic-desktop remains
to be seen.


so there is hope? ;)


It is too hard to try and extract semantic-desktop out of the KDE build
whilst not breaking everything else. What you now do is allow the stuff
to be built, and disable the function in System Settings.


Well why wasn't it too hard before? It's not quite obvious why one's got
to extract some additional functionality, as opposed to including it
when needed. A strange approach, all in all.

The decision to remove the USE flag happened mostly because it maintain,
and was in general not well supported anyway.

There have been a number of proposals about the situation: do nothing,
do a full revert, or implement some compromise. I would hope that we
make a final decision about this before stabilising any 4.11 version.


Clear, then I'll opt to wait for the stable 4.11.


BTW, it seems that mysql is also a hard dependency for QT now. At least,
the average joe can't be scorned any more for not having a server. Hey
to all localhost admins! :)

That shouldn't be the case. The default akonadi backend is mysql, why
could explain why it's being pulled in.


Yes, really, I was mislead, it is qtsql which requires setting the mysql 
flag, but I missed that it was due to akonadi.


Thank you for the detailed answer, Michael.
--
Best wishes,
Yuri K. Shatroff



Re: [gentoo-user] KDE: unwanted dependencies

2013-09-13 Thread Paul Hartman
On Fri, Sep 13, 2013 at 5:14 AM, Alan McKinnon alan.mckin...@gmail.com wrote:
 On 13/09/2013 12:10, Yuri K. Shatroff wrote:
 Hi people,

 I am about to update KDE from 4.10.4 to 4.11.1.
 Is it possible to avoid installing various nepomuks and akonadis which

 No


 appear to be required now? I have set USE=-semantic-desktop but it
 doesn't seem to help.
 My current KDE installation is quite happy without that stuff (which
 also brings along tons of other crap).


 The KDE maintainers posted quite extensively about this some time back.

 It is too hard to try and extract semantic-desktop out of the KDE build
 whilst not breaking everything else. What you now do is allow the stuff
 to be built, and disable the function in System Settings.

 What this in effect means is you spend an extra 20 minutes building and
 have a few more meg of disk space consumed by code than you never run.

There was a series of threads recently in the gentoo-desktop mailing
list about someone proposing an overlay for KDE minus the
semantic/nepomuk stuff. Search the archives for kde-lean.



Re: [gentoo-user] Re: KDE: unwanted dependencies

2013-09-13 Thread Hinnerk van Bruinehsen
On Fri, Sep 13, 2013 at 06:04:09PM +0400, Yuri K. Shatroff wrote:
 On 13.09.2013 17:50, Michael Palimaka wrote:
  On 13/09/2013 21:35, Yuri K. Shatroff wrote:
  On 13.09.2013 14:14, Alan McKinnon wrote:
  On 13/09/2013 12:10, Yuri K. Shatroff wrote:
  Hi people,
 
  I am about to update KDE from 4.10.4 to 4.11.1.
  Is it possible to avoid installing various nepomuks and akonadis which
 
  No
 
  Pity.
 
  appear to be required now? I have set USE=-semantic-desktop but it
  doesn't seem to help.
  While the USE flag has disappeared, you could try putting nepomuk and
  akonadi into your package.provided file.
 
  My current KDE installation is quite happy without that stuff (which
  also brings along tons of other crap).
 
 
  The KDE maintainers posted quite extensively about this some time back.
 
  Some time back I heard that KDE devs were striving to make KDE more
  modular.
  KDE upstream is, yes, and how this will affect semantic-desktop remains
  to be seen.

 so there is hope? ;)

  It is too hard to try and extract semantic-desktop out of the KDE build
  whilst not breaking everything else. What you now do is allow the stuff
  to be built, and disable the function in System Settings.
 
  Well why wasn't it too hard before? It's not quite obvious why one's got
  to extract some additional functionality, as opposed to including it
  when needed. A strange approach, all in all.
  The decision to remove the USE flag happened mostly because it maintain,
  and was in general not well supported anyway.
 
  There have been a number of proposals about the situation: do nothing,
  do a full revert, or implement some compromise. I would hope that we
  make a final decision about this before stabilising any 4.11 version.

 Clear, then I'll opt to wait for the stable 4.11.

  BTW, it seems that mysql is also a hard dependency for QT now. At least,
  the average joe can't be scorned any more for not having a server. Hey
  to all localhost admins! :)
  That shouldn't be the case. The default akonadi backend is mysql, why
  could explain why it's being pulled in.

 Yes, really, I was mislead, it is qtsql which requires setting the mysql
 flag, but I missed that it was due to akonadi.

IIRC you can substitute mysql with sqlite by changing useflags. mysql seems the
be the default though...

WKR
Hinnerk


signature.asc
Description: Digital signature


Re: [gentoo-user] Re: How do I downgrade chromium below 29.0.1547.57?

2013-09-13 Thread Chris Stankevitz
On Fri, Sep 13, 2013 at 6:58 AM, Michael Palimaka kensing...@gentoo.org wrote:
 All old ebuilds are always available in CVS:
 http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/www-client/chromium/?hideattic=0,
 which you could put in a local overlay.

 Don't forget to file a bug so the science team knows about the breakage! :-)

Works great, thank you.  I filed a bug also.

Chris



Re: [gentoo-user] systemd and lvm

2013-09-13 Thread Stefan G. Weichinger
Am 13.09.2013 15:33, schrieb Stefan G. Weichinger:
 Am 13.09.2013 14:54, schrieb Stefan G. Weichinger:

 new info here (for me):

 https://bugs.gentoo.org/show_bug.cgi?id=480066#c19

 gotta test ... right now I don't have the time.
 
 first tests with genkernel --udev ... : negative.
 
 More details maybe later this evening.

I found something.

journalctl -b told me that systemd was looking for

/usr/sbin/lvm

which does not exist.

I linked it from /sbin/lvm and this seems to help ... I still don't know
exactly where this comes from ... still digging.

I also removed lvm2 completely ... checked for lvm-related unit-files
and emerged it again ... no /usr/sbin/lvm found with grep. Maybe
compiled into ...

/usr/lib/systemd/system-generators/lvm2-activation-generator

Will have to check the sources or similar.





Re: [gentoo-user] systemd and lvm

2013-09-13 Thread Stefan G. Weichinger
Am 13.09.2013 19:36, schrieb Stefan G. Weichinger:

 /usr/sbin/lvm
 
 which does not exist.
 
 I linked it from /sbin/lvm and this seems to help ... I still don't know
 exactly where this comes from ... still digging.
 
 I also removed lvm2 completely ... checked for lvm-related unit-files
 and emerged it again ... no /usr/sbin/lvm found with grep. Maybe
 compiled into ...
 
 /usr/lib/systemd/system-generators/lvm2-activation-generator
 
 Will have to check the sources or similar.

Oh ... much going on here:

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



Re: [gentoo-user] cross-compiling mosh

2013-09-13 Thread Stefan G. Weichinger
Am 12.09.2013 16:55, schrieb Yohan Pereira:
 On 12/09/13 at 09:21am, Stefan G. Weichinger wrote:
 ps: anyone using mosh already? Experiences? opinions?
 
 I've been using mosh for almost a month now for my remote servers and
 when I'm away, for my workstation. I like the local echo and the
 persistent session over dodgy network connections. I can restart my
 router without worrying about re connecting via ssh. The responsiveness
 on high latency servers is also a big + for me.
 
 Set-up is also fairly straightforward just need to get the locale getup
 right. Mis-configured locale was the only issue I've ran into so far. 

I still have to get used to it ... some things are different ... for
example scrolling up the terminal history and colors.

S




Re: [gentoo-user] Can't ping remote system

2013-09-13 Thread Grant
  +1 on Alan's hunch.  I have not used Squid to comment on the specifics
  and also Grant stated that another proxy gave him similar symptoms.
  From my limited knowledge a proxy could be stalling because of cache
  configuration problems, like running out fs space, or inodes and also
  running out of memory if it has to process simultaneous requests from
  too many clients at a time. If the problem also manifests when the
  clients are within the same subnet, then this is unlikely to be a
  network issue.

 Which hunch was that?  I snipped a lot above but I couldn't find it in
 there.

 It was Alan's statement that this problem is not related to your ATT router.

 I have to come back to this.  I tried the www.google.com/nexus/ you mentioned
 and noticed that the page eats up 1.3MB to load fully, before it starts
 downloading a flash video.  So seems to be a relatively large amount of data
 that brings up this problem and this could point to tcp window scaling.

It also happens on very lightweight sites, but never on
squid-cache.org for some reason.

 echo 0  /proc/sys/net/ipv4/tcp_window_scaling

 This is typically enabled, but if you notice that a connection stalls and then
 later on it works fine again, it could be related to a firewall/router not
 responding as it should to tcp_window_scaling.  In this case disabling this
 would fix the problem when traversing problematic nodes.

 If you saw no difference, this suggests that window scaling is not an issue.

I just tested again and 'echo 0 
/proc/sys/net/ipv4/tcp_window_scaling' on both the client and server
did not fix the stalls.

 I would start with the simplest tests first, which involve isolating suspect
 system components one at a time.  Trying to use the same laptop-desktop
 machines within the LAN, takes the router out the equation - full 1500 byte
 MTU will be used by both laptop and desktop.

OK I will try this as soon as I'm back in that location.

Thanks a lot,
Grant



Re: [gentoo-user] {OT} image metadata and privacy

2013-09-13 Thread Grant
 Yes, I just had to do this myself.

 There are two packages: jhead and exiftool. The former does jpegs only.
 I wound up using exiftool, there's a single command to strip all metadata:

 exiftool -all= *.jpg

 If I remember right that creates a copy of the file it processes.

 You can use exiftool to list tags and also remove individual tags. I
 used it to make sure there were no GPS tags in pictures from my phone.

I thought I had some problems getting exiftool to work with a PNG file
but now I realize I didn't understand how to use it.  I think that
should be the de facto method for removing EXIF data from many
different image formats.

- Grant


 Has anyone found a way to completely sanitize images of all
 potentially privacy-invading metadata for posting online?  I recently
 discovered that there is actually an EXIF thumbnail image.  So if you
 have a photo and you crop it and post it online, the EXIF thumbnail of
 the original uncropped image is still there for all to see.

 - Grant



[gentoo-user] {OT} Need a new server

2013-09-13 Thread Grant
It's time to switch hosts.  I'm looking at the following:

Dual Xeon E5-2690
32GB RAM
4x SSD RAID10

This would be my first experience with multiple CPUs and RAID.  Advice
on any of the following would be greatly appreciated.

Are there any administrative variations for a dual-CPU system or do I
just need to make sure I enable the right kernel option(s)?

Is the Gentoo Software RAID + LVM guide the best place for RAID
install info if I'm not using LVM and I'll have a hardware RAID
controller?

http://www.gentoo.org/doc/en/gentoo-x86+raid+lvm2-quickinstall.xml

Since RAM is so nice for buffers/cache, how do I know when to stop
adding it to my server?

Can I count on this system to keep running if I lose an SSD?

Is a 100M uplink enough if this is my only system on the LAN?

Is hyperthreading worthwhile?

Any opinions on Soft Layer?

- Grant



Re: [gentoo-user] {OT} Need a new server

2013-09-13 Thread Alan McKinnon
On 13/09/2013 22:00, Grant wrote:
 It's time to switch hosts.  I'm looking at the following:
 
 Dual Xeon E5-2690
 32GB RAM
 4x SSD RAID10
 
 This would be my first experience with multiple CPUs and RAID.  Advice
 on any of the following would be greatly appreciated.
 
 Are there any administrative variations for a dual-CPU system or do I
 just need to make sure I enable the right kernel option(s)?

Just use the right kernel options, nothing special needs to be done.

Individual packages may or may not benefit from lots of cpus, such
packages must be configured individually of course


 Is the Gentoo Software RAID + LVM guide the best place for RAID
 install info if I'm not using LVM and I'll have a hardware RAID
 controller?

Exactly what RAID controller are you getting?

My personal rule of thumb: on-board RAID controllers are not worth the
silicon they are written on. Decent hardware raid controllers do exist,
but they plug into big meaty slots and cost a fortune. By a fortune I
mean a number that will make you gulp then head off to the nearest pub
and make the barkeep's day. (Expensive, very expensive).

Sans such decent hardware, best bet is always to do it using Linux
software RAID, and the Gentoo guide is a fine start.

 http://www.gentoo.org/doc/en/gentoo-x86+raid+lvm2-quickinstall.xml
 
 Since RAM is so nice for buffers/cache, how do I know when to stop
 adding it to my server?

When more RAM stops making a difference.

The proper answer to your question is mu, meaning it can't really be
satisfactorily answered with the info available. Only you can really
answer answer it, and only after you have examined your system in
detail. But, assuming you will use this hardware for mostly routine
normal tasks, 32G RAM is heaps and should be plenty for a long time to come.

Nothing you've ever posted leads me to believe you need crazy amounts of
RAM. It's not like your business model is to eg load every public blog
at wordpress.com with all comments and store it all in an in-memory
database :-)

 
 Can I count on this system to keep running if I lose an SSD?

Yes. If you do RAID even half-way right, you can always tolerate the
loss of one disk out of four. It's only if you do striping that you have
no redundancy at all


 
 Is a 100M uplink enough if this is my only system on the LAN?

You mean 100M ethernet right?

100M is actually a lot of traffic. However, if you have a file server
and you have on it big files  1G, it can become a drag waiting that
extra minute to push 1G through the network.

Your NICs on that hardware are 99.9% guaranteed to be 1G. It is well
worth the money to replace your switch with a 1000Mb model and invest in
decent cables. It's not expensive (a fraction of what that hardware will
cost) and you will be glad you did it, even if all the other clients are
100M

Law of diminishing returns doesn't apply here. It's a whole lot of bang
for relatively little buck

 
 Is hyperthreading worthwhile?

Yes. Horror stories about hyperthreading being bad and badly implemented
date back to 2004 or thereabouts. All that stuff got fixed.

Some software out there does not like current hyperthreading models, but
these are a) rather specialized and b) the issue is known and the vendor
will tell you upfront.

Software that uses threads in the modern style tends to fly if
hyperthreading is available. But again, this is a very general answer
and YMMV

 
 Any opinions on Soft Layer?

Never heard of it.
What is it?



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




Re: [gentoo-user] {OT} Need a new server

2013-09-13 Thread Michael Orlitzky
On 09/13/2013 04:00 PM, Grant wrote:
 It's time to switch hosts.  I'm looking at the following:
 
 Dual Xeon E5-2690
 32GB RAM
 4x SSD RAID10
 
 This would be my first experience with multiple CPUs and RAID.  Advice
 on any of the following would be greatly appreciated.
 
 Are there any administrative variations for a dual-CPU system or do I
 just need to make sure I enable the right kernel option(s)?

Just enable it in the kernel.


 Is the Gentoo Software RAID + LVM guide the best place for RAID
 install info if I'm not using LVM and I'll have a hardware RAID
 controller?
 
 http://www.gentoo.org/doc/en/gentoo-x86+raid+lvm2-quickinstall.xml

No need. Hardware RAID is handled on the RAID controller. Gentoo won't
even know about it.

LVM is (optionally) up to you.


 Since RAM is so nice for buffers/cache, how do I know when to stop
 adding it to my server?

Run `htop` every once in a while. If you're using it all and you're not
out of money, add more RAM. Otherwise, stop.


 Can I count on this system to keep running if I lose an SSD?

Yes. RAID10 both stripes and mirrors. So you can lose one, and it's
definitely mirrored on another drive. Now you have three drives. If you
lose another one, is it mirrored? Well, maybe, if you're lucky. There's
a 2/3 chance that the second drive you lose will be one of the remaining
mirror pair.

Recommendation: add a hot spare to the system.


 Is a 100M uplink enough if this is my only system on the LAN?

If you're using it all and you're not out of money, add more bandwidth.
Otherwise, stop.





Re: [gentoo-user] look for a file type + sort

2013-09-13 Thread Alexander Kapshuk

On 09/13/2013 07:48 AM, Joseph wrote:
I want to list recursively certain type of files eg. *.pdf but I want 
to display: date, path and newest file first.


What is the easiest way of doing it?


Perhaps not the most elegant solution.

ls -lt `du -a|grep -i '\.pdf$'|awk '{ print $2 }'`|awk '{ print 
$6,$7,$8,$9,$10,$11 }'





Re: [gentoo-user] {OT} Need a new server

2013-09-13 Thread Grant
 It's time to switch hosts.  I'm looking at the following:

 Dual Xeon E5-2690
 32GB RAM
 4x SSD RAID10

 This would be my first experience with multiple CPUs and RAID.  Advice
 on any of the following would be greatly appreciated.

 Is the Gentoo Software RAID + LVM guide the best place for RAID
 install info if I'm not using LVM and I'll have a hardware RAID
 controller?

 Exactly what RAID controller are you getting?

 My personal rule of thumb: on-board RAID controllers are not worth the
 silicon they are written on. Decent hardware raid controllers do exist,
 but they plug into big meaty slots and cost a fortune. By a fortune I
 mean a number that will make you gulp then head off to the nearest pub
 and make the barkeep's day. (Expensive, very expensive).

 Sans such decent hardware, best bet is always to do it using Linux
 software RAID, and the Gentoo guide is a fine start.

I'm told it will likely be an Adaptec 7000 series controller.

 Since RAM is so nice for buffers/cache, how do I know when to stop
 adding it to my server?

 When more RAM stops making a difference.

 The proper answer to your question is mu, meaning it can't really be
 satisfactorily answered with the info available. Only you can really
 answer answer it, and only after you have examined your system in
 detail. But, assuming you will use this hardware for mostly routine
 normal tasks, 32G RAM is heaps and should be plenty for a long time to come.

 Nothing you've ever posted leads me to believe you need crazy amounts of
 RAM. It's not like your business model is to eg load every public blog
 at wordpress.com with all comments and store it all in an in-memory
 database :-)

In that case maybe I'll go with 16GB instead.  It's easy to add more
later I suppose.

 Any opinions on Soft Layer?

 Never heard of it.
 What is it?

It's a host in the US.  I should have said so.

http://www.softlayer.com

- Grant



Re: [gentoo-user] {OT} Need a new server

2013-09-13 Thread Grant
 It's time to switch hosts.  I'm looking at the following:

 Dual Xeon E5-2690
 32GB RAM
 4x SSD RAID10

 This would be my first experience with multiple CPUs and RAID.  Advice
 on any of the following would be greatly appreciated.

 Is the Gentoo Software RAID + LVM guide the best place for RAID
 install info if I'm not using LVM and I'll have a hardware RAID
 controller?

 http://www.gentoo.org/doc/en/gentoo-x86+raid+lvm2-quickinstall.xml

 No need. Hardware RAID is handled on the RAID controller. Gentoo won't
 even know about it.

I had no idea.  How awesome.  So the entire array shows up as /dev/sda
when using a real hardware controller?  Just enable an extra kernel
config option or two and it works?

 Can I count on this system to keep running if I lose an SSD?

 Yes. RAID10 both stripes and mirrors. So you can lose one, and it's
 definitely mirrored on another drive. Now you have three drives. If you
 lose another one, is it mirrored? Well, maybe, if you're lucky. There's
 a 2/3 chance that the second drive you lose will be one of the remaining
 mirror pair.

 Recommendation: add a hot spare to the system.

Would the hot spare be in case I lose 2 drives at once?  Isn't that
extraordinarily unlikely?

Are modern SSDs reliable enough to negate the need for mirroring or do
they still crap out?

- Grant



Re: [gentoo-user] {OT} Need a new server

2013-09-13 Thread thegeezer
On 09/13/2013 09:00 PM, Grant wrote:
 It's time to switch hosts.  I'm looking at the following:

 Dual Xeon E5-2690
 32GB RAM
 4x SSD RAID10
nice
 Can I count on this system to keep running if I lose an SSD?
if a built in raid controller, yes. one thing you might want to check is
linux tools for management -- you wouldn't want to reboot just go to go
into the raid tools and check if it requires a rebuild, and you want to
be able to schedule regular scrubs and maybe get a report.
you might also like to consider OOB management such as IPMI, dell and HP
do very lovely web based control panels that are independent of your
main o/s allowing you to get alerts when bad things happen, and
crucially watch reboot process from remote locations.

 Is a 100M uplink enough if this is my only system on the LAN?
gigabit NICs are pretty cheap i'd be surprised if any new machine didn't
have gigabit. i would suggest if you ever want to transfer data over
10GB across the network you should request gigabit

 Is hyperthreading worthwhile?

 Any opinions on Soft Layer?

 - Grant
are you putting this server in colocation at softlayer? if so OOB is a
requirement, and gigabit is not




Re: [gentoo-user] {OT} Need a new server

2013-09-13 Thread Grant
 It's time to switch hosts.  I'm looking at the following:

 Dual Xeon E5-2690
 32GB RAM
 4x SSD RAID10
 nice
 Can I count on this system to keep running if I lose an SSD?
 if a built in raid controller, yes. one thing you might want to check is
 linux tools for management -- you wouldn't want to reboot just go to go
 into the raid tools and check if it requires a rebuild, and you want to
 be able to schedule regular scrubs and maybe get a report.
 you might also like to consider OOB management such as IPMI, dell and HP
 do very lovely web based control panels that are independent of your
 main o/s allowing you to get alerts when bad things happen, and
 crucially watch reboot process from remote locations.

Good idea, I will look into IPMI.

 Is a 100M uplink enough if this is my only system on the LAN?
 gigabit NICs are pretty cheap i'd be surprised if any new machine didn't
 have gigabit. i would suggest if you ever want to transfer data over
 10GB across the network you should request gigabit

I should be OK with 100M.  I shouldn't be copying anything across the LAN.

 Any opinions on Soft Layer?

 - Grant
 are you putting this server in colocation at softlayer? if so OOB is a
 requirement, and gigabit is not

I decided against colocation because I don't want to be responsible
for fixing hardware problems.  It would be a hosted machine.

- Grant



Re: [gentoo-user] {OT} Need a new server

2013-09-13 Thread Peter Humphrey
On Friday 13 Sep 2013 14:47:35 Grant wrote:

 Would the hot spare be in case I lose 2 drives at once?  Isn't that
 extraordinarily unlikely?

Not really. One fails and you don't notice for a while, or it takes a while to 
recover from it. Then a second one fails. You're up queer street.

-- 
Regards,
Peter




Re: [gentoo-user] {OT} Need a new server

2013-09-13 Thread Daniel Frey
On 09/13/2013 03:47 PM, Peter Humphrey wrote:
 On Friday 13 Sep 2013 14:47:35 Grant wrote:
 
 Would the hot spare be in case I lose 2 drives at once?  Isn't that
 extraordinarily unlikely?
 
 Not really. One fails and you don't notice for a while, or it takes a while 
 to 
 recover from it. Then a second one fails. You're up queer street.
 

I like to do RAID6 now because I've been burned by this. The hot spare
did work and automatically start rebuilding, but another drive failed
during the rebuild process. Not that RAID6 will help if three drives
fail, but hey.

Another thing I've read is that firmware bugs on SSDs can wipe out a
whole array. I suspect it is when the raid has all the same
manufacturer/model in it and a bug appears on multiple drives killing
the array. I can't remember the details but I do believe the rebuild
procedure causing lots of writes and the drives bug out because of all
the writes. I'll admit this is not something that I've directly seen but
you may want to consider it, maybe even having 2 sets of 2 different
models in the array. My google-fu is failing me, I can't find that
article where I read this.

Dan



Re: [gentoo-user] {OT} Need a new server

2013-09-13 Thread Michael Orlitzky
On 09/13/2013 05:47 PM, Grant wrote:
 
 I had no idea.  How awesome.  So the entire array shows up as /dev/sda
 when using a real hardware controller?  Just enable an extra kernel
 config option or two and it works?
 

Yep.


 Yes. RAID10 both stripes and mirrors. So you can lose one, and it's
 definitely mirrored on another drive. Now you have three drives. If you
 lose another one, is it mirrored? Well, maybe, if you're lucky. There's
 a 2/3 chance that the second drive you lose will be one of the remaining
 mirror pair.

 Recommendation: add a hot spare to the system.
 
 Would the hot spare be in case I lose 2 drives at once?

It's just to minimize the amount of time that you're running with a
busted drive. The RAID controller will switch to the hot spare
automatically without any human intervention, so you only have to keep
your fingers crossed for e.g. 3 hours while the array rebuilds. This is
as opposed to 3 hours + (however long it took the admin to notice that a
drive has failed).


   Isn't that extraordinarily unlikely?

If the failures were random, yes, but they aren't -- they just seem that
way. The drives that you use in a hardware RAID array should ideally be
exactly the same size and have the same firmware. It's therefore not
uncommon to wind up with a set of drives that all came off the same
manufacturing line at around the same time.

If there's a minor defect in a component, like say a solder joint that
melts at too low of a temperature, then they're all much more likely to
fail at around the same time as the first one.


 Are modern SSDs reliable enough to negate the need for mirroring or do
 they still crap out?

I don't have any experience with SSDs, but a general principle: ignore
what anyone says, mirror them anyway, and make lots of backups.





Re: [gentoo-user] look for a file type + sort

2013-09-13 Thread Mark David Dumlao
On Sep 13, 2013 9:53 PM, Yuri K. Shatroff yks-...@yandex.ru wrote:

 On 13.09.2013 17:43, Mark David Dumlao wrote:

 On Fri, Sep 13, 2013 at 9:36 PM, Yuri K. Shatroff yks-...@yandex.ru
wrote:

 On 13.09.2013 10:24, Jean-Christophe Bach wrote:
 [ ... ]


 This one should work:

 find /home/joseph/ -iname *.pdf -exec ls -l --sort=time {} +



 -exec is not suitable here because it spawns a `ls` process per each
found
 entry; aside from being slow, this disallows sorting at all.


 This is incorrect. If you terminate exec with '+' instead of '\;', only
a single
 instance of the command is run - the command line is built by appending
 each found file to the end of the {} placeholder.


 Sorry, I'm ashamed
 I didn't know about this feature. Does it also handle spaces correctly?


I'm not sure how the internals work. As best as I can guess, it constructs
the argv directly so spaces shouldn't be an issue. Spaces are an issue when
the output is piped through, since the pipe itself knows no difference
between filename and output spaces, hence the need to force zero delimiters
between filenames. Since find runs the command directly, you shouldn't
encounter this. But Ive yet to test.


 The only reason I see for it to fail is if you have so many files that
 it can't be
 passed to the argv of the receiving command.


 There's always an opportunity to use tempfiles ;)



 --
 Best wishes,
 Yuri K. Shatroff