Re: [gentoo-user] migrating disks (from mounts to disklabels

2010-11-19 Thread Alan McKinnon
Apparently, though unproven, at 03:44 on Friday 19 November 2010, Walter Dnes 
did opine thusly:

 On Wed, Nov 17, 2010 at 10:20:52PM -0600, Dale wrote
 
  This is mine and it worked when I rebooted a bit ago.
  
  LABEL=boot/bootext2noatime1 2
  LABEL=root /reiserfsdefaults0 1
  LABEL=swapnoneswapsw0 0
  LABEL=portage/usr/portageext3defaults0 1
  LABEL=home/homereiserfsdefaults1 1
  LABEL=data/datareiserfsdefaults0 1
  
  I use a variety of file systems don't I?  lol  I hope that helps.
 
   I have my own weird setup that optimizes disk usage, without LVM.  It
 consists of a 256 *MEGA*byte / partition (ext2fs), some swap, and the
 rest of the drive is one big reiserfs3 partition mounted as /home.
 /opt, /var, /usr/, and /tmp physically reside on the big /home
 partition, but are bindmounted into the / partition.
 
Device Boot  Start End  Blocks   Id  System
 /dev/sda1   1  121601   9767600015  Extended
 /dev/sda5   1  33  265009+  83  Linux
 /dev/sda6  341209 9446188+  82  Linux swap /
 Solaris /dev/sda71210  121601   967048708+  83  Linux
 
 /dev/sda5   / ext2 noatime,nodiratime,async   
 0 1 /dev/sda7   /home reiserfs
 noatime,nodiratime,async,notail 0 1 /home/bindmounts/opt/opt  auto
 bind0 0 /home/bindmounts/var/var 
 auto bind0 0 /home/bindmounts/usr/usr 
 auto bind0 0 /home/bindmounts/tmp   
 /tmp  auto bind0 0 /dev/sda6  
 none  swap   sw0 0


Let me optimize that for you a little bit more:

A single 1T reiser3 partition mounted at /

This will optimize away the small performance loss introduced by that (empty) 
/ on ext2

Seriously dude, this looks like a dumb scheme that gives you warm and fuzzies 
but doesn't actually accomplish anything except increased complexity.

Feel free to publish verifiable metrics to back up your case.


-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] E17 and package.use

2010-11-19 Thread Mick
On Thursday 18 November 2010 22:41:49 Alan McKinnon wrote:

 With all these changes it's hard to give firm advice, except to say this:
 
 If conf-update wants to make changes to package categories, and eix on your
 machine gives the same new ones as the new config file, then make the
 change. Otherwise find out why you are out of step.

Yep, eix is telling me that suggested changes are sane and therefore I should 
accept them.

 having said that, yes it does look like you have enlightenment overlay
 uninstalled and the efl one installed. And it looks like you are now going
 to switch them back around again. Life on the bleeding edge is fun, right?

Fun but uncomfortable!
=
Calculating dependencies... done!

!!! All ebuilds that could satisfy dev-libs/e_dbus have been masked.
!!! One of the following masked packages is required to complete your request:
- dev-libs/e_dbus-1.0.0_beta2 (masked by: ~amd64 keyword)
=

So it seems that I should delete efl, install enlightenment overlay instead, 
remove any package.keywords on all  ** packages (?) that I had set up for 
efl and instead unmask beta versions of packages as portage is telling me to 
do.  Have I got this right, or should I leave  ** in my package keywords 
for the enlightenment packages?

I may wait until Sunday or so in the hope that all this dust has settled, 
because I fear that I may be caught half-way between changes on efl and 
enlightenment overlays with no way of installing a working desktop.

Thanks again for holding my hand on this.
-- 
Regards,
Mick


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


Re: [gentoo-user] time for an emerge -e world?

2010-11-19 Thread Mick
On Friday 19 November 2010 05:14:26 Allan Gottlieb wrote:
 Allan Gottlieb gottl...@nyu.edu writes:
  Stroller strol...@stellar.eclipse.co.uk writes:

  You don't have to chroot to run fsck. You can just boot from the LiveCD
  and run `fsck -o -p -t -i -o -n -s /dev/sda1`.
  
  I feel a bit more confident fscking my root filesystem from a LiveCD,
  because you know that you're not repairing the floor you're standing
  on, and fsck can have full leeway to do what it needs to do to clear up
  the problem properly.
  
  The question was about emerge -e world not fsck (see quoted material
  above).
  
  The fsck succeeded prior to this (I did touch /forcefsck; reboot).
[snip ...]

 I now understand your comment better.  I should have run my previous
 fsck's under a liveCD.  You are right and I am running them again now
 under a liveCD.  I am please to report that no errors were found.

OK, that shows that nothing worse happened by your running fsck while booted 
into the same fs.  As I said this has caused problems for me with reiser4, but 
not other fs and from what Alan McKinnon said in another thread the 
fsck.reiser4 is a bit of a suspect command to play with.

 So is it now an appropriate time for me to run an
 
emerge -e world

Yep, let it rip.

Good luck!
-- 
Regards,
Mick


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


Re: [gentoo-user] Re: How to configure thochpad sensitivity (using hal)?

2010-11-19 Thread Neil Bothwick
On Thu, 18 Nov 2010 22:14:13 -0500, Walter Dnes wrote:

   This is not about ipv6 or hal or dbus in particular.  My approach is
 to only have the bare minimum necessary flags, and not allow *ANY NEW
 AND UNNECESSARY OPTIONAL* flags.  Any additional extra stuff involves
 additional bloat and complexity, and a chance of breakage.  If Dale had
 had -*, a *NEW OPTIONAL* use flag (e.g. hal) would not have been
 implemented for X.

Except that Dale almost certainly would have had hal in USE because KDE
needed it, so he would still have been bitten when HAL support was added
to XOrg.


-- 
Neil Bothwick

Das Internet is nicht fuer gefingerclicken und giffengrabben. Ist easy
droppenpacket der routers und overloaden der backbone mit der spammen
und der me-tooen. Ist nicht fuer gewerken bei das dumpkopfen. Das
mausklicken sichtseeren keepen das bandwit-spewin hans in das pockets
muss; relaxen und watchen das cursorblinken.


signature.asc
Description: PGP signature


Re: [gentoo-user] time for an emerge -e world?

2010-11-19 Thread Neil Bothwick
On Fri, 19 Nov 2010 00:14:26 -0500, Allan Gottlieb wrote:

 So is it now an appropriate time for me to run an
 
emerge -e world

It shouldn't do any harm.

 I do not mind taking this machine offline for the few days of the
 emerge.

There's no need for that, just set PORTAGE_NICENESS=19 in make.conf. You
may want to run emerge -ef world first to make sure all files you need
are in $DISTDIR.


-- 
Neil Bothwick

I am NOT a NUMBER! I am a DEMOGRAPHIC!


signature.asc
Description: PGP signature


Re: [gentoo-user] One machine sends emerge text output to stderr, not stdout

2010-11-19 Thread Neil Bothwick
On Fri, 19 Nov 2010 01:34:15 -0500, Walter Dnes wrote:

  Blaming the devs for your broken modem/router is rather unfair. If
  you'd known it was unable to handle IPv6 correctly, why didn't you
  set the flag accordingly?  
 
   My ISP didn't support ipv6 at that time.  They're now running a beta
 for native ipv6 (no tunneling) but I don't have the time to play with
 bleeding edge stuff.  Regardless of the fact that my router/modem does
 or does not support ipv6, if I don't have ipv6 service from my ISP (or a
 tunnel broker) ipv6 is pointless.

But harmless. The severe delays you noticed were the result of a broken
modem/router failing to recognise that IPv6 was not available and trying
to use it anyway. The usual fix for such a problem is a firmware update.

I don't use -*, I did see the ipv6 flag pop up in emerge -uaD world, I
disabled it. I supposed it comes down to how much you trust yourself and
the devs.

Incidentally, you are better off not using -v in this situation because
then only changed flags are shown. I still have to get out of the habit
of using it, gained years ago when portage didn't shown any use details
when you didn't use -v.


-- 
Neil Bothwick

Definition of Trust: Two cannibals having oral sex.


signature.asc
Description: PGP signature


Re: [gentoo-user] Kernel multitasking improvement

2010-11-19 Thread Petri Rosenström
On Fri, Nov 19, 2010 at 1:48 AM, Alan McKinnon alan.mckin...@gmail.com wrote:
 Apparently, though unproven, at 01:36 on Friday 19 November 2010, Daniel D
 Jones did opine thusly:

 Has anyone running Gentoo tried this?  If so, what were your results?

 http://www.webupd8.org/2010/11/alternative-to-200-lines-kernel-patch.html

 The instructions include adding the following command to .bashrc:

 mkdir -m 0700 /sys/fs/cgroup/cpu/user/$$

 Under /sys/fs/, the only subdirectory I have is fuse.  It isn't clear to me
 if simply creating the entire tree will work or if some alteration is
 necessary for this to work under Gentoo.

 cgroup is control group. I'll bet you don't have it included in your kernel.

 It's under the first menu item in menuconfig.

 The article doesn't mention it, it assumes you run redhat or ubuntu


 --
 alan dot mckinnon at gmail dot com



Hi,

I didn't try that one, but I'm running the kernel patch. My laptops
mouse lagged in some situations and this seems to have gone away.
Haven't done any real tests. I'm running git-sources 2.6.37_rc1-r8.

Best regards
Petri Rosenström



Re: [gentoo-user] Re: How to configure thochpad sensitivity (using hal)?

2010-11-19 Thread Dale

Neil Bothwick wrote:

On Thu, 18 Nov 2010 22:14:13 -0500, Walter Dnes wrote:

   

   This is not about ipv6 or hal or dbus in particular.  My approach is
to only have the bare minimum necessary flags, and not allow *ANY NEW
AND UNNECESSARY OPTIONAL* flags.  Any additional extra stuff involves
additional bloat and complexity, and a chance of breakage.  If Dale had
had -*, a *NEW OPTIONAL* use flag (e.g. hal) would not have been
implemented for X.
 

Except that Dale almost certainly would have had hal in USE because KDE
needed it, so he would still have been bitten when HAL support was added
to XOrg.

   


Yep, I added it globally, like was recommended anyway, and it worked for 
everything except xorg.  After getting to a console so I could emerge 
something, I disabled it for xorg but left it enabled for everything 
else, including KDE.


Actually, hal works OK for everything else.  Sometimes k3b will have a 
hick up or puke out a error about it but usually a recompile of k3b 
fixes that.  Well, I had to reemerge cdrtools once but anyway.  Those 
things happen.  ;-)


Dale

:-)  :-)



Re: [gentoo-user] tmux vs. screen

2010-11-19 Thread Jesús J . Guerrero Botella
These days tmux seems somewhat more actively developed, this might be
a subjective appreciation, though. But at least the tmux mailing list
seems more active. I am subscribed to both of them.

The feature that made me switch from screen to tmux back in the days
was vertical splitting, which just worked and worked well (not at
turtle pace, not blowing my cpu like in screen). It happens that
nowadays I no longer use that feature, but I kept tmux because I find
it simpler to handle, because it's lighter in my RAM, and because a
few problems with screen (besides splitting) that I no longer
remember. I switched long ago.

I have no idea if my concerns about screen still hold true. Not do I
care, since for now I have no need to change back.

-- 
Jesús Guerrero Botella



Re: [gentoo-user] migrating disks (from mounts to disklabels

2010-11-19 Thread Marius Vaitiekunas
Hi,
One question about ext4. Is it possible to resize partition without
unmounting it like on reiserfs filesystem?

On Fri, Nov 19, 2010 at 11:04 AM, Alan McKinnon alan.mckin...@gmail.comwrote:

 Apparently, though unproven, at 03:44 on Friday 19 November 2010, Walter
 Dnes
 did opine thusly:

  On Wed, Nov 17, 2010 at 10:20:52PM -0600, Dale wrote
 
   This is mine and it worked when I rebooted a bit ago.
  
   LABEL=boot/bootext2noatime1 2
   LABEL=root /reiserfsdefaults0 1
   LABEL=swapnoneswapsw0 0
   LABEL=portage/usr/portageext3defaults0 1
   LABEL=home/homereiserfsdefaults1 1
   LABEL=data/datareiserfsdefaults0 1
  
   I use a variety of file systems don't I?  lol  I hope that helps.
 
I have my own weird setup that optimizes disk usage, without LVM.  It
  consists of a 256 *MEGA*byte / partition (ext2fs), some swap, and the
  rest of the drive is one big reiserfs3 partition mounted as /home.
  /opt, /var, /usr/, and /tmp physically reside on the big /home
  partition, but are bindmounted into the / partition.
 
 Device Boot  Start End  Blocks   Id  System
  /dev/sda1   1  121601   9767600015  Extended
  /dev/sda5   1  33  265009+  83  Linux
  /dev/sda6  341209 9446188+  82  Linux swap /
  Solaris /dev/sda71210  121601   967048708+  83  Linux
 
  /dev/sda5   / ext2 noatime,nodiratime,async
  0 1 /dev/sda7   /home reiserfs
  noatime,nodiratime,async,notail 0 1 /home/bindmounts/opt/opt
  auto
  bind0 0 /home/bindmounts/var/var
  auto bind0 0 /home/bindmounts/usr/usr
  auto bind0 0 /home/bindmounts/tmp
  /tmp  auto bind0 0 /dev/sda6
  none  swap   sw0 0


 Let me optimize that for you a little bit more:

 A single 1T reiser3 partition mounted at /

 This will optimize away the small performance loss introduced by that
 (empty)
 / on ext2

 Seriously dude, this looks like a dumb scheme that gives you warm and
 fuzzies
 but doesn't actually accomplish anything except increased complexity.

 Feel free to publish verifiable metrics to back up your case.


 --
 alan dot mckinnon at gmail dot com




-- 
mv


Re: [gentoo-user] migrating disks (from mounts to disklabels

2010-11-19 Thread Mick
On Friday 19 November 2010 09:04:26 Alan McKinnon wrote:
 Apparently, though unproven, at 03:44 on Friday 19 November 2010, Walter
 Dnes
 
 did opine thusly:
  On Wed, Nov 17, 2010 at 10:20:52PM -0600, Dale wrote
  
   This is mine and it worked when I rebooted a bit ago.
   
   LABEL=boot/bootext2noatime1 2
   LABEL=root /reiserfsdefaults0 1
   LABEL=swapnoneswapsw0 0
   LABEL=portage/usr/portageext3defaults0 1
   LABEL=home/homereiserfsdefaults1 1
   LABEL=data/datareiserfsdefaults0 1
   
   I use a variety of file systems don't I?  lol  I hope that helps.
   
I have my own weird setup that optimizes disk usage, without LVM.  It
  
  consists of a 256 *MEGA*byte / partition (ext2fs), some swap, and the
  rest of the drive is one big reiserfs3 partition mounted as /home.
  /opt, /var, /usr/, and /tmp physically reside on the big /home
  partition, but are bindmounted into the / partition.
  
 Device Boot  Start End  Blocks   Id  System
  
  /dev/sda1   1  121601   9767600015  Extended
  /dev/sda5   1  33  265009+  83  Linux
  /dev/sda6  341209 9446188+  82  Linux swap /
  Solaris /dev/sda71210  121601   967048708+  83  Linux
  
  /dev/sda5   / ext2 noatime,nodiratime,async
  0 1 /dev/sda7   /home reiserfs
  noatime,nodiratime,async,notail 0 1 /home/bindmounts/opt/opt 
  auto
  
  bind0 0 /home/bindmounts/var/var
  
  auto bind0 0 /home/bindmounts/usr/usr
  
  auto bind0 0 /home/bindmounts/tmp
  
  /tmp  auto bind0 0 /dev/sda6
  
  none  swap   sw0 0
 
 Let me optimize that for you a little bit more:
 
 A single 1T reiser3 partition mounted at /
 
 This will optimize away the small performance loss introduced by that
 (empty) / on ext2
 
 Seriously dude, this looks like a dumb scheme that gives you warm and
 fuzzies but doesn't actually accomplish anything except increased
 complexity.
 
 Feel free to publish verifiable metrics to back up your case.

Haven't we been around the houses with this 4 years ago, only to conclude that 
this is how Walter liked to run his fs?  I can't recall what the main benefit 
was (other than backing up a single physical partition), but I think it was 
argued at the time that performance wise it would be better if all these 
directories were placed directly in their own independent partitions (esp. 
/tmp, /var and perhaps /usr).

Also primary partitions which he does not seem to be using at all have a 
slight edge over logical.

Anyway, this is Gentoo linux afterall so we can play tunes on our fs 
architecture more freely than other OS/distros to meet our particular needs. 
-- 
Regards,
Mick


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


Re: [gentoo-user] Re: How to configure thochpad sensitivity (using hal)?

2010-11-19 Thread Peter Humphrey
On Wednesday 17 November 2010 22:42:52 Alan McKinnon wrote:

 Developers of any sort have to be in the upper-IQ range of humanity
 (otherwise they couldn't develop shit)

Ah! Now I know where it came from...

-- 
Rgds
Peter.  Linux Counter 5290, 1994-04-23.



Re: [gentoo-user] Re: How to configure thochpad sensitivity (using hal)?

2010-11-19 Thread Peter Humphrey
On Thursday 18 November 2010 13:37:39 Neil Bothwick wrote:
 On Thu, 18 Nov 2010 14:33:45 +0100, J. Roeleveld wrote:
  One could actually argue that the profits of pubs are reduced
  because then the men don't take the women to the pubs. And that
  the pubs then miss half of their customers.
 
 Only if one were a pedant :P

And then one would have missed the point that, when a man takes his 
woman to the pub, he spends less than if he'd gone alone.

-- 
Rgds
Peter.  Linux Counter 5290, 1994-04-23.



Re: [gentoo-user] Re: How to configure thochpad sensitivity (using hal)?

2010-11-19 Thread Mick
On Friday 19 November 2010 04:55:23 Grant Edwards wrote:
 On 2010-11-18, Mick michaelkintz...@gmail.com wrote:
  On Thursday 18 November 2010 15:48:23 Grant Edwards wrote:
  You can adjust synaptics changing the configuration on the
  /etc/hal/fdi/policy/11-x11-synaptics.fdi file. man 4 synaptic can
  give you a lot of extra options.
  
  That only works if you're using the synaptics driver -- which I'm not.
  
  I haven't figured out how to do that yet.  It was built, since I
  included it in INPUT_DEVICES, but HAL decided not to use it.
  
  What does your Xorg.0.log say about synaptics?

 $ grep -i synaptic /var/log/Xorg.0.log
 (II) config/hal: Adding input device SynPS/2 Synaptics TouchPad

Excellent!  It seems then that HAL picks up your touchpad and uses it.

So,

# touch /etc/hal/fdi/policy/11-x11-synaptics.fdi

and paste this in it:

?xml version=1.0 encoding=ISO-8859-1?
deviceinfo version=0.2
  device
match key=info.capabilities contains=input.touchpad
merge key=input.x11_driver type=stringsynaptics/merge
merge key=input.x11_options.VertEdgeScroll 
type=stringtrue/merge
merge key=input.x11_options.MaxTapMove type=string2000/merge
merge key=input.x11_options.HorizEdgeScroll 
type=stringtrue/merge
merge key=input.x11_options.TapButton1 type=string1/merge
merge key=input.x11_options.ClickButton1 type=string1/merge
!-- Arbitrary options can be passed to the driver using
 the input.x11_options property since xorg-server-1.5. --
!-- EXAMPLES:
Switch on shared memory, enables the driver to be configured at 
runtime
merge key=input.x11_options.SHMConfig type=stringtrue/merge

Maximum movement of the finger for detecting a tap
merge key=input.x11_options.MaxTapMove type=string2000/merge

Enable vertical scrolling when dragging along the right edge
merge key=input.x11_options.VertEdgeScroll 
type=stringtrue/merge

Enable vertical scrolling when dragging with two fingers anywhere on 
the touchpad
merge key=input.x11_options.VertTwoFingerScroll 
type=stringtrue/merge

Enable horizontal scrolling when dragging with two fingers anywhere on 
the touchpad
merge key=input.x11_options.HorizTwoFingerScroll 
type=stringtrue/merge

If on, circular scrolling is used
merge key=input.x11_options.CircularScrolling 
type=stringtrue/merge

For other possible options, check CONFIGURATION DETAILS in synaptics 
man page
--
/match
  /device
/deviceinfo


Then see the examples in the file and man synaptics for finely tuning your 
touchpad.  However ... I would at this stage suggest again that you have a 
look at xorg-server-1.9.x instead of trying to get HAL working.

HTH.
-- 
Regards,
Mick


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


Re: [gentoo-user] E17 and package.use

2010-11-19 Thread Alan McKinnon
Apparently, though unproven, at 11:06 on Friday 19 November 2010, Mick did 
opine thusly:

 On Thursday 18 November 2010 22:41:49 Alan McKinnon wrote:
  With all these changes it's hard to give firm advice, except to say this:
  
  If conf-update wants to make changes to package categories, and eix on
  your machine gives the same new ones as the new config file, then make
  the change. Otherwise find out why you are out of step.
 
 Yep, eix is telling me that suggested changes are sane and therefore I
 should accept them.
 
  having said that, yes it does look like you have enlightenment overlay
  uninstalled and the efl one installed. And it looks like you are now
  going to switch them back around again. Life on the bleeding edge is
  fun, right?
 
 Fun but uncomfortable!
 =
 Calculating dependencies... done!
 
 !!! All ebuilds that could satisfy dev-libs/e_dbus have been masked.
 !!! One of the following masked packages is required to complete your
 request: - dev-libs/e_dbus-1.0.0_beta2 (masked by: ~amd64 keyword)
 =
 
 So it seems that I should delete efl, install enlightenment overlay
 instead, remove any package.keywords on all  ** packages (?) that I
 had set up for efl and instead unmask beta versions of packages as portage
 is telling me to do.  Have I got this right, or should I leave  ** in
 my package keywords for the enlightenment packages?

You shouldn't have to unmask the packages as they won't be listed in 
profiles/package.mask, so the keyword method should be right.

And we'll have to watch for category/package names changes as well and modify 
keywords to suit. But that won't break anything, you'll get a message saying a 
package is masked. Once you unmask/keyword it, the emerge will proceed.

 
 I may wait until Sunday or so in the hope that all this dust has settled,
 because I fear that I may be caught half-way between changes on efl and
 enlightenment overlays with no way of installing a working desktop.
 
 Thanks again for holding my hand on this.

-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] /etc/portage/package.use/java

2010-11-19 Thread Gary Golden
On 11/18/2010 08:52 PM, Mike Edenfield wrote:
 Is there something special about the file name
 /etc/portage/package.use/java ?  For some reason, if I create this file
 to hold USE flags for my java packages, bash tries to source it when I
 log in.  As far as I can tell this is the only filename that gets this
 wierd treatment:
 
 platypus kutulu # cat /etc/portage/package.use/java
 echo This is /etc/portage/package.use/java!
 
 Last login: Thu Nov 18 10:35:07 EST 2010 from mike-desktop on pts/2
 This is /etc/portage/package.use/java!
 kut...@platypus ~ $
 
 
 

I would start from
grep -R source /etc/portage/package.use/java /etc

-- 
Gary Golden



Re: [gentoo-user] migrating disks (from mounts to disklabels

2010-11-19 Thread Alan McKinnon
Apparently, though unproven, at 12:49 on Friday 19 November 2010, Marius 
Vaitiekunas did opine thusly:

 Hi,
 One question about ext4. Is it possible to resize partition without
 unmounting it like on reiserfs filesystem?

Yes, you can grow a mounted filesystem, just not shrink it. Most decent Unix 
filesystems support this, I think xfs is the only one in common use that 
doesn't.




 
 On Fri, Nov 19, 2010 at 11:04 AM, Alan McKinnon 
alan.mckin...@gmail.comwrote:
  Apparently, though unproven, at 03:44 on Friday 19 November 2010, Walter
  Dnes
  
  did opine thusly:
   On Wed, Nov 17, 2010 at 10:20:52PM -0600, Dale wrote
   
This is mine and it worked when I rebooted a bit ago.

LABEL=boot/bootext2noatime1 2
LABEL=root /reiserfsdefaults0 1
LABEL=swapnoneswapsw0 0
LABEL=portage/usr/portageext3defaults0 1
LABEL=home/homereiserfsdefaults1 1
LABEL=data/datareiserfsdefaults0 1

I use a variety of file systems don't I?  lol  I hope that helps.

 I have my own weird setup that optimizes disk usage, without LVM.  It
   
   consists of a 256 *MEGA*byte / partition (ext2fs), some swap, and the
   rest of the drive is one big reiserfs3 partition mounted as /home.
   /opt, /var, /usr/, and /tmp physically reside on the big /home
   partition, but are bindmounted into the / partition.
   
  Device Boot  Start End  Blocks   Id  System
   
   /dev/sda1   1  121601   9767600015  Extended
   /dev/sda5   1  33  265009+  83  Linux
   /dev/sda6  341209 9446188+  82  Linux swap /
   Solaris /dev/sda71210  121601   967048708+  83  Linux
   
   /dev/sda5   / ext2 noatime,nodiratime,async
   0 1 /dev/sda7   /home reiserfs
   noatime,nodiratime,async,notail 0 1 /home/bindmounts/opt/opt
   
   auto
   
   bind0 0 /home/bindmounts/var/var
   
   auto bind0 0 /home/bindmounts/usr   
   /usr
   
   auto bind0 0 /home/bindmounts/tmp
   
   /tmp  auto bind0 0 /dev/sda6
   
   none  swap   sw0 0
  
  Let me optimize that for you a little bit more:
  
  A single 1T reiser3 partition mounted at /
  
  This will optimize away the small performance loss introduced by that
  (empty)
  / on ext2
  
  Seriously dude, this looks like a dumb scheme that gives you warm and
  fuzzies
  but doesn't actually accomplish anything except increased complexity.
  
  Feel free to publish verifiable metrics to back up your case.
  
  
  --
  alan dot mckinnon at gmail dot com

-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] time for an emerge -e world?

2010-11-19 Thread Allan Gottlieb
Mick michaelkintz...@gmail.com writes:

 On Friday 19 November 2010 05:14:26 Allan Gottlieb wrote:
 Allan Gottlieb gottl...@nyu.edu writes:
  Stroller strol...@stellar.eclipse.co.uk writes:

  You don't have to chroot to run fsck. You can just boot from the LiveCD
  and run `fsck -o -p -t -i -o -n -s /dev/sda1`.
  
  I feel a bit more confident fscking my root filesystem from a LiveCD,
  because you know that you're not repairing the floor you're standing
  on, and fsck can have full leeway to do what it needs to do to clear up
  the problem properly.
  
  The question was about emerge -e world not fsck (see quoted material
  above).
  
  The fsck succeeded prior to this (I did touch /forcefsck; reboot).
 [snip ...]

 I now understand your comment better.  I should have run my previous
 fsck's under a liveCD.  You are right and I am running them again now
 under a liveCD.  I am please to report that no errors were found.

 OK, that shows that nothing worse happened by your running fsck while booted 
 into the same fs.  As I said this has caused problems for me with reiser4, 
 but 
 not other fs and from what Alan McKinnon said in another thread the 
 fsck.reiser4 is a bit of a suspect command to play with.

 So is it now an appropriate time for me to run an
 
emerge -e world

 Yep, let it rip.

 Good luck!

Thanks.
allan



Re: [gentoo-user] time for an emerge -e world?

2010-11-19 Thread Allan Gottlieb
Neil Bothwick n...@digimed.co.uk writes:

 On Fri, 19 Nov 2010 00:14:26 -0500, Allan Gottlieb wrote:

 So is it now an appropriate time for me to run an
 
emerge -e world

 It shouldn't do any harm.

 I do not mind taking this machine offline for the few days of the
 emerge.

 There's no need for that, just set PORTAGE_NICENESS=19 in make.conf. You
 may want to run emerge -ef world first to make sure all files you need
 are in $DISTDIR.

thanks,
allan




Re: [gentoo-user] Re: How to configure thochpad sensitivity (using hal)?

2010-11-19 Thread Alan McKinnon
Apparently, though unproven, at 13:07 on Friday 19 November 2010, Peter 
Humphrey did opine thusly:

 On Wednesday 17 November 2010 22:42:52 Alan McKinnon wrote:
  Developers of any sort have to be in the upper-IQ range of humanity
  (otherwise they couldn't develop shit)
 
 Ah! Now I know where it came from...

Wise-ass :-)

We can use wise-asses like you here. Can I set up an interview?
You'll have to relocate to Africa though ;-)


-- 
alan dot mckinnon at gmail dot com



[gentoo-user] proftpd issue after openssl update

2010-11-19 Thread Alexander Tiurin
hi!
After the latest update to openssl-1.0.0b-r1 and running revdep-rebuild
and /etc/init.d/proftpd restart  I get this messages:


# revdep-rebuild -i
.
==cut==
.
* Collecting complete LD_LIBRARY_PATH
* Generated new 2_ldpath.rr
* Checking dynamic linking consistency
[ 100% ]

 * Dynamic linking on your system is consistent... All done.


# /etc/init.d/proftpd restart

 * Stopping   ProFTPD ... [ok]
 * Starting ProFTPD ...
 - mod_tls/2.4.1: compiled using OpenSSL version 'OpenSSL 1.0.0a 1 Jun
   2010' headers, but linked  to OpenSSL version 'OpenSSL  1.0.0b 16
   Nov 2010' library  [ ok ]

How do I go about fixing my problem?






[gentoo-user] Re: migrating disks (from mounts to disklabels

2010-11-19 Thread James
Alan McKinnon alan.mckinnon at gmail.com writes:


 The bit where you use a LiveCD 


Well, I'll leave the old disk in place for
now and just put ext4 on the new disk as 
/usr/local2. That way I can move from system to 
system and it is just going to house video
files of all sorts. If ext4 messes up,
I have the video archived elsewhere.
Reiser3 has work flawlessly for me, but,
I guess it is time to move on as I prepare
for btrfs, CEPH, postgresql9, and other distributed
technologies.

Trying to download the LiveCD from numerous
places around the net I can't seem to get
more that 100KB/s. The download failed last
night, so I've restarted it. Plenty of disk
space on my end. I ran speed tests to my ISP
and I get 5M(should be 15M) down and 2M (yipee!) up
to a local test server the ISP operates,
 so that's not the  bottleneck. From what I could tell, the net
had(ha) problems last night. Many of the mirror
I tested last night manually, did not respond for
quite a while and the latencies where all over
the place (60 -6000) and packet losses where 30-70%.
I could have been BrightHouse and their (MPLS) 
issues, or elsewhere.

Any good recommendations on on the Internet
Traffic status? 

The net looks horrible here:

http://www.internettrafficreport.com/main.htm


I sure wish mirrorselect, was somehow more
dynamic, meaning the download could switch
mid-process, to another source, if there was
a 50% or so faster download link available.
You know some sort of state table maintained
on link speeds to my top 12 mirrors close to
my net (fastest throughputs). (urely I dream.)

 as this download will take 6+ hours (at 120KB/s)...

thanks to all for the suggestions,

James








Re: [gentoo-user] proftpd issue after openssl update

2010-11-19 Thread Alan McKinnon
Apparently, though unproven, at 15:55 on Friday 19 November 2010, Alexander 
Tiurin did opine thusly:

 hi!
 After the latest update to openssl-1.0.0b-r1 and running revdep-rebuild
 and /etc/init.d/proftpd restart  I get this messages:
 
 
 # revdep-rebuild -i
 .
 ==cut==
 .
 * Collecting complete LD_LIBRARY_PATH
 * Generated new 2_ldpath.rr
 * Checking dynamic linking consistency
 [ 100% ]
 
  * Dynamic linking on your system is consistent... All done.
 
 
 # /etc/init.d/proftpd restart
 
  * Stopping   ProFTPD ... [ok]
  * Starting ProFTPD ...
  - mod_tls/2.4.1: compiled using OpenSSL version 'OpenSSL 1.0.0a 1 Jun
2010' headers, but linked  to OpenSSL version 'OpenSSL  1.0.0b 16
Nov 2010' library  [ ok ]
 
 How do I go about fixing my problem?

Try lafilefixer --justfixit and rebuild proftp


-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] Re: X crashing

2010-11-19 Thread Jacques Montier


--
Jacques
Site web https://sites.google.com/site/jacquesfr35/
Le 18/11/2010 23:55, Mick a gentiment tapote:
 On Wednesday 17 November 2010 17:27:28 Jacques Montier wrote:
 Le 17/11/2010 18:07, walt a écrit :
 On 11/17/2010 07:17 AM, Jacques Montier wrote:
 Hi all,

 I use an astronomical open source imaging software
 (http://www.audela.org/)
 which works fine except when launching a tcl photometry script
 (Calaphot).
 X crashes with the error message :

 X Error of failed request:  BadMatch (invalid parameter attributes)

Major opcode of failed request:  148 (RENDER)
Minor opcode of failed request:  4 (RenderCreatePicture)
Serial number of failed request:  51329
Current serial number in output stream:  51338

 I get the same crash on two PCs with Gentoo.
 I use an ATI graphic card
 01:00.0 VGA compatible controller: ATI Technologies Inc RV350 [Mobility
 Radeon 9600 M10]
 and the open source radeon driver.
 You may have found a bug in the open source driver.  Is there a binary
 driver available from ATI that you can try?
 Binary ati drivers don't work with this old graphic card (RV350 Radon
 9600), but i can try again for see..
 Have you tried enabling CONFIG_DRM_RADEON_KMS=y in your kernel, disabling 
 vesa/uvesa and testing xorg-server-1.9.x it to see if it is more 
 stable/reliable?


Hi Mick

I enabled CONFIG_DRM_RADEON_KMS=y, but the pc doesn't boot anymore
(black screen).
Returned to the old config...

Thank you,

--
Jacques



Re: [gentoo-user] migrating disks (from mounts to disklabels

2010-11-19 Thread Neil Bothwick
On Fri, 19 Nov 2010 14:07:54 +0200, Alan McKinnon wrote:

 Yes, you can grow a mounted filesystem, just not shrink it. Most decent
 Unix filesystems support this, I think xfs is the only one in common
 use that doesn't.

XFS allows growing a mounted filesystem, but it has no option to shrink a
filesystem, mounted or otherwise.


-- 
Neil Bothwick

Top Oxymorons Number 35: Legally drunk


signature.asc
Description: PGP signature


Re: [gentoo-user] migrating disks (from mounts to disklabels

2010-11-19 Thread Neil Bothwick
On Fri, 19 Nov 2010 10:52:50 +, Mick wrote:

 Also primary partitions which he does not seem to be using at all have
 a slight edge over logical.

Do you have any data on this? I generally use all logical partitions but
could be persuaded to rethink.


-- 
Neil Bothwick

Top Oxymorons Number 11: Terribly pleased


signature.asc
Description: PGP signature


Re: [gentoo-user] Re: migrating disks (from mounts to disklabels

2010-11-19 Thread Alan McKinnon
Apparently, though unproven, at 15:56 on Friday 19 November 2010, James did 
opine thusly:

 Any good recommendations on on the Internet
 Traffic status? 
 
 The net looks horrible here:
 
 http://www.internettrafficreport.com/main.htm

Yuck, that sux.

Down here at the tip of Africa, we didn't see anything unusual.
 
 I sure wish mirrorselect, was somehow more
 dynamic, meaning the download could switch
 mid-process, to another source, if there was
 a 50% or so faster download link available.
 You know some sort of state table maintained
 on link speeds to my top 12 mirrors close to
 my net (fastest throughputs). (urely I dream.)

I hear Zac is very receptive to patches :-)

-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] migrating disks (from mounts to disklabels

2010-11-19 Thread Alan McKinnon
Apparently, though unproven, at 16:41 on Friday 19 November 2010, Neil 
Bothwick did opine thusly:

 On Fri, 19 Nov 2010 14:07:54 +0200, Alan McKinnon wrote:
  Yes, you can grow a mounted filesystem, just not shrink it. Most decent
  Unix filesystems support this, I think xfs is the only one in common
  use that doesn't.
 
 XFS allows growing a mounted filesystem, but it has no option to shrink a
 filesystem, mounted or otherwise.

Ah, ok.

xfs isn't something I use and I had a niggling thought I might have got the 
details wrong. Thanks for that.


-- 
alan dot mckinnon at gmail dot com



[gentoo-user] Nepomuk indexing, what triggers it?

2010-11-19 Thread Alan McKinnon
Hi all,

Haven't had much luck finding this info:

If I reboot this machine and start KDE, Nepomuk starts a rather long-lived 
index of my home directory. It takes up about 30-40% cpu and lasts as much as 
15 minutes sometimes. This is annoying because after a reboot I usually want 
to catch up on mail, rss feeds and fire up VirtualBox. So nepomuk is just 
wasting my time at this point.

How does nepomuk know when to do it's thing, how can I tweak what it does and 
how can I discover why it feels it necessary to reindex my entire maildir when 
surely it has a perfectly valid index already from just before I shut down?

Strigi is also enabled if that's relevant to the question.


-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] Re: How to configure thochpad sensitivity (using hal)?

2010-11-19 Thread Peter Humphrey
On Friday 19 November 2010 13:41:32 Alan McKinnon wrote:
 Apparently, though unproven, at 13:07 on Friday 19 November 2010,
 Peter Humphrey did opine thusly:
  On Wednesday 17 November 2010 22:42:52 Alan McKinnon wrote:
   Developers of any sort have to be in the upper-IQ range of
   humanity (otherwise they couldn't develop shit)
  
  Ah! Now I know where it came from...
 
 Wise-ass :-)
 
 We can use wise-asses like you here. Can I set up an interview?
 You'll have to relocate to Africa though ;-)

Odd you should say that. I was offered a job in Swaziland in about '69. 
It came to naught though. Was that a tragic missed opportunity or an 
escape by the skin of my teeth?

-- 
Rgds
Peter.  Linux Counter 5290, 1994-04-23.



Re: [gentoo-user] Re: FYI - 2.6.38 desktop responsiveness patch + how to do it now

2010-11-19 Thread Alan McKinnon
Apparently, though unproven, at 17:18 on Friday 19 November 2010, Nikos 
Chantziaras did opine thusly:

 On 11/19/2010 04:37 AM, Adam Carter wrote:
  2.6.38 should contain a ~200 line patch that makes a huge difference to
  desktop responsiveness under load;
  Tests done by Mike show the maximum latency dropping by over ten times
  and the average latency of the desktop by about 60 times
  Ref:
  http://www.phoronix.com/scan.php?page=articleitem=linux_2637_videonum=1
  http://www.phoronix.com/scan.php?page=articleitem=linux_2637_videonum
  =1
  
  And a RedHat dev reckons you can get the same via configuration;
  Ref:
  http://www.webupd8.org/2010/11/alternative-to-200-lines-kernel-patch.html
  
  I havent tried it yet...
 
 Doesn't this patch group tasks by TTY?

As I understand it, the kernel patch does group by TTY. Personally I think 
that's just one way of doing it and there could be others. So it's more proof-
of-concept than TheOneTrueWay(tm)

The config and bash commands method from RedHat does things slightly 
differently. Prevailing opinion on /. is that the patch method is cleaner but 
more restrictive, which the userspace method is more configurable but requires 
root.

Perhaps distros will pick up on this and offer other criteria, maybe something 
like a profile selectable at boot-time or maybe even runtime.

What *I* would like to see is flash goes into it's own group and gets 
throttled. Everything else running under KDE is in a different group and left 
to run full speed



-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] Re: How to configure thochpad sensitivity (using hal)?

2010-11-19 Thread Alan McKinnon
Apparently, though unproven, at 17:28 on Friday 19 November 2010, Peter 
Humphrey did opine thusly:

 On Friday 19 November 2010 13:41:32 Alan McKinnon wrote:
  Apparently, though unproven, at 13:07 on Friday 19 November 2010,
  
  Peter Humphrey did opine thusly:
   On Wednesday 17 November 2010 22:42:52 Alan McKinnon wrote:
Developers of any sort have to be in the upper-IQ range of
humanity (otherwise they couldn't develop shit)
   
   Ah! Now I know where it came from...
  
  Wise-ass :-)
  
  We can use wise-asses like you here. Can I set up an interview?
  You'll have to relocate to Africa though ;-)
 
 Odd you should say that. I was offered a job in Swaziland in about '69.
 It came to naught though. Was that a tragic missed opportunity or an
 escape by the skin of my teeth?

The latter methinks.

Unless you are thrilled by the sight of bare-breasted Nguni maidens attired 
thusly in public, in which case the former :-)


-- 
alan dot mckinnon at gmail dot com



[gentoo-user] Re: migrating disks (from mounts to disklabels

2010-11-19 Thread Nuno J. Silva
Alan McKinnon alan.mckin...@gmail.com writes:

 Apparently, though unproven, at 23:59 on Wednesday 17 November 2010, James 
 did 
 opine thusly:

 Hello,
 
 I have a ~250 gig sata disk I want to migrate to a 2T
 Sata disk. This is simple, but, I have a few caveats.
[...]
 Now just rsync everything in /mnt/sda* to the right place in /mnt/sdb

Some weeks ago, I did this kind of migration. I ended up using good ol'
tar - after lots of research, it was the only way I found to be sure
hard links would still be linked in the new filesystem.

IIRC, rsync does not deal with hard links, or am I mistaken? 

-- 
Nuno J. Silva (aka njsg)
gopher://sdf-eu.org/1/users/njsg




Re: [gentoo-user] migrating disks (from mounts to disklabels

2010-11-19 Thread Peter Humphrey
On Friday 19 November 2010 14:42:23 Neil Bothwick wrote:
 On Fri, 19 Nov 2010 10:52:50 +, Mick wrote:
  Also primary partitions which he does not seem to be using at all
  have a slight edge over logical.
 
 Do you have any data on this? I generally use all logical partitions
 but could be persuaded to rethink.

Well there must be one level of indirection on first access, since the 
start of the logical partition has to be looked up in a primary 
partition, but I can't imagine that being needed more than once per 
reboot.

FWIW I use primaries for /boot, primary swap and (often) / but can't for 
anything else. I do this to obtain more accessible partitions because I 
used to try to cram several distros into one box.

-- 
Rgds
Peter.  Linux Counter 5290, 1994-04-23.



[gentoo-user] Re: FYI - 2.6.38 desktop responsiveness patch + how to do it now

2010-11-19 Thread Nikos Chantziaras

On 11/19/2010 05:36 PM, Alan McKinnon wrote:

Apparently, though unproven, at 17:18 on Friday 19 November 2010, Nikos
Chantziaras did opine thusly:


On 11/19/2010 04:37 AM, Adam Carter wrote:

2.6.38 should contain a ~200 line patch that makes a huge difference to
desktop responsiveness under load;
Tests done by Mike show the maximum latency dropping by over ten times
and the average latency of the desktop by about 60 times
Ref:
http://www.phoronix.com/scan.php?page=articleitem=linux_2637_videonum=1
http://www.phoronix.com/scan.php?page=articleitem=linux_2637_videonum
=1

And a RedHat dev reckons you can get the same via configuration;
Ref:
http://www.webupd8.org/2010/11/alternative-to-200-lines-kernel-patch.html

I havent tried it yet...


Doesn't this patch group tasks by TTY?


As I understand it, the kernel patch does group by TTY. Personally I think
that's just one way of doing it and there could be others. So it's more proof-
of-concept than TheOneTrueWay(tm)

The config and bash commands method from RedHat does things slightly
differently. Prevailing opinion on /. is that the patch method is cleaner but
more restrictive, which the userspace method is more configurable but requires
root.

Perhaps distros will pick up on this and offer other criteria, maybe something
like a profile selectable at boot-time or maybe even runtime.

What *I* would like to see is flash goes into it's own group and gets
throttled. Everything else running under KDE is in a different group and left
to run full speed


I was kind of hoping this would give results in the same league as the 
BFS patch, but it seems it something that needs tweaking and doesn't 
just work for everything.  It doesn't look like it's for desktop 
users, only for make -j999 people.





Re: [gentoo-user] how to rebuild gentoo on a somewhat different hardware

2010-11-19 Thread Alan McKinnon
Apparently, though unproven, at 12:06 on Tuesday 16 November 2010, Helmut 
Jarausch did opine thusly:

 On 11/16/10 10:56:29, Alan McKinnon wrote:
  Backup your portage related data and re-install.
  
  Seriously - you know you are looking at doing emerge -e world and
  will
  need to
  fiddle stuff to make it complete successfully.
  
  If you just reinstall, put your old world file and /etc/portage/ back
  then let
  portage have at it, that is exactly what will happen. You'll have
  30-45
  minutes of setup work and a high level of confidence it will complete
  successfully.
  
  Trying to fix the existing installation is potentially many hours of
  poking
  around to see what changed, potentially several goes at running
  emerge
  -e
  world, hair pulling, and you will probably give up and just reinstall
  anyway.
  
  I'm assuming you are looking for the easiest, fastest route to
  success
  with
  the least pain, and that your days of poking into portage to see how
  things
  work for fun are long over.
 
 Thanks Alan,
 
 just one more question: where are information like the
 current eselect(ions) stored?

I've never found a place where eselect stores it's info. I suspect it directly 
reads all the various symlinks off disk when it starts up. If so, this will 
cause you some extra manual work.




-- 
alan dot mckinnon at gmail dot com



[gentoo-user] [OT] Finding old files

2010-11-19 Thread Peter Humphrey
Hello list,

Just to expose my ignorance again, would someone lift my blinkers 
please? I'm recovering from an infection and my brain is stuck.

It's time to start pruning old stuff from the website I run, which has 
2200 files in 200 directories.

I'm trying to find old images like this:
find . -iname \*.jpg -exec ls '-cdl' {} \; | cut -d \  -f 5-10

But this excludes the year (even though listing an old file manually 
shows the year if it's over 12 months old), so I can't use that to 
decide. If I do this:
find . -iname \*.jpg -exec ls '-cdl --time-style=full-iso' {} \; |\
cut -d \  -f 5-10
I get an error message: ls: invalid option -- ' '

Why does ls differ when executed by find from on the command line?

Is there a simple way to do this? Ideally I'd like a chronologically 
ordered list of the files. I have noatime set in fstab, so I'll have to 
rely on creation or modification date.

-- 
Rgds
Peter.  Linux Counter 5290, 1994-04-23.



Re: [gentoo-user] Nepomuk indexing, what triggers it?

2010-11-19 Thread Paul Hartman
On Fri, Nov 19, 2010 at 9:17 AM, Alan McKinnon alan.mckin...@gmail.com wrote:
 Hi all,

 Haven't had much luck finding this info:

 If I reboot this machine and start KDE, Nepomuk starts a rather long-lived
 index of my home directory. It takes up about 30-40% cpu and lasts as much as
 15 minutes sometimes. This is annoying because after a reboot I usually want
 to catch up on mail, rss feeds and fire up VirtualBox. So nepomuk is just
 wasting my time at this point.

My /guess/ is that it scans every time you restart to be sure nothing
changed while it was shutdown. It doesn't know if you've dual-booted,
logged into xfce, mounted the disk in another machine, had fsck remove
files, etc.

I think Tracker behaves the same way in gnome-land.

 How does nepomuk know when to do it's thing, how can I tweak what it does and
 how can I discover why it feels it necessary to reindex my entire maildir when
 surely it has a perfectly valid index already from just before I shut down?

I am pretty sure it is tied to your KDE user session, and not running
as a system daemon in the background. Perhaps you can suspend it via
some autostarting script, and then resume it after whatever amount of
time you're comfortable with.

Looking in here:
http://api.kde.org/4.5-api/kdebase-runtime-apidocs/nepomuk/html/classNepomuk_1_1IndexScheduler.html

In the indexing speed settings, it says:

enum Nepomuk::IndexScheduler::IndexingSpeed

Enumerator:
FullSpeed   Index at full speed, i.e. do not use any artificial delays.
This is the mode used if the user is away.

ReducedSpeedReduce the indexing speed mildly.
This is the normal mode used while the user works. The indexer
uses small delay between indexing two files in order to keep the load
on CPU and IO down.

SnailPace   Like ReducedSpeed delays are used but they are much
longer to get even less CPU and IO load.
This mode is used for the first 2 minutes after startup to give
the KDE session manager time to start up the KDE session rapidly.


So based on that, for the first 2 minutes after KDE starts it should
be using the least aggressive indexing speed (but indexing
nevertheless).

(Personally I've always had all that indexing/social-semantic-desktop
stuff disabled completely.)



[gentoo-user] Re: migrating disks (from mounts to disklabels

2010-11-19 Thread Nuno J. Silva
nunojsi...@ist.utl.pt (Nuno J. Silva) writes:

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

 Apparently, though unproven, at 23:59 on Wednesday 17 November 2010, James 
 did 
 opine thusly:

 Hello,
 
 I have a ~250 gig sata disk I want to migrate to a 2T
 Sata disk. This is simple, but, I have a few caveats.
 [...]
 Now just rsync everything in /mnt/sda* to the right place in /mnt/sdb

 Some weeks ago, I did this kind of migration. I ended up using good ol'
 tar - after lots of research, it was the only way I found to be sure
 hard links would still be linked in the new filesystem.

 IIRC, rsync does not deal with hard links, or am I mistaken? 

(And then I read the rest of the thread and found out it actually does,
so ignore me.)

-- 
Nuno J. Silva
gopher://sdf-eu.org/1/users/njsg




[gentoo-user] Re: [OT] Finding old files

2010-11-19 Thread Grant Edwards
On 2010-11-19, Peter Humphrey pe...@humphrey.ukfsn.org wrote:
 Hello list,

 Just to expose my ignorance again, would someone lift my blinkers 
 please? I'm recovering from an infection and my brain is stuck.

 It's time to start pruning old stuff from the website I run, which has 
 2200 files in 200 directories.

 I'm trying to find old images like this:
 find . -iname \*.jpg -exec ls '-cdl' {} \; | cut -d \  -f 5-10

It's obvious how that command finds old images.  Can you explain what
it's supposed to do?

 Is there a simple way to do this? Ideally I'd like a chronologically 
 ordered list of the files.

Do you want a chronologically ordered list, or do you want to find
files older than a certain age?

If the former, try this:

  find . -iname '*.jpg' | xargs ls -lt

If the latter, read the 'find' man page and look for the -mtime test.

-- 
Grant Edwards   grant.b.edwardsYow! My nose feels like a
  at   bad Ronald Reagan movie ...
  gmail.com




Re: [gentoo-user] How to exclude a directory from rsync

2010-11-19 Thread Alan McKinnon
Apparently, though unproven, at 15:28 on Tuesday 16 November 2010, Mick did 
opine thusly:

 On 16 November 2010 09:00, Stefan G. Weichinger li...@xunil.at wrote:
  Am 15.11.2010 23:50, schrieb Mick:
  Thanks Stefan, I'm afraid I'm still getting the same problem:
  
  rsync: opendir /mnt/User_WinXP/System Volume Information failed:
  Permission denied (13)
  
  Why is rsync trying to open this directory, when I thought I've asked it
  to exclude it?
  
  Maybe you did it wrong?
  
  ;-)
  
  You don't show us what you did ...
 
 I ran the same as before but changed the path to the one you suggested:
 
 ===
 'rsync -a -l -v --exclude ./System Volume Information
 -e ssh -c blowfish -l root /mnt/User_WinXP/
 10.10.10.25:/home/httpd/backup'
 
 sending incremental file list
 rsync: opendir /mnt/User_WinXP/System Volume Information failed:
 Permission denied (13)
 
 [snip ...]
 
 rsync error: some files/attrs were not transferred (see previous
 errors) (code 23) at main.c(1042) [sender=3.0.7]
 ===
 
 The System Volume is shown as 0700 (mounted with default permissions)
 and is owned by root when viewed from Gentoo.

Don't think of --exclude as being a file path match, think of it as more a 
regex (usually just a literal one). It specifies a pattern that if found if 
the full pathname, results in the file not being synced.

The string ./System Volume Information of course appears nowhere in the 
rsync output list of files.

I think you want:

--exclude /System Volume Information

Then rsync will not attempt to open the directory at all

-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] [OT] Finding old files

2010-11-19 Thread Paul Hartman
On Fri, Nov 19, 2010 at 10:29 AM, Peter Humphrey
pe...@humphrey.ukfsn.org wrote:
 Hello list,

 Just to expose my ignorance again, would someone lift my blinkers
 please? I'm recovering from an infection and my brain is stuck.

 It's time to start pruning old stuff from the website I run, which has
 2200 files in 200 directories.

You can use -mtime option in find to return files whose modification
time are older than X days ago. For example I have a job to delete
files who are 48 hours old using something like:

find /directoryname -mtime +1 -delete

(something like that, i'm writing it from memory, refer to manpage)



Re: [gentoo-user] Re: [OT] Finding old files

2010-11-19 Thread Peter Humphrey
On Friday 19 November 2010 16:40:37 Grant Edwards wrote:
 On 2010-11-19, Peter Humphrey pe...@humphrey.ukfsn.org wrote:
  Hello list,
  
  Just to expose my ignorance again, would someone lift my blinkers
  please? I'm recovering from an infection and my brain is stuck.
  
  It's time to start pruning old stuff from the website I run, which
  has 2200 files in 200 directories.
  
  I'm trying to find old images like this:
  find . -iname \*.jpg -exec ls '-cdl' {} \; | cut -d \  -f 5-10
 
 It's obvious how that command finds old images.  Can you explain what
 it's supposed to do?

The cut command simply strips off the permissions, owner, group and file 
size.

Never mind, anyway. I've done it by using separate steps instead of 
trying to combine them. I'm still puzzled though at the different 
behaviour of ls between command-line and execution by find.

-- 
Rgds
Peter.  Linux Counter 5290, 1994-04-23.



Re: [gentoo-user] [OT] Finding old files

2010-11-19 Thread Alan McKinnon
Apparently, though unproven, at 18:29 on Friday 19 November 2010, Peter 
Humphrey did opine thusly:

 Hello list,
 
 Just to expose my ignorance again, would someone lift my blinkers
 please? I'm recovering from an infection and my brain is stuck.
 
 It's time to start pruning old stuff from the website I run, which has
 2200 files in 200 directories.
 
 I'm trying to find old images like this:
 find . -iname \*.jpg -exec ls '-cdl' {} \; | cut -d \  -f 5-10
 
 But this excludes the year (even though listing an old file manually
 shows the year if it's over 12 months old), so I can't use that to
 decide. If I do this:
 find . -iname \*.jpg -exec ls '-cdl --time-style=full-iso' {} \; |\
   cut -d \  -f 5-10
 I get an error message: ls: invalid option -- ' '
 
 Why does ls differ when executed by find from on the command line?
 
 Is there a simple way to do this? Ideally I'd like a chronologically
 ordered list of the files. I have noatime set in fstab, so I'll have to
 rely on creation or modification date.


There's no such thing as file creation time on Unix - that has never been 
recorded. 

ctime is the time the *inode* was last changed
mtime is the time the *file contents* was changed

Having said that it seems to me you want the -mtime option to find, followed 
by -ls to display everything in detail.



-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] time for an emerge -e world?

2010-11-19 Thread Mark Knecht
On Fri, Nov 19, 2010 at 5:38 AM, Allan Gottlieb gottl...@nyu.edu wrote:
 Neil Bothwick n...@digimed.co.uk writes:

 On Fri, 19 Nov 2010 00:14:26 -0500, Allan Gottlieb wrote:

 So is it now an appropriate time for me to run an

    emerge -e world

 It shouldn't do any harm.

 I do not mind taking this machine offline for the few days of the
 emerge.

 There's no need for that, just set PORTAGE_NICENESS=19 in make.conf. You
 may want to run emerge -ef world first to make sure all files you need
 are in $DISTDIR.

 thanks,
 allan


Hi Allan,
   I admit to being a bit confused at this point. You ran the
lafilefixer suggestion and said it fixed things. Did that step
actually fix your libssl problem?

   I guess you also ran fsck as it's a good thing to do once in awhile
anyway. That's cool.

   It seems, however, that you're still going down the path of emerge
-e @world. Why is that? If it's just to be confident that everything
is back to the way it should be then I understand that. I've done it
myself many times in the last 12 years.

   Just trying to get a handle on what the actual solution is vs all
the other things going on in the thread! :-)

Thanks,
Mark



[gentoo-user] Re: [OT] Finding old files

2010-11-19 Thread Grant Edwards
On 2010-11-19, Alan McKinnon alan.mckin...@gmail.com wrote:
 Apparently, though unproven, at 19:18 on Friday 19 November 2010, Peter 
 Humphrey did opine thusly:

 On Friday 19 November 2010 16:40:37 Grant Edwards wrote:
  On 2010-11-19, Peter Humphrey pe...@humphrey.ukfsn.org wrote:
   Hello list,
   
   Just to expose my ignorance again, would someone lift my blinkers
   please? I'm recovering from an infection and my brain is stuck.
   
   It's time to start pruning old stuff from the website I run, which
   has 2200 files in 200 directories.
   
   I'm trying to find old images like this:
   find . -iname \*.jpg -exec ls '-cdl' {} \; | cut -d \  -f 5-10
  
  It's obvious how that command finds old images.  Can you explain what
  it's supposed to do?
 
 The cut command simply strips off the permissions, owner, group and file
 size.
 
 Never mind, anyway. I've done it by using separate steps instead of
 trying to combine them. I'm still puzzled though at the different
 behaviour of ls between command-line and execution by find.

 ls as you are using it is an option to find (not an app or a shell
 builtin).  So you need to do

No, in his case ls it's an app that's executed by the find command by
as part of the handling of the find command's -exec clause.

-- 
Grant Edwards   grant.b.edwardsYow! LOOK!!  Sullen
  at   American teens wearing
  gmail.comMADRAS shorts and Flock of
   Seagulls HAIRCUTS!




Re: [gentoo-user] Re: [OT] Finding old files

2010-11-19 Thread Alan McKinnon
Apparently, though unproven, at 19:18 on Friday 19 November 2010, Peter 
Humphrey did opine thusly:

 On Friday 19 November 2010 16:40:37 Grant Edwards wrote:
  On 2010-11-19, Peter Humphrey pe...@humphrey.ukfsn.org wrote:
   Hello list,
   
   Just to expose my ignorance again, would someone lift my blinkers
   please? I'm recovering from an infection and my brain is stuck.
   
   It's time to start pruning old stuff from the website I run, which
   has 2200 files in 200 directories.
   
   I'm trying to find old images like this:
   find . -iname \*.jpg -exec ls '-cdl' {} \; | cut -d \  -f 5-10
  
  It's obvious how that command finds old images.  Can you explain what
  it's supposed to do?
 
 The cut command simply strips off the permissions, owner, group and file
 size.
 
 Never mind, anyway. I've done it by using separate steps instead of
 trying to combine them. I'm still puzzled though at the different
 behaviour of ls between command-line and execution by find.


ls as you are using it is an option to find (not an app or a shell builtin). 
So you need to do

find  -ls


-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] Re: migrating disks (from mounts to disklabels

2010-11-19 Thread Alan McKinnon
Apparently, though unproven, at 17:55 on Friday 19 November 2010, Nuno J. 
Silva did opine thusly:

 Alan McKinnon alan.mckin...@gmail.com writes:
  Apparently, though unproven, at 23:59 on Wednesday 17 November 2010,
  James did
  
  opine thusly:
  Hello,
  
  I have a ~250 gig sata disk I want to migrate to a 2T
  Sata disk. This is simple, but, I have a few caveats.
 
 [...]
 
  Now just rsync everything in /mnt/sda* to the right place in /mnt/sdb
 
 Some weeks ago, I did this kind of migration. I ended up using good ol'
 tar - after lots of research, it was the only way I found to be sure
 hard links would still be linked in the new filesystem.
 
 IIRC, rsync does not deal with hard links, or am I mistaken?


man rsync;

-H, --hard-linkspreserve hard links

-- 
alan dot mckinnon at gmail dot com



[gentoo-user] Re: [OT] Finding old files

2010-11-19 Thread Grant Edwards
On 2010-11-19, Peter Humphrey pe...@humphrey.ukfsn.org wrote:
 On Friday 19 November 2010 16:40:37 Grant Edwards wrote:
 On 2010-11-19, Peter Humphrey pe...@humphrey.ukfsn.org wrote:

 Just to expose my ignorance again, would someone lift my blinkers
 please? I'm recovering from an infection and my brain is stuck.
 
 It's time to start pruning old stuff from the website I run, which
 has 2200 files in 200 directories.
 
 I'm trying to find old images like this:
 find . -iname \*.jpg -exec ls '-cdl' {} \; | cut -d \  -f 5-10
 
 It's not obvious how that command finds old images.  Can you explain
 what it's supposed to do?

 The cut command simply strips off the permissions, owner, group and
 file size.

OK, but I still don't see how that finds old image files, but
whatever.

 Never mind, anyway. I've done it by using separate steps instead of 
 trying to combine them. I'm still puzzled though at the different 
 behaviour of ls between command-line and execution by find.

 find . -iname \*.jpg -exec ls '-cdl --time-style=full-iso' {} \; |\
 cut -d \  -f 5-10

What different behavior?

That ls command doesn't work from the command line either:

  $ ls '-cdl --time-style=full-iso' foo
  ls: invalid option -- ' '
  Try ls --help' for more information.

The quotes cause both option specifiers '-cdl' and
'--time-style=full-iso' to be passed to 'ls' as single string with
whitespace in the middle of it.  That's not how options are passed to
Unix command line utilities.

I think what you intended was

  $ ls -cdl --time-style=full-iso foo
  -rw-r--r-- 1 grante users 96 2010-11-19 11:44:45.0 -0600 foo

IOW:

  $ find -iname '*.jpg' -exec ls -cdl --time-style=full-iso {} \; | cut -d ' ' 
-f 5-10
  40369 2010-03-22 13:59:28.0 -0500 
./rfc2217-xon-xoff/right_cncbaron_small.jpg
  110641 2010-03-23 10:21:16.0 -0500 
./rfc2217-xon-xoff/DMFreeWire-1-Port 300dpi
  22330 2010-03-22 14:01:26.0 -0500 
./rfc2217-xon-xoff/clip_image002_0006.jpg
  [...]

Note that your cut doesn't work right for filenames that contain
spaces...
  
-- 
Grant Edwards   grant.b.edwardsYow! Maybe I should have
  at   asked for my Neutron Bomb
  gmail.comin PAISLEY --




Re: [gentoo-user] Nepomuk indexing, what triggers it?

2010-11-19 Thread BRM
- Original Message 

 From: Paul Hartman paul.hartman+gen...@gmail.com
 To: gentoo-user@lists.gentoo.org
 Sent: Fri, November 19, 2010 11:31:39 AM
 Subject: Re: [gentoo-user] Nepomuk indexing, what triggers it?
 
 On Fri, Nov 19, 2010 at 9:17 AM, Alan McKinnon alan.mckin...@gmail.com  
wrote:
  Hi all,
 
  Haven't had much luck finding this  info:
 
  If I reboot this machine and start KDE, Nepomuk starts a  rather long-lived
  index of my home directory. It takes up about 30-40%  cpu and lasts as much 
as
  15 minutes sometimes. This is annoying because  after a reboot I usually 
want
  to catch up on mail, rss feeds and fire up  VirtualBox. So nepomuk is just
  wasting my time at this point.
 
 My  /guess/ is that it scans every time you restart to be sure nothing
 changed  while it was shutdown. It doesn't know if you've dual-booted,
 logged into  xfce, mounted the disk in another machine, had fsck remove
 files,  etc.
 
 I think Tracker behaves the same way in gnome-land.

To add to it - Nepomuk has two parts (according to 
http://nepomuk.kde.org/node/2) that seem to be active in here:
1. Strigi - 
http://techbase.kde.org/Development/Tutorials/Metadata/Nepomuk/StrigiService
2. FileWatchService - 
http://techbase.kde.org/Development/Tutorials/Metadata/Nepomuk/FileWatchService

From the FileWatchService info:

However: due to the restrictions of all file watching systems  available 
(systems such as inotify are restricted to 8000 something  watches, fam does 
not 
support file moving monitoring, etc.) the service  mostly relies on KDirNotify. 
Thus, all operations performed by KDE  applications through KIO are monitored 
while all other operations (such  as console commands) are missed.

So it really does need to check up on things during restart to get back in 
sync, 
but also to find what it didn't know about from info not going through an 
interface it is aware of.

Ben




Re: [gentoo-user] time for an emerge -e world?

2010-11-19 Thread Allan Gottlieb
Mark Knecht markkne...@gmail.com writes:

 On Fri, Nov 19, 2010 at 5:38 AM, Allan Gottlieb gottl...@nyu.edu wrote:
 Neil Bothwick n...@digimed.co.uk writes:

 On Fri, 19 Nov 2010 00:14:26 -0500, Allan Gottlieb wrote:

 So is it now an appropriate time for me to run an

    emerge -e world

 It shouldn't do any harm.

 I do not mind taking this machine offline for the few days of the
 emerge.

 There's no need for that, just set PORTAGE_NICENESS=19 in make.conf. You
 may want to run emerge -ef world first to make sure all files you need
 are in $DISTDIR.

 thanks,
 allan


 Hi Allan,
I admit to being a bit confused at this point. You ran the
 lafilefixer suggestion and said it fixed things. Did that step
 actually fix your libssl problem?

I fixed that problem by copying over the missing files from another
system.

I guess you also ran fsck as it's a good thing to do once in awhile
 anyway. That's cool.

It seems, however, that you're still going down the path of emerge
 -e @world. Why is that? If it's just to be confident that everything
 is back to the way it should be then I understand that. I've done it
 myself many times in the last 12 years.

Yes that is the reason.

Just trying to get a handle on what the actual solution is vs all
 the other things going on in the thread! :-)

Thanks for the concern and help.
allan



Re: [gentoo-user] migrating disks (from mounts to disklabels

2010-11-19 Thread David W Noon
On Fri, 19 Nov 2010 17:00:04 +0100, Peter Humphrey wrote about Re:
[gentoo-user] migrating disks (from mounts to disklabels:

On Friday 19 November 2010 14:42:23 Neil Bothwick wrote:
 On Fri, 19 Nov 2010 10:52:50 +, Mick wrote:
  Also primary partitions which he does not seem to be using at all
  have a slight edge over logical.
 
 Do you have any data on this? I generally use all logical partitions
 but could be persuaded to rethink.

Well there must be one level of indirection on first access, since the 
start of the logical partition has to be looked up in a primary 
partition, but I can't imagine that being needed more than once per 
reboot.

Correct.

The same applies to LVM2 or EVMS logical volumes: a small lookup
penalty (a few milliseconds) when the filesystem is first
activated/mounted, and as fast as the drive itself thereafter.
-- 
Regards,

Dave  [RLU #314465]
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
dwn...@ntlworld.com (David W Noon)
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*


signature.asc
Description: PGP signature


Re: [gentoo-user] Re: [OT] Finding old files

2010-11-19 Thread Stroller

On 19/11/2010, at 5:53pm, Grant Edwards wrote:
 ...
 OK, but I still don't see how that finds old image files, but
 whatever.

I assume he's finding *all* image files, then searching himself for old ones. 
This seems obvious to me, but maybe I'm missing something?

Stroller.




[gentoo-user] Re: [OT] Finding old files

2010-11-19 Thread Grant Edwards
On 2010-11-19, Stroller strol...@stellar.eclipse.co.uk wrote:

 On 19/11/2010, at 5:53pm, Grant Edwards wrote:
 ...
 OK, but I still don't see how that finds old image files, but
 whatever.

 I assume he's finding *all* image files, then searching himself for
 old ones. This seems obvious to me, but maybe I'm missing something?

You're probably right.  I had it stuck in my head that he though the
command was finding old files.

-- 
Grant Edwards   grant.b.edwardsYow! My pants just went to
  at   high school in the Carlsbad
  gmail.comCaverns!!!




Re: [gentoo-user] Nepomuk indexing, what triggers it?

2010-11-19 Thread Alan McKinnon
Apparently, though unproven, at 18:31 on Friday 19 November 2010, Paul Hartman 
did opine thusly:

 On Fri, Nov 19, 2010 at 9:17 AM, Alan McKinnon alan.mckin...@gmail.com 
wrote:
  Hi all,
  
  Haven't had much luck finding this info:
  
  If I reboot this machine and start KDE, Nepomuk starts a rather
  long-lived index of my home directory. It takes up about 30-40% cpu and
  lasts as much as 15 minutes sometimes. This is annoying because after a
  reboot I usually want to catch up on mail, rss feeds and fire up
  VirtualBox. So nepomuk is just wasting my time at this point.
 
 My /guess/ is that it scans every time you restart to be sure nothing
 changed while it was shutdown. It doesn't know if you've dual-booted,
 logged into xfce, mounted the disk in another machine, had fsck remove
 files, etc.
 
 I think Tracker behaves the same way in gnome-land.

I think that's a bit silly, so do a full scan just in case stuff changed.

If so, a very simple optimization would be to calculate a hash of some aspect 
of a directory, store the hash persistently, and only do a full scan if the 
hash is different.

I haven't read the code, so I'm in no real position to know how it's done or 
how to optimize it.

  How does nepomuk know when to do it's thing, how can I tweak what it does
  and how can I discover why it feels it necessary to reindex my entire
  maildir when surely it has a perfectly valid index already from just
  before I shut down?
 
 I am pretty sure it is tied to your KDE user session, and not running
 as a system daemon in the background. Perhaps you can suspend it via
 some autostarting script, and then resume it after whatever amount of
 time you're comfortable with.
 
 Looking in here:
 http://api.kde.org/4.5-api/kdebase-runtime-apidocs/nepomuk/html/classNepomu
 k_1_1IndexScheduler.html
 
 In the indexing speed settings, it says:
 
 enum Nepomuk::IndexScheduler::IndexingSpeed
 
 Enumerator:
 FullSpeed Index at full speed, i.e. do not use any artificial 
delays.
 This is the mode used if the user is away.
 
 ReducedSpeed  Reduce the indexing speed mildly.
 This is the normal mode used while the user works. The indexer
 uses small delay between indexing two files in order to keep the load
 on CPU and IO down.
 
 SnailPace Like ReducedSpeed delays are used but they are much
 longer to get even less CPU and IO load.
 This mode is used for the first 2 minutes after startup to give
 the KDE session manager time to start up the KDE session rapidly.
 
 
 So based on that, for the first 2 minutes after KDE starts it should
 be using the least aggressive indexing speed (but indexing
 nevertheless).

Good find. Personally, I'd like it to wait for 10-20 minutes after session 
start, then just run at SnailPace period. This machine is seldom booted or 
even logged out of KDE (I suspend) so I can tolerate the wait as it's rare

 (Personally I've always had all that indexing/social-semantic-desktop
 stuff disabled completely.)

Maybe I should too. But I *did* want to use this nepomuk thing myself for a 
while and see what the semantic-desktop can do for myself. It looks like it 
could be awesomely useful (like Google turned out to be awesomely useful) but 
it takes usage for real to know




-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] Nepomuk indexing, what triggers it?

2010-11-19 Thread Alan McKinnon
Apparently, though unproven, at 20:13 on Friday 19 November 2010, BRM did 
opine thusly:

  My  guess is that it scans every time you restart to be sure nothing
  changed  while it was shutdown. It doesn't know if you've dual-booted,
  logged into  xfce, mounted the disk in another machine, had fsck remove
  files,  etc.
 
  
 
  I think Tracker behaves the same way in gnome-land.
 
 To add to it - Nepomuk has two parts (according to 
 http://nepomuk.kde.org/node/2) that seem to be active in here:
 1. Strigi - 
 http://techbase.kde.org/Development/Tutorials/Metadata/Nepomuk/StrigiServic
 e 2. FileWatchService -
 http://techbase.kde.org/Development/Tutorials/Metadata/Nepomuk/FileWatchSer
 vice
 
 From the FileWatchService info:
 
 However: due to the restrictions of all file watching systems  available 
 (systems such as inotify are restricted to 8000 something  watches, fam
 does not  support file moving monitoring, etc.) the service  mostly relies
 on KDirNotify. Thus, all operations performed by KDE  applications through
 KIO are monitored while all other operations (such  as console commands)
 are missed.
 
 So it really does need to check up on things during restart to get back in
 sync,  but also to find what it didn't know about from info not going
 through an interface it is aware of.

Well at least that explains the reason for the current state of affairs. 
Thanks for the find.


-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] time for an emerge -e world?

2010-11-19 Thread Alan McKinnon
Apparently, though unproven, at 20:54 on Friday 19 November 2010, Allan 
Gottlieb did opine thusly:

 It seems, however, that you're still going down the path of emerge
 
  -e @world. Why is that? If it's just to be confident that everything
  is back to the way it should be then I understand that. I've done it
  myself many times in the last 12 years.
 
 Yes that is the reason.


Sounds like the big guns approach, can be valid at times.

I'm usually the first one to chip in about emerge -e world being stupid when 
someone reads the gcc upgrade guide, but sometimes you have a box that just 
will not fix itself despite hours of troubleshooting. In a case like this a 
full remerge often fixes mysterious but actual real problems.

-- 
alan dot mckinnon at gmail dot com



[gentoo-user] Advice for System monitor + Intrusion Detection tools?

2010-11-19 Thread Fatih Tümen
Hi,

I just want to beware of anything unusual instantly, preferably by
email. This is a single or two user laptop. Here are the few I gave a
shot:

Logsentry is very simple and easy to use with its plain rule files and
check script. It just works out of the box with almost zero
configuration. I only had to add couple of rules and modify
logcheck.sh according to my syslog setup. But it seems to be
unmaintained and more importantly it is not real time. There is an
hourly cron job shipped with the package but running it more frequent
sounds like overdoing it.

I also checked logsurfer which comes with a init script, however, no
working configuration file and sort of confusing examples.

Aide, as an intrusion detection tool, has also very simple
configuration but it does not report in real time either. You have to
place the example cron job to cron directory of your choice manually.
Running it hourly loads the system every hour for couple of minutes.
Running it daily mean knowing about the intrusion only the day after.
I don't see the point of that, it may be too late for everything.

I read somewhere that snort was the most used one. At first glance
there are too many configuration variables. It just seems overmuch for
what I want on my system.

What I want is something like tail using inotify:
tail -f / | mail $ME :)

Seriously, are there [or is there a single] tool/s for {system,
network, log} monitoring and intrusion detection, using inotify to
watch and email the instant changes on a system? What do you use and
recommend for a home pc?

eix -cSz ntrusion and log monitor show what is available in portage
but asking to share experience is a lot better than emerge-try-unmerge
cycle. Hope you agree.

--
   Fatih



Re: [gentoo-user] Advice for System monitor + Intrusion Detection tools?

2010-11-19 Thread Alan McKinnon
Apparently, though unproven, at 22:45 on Friday 19 November 2010, Fatih Tümen 
did opine thusly:

 Hi,
 
 I just want to beware of anything unusual instantly, preferably by
 email. This is a single or two user laptop. Here are the few I gave a
 shot:
 
 Logsentry is very simple and easy to use with its plain rule files and
 check script. It just works out of the box with almost zero
 configuration. I only had to add couple of rules and modify
 logcheck.sh according to my syslog setup. But it seems to be
 unmaintained and more importantly it is not real time. There is an
 hourly cron job shipped with the package but running it more frequent
 sounds like overdoing it.
 
 I also checked logsurfer which comes with a init script, however, no
 working configuration file and sort of confusing examples.
 
 Aide, as an intrusion detection tool, has also very simple
 configuration but it does not report in real time either. You have to
 place the example cron job to cron directory of your choice manually.
 Running it hourly loads the system every hour for couple of minutes.
 Running it daily mean knowing about the intrusion only the day after.
 I don't see the point of that, it may be too late for everything.
 
 I read somewhere that snort was the most used one. At first glance
 there are too many configuration variables. It just seems overmuch for
 what I want on my system.
 
 What I want is something like tail using inotify:
 tail -f / | mail $ME :)
 
 Seriously, are there [or is there a single] tool/s for {system,
 network, log} monitoring and intrusion detection, using inotify to
 watch and email the instant changes on a system? What do you use and
 recommend for a home pc?
 
 eix -cSz ntrusion and log monitor show what is available in portage
 but asking to share experience is a lot better than emerge-try-unmerge
 cycle. Hope you agree.


We use OSSEC (http://www.ossec.net/) at work and it seems to perform well. 
Alerts are almost real-time on Linux (using inotify) and it's able to classify 
log entries into some hierarchy of importance. IOW you can cherry pick the 
kind of thing you want to be told about.

And if you feel like being adventurous you can write plug-ins to deal with 
logs that do not already have a scanner.

I can't comment on how much work it is, as a colleague set it up and I wasn't 
paying attention. I can tell you that it does come with a sane config out the 
box which might not be ideal for you, but is *much* better than having nothing 
at all.

It does elementary IDS as well, but that is a different beast to log analysis 
(like an MTA is different to anti-spam), best handled by a different product - 
something in the same class as snort for example


-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] Re: FYI - 2.6.38 desktop responsiveness patch + how to do it now

2010-11-19 Thread Willie Wong
On Fri, Nov 19, 2010 at 05:36:05PM +0200, Alan McKinnon wrote:
 Prevailing opinion on /. 

That is a strange sentence itself. To see Alan deferring to the higher
authority of the collective wisdom of /. is... well... surprising. 

W

-- 
Willie W. Wong ww...@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
 et vice versa   ~~~  I. Newton



Re: [gentoo-user] Re: FYI - 2.6.38 desktop responsiveness patch + how to do it now

2010-11-19 Thread Alan McKinnon
Apparently, though unproven, at 23:28 on Friday 19 November 2010, Willie Wong 
did opine thusly:

 On Fri, Nov 19, 2010 at 05:36:05PM +0200, Alan McKinnon wrote:
  Prevailing opinion on /.
 
 That is a strange sentence itself. To see Alan deferring to the higher
 authority of the collective wisdom of /. is... well... surprising.
 
 W


I don't browse at -1 :-)

But nonethless, your comment appears to credit me with much more intelligence 
than I actually have (that might be a mistake). Like all good Unix admins, I 
know how to bluff; and on days like today I bluff *a lot*.

Yes, today was one of those days

-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] time for an emerge -e world?

2010-11-19 Thread Dale

Alan McKinnon wrote:

Sounds like the big guns approach, can be valid at times.

I'm usually the first one to chip in about emerge -e world being stupid when
someone reads the gcc upgrade guide, but sometimes you have a box that just
will not fix itself despite hours of troubleshooting. In a case like this a
full remerge often fixes mysterious but actual real problems.

   


Yep.  This is what fixed my slow video problem.  I tried everything I 
could think of and what folks here could think of but that ended up 
fixing the problem.


Weird but sometimes effective.

Dale

:-)  :-)



Re: [gentoo-user] Re: FYI - 2.6.38 desktop responsiveness patch + how to do it now

2010-11-19 Thread Alan McKinnon
Apparently, though unproven, at 18:03 on Friday 19 November 2010, Nikos 
Chantziaras did opine thusly:

  Perhaps distros will pick up on this and offer other criteria, maybe
  something like a profile selectable at boot-time or maybe even runtime.
  
  What I would like to see is flash goes into it's own group and gets
  throttled. Everything else running under KDE is in a different group and
  left to run full speed
 
 I was kind of hoping this would give results in the same league as the 
 BFS patch, but it seems it something that needs tweaking and doesn't 
 just work for everything.  It doesn't look like it's for desktop 
 users, only for make -j999 people.

Maybe I expected more, but I don't seem to feel the improvement in Con's 
scheduler. Perhaps it's a perception thing.

About two months ago I did reboot into a gentoo kernel and things did feel a 
little different but not in a way I could put my fingers on. I put it down to 
running a huge compile in screen. I *do* feel the incremental improvements in 
KDE since about 4.3, mostly because new versions come out rapidly.

What do you perceive with BFS vs mainline/gentoo/whatever?


-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] Re: X crashing

2010-11-19 Thread Mick
On Friday 19 November 2010 14:25:57 Jacques Montier wrote:
 --
 Jacques
 Site web https://sites.google.com/site/jacquesfr35/
 
 Le 18/11/2010 23:55, Mick a gentiment tapote:
  On Wednesday 17 November 2010 17:27:28 Jacques Montier wrote:
  Le 17/11/2010 18:07, walt a écrit :
  On 11/17/2010 07:17 AM, Jacques Montier wrote:
  Hi all,
  
  I use an astronomical open source imaging software
  (http://www.audela.org/)
  which works fine except when launching a tcl photometry script
  (Calaphot).
  X crashes with the error message :
  
  X Error of failed request:  BadMatch (invalid parameter attributes)
  
 Major opcode of failed request:  148 (RENDER)
 Minor opcode of failed request:  4 (RenderCreatePicture)
 Serial number of failed request:  51329
 Current serial number in output stream:  51338
  
  I get the same crash on two PCs with Gentoo.
  I use an ATI graphic card
  01:00.0 VGA compatible controller: ATI Technologies Inc RV350
  [Mobility Radeon 9600 M10]
  and the open source radeon driver.
  
  You may have found a bug in the open source driver.  Is there a binary
  driver available from ATI that you can try?
  
  Binary ati drivers don't work with this old graphic card (RV350 Radon
  9600), but i can try again for see..
  
  Have you tried enabling CONFIG_DRM_RADEON_KMS=y in your kernel, disabling
  vesa/uvesa and testing xorg-server-1.9.x it to see if it is more
  stable/reliable?
 
 Hi Mick
 
 I enabled CONFIG_DRM_RADEON_KMS=y, but the pc doesn't boot anymore
 (black screen).
 Returned to the old config...

Hmm I got that the first time because I still had uvesa enabled in the kernel.  
Disabled it and then I was able to boot fine.

Of course your hardware is slightly different so it may not behave the same.
-- 
Regards,
Mick


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


Re: [gentoo-user] Advice for System monitor + Intrusion Detection tools?

2010-11-19 Thread Stroller

On 19/11/2010, at 8:45pm, Fatih Tümen wrote:
 I just want to beware of anything unusual instantly, preferably by
 email. This is a single or two user laptop.

I've been meaning for some time to look for something like this myself. I'm 
personally only interested in messages from the RAID controller, and I'm not 
sure that I'm a high-risk for intrusion, but I do want to know about it 
*immediately* if a drive fails, so that ideally I can pop into the store on the 
way home and pick up a new disk to replace the one that failed.

 ...
 I also checked logsurfer which comes with a init script, however, no
 working configuration file and sort of confusing examples.

I don't really have a problem with the examples on these pages:
http://www.crypt.gen.nz/papers/logsurfer.html
http://www.crypt.gen.nz/logsurfer/man_logsurfer_conf.html

Or with these explanations [PDF]:
http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.5.8610rep=rep1type=pdf
http://www.laptopmobilesecurity.com/papers/Logsurfer.pdf

The examples contain a lot of brackets and stuff, but those seem merely to be 
regular expressions, and if you don't know regex then learning them will pay 
dividends in other future projects. logsurfer's syntax and the use of 
contexts is not completely clear to me with only the quick glance I've made 
in the 10 minutes its taken me to write this message, but I'm extremely 
confident I could have it up and running to meet my needs within an hour. The 
documentation seems no more complex than any other man page. I'm pretty sure 
you would understand what's going on if you were only to follow the examples 
and have a play with them.

Be sure to use the `start-mail` script you find in the doc/contrib directory, 
not any others you find floating around the net:
http://lists.grok.org.uk/pipermail/full-disclosure/2008-February/060389.html

The doc/contrib script seems to address the issue of escape sequences (although 
I'm about to do some more homework on this subject).

Stroller.


Re: [gentoo-user] migrating disks (from mounts to disklabels

2010-11-19 Thread Mick
On Friday 19 November 2010 19:19:34 David W Noon wrote:
 On Fri, 19 Nov 2010 17:00:04 +0100, Peter Humphrey wrote about Re:
 
 [gentoo-user] migrating disks (from mounts to disklabels:
 On Friday 19 November 2010 14:42:23 Neil Bothwick wrote:
  On Fri, 19 Nov 2010 10:52:50 +, Mick wrote:
   Also primary partitions which he does not seem to be using at all
   have a slight edge over logical.
  
  Do you have any data on this? I generally use all logical partitions
  but could be persuaded to rethink.
 
 Well there must be one level of indirection on first access, since the
 start of the logical partition has to be looked up in a primary
 partition, but I can't imagine that being needed more than once per
 reboot.
 
 Correct.
 
 The same applies to LVM2 or EVMS logical volumes: a small lookup
 penalty (a few milliseconds) when the filesystem is first
 activated/mounted, and as fast as the drive itself thereafter.

Short of measuring the latency with some system (which I wouldn't know how) I 
have experimented with setting the /boot partition on primary and logical 
partitions and the difference (on a stopwatch) was measurable in seconds 
betweeen having said partition on a primary and having it on a logical.  
Furthermore, sda7 was slower than sda5.

I haven't measured latencies for first mount and subsequent look ups.  I 
thought that it would be the same every time a partition fs is being accessed, 
no?
-- 
Regards,
Mick


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


Re: [gentoo-user] migrating disks (from mounts to disklabels

2010-11-19 Thread Alan McKinnon
Apparently, though unproven, at 00:13 on Saturday 20 November 2010, Mick did 
opine thusly:

 On Friday 19 November 2010 19:19:34 David W Noon wrote:
  On Fri, 19 Nov 2010 17:00:04 +0100, Peter Humphrey wrote about Re:
  
  [gentoo-user] migrating disks (from mounts to disklabels:
  On Friday 19 November 2010 14:42:23 Neil Bothwick wrote:
   On Fri, 19 Nov 2010 10:52:50 +, Mick wrote:
Also primary partitions which he does not seem to be using at all
have a slight edge over logical.
   
   Do you have any data on this? I generally use all logical partitions
   but could be persuaded to rethink.
  
  Well there must be one level of indirection on first access, since the
  start of the logical partition has to be looked up in a primary
  partition, but I can't imagine that being needed more than once per
  reboot.
  
  Correct.
  
  The same applies to LVM2 or EVMS logical volumes: a small lookup
  penalty (a few milliseconds) when the filesystem is first
  activated/mounted, and as fast as the drive itself thereafter.
 
 Short of measuring the latency with some system (which I wouldn't know how)
 I have experimented with setting the /boot partition on primary and
 logical partitions and the difference (on a stopwatch) was measurable in
 seconds betweeen having said partition on a primary and having it on a
 logical. Furthermore, sda7 was slower than sda5.
 
 I haven't measured latencies for first mount and subsequent look ups.  I
 thought that it would be the same every time a partition fs is being
 accessed, no?


Not at all. There's this thing the kernel does called caching.

Yes, I know you can invalidate the entire cache and force the next read to 
come from disk, but that is completely devoid of reality. Very very few 
machines actually do that or anything remotely similar. So measuring it does 
give pretty numbers, pretty meaningless numbers.

The kernel will cache the entire partition layout scheme and any mapping it 
needs in order to determine where blocks lie on the disk. Any thought that it 
won't is just so bat-shit insane and so far out there it's not even worth 
contemplating.

Thus, the question that sparked this thread off is entirely moot.

-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] How to exclude a directory from rsync

2010-11-19 Thread Stefan G. Weichinger
Am 16.11.2010 14:28, schrieb Mick:

 I ran the same as before but changed the path to the one you suggested:
 
 ===
 'rsync -a -l -v --exclude ./System Volume Information
 -e ssh -c blowfish -l root /mnt/User_WinXP/
 10.10.10.25:/home/httpd/backup'

Try it with escaped spaces as I mentioned also:

--exclude ./System\ Volume\ Information

or even

--exclude ./System*

if there is nothing else starting with System ;-)

S



Re: [gentoo-user] migrating disks (from mounts to disklabels

2010-11-19 Thread Neil Bothwick
On Fri, 19 Nov 2010 17:04:03 +0200, Alan McKinnon wrote:

  XFS allows growing a mounted filesystem, but it has no option to
  shrink a filesystem, mounted or otherwise.  

 xfs isn't something I use and I had a niggling thought I might have got
 the details wrong. Thanks for that.

It's quite a limitation. I don't normally need to shrink a filesystem,
since I use LVM to only make them as large as they need to be, but it's
bitten me a couple of times. Maybe it's time to see how ext4 does with
large files.


-- 
Neil Bothwick

Half of being smart is knowing what you're dumb at.


signature.asc
Description: PGP signature


Re: [gentoo-user] E17 and package.use

2010-11-19 Thread Alan McKinnon
Apparently, though unproven, at 11:06 on Friday 19 November 2010, Mick did 
opine thusly:


 So it seems that I should delete efl, install enlightenment overlay
 instead, remove any package.keywords on all  ** packages (?) that I
 had set up for efl and instead unmask beta versions of packages as portage
 is telling me to do.  Have I got this right, or should I leave  ** in
 my package keywords for the enlightenment packages?
 
 I may wait until Sunday or so in the hope that all this dust has settled,
 because I fear that I may be caught half-way between changes on efl and
 enlightenment overlays with no way of installing a working desktop.
 
 Thanks again for holding my hand on this.

It just got even more interesting. The EFL libs (but not the window manager) 
just got committed to the portage tree.

The version is 1.0.0_beta2 and the devs have stated they intend no more 
API/ABI breakages. So I'm tempted to say we should install the beta libs so we 
don't have to constantly upgrade the whole lot.



-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] migrating disks (from mounts to disklabels

2010-11-19 Thread Alan McKinnon
Apparently, though unproven, at 01:03 on Saturday 20 November 2010, Neil 
Bothwick did opine thusly:

 On Fri, 19 Nov 2010 17:04:03 +0200, Alan McKinnon wrote:
   XFS allows growing a mounted filesystem, but it has no option to
   shrink a filesystem, mounted or otherwise.
  
  xfs isn't something I use and I had a niggling thought I might have got
  the details wrong. Thanks for that.
 
 It's quite a limitation. I don't normally need to shrink a filesystem,
 since I use LVM to only make them as large as they need to be, but it's
 bitten me a couple of times. Maybe it's time to see how ext4 does with
 large files.

If it were say JFS that had that limitation, one could easily say use ext3 
instead and life would be good. But xfs is very very good at dealing with 
huge directories with thousands of files. Think video rendering. Or anything 
with a spool.

One might easily want to temporarily grow a spool dir for one run then shrink 
it again later. Maybe use a spare extra drive for that. Whatever.

Ah, but xfs can't do that. Bugger.


-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] E17 and package.use

2010-11-19 Thread Mick
On Friday 19 November 2010 23:14:01 Alan McKinnon wrote:
 Apparently, though unproven, at 11:06 on Friday 19 November 2010, Mick did
 
 opine thusly:
  So it seems that I should delete efl, install enlightenment overlay
  instead, remove any package.keywords on all  ** packages (?) that I
  had set up for efl and instead unmask beta versions of packages as
  portage is telling me to do.  Have I got this right, or should I leave
   ** in my package keywords for the enlightenment packages?
  
  I may wait until Sunday or so in the hope that all this dust has settled,
  because I fear that I may be caught half-way between changes on efl and
  enlightenment overlays with no way of installing a working desktop.
  
  Thanks again for holding my hand on this.
 
 It just got even more interesting. The EFL libs (but not the window
 manager) just got committed to the portage tree.
 
 The version is 1.0.0_beta2 and the devs have stated they intend no more
 API/ABI breakages. So I'm tempted to say we should install the beta libs so
 we don't have to constantly upgrade the whole lot.

Excellent!

It's getting late over here, so I'll get on with this tomorrow.  -_-

For x11-wm/enlightenment I'll have to keep  ** in keywords, but switch 
overlay to 'enlightenment'.

Is the efl overlay going to be taken offline in the future?

PS. I'm impressed, but where do you go to find all this info about 
enlightenment  gentoo?
-- 
Regards,
Mick


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


Re: [gentoo-user] E17 and package.use

2010-11-19 Thread Alan McKinnon
Apparently, though unproven, at 01:31 on Saturday 20 November 2010, Mick did 
opine thusly:

 For x11-wm/enlightenment I'll have to keep  ** in keywords, but switch 
 overlay to 'enlightenment'.

Add the enlightenment overlay, but read a few key ebuilds to get a grasp of 
what's going on and what they want


 Is the efl overlay going to be taken offline in the future?

I think so, but that's me reading between the lines. It seems to be an 
experimental test bed, sort of like how the kde overlay gets used

 PS. I'm impressed, but where do you go to find all this info about 
 enlightenment  gentoo?

Been using e17 for years :-)

I subscribe to the e17 commit list and read all the various blogs etc, etc. 
Plus read all the numerous eclasses that have been around over the years and 
even maintained my own ebuilds for a while till barbeiri released his.

After all that, I guess some of the info made it into long-term memory :-)


-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] migrating disks (from mounts to disklabels

2010-11-19 Thread Neil Bothwick
On Fri, 19 Nov 2010 22:13:50 +, Mick wrote:

 Short of measuring the latency with some system (which I wouldn't know
 how) I have experimented with setting the /boot partition on primary
 and logical partitions and the difference (on a stopwatch) was
 measurable in seconds betweeen having said partition on a primary and
 having it on a logical.  

Are you talking about GRUB loading time, kernel loading or what?
Since /boot isn't normally mounted or used once the kernel is loaded, I
don't see how relevant this is.


-- 
Neil Bothwick

[unwieldy legal disclaimer would go here - feel free to type your own]


signature.asc
Description: PGP signature


Re: [gentoo-user] migrating disks (from mounts to disklabels

2010-11-19 Thread Alan McKinnon
Apparently, though unproven, at 01:21 on Saturday 20 November 2010, Neil 
Bothwick did opine thusly:

 On Fri, 19 Nov 2010 22:13:50 +, Mick wrote:
  Short of measuring the latency with some system (which I wouldn't know
  how) I have experimented with setting the /boot partition on primary
  and logical partitions and the difference (on a stopwatch) was
  measurable in seconds betweeen having said partition on a primary and
  having it on a logical.
 
 Are you talking about GRUB loading time, kernel loading or what?
 Since /boot isn't normally mounted or used once the kernel is loaded, I
 don't see how relevant this is.

And:

Boot time differences measured in *seconds*?

fifty bucks says his fsck number came up

-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] Nepomuk indexing, what triggers it?

2010-11-19 Thread Alex Schuster
Alan McKinnon writes:

 If I reboot this machine and start KDE, Nepomuk starts a rather
 long-lived index of my home directory. It takes up about 30-40% cpu
 and lasts as much as 15 minutes sometimes. This is annoying because
 after a reboot I usually want to catch up on mail, rss feeds and fire
 up VirtualBox. So nepomuk is just wasting my time at this point.
 
 How does nepomuk know when to do it's thing, how can I tweak what it
 does and how can I discover why it feels it necessary to reindex my
 entire maildir when surely it has a perfectly valid index already from
 just before I shut down?

I think it starts scanning everything over again at every login. I've been 
also annoyed by that, so I deactivated it, and activate it from time to 
time when I am away, so it won't bother me.
Or you can have it active, and during login you can suspend Strigi's 
indexing by right-clicking on the Nepomuk/Strigi icon in the panel.

You might be interested in this article that came up on the Planet KDE RSS 
feed yesterday:
http://www.afiestas.org/nepomuk-is-not-fast-is-instant/

It suggests to set fs.inotify.max_user_watches to something quite large 
like 524288 via sysctl. I assume this is the number of directories being 
monitored with inotify, and if this is larger than the total number of 
directories, changes in a directory will be noticed at once. So maybe this 
will avoid the periodic scanning at all? I did not try this yet. But it 
won't stop the first scan after login.

I think I will have to trim the list of directories to index. Currently, I 
selected my and another user's $HOME, and some data directories. This 
gives 666,000 files, which is probably a lot. So I guess I'll skip my 
MP3s, as they are indexed already by Amarok, and also those many 
directories with source code.

Wonko



Re: [gentoo-user] migrating disks (from mounts to disklabels

2010-11-19 Thread Peter Humphrey
On Friday 19 November 2010 22:13:50 Mick wrote:

 Short of measuring the latency with some system (which I wouldn't
 know how) I have experimented with setting the /boot partition on
 primary and logical partitions and the difference (on a stopwatch)
 was measurable in seconds betweeen having said partition on a
 primary and having it on a logical. Furthermore, sda7 was slower
 than sda5.
 
 I haven't measured latencies for first mount and subsequent look ups.
 I thought that it would be the same every time a partition fs is
 being accessed, no?

I shouldn't design it that way. Would you?

Consider the layout of the disk. First we have the master boot record, 
which contains the disk addresses of the four allowable primary 
partitions*, and not much else besides the primitive boot code to fetch 
the data from those addresses. Then each primary partition has the 
address of its first directory containing data. Those five parameters are 
assumed to be fixed and can be held in a small lookup table in the OS.

One primary partition may be declared as an extended partition, by the 
setting of a single bit in its entry in the MBR**. That partition has to 
have the same header layout as the others, in particular not allowing 
more than one data address***. In this case it's the address not of the 
first directory but of the first logical partition - and that partition 
has to have the same header layout again, because it's just a partition 
full of data, isn't it?

The answer to your question is that only very few values are needed to 
specify the fixed start points of all the partitions on the disk, and 
virtually no overhead is involved in storing them for the inevitably 
frequent use they're going to get.

(Sorry if I'm rambling. I've been down with the dreaded lurgy for a day 
or two, and after a small glass of wine this evening I'm having trouble 
focusing on the screen, never mind my thoughts.)

* One partition is plenty for all normal folk, especially those who run 
an OS that's convinced it's the only entity in the universe - who could 
possibly want more than four? And just don't mention 640KB memory unless 
you're prepared for fisticuffs.

** Talk about a single point of failure!

*** Well, of course it doesn't, but what would we do without hindsight?

-- 
Rgds
Peter.  Linux Counter 5290, 1994-04-23.



Re: [gentoo-user] Re: [OT] Finding old files

2010-11-19 Thread Peter Humphrey
On Friday 19 November 2010 17:53:31 Grant Edwards wrote:
 On 2010-11-19, Peter Humphrey pe...@humphrey.ukfsn.org wrote:
 
 What different behavior?

As I said, from the command line ls shows the year for any file more than 
12 months old, in place of the time. When executed from find it doesn't.
 
 That ls command doesn't work from the command line either:
...
 I think what you intended was
 
   $ ls -cdl --time-style=full-iso foo

You're right. I pasted the wrong command in - sorry.

 Note that your cut doesn't work right for filenames that contain
 spaces...

I don't allow such files on my systems. Even if I did, in this case I'd 
spot the error when it happened (I hope).

Thanks anyway.

-- 
Rgds
Peter.  Linux Counter 5290, 1994-04-23.



[gentoo-user] Re: migrating disks (from mounts to disklabels

2010-11-19 Thread James
Alan McKinnon alan.mckinnon at gmail.com writes:


 I hear Zac is very receptive to patches 



Not to worry, he'll become jaded, just like the 
rest of them..us I mean

Problem is I have too many patches that
aren't finished, just laying around.

Distributed downloads for large gentoo files?

What could I possible do that Cohen, did 
not think of or implement?

http://en.wikipedia.org/wiki/BitTorrent_(protocol)

Maybe if we put a naked picture of some supermodel
embedded into the Gentoo logo, the lived (10.1)
DVD would be picked up by the torrent gang?


cheers!
James





Re: [gentoo-user] Postfix broken

2010-11-19 Thread Kevin O'Gorman
On Mon, Nov 15, 2010 at 2:47 PM, kashani kashani-l...@badapple.net wrote:

 On 11/15/2010 8:37 AM, Kevin O'Gorman wrote:

 Color me stupid.  It was stopped.  It started when I told it to in
 /etc/init.d.
 Now I have to wonder what stopped it.  Judging from the mail that got
 through all of a sudden, I guess it stopped
 about 2 weeks ago.  I'll have to watch this...


IIRC updates of the Postfix package that could in result in data
 loss of queued mail will shutdown Postfix before preceding. Looks like
 Postfix 2.7.1 hit on Nov 4 and 2.6.7 has been in the system since June. I'd
 bet you ran the update, Postfix shutdown for safety, and you missed the
 screen output about restarting it.

 kashani

 That's probably right.  Emerges that take days have trained me to not to
watch them happen.  I read the latest elog of all packages once a month,
some send me mail; but if Postfix shut down before delivery, I would not get
it at all.  I use elogviewer once a month, so I'll probably see it in a
couple of weeks.

It's nice to know what happened.  Not much mail actually goes through this
system, so while this has
been something of a puzzle, no major harm was done.  It's nice to have the
explanation.

Thanks.

++ kevin


-- 
Kevin O'Gorman, PhD


[gentoo-user] Re: [OT] Finding old files

2010-11-19 Thread Grant Edwards
On 2010-11-20, Peter Humphrey pe...@humphrey.ukfsn.org wrote:
 On Friday 19 November 2010 17:53:31 Grant Edwards wrote:
 On 2010-11-19, Peter Humphrey pe...@humphrey.ukfsn.org wrote:
  
 What different behavior?

 As I said, from the command line ls shows the year for any file more than 
 12 months old, in place of the time. When executed from find it doesn't.

I don't see any difference when I do it.  Can you post a shell script
that shows the two different behaviors?

 That ls command doesn't work from the command line either:
 ...
 I think what you intended was
 
   $ ls -cdl --time-style=full-iso foo

 You're right. I pasted the wrong command in - sorry.

 Note that your cut doesn't work right for filenames that contain
 spaces...

 I don't allow such files on my systems. Even if I did, in this case I'd 
 spot the error when it happened (I hope).

-- 
Grant




Re: [gentoo-user] One machine sends emerge text output to stderr, not stdout

2010-11-19 Thread Walter Dnes
On Fri, Nov 19, 2010 at 09:25:18AM +, Neil Bothwick wrote

 But harmless. The severe delays you noticed were the result of a
 broken modem/router failing to recognise that IPv6 was not available
 and trying to use it anyway. The usual fix for such a problem is a
 firmware update.

  It's more complex than that.  How is the IPV6-enabled browser or media
player supposed to know that my modem doesn't support IPV6 and neither
does my ISP and neither do umpteen hops between me and the site I'm
trying to connect to?  See http://www.ipjforum.org/?p=378

 The technology in web browsers and operating systems involves doing
 Domain Name System (DNS) queries for  and A resource records and
 then attempting to connect to the resulting IPv6 and IPv4 addresses
 sequentially. If the IPv6 path is broken (or slow), this connection
 can take a long time before it falls back to trying IPv4. This process
 is especially painful on typical websites that retrieve objects
 from different hosts-each failure incurs a delay. The combination of
 operating system and web browser results in delays from 20 seconds to
 several minutes if the IPv6 path is broken[2]. The typical message
 flow of a TCP client is shown in Figure 1. Clearly, this delay is
 unacceptable to users. Users avoid this delay by disabling IPv6[3]
 or avoiding IPv6-enabled websites.

  The decision to enable IPV6 by default was a mistake.  The only
beneficial side effect was that it taught me not to do robo-updates
any more G.

-- 
Walter Dnes waltd...@waltdnes.org