Re: [gentoo-ppc-user] yaboot has kicked my butt - 5 times?!

2010-09-22 Thread Joseph Jezak
 On 09/22/10 18:59, Mark Knecht wrote:
 Hi,
   OK, I'm dead tired. I admit it - yaboot has kicked my butt this
 time around. Can anyone help? I did post this problem here 2-3 weeks
 ago but still haven't been able to solve the problem so I'm back to
 the well for another drink.

   The machine is the original 80GB PPC Mac Mini. I used to run Gentoo
 on it and it ran great for years so I know at one time yaboot worked
 just fine. For various reasons I hadn't updated it in a long, long
 time (2 years) and instead of trying to go through the Gentoo update
 process which is difficult after that much time I decided to just do a
 new install. I saved copies of my kernel config and etc/make.conf but
 unfortunately, being primarily an x86 guy didn't think to save
 yaboot.conf and fstab. I've now done 5 complete Gentoo installs,
 starting over from scratch in case something I was doing was messing
 things up but so far I cannot get the machine to boot. Every time, no
 matter what I do at install time, I get a message

 Can't check if filesystem is mounted due to a missing mtab file

 A somewhat out of focus screen shot is shown here:

 http://www.flickr.com/photos/29328...@n03/5014227831

 Generally speaking I'm following the Gentoo PPC install guide located here:

 http://www.gentoo.org/doc/en/handbook/handbook-ppc.xml?part=1chap=10

 I've tried both the yabootconfig method as well as manual route.
 Nothing works for me so far. THey both fail the same way.

 It's not in the photo but all the way through the boot the kernel
 calls the hard drives /dev/hda so I'm assuming that's correct in
 fstab.

 The kernel is 2.6.34-gentoo-r2 and the kernel config file is attached.
 ext3 is built into the kernel so that shouldn't be a problem. I built
 the kernel using the older 2.6.31 kernel config I saved.

 As a _hardware_ test I reinstalled the old OS X that came with the
 machine and it boots fine. I blew it away and installed Ubuntu 10.04
 for the PPC and it boots fine, but Ubuntu uses and initrc which I've
 never used before with Gentoo. (And why on this machine as the
 hardware is fixed has kernel drivers.)

 I'm a long time Gentoo user. The main Gentoo install seems to work
 fine on this machine. As best I can tell it's only the yaboot stuff
 not booting that's holding me up from using this little machine again.

 Can anyone see what I've done wrong?

 Thanks,
 Mark

 livecd ~ # mount /dev/hda4 /mnt/gentoo
 livecd ~ # mount -t proc none /mnt/gentoo/proc
 livecd ~ # mount -o bind /dev /mnt/gentoo/dev
 livecd ~ # mount -o bind /sys /mnt/gentoo/sys
 livecd ~ # chroot /mnt/gentoo /bin/bash
 livecd / # env-update
 Regenerating /etc/ld.so.cache...
 livecd / # source /etc/profile
 livecd / # export PS1=(chroot) $PS1
 (chroot) livecd / # cat /etc/yaboot.conf

 boot=/dev/hda2
 #device=/p...@f400/at...@d/d...@0:
 device=hd:
 timeout=30
 install=/usr/lib/yaboot/yaboot
 magicboot=/usr/lib/yaboot/ofboot

 image=/boot/kernel-2.6.34-gentoo-r1
label=Gentoo-2.6.34-r1
partition=4
root=/dev/hda4
read-only
 (chroot) livecd / # mac-fdisk -l /dev/hda
 /dev/hda
#type name  length   base
( size )  system
 /dev/hda1 Apple_partition_map Apple 63 @ 1
( 31.5k)  Partition map
 /dev/hda2 Apple_Bootstrap bootstrap   1600 @ 64
(800.0k)  NewWorld bootblock
 /dev/hda3 Apple_UNIX_SVR2 swap 2097152 @ 1664
(  1.0G)  Linux swap
 /dev/hda4 Apple_UNIX_SVR2 root   154202672 @
 2098816   ( 73.5G)  Linux native

 Block size=512, Number of Blocks=156301488
 DeviceType=0x0, DeviceId=0x0

 (chroot) livecd / # cat /etc/fstab
 /dev/hda4   /ext3noatime  0 1
 /dev/hda3   none swapsw   0 0

 /dev/cdrom  /mnt/cdrom   autonoauto,user  0 0

 proc/procprocdefaults 0 0
 shm /dev/shm tmpfs   nodev,nosuid,noexec  0 0
 (chroot) livecd / # ybin -v
 ybin: Finding OpenFirmware device path to `/dev/hda2'...
 ybin: Installing first stage bootstrap /usr/lib/yaboot/ofboot onto 
 /dev/hda2...
 ybin: Installing primary bootstrap /usr/lib/yaboot/yaboot onto /dev/hda2...
 ybin: Installing /etc/yaboot.conf onto /dev/hda2...
 ybin: Setting attributes on ofboot...
 ybin: Setting attributes on yaboot...
 ybin: Setting attributes on yaboot.conf...
 ybin: Blessing /dev/hda2 with Holy Penguin Pee...
 ybin: Updating OpenFirmware boot-device variable in nvram...
 (chroot) livecd / # ls -al /boot/kernel*
 -rwxr-xr-x 1 root root 5547992 Sep 22 11:06 /boot/kernel-2.6.34-gentoo-r1
 (chroot) livecd / # exit
 exit
 livecd ~ # umount /mnt/gentoo/proc /mnt/gentoo/dev /mnt/gentoo/sys /mnt/gentoo
 livecd ~ #
 livecd ~ #
After looking at the screen shot, I think I have a different idea as to
why it might be failing and I don't think it's Yaboot.  If you've gotten
to init, yaboot's job is already done.

Can you boot 

Re: [gentoo-ppc-user] yaboot has kicked my butt - 5 times?!

2010-09-22 Thread Mark Knecht
On Wed, Sep 22, 2010 at 6:33 PM, Joseph Jezak jos...@gentoo.org wrote:
  On 09/22/10 18:59, Mark Knecht wrote:
 Hi,
   OK, I'm dead tired. I admit it - yaboot has kicked my butt this
 time around. Can anyone help? I did post this problem here 2-3 weeks
 ago but still haven't been able to solve the problem so I'm back to
 the well for another drink.

   The machine is the original 80GB PPC Mac Mini. I used to run Gentoo
 on it and it ran great for years so I know at one time yaboot worked
 just fine. For various reasons I hadn't updated it in a long, long
 time (2 years) and instead of trying to go through the Gentoo update
 process which is difficult after that much time I decided to just do a
 new install. I saved copies of my kernel config and etc/make.conf but
 unfortunately, being primarily an x86 guy didn't think to save
 yaboot.conf and fstab. I've now done 5 complete Gentoo installs,
 starting over from scratch in case something I was doing was messing
 things up but so far I cannot get the machine to boot. Every time, no
 matter what I do at install time, I get a message

 Can't check if filesystem is mounted due to a missing mtab file

 A somewhat out of focus screen shot is shown here:

 http://www.flickr.com/photos/29328...@n03/5014227831

 Generally speaking I'm following the Gentoo PPC install guide located here:

 http://www.gentoo.org/doc/en/handbook/handbook-ppc.xml?part=1chap=10
SNIP

 After looking at the screen shot, I think I have a different idea as to
 why it might be failing and I don't think it's Yaboot.  If you've gotten
 to init, yaboot's job is already done.

 Can you boot the install CD and chroot into the install again? When you
 get it up and running, check to see if fsck.ext3 exists. Even if it
 does, re-emerge e2fsprogs and see if that helps.
 -Joe

Very interesting. OK - I'm in the chroot now and reinstalling
e2fsprogs as you suggest. I'll reboot in a minute and check if it
helped. (OK - I rebooted and it didn't fix anything unfortunately. Too
bad. Thanks for the idea though.)

I was wondering if this was one of those things where device names
were changing. They were hda all through the install, which is
different from the Install Guide. I've tried to adjust my yaboot.conf
file accordingly but maybe it cannot find the disk at that point
because the name changed or something. I cannot see anything in the
boot screen to indicate that but I suppose it's possible.

While I'm here in the chroot I decided to poke around a bit. Note that
section 9d of the install guide says that e2fsprogs is already
installed as part of the system and indeed it appears to be as shown
below. However I note that I cannot run updatedb for slocate without
also getting a message about /etc/mtab not existing. Should mtab exist
withing the chroot?

(chroot) livecd / # emerge -pv e2fsprogs

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] sys-fs/e2fsprogs-1.41.11  USE=nls 4,368 kB

Total: 1 package (1 reinstall), Size of downloads: 4,368 kB
(chroot) livecd / # slocate fsck.*
slocate: fatal error: Could not find user database
'/var/lib/slocate/slocate.db':  No such file or directory
(chroot) livecd / # updatedb
updatedb: fatal error: load_file: Could not open file: /etc/mtab: No
such file or directory
updatedb: fatal error: parse_fs_exclude: Could not load file data: /etc/mtab
^C
(chroot) livecd / #


Indeed, on a different system /etc/mtab exists:

gandalf ~ # cat /etc/mtab
/dev/sda3 / ext3 rw,noatime,commit=0 0 0
proc /proc proc rw,nosuid,nodev,noexec,relatime 0 0
sysfs /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0
udev /dev tmpfs rw,nosuid,relatime,size=10240k,mode=755 0 0
devpts /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620 0 0
/dev/sda5 /home/herb ext3 rw,noatime,commit=0 0 0
shm /dev/shm tmpfs rw,noexec,nosuid,nodev 0 0
none /proc/fs/vmblock/mountPoint vmblock rw 0 0
gandalf ~ #

However on my MacMini it simply doesn't exist:

(chroot) livecd / # ls -la /etc/mtab
ls: cannot access /etc/mtab: No such file or directory
(chroot) livecd / #

So the question is what provides mtab? Have I missed some step in the
install process 5 times? Man, that would be embarrassing but I'd
gladly suffer the shame if I got the machine working! ;-)

Thanks for your help. Still looking.

Cheers,
Mark



Re: [gentoo-user] Booting Gentoo from USB stick

2010-09-22 Thread Al

 And for future reference, while looking into various things for this, I
 found these in the Gentoo Wiki:
 USB Portable Install - http://en.gentoo-wiki.com/wiki/USB_Portable_Install
 Portable USB Gentoo - http://en.gentoo-wiki.com/wiki/Portable_USB_Gentoo

 Unfortunately, both use genkernel instead of manually configured

Fortunately you have improved that, now that you know how how it all works. :-)

Al



Re: [gentoo-user] Booting Gentoo from USB stick

2010-09-22 Thread J. Roeleveld
On Wednesday 22 September 2010 06:36:50 Jake Moe wrote:

snipped

 Well, now that I've managed to get it booting, the only problem is that
 I can't seem to get the disk label working right.  In GRUB's menu.lst,
 if I use root=LABEL=UsbRoot, it doesn't work (kernel panic, label not
 found, but sda1 is listed as available), but if I use root=/dev/sda1, it
 works.  However, later in the boot process, it mounts / using
 LABEL=UsbRoot in fstab just fine.  Is that a problem with GRUB?  Or the
 kernel?  Or am I doing something else wrong?

I think someone mentioned earlier in this thread that label support for boot 
requires an initrd (ramdisk) to work. This could be what you're running into?

 And for future reference, while looking into various things for this, I
 found these in the Gentoo Wiki:
 USB Portable Install - http://en.gentoo-wiki.com/wiki/USB_Portable_Install
 Portable USB Gentoo - http://en.gentoo-wiki.com/wiki/Portable_USB_Gentoo

 Unfortunately, both use genkernel instead of manually configured
 kernels, so that part doesn't help, but one mentions the option
 scandelay=2 to add to the kernel boot line in GRUB to introduce the
 delay genkernel needed to see the USB device; would have been good to
 know that last week when I was trying genkernel.  :-P

That is something I noticed for a few Howto's, genkernel is used quite often, 
but I actually haven't seen the need for it myself yet.

But I am glad to hear you managed to get it working.
Did you try trimming down your kernel a bit more to see what the minimum 
required is? :)

--
Joost



Re: [gentoo-user] Booting Gentoo from USB stick

2010-09-22 Thread Jake Moe
 On 09/22/10 17:02, Al wrote:
 And for future reference, while looking into various things for this, I
 found these in the Gentoo Wiki:
 USB Portable Install - http://en.gentoo-wiki.com/wiki/USB_Portable_Install
 Portable USB Gentoo - http://en.gentoo-wiki.com/wiki/Portable_USB_Gentoo

 Unfortunately, both use genkernel instead of manually configured
 Fortunately you have improved that, now that you know how how it all works. 
 :-)

 Al

Well, I've written a few Gentoo Wikis before (very basic things), but as
those two articles each say they're up for merging with each other.  I'm
not sure how to do that, and I'm not sure what the proper way of editing
a wiki that someone else wrote in the first place.

Plus, I'm not done yet.  I'm still running into problems.  :-P

Jake Moe



Re: [gentoo-user] Booting Gentoo from USB stick

2010-09-22 Thread Jake Moe
 On 09/22/10 17:16, J. Roeleveld wrote:
 On Wednesday 22 September 2010 06:36:50 Jake Moe wrote:

 snipped

 Well, now that I've managed to get it booting, the only problem is that
 I can't seem to get the disk label working right.  In GRUB's menu.lst,
 if I use root=LABEL=UsbRoot, it doesn't work (kernel panic, label not
 found, but sda1 is listed as available), but if I use root=/dev/sda1, it
 works.  However, later in the boot process, it mounts / using
 LABEL=UsbRoot in fstab just fine.  Is that a problem with GRUB?  Or the
 kernel?  Or am I doing something else wrong?
 I think someone mentioned earlier in this thread that label support for 
 boot 
 requires an initrd (ramdisk) to work. This could be what you're running into?
Quite possibly.  I seem to be reading the same thing, but I thought I
had heard from the list previously that it was possible.

Actually, I've just found the e-mail I was thinking of before: Alan
McKinnon's reply on 08/31/10 02:32 with the subject Re: [gentoo-user]
Re: Old IDE drives and the newer PATA kernel drivers in which he said
that he's always used labels and never needed an initramfs to make it
work.  So I might have to fiddle with it some more and see if I can't
get it working.
 And for future reference, while looking into various things for this, I
 found these in the Gentoo Wiki:
 USB Portable Install - http://en.gentoo-wiki.com/wiki/USB_Portable_Install
 Portable USB Gentoo - http://en.gentoo-wiki.com/wiki/Portable_USB_Gentoo

 Unfortunately, both use genkernel instead of manually configured
 kernels, so that part doesn't help, but one mentions the option
 scandelay=2 to add to the kernel boot line in GRUB to introduce the
 delay genkernel needed to see the USB device; would have been good to
 know that last week when I was trying genkernel.  :-P
 That is something I noticed for a few Howto's, genkernel is used quite often, 
 but I actually haven't seen the need for it myself yet.

 But I am glad to hear you managed to get it working.
 Did you try trimming down your kernel a bit more to see what the minimum 
 required is? :)

 --
 Joost

No, I'm still trying to get a basic system up and running.  After I
booted into it, I tried to install v86d so I could try to get a
framebuffer working and have more lines on my screen while I try to trim
things down.  However, I quickly ran into an out of space issue, which
I found out was because of inodes, not size.  So I had to copy the
contents off, re-make the partition with more inodes, and then copy the
data back on.  Since then, I haven't had a chance to boot it and see how
it's going.  Hope to tomorrow.

Jake Moe



Re: [gentoo-user] machine check exception errors

2010-09-22 Thread Mick
On Wednesday 22 September 2010 02:24:39 Grant wrote:
   I'm getting a lot of machine check exception errors in dmesg on my
   hosted server.  Running mcelog I get:
   ...
   
   They offered to take my machine down and do a memory test which they
   said would take a number of hours.  Is a memory test likely to help?
   Did you suggest reseating or replacing RAM modules as opposed to a
   memory test because it will result in less downtime?
  
  I suspect that your hosting provider are offering you this memory test
  because they don't want to go swapping out memory modules willy-nilly.
  
  How do they know that the problem is really memory, and not your
  operating system? If they take all this RAM out and put new RAM in,
  what do they do with the old RAM? They don't know if it's good or bad,
  so are they expected to just slap it in a server belonging to another
  customer, and stitch him up?
  
  A memory test is likely to identify bad RAM, if it is bad, so you should
  proceed with this. This is likely the best route to solving the problem.
  
  I think that ideally, for you, they would move the system image onto a
  different known-good server with the same configuration. Then you cannot
  complain if the same problems start occurring again. If the problem is
  genuinely hardware then they won't. And the hosting provider is free to
  run diagnostics on your old machine.
  
  But realistically, the memory test is likely to show up a bad RAM
  module, you'll get it replaced and be up and running within a few
  hours. Why would you refuse? If your system needed a guaranteed uptime
  you'd perhaps have to pay for a higher level of service than the fees
  you're paying at present.
  
  I run memory tests overnight.  If a module is seriously borked then it
  will fail earlier.  Reseating/replacing takes a few minutes, instead of
  hours.
  
  If they have spare machines (for dev't or testing) they can fit the
  memory module(s) there and test them exhaustively, before they put the
  good ones back into a customer's machine.
 
 Thanks Mick and Stroller.  I'll see if they'll go for this.

You're welcome.  Bear in mind though that a lot of hosters are just glorified 
resellers with an account in a bigger data centre.  In many cases they do not 
even have physical access to the machines.  Only the data centre techies do 
and they may be less willing to oblige and break procedure or routine, just 
because one end user out of hundreds/thousands complained about some memory 
errors.

YMMV
-- 
Regards,
Mick


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


Re: [gentoo-user] Booting Gentoo from USB stick

2010-09-22 Thread J. Roeleveld
On Wednesday 22 September 2010 11:13:01 Jake Moe wrote:
  On 09/22/10 17:16, J. Roeleveld wrote:
  On Wednesday 22 September 2010 06:36:50 Jake Moe wrote:
  
  snipped
  
  Well, now that I've managed to get it booting, the only problem is that
  I can't seem to get the disk label working right.  In GRUB's menu.lst,
  if I use root=LABEL=UsbRoot, it doesn't work (kernel panic, label not
  found, but sda1 is listed as available), but if I use root=/dev/sda1, it
  works.  However, later in the boot process, it mounts / using
  LABEL=UsbRoot in fstab just fine.  Is that a problem with GRUB?  Or the
  kernel?  Or am I doing something else wrong?
  
  I think someone mentioned earlier in this thread that label support for
  boot requires an initrd (ramdisk) to work. This could be what you're
  running into?
 
 Quite possibly.  I seem to be reading the same thing, but I thought I
 had heard from the list previously that it was possible.
 
 Actually, I've just found the e-mail I was thinking of before: Alan
 McKinnon's reply on 08/31/10 02:32 with the subject Re: [gentoo-user]
 Re: Old IDE drives and the newer PATA kernel drivers in which he said
 that he's always used labels and never needed an initramfs to make it
 work.  So I might have to fiddle with it some more and see if I can't
 get it working.

I haven't used labels for that, so I don't know what is needed for that.
Maybe a kernel-config setting?

  And for future reference, while looking into various things for this, I
  found these in the Gentoo Wiki:
  USB Portable Install -
  http://en.gentoo-wiki.com/wiki/USB_Portable_Install Portable USB Gentoo
  - http://en.gentoo-wiki.com/wiki/Portable_USB_Gentoo
  
  Unfortunately, both use genkernel instead of manually configured
  kernels, so that part doesn't help, but one mentions the option
  scandelay=2 to add to the kernel boot line in GRUB to introduce the
  delay genkernel needed to see the USB device; would have been good to
  know that last week when I was trying genkernel.  :-P
  
  That is something I noticed for a few Howto's, genkernel is used quite
  often, but I actually haven't seen the need for it myself yet.
  
  But I am glad to hear you managed to get it working.
  Did you try trimming down your kernel a bit more to see what the minimum
  required is? :)
  
  --
  Joost
 
 No, I'm still trying to get a basic system up and running.  After I
 booted into it, I tried to install v86d so I could try to get a
 framebuffer working and have more lines on my screen while I try to trim
 things down.  However, I quickly ran into an out of space issue, which
 I found out was because of inodes, not size.  So I had to copy the
 contents off, re-make the partition with more inodes, and then copy the
 data back on.  Since then, I haven't had a chance to boot it and see how
 it's going.  Hope to tomorrow.

Ouch :(

I'm usually a bit astumped when I get out-of-space issues and df still 
shows plenty of free disk space.

Looking forward to your update :)

--
Joost

PS. Am thinking of playing around with that myself again sometime :)



Re: [gentoo-user] Can't connect to new router

2010-09-22 Thread Mick
On Wednesday 22 September 2010 02:26:40 Grant wrote:
   I just got a new TP-Link TL-WR1043ND wireless router but I can't seem
   connect to it.  I've tried the Gentoo initscript as well as wicd.
   With the initscript, I get:
   
   wlan3: carrier lost
   wlan3: timed out
   
   I see a lot of this in dmesg:
   
   b43-phy0 ERROR: MAC suspend failed
   
   I can connect to other wireless routers just fine, and I can connect
   to this one via ethernet.  I've tried configuring it in various ways,
   security is disabled, and I've tried specifying static IPs with no
   luck.  Does anyone know what I could be doing wrong?
   
   Check that you're using the latest kernel and the latest firmware.  I
   used to get this error with a particular cisco access point and it
   went away when I updated to 2.6.34 kernel series and also updated the
   firmware.  Have a good look in here to find the latest suitable
   firmware for your NIC:
   
   http://wireless.kernel.org/en/users/Drivers/b43#devicefirmware
  
  I upgraded to the latest firmware in portage and the MAC suspend
  failed errors have disappeared, but I still can't connect to the
  router.  Here is the only clue I see in dmesg:
  
  No probe response from AP a1:b2:c3:d4:e5:f6 after 500ms, disconnecting.
  
  Any ideas?
  
  Try a later kernel which would have a more up to date driver.  Last time
  I had this problem it was corrected by unmasking and using a newer
  kernel.  It's something to do with the TTL that the driver uses and I'm
  not sure that this is a parameter that you can see listed under modinfo.
   I believe it is hard coded.
 
 I'm on the latest hardened-sources kernel so I'll wait it out.  In the
 meantime I've plugged in a USB wireless NIC and it's working fine.
 Thank you for your help.

I'm on 2.6.34-gentoo-r6 and the b43 driver works fine here, but only a few 
kernels back it was exhibiting the same symptoms like yours.

Some users have mentioned that if you use WPA/WPA2 encryption the symptoms are 
surprisingly less frequent!

So until a more up to date kernel shows up you may want to look into 
experimenting with wpa_supplicant.
-- 
Regards,
Mick


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


[gentoo-user] Qt 4.7.0: where's the documentation?

2010-09-22 Thread Nikos Chantziaras
I noticed that Qt 4.7.0 does not have a doc USE flag and does not 
install any html docs in /usr/share/doc for offline use.  What's happening?





Re: [gentoo-user] Qt 4.7.0: where's the documentation?

2010-09-22 Thread Alan McKinnon
Apparently, though unproven, at 15:08 on Wednesday 22 September 2010, Nikos 
Chantziaras did opine thusly:

 I noticed that Qt 4.7.0 does not have a doc USE flag and does not
 install any html docs in /usr/share/doc for offline use.  What's happening?


Lazy dev? Didn't get round to it yet?



-- 
alan dot mckinnon at gmail dot com



[gentoo-user] Not head, not tail, maybe belly

2010-09-22 Thread Al
Hi,

I am looking for a program similar to head or tail. It should display
a given range of lines or take a line and a context number like grep.

Any suggestions? Thanks in advance.

Al



[gentoo-user] Re: Not head, not tail, maybe belly

2010-09-22 Thread Remy Blank
Al wrote:
 I am looking for a program similar to head or tail. It should display
 a given range of lines or take a line and a context number like grep.

How about combining both? Show 10 lines starting with line 20:

  tail -n +20 myfile.txt | head -n 10

-- Remy



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Not head, not tail, maybe belly

2010-09-22 Thread Florian CROUZAT

On 22 sept. 2010, at 17:04, Maciej Grela wrote:

 2010/9/22 Al oss.el...@googlemail.com:
 Hi,
 
 I am looking for a program similar to head or tail. It should display
 a given range of lines or take a line and a context number like grep.
 
 Any suggestions? Thanks in advance.
 
 
 gr...@pazuzu ~ $ cat /etc/passwd | sed -n -e '4,10 p'


Best solution so far, but useless use of cat, and the subshell overhead of the 
pipe.

-
Florian.
/ For security reasons, all text in this mail 
  is double-rot13 encrypted. /




Re: [gentoo-user] Not head, not tail, maybe belly

2010-09-22 Thread Paul Hartman
On Wed, Sep 22, 2010 at 9:53 AM, Al oss.el...@googlemail.com wrote:
 Hi,

 I am looking for a program similar to head or tail. It should display
 a given range of lines or take a line and a context number like grep.

 Any suggestions? Thanks in advance.

sed -n 5,8p filename

where 5 is first line in the range and 8 is the last line.

If you want to view multiple ranges use the same X,Yp syntax but
preceed each with -e. For example

sed -n -e 5,8p -e 12,17p filename



Re: [gentoo-user] Not head, not tail, maybe belly

2010-09-22 Thread Al
 gr...@pazuzu ~ $ cat /etc/passwd | sed -n -e '4,10 p'


 Best solution so far, but useless use of cat, and the subshell overhead of 
 the pipe.


Thank you. Nice solutions and they reveal that there is no belly
like program in coreutils.

I find it interesting, that the two bordercases are considered while
the general approach (range), that would cover all, is missing. Is
that rather for performance or for historical reasons?

Al



Re: [gentoo-user] Qt 4.7.0: where's the documentation?

2010-09-22 Thread Paul Hartman
On Wed, Sep 22, 2010 at 8:08 AM, Nikos Chantziaras rea...@arcor.de wrote:
 I noticed that Qt 4.7.0 does not have a doc USE flag and does not install
 any html docs in /usr/share/doc for offline use.  What's happening?

I have not installed Qt 4.7.0 but looking at the ebuilds it looks like
perhaps the documentation may have been moved into qt-assistant ebuild
instead (with doc USE flag set). Do you have that installed?



Re: [gentoo-user] Not head, not tail, maybe belly

2010-09-22 Thread Alan McKinnon
Apparently, though unproven, at 17:47 on Wednesday 22 September 2010, Al did 
opine thusly:

  gr...@pazuzu ~ $ cat /etc/passwd | sed -n -e '4,10 p'
  
  Best solution so far, but useless use of cat, and the subshell overhead
  of the pipe.
 
 Thank you. Nice solutions and they reveal that there is no belly
 like program in coreutils.
 
 I find it interesting, that the two bordercases are considered while
 the general approach (range), that would cover all, is missing. Is
 that rather for performance or for historical reasons?
 
 Al


Neither.

It's because one frequently wants to see the start or end of a file and much 
less seldom something in the middle. When that is what you want, there are all 
manner of other tools to find the bit you want, then display surrounding text.

grep -{ABC} is the usual tool for that


-- 
alan dot mckinnon at gmail dot com



[gentoo-user] Re: Qt 4.7.0: where's the documentation?

2010-09-22 Thread Nikos Chantziaras

On 09/22/2010 06:49 PM, Paul Hartman wrote:

On Wed, Sep 22, 2010 at 8:08 AM, Nikos Chantziarasrea...@arcor.de  wrote:

I noticed that Qt 4.7.0 does not have a doc USE flag and does not install
any html docs in /usr/share/doc for offline use.  What's happening?


I have not installed Qt 4.7.0 but looking at the ebuilds it looks like
perhaps the documentation may have been moved into qt-assistant ebuild
instead (with doc USE flag set). Do you have that installed?


Yes!  That's where it went.  Thanks for catching that one.




Re: [gentoo-user] Can't connect to new router

2010-09-22 Thread Grant
   I just got a new TP-Link TL-WR1043ND wireless router but I can't seem
   connect to it.  I've tried the Gentoo initscript as well as wicd.
   With the initscript, I get:
  
   wlan3: carrier lost
   wlan3: timed out
  
   I see a lot of this in dmesg:
  
   b43-phy0 ERROR: MAC suspend failed
  
   I can connect to other wireless routers just fine, and I can connect
   to this one via ethernet.  I've tried configuring it in various ways,
   security is disabled, and I've tried specifying static IPs with no
   luck.  Does anyone know what I could be doing wrong?
  
   Check that you're using the latest kernel and the latest firmware.  I
   used to get this error with a particular cisco access point and it
   went away when I updated to 2.6.34 kernel series and also updated the
   firmware.  Have a good look in here to find the latest suitable
   firmware for your NIC:
  
   http://wireless.kernel.org/en/users/Drivers/b43#devicefirmware
 
  I upgraded to the latest firmware in portage and the MAC suspend
  failed errors have disappeared, but I still can't connect to the
  router.  Here is the only clue I see in dmesg:
 
  No probe response from AP a1:b2:c3:d4:e5:f6 after 500ms, disconnecting.
 
  Any ideas?
 
  Try a later kernel which would have a more up to date driver.  Last time
  I had this problem it was corrected by unmasking and using a newer
  kernel.  It's something to do with the TTL that the driver uses and I'm
  not sure that this is a parameter that you can see listed under modinfo.
   I believe it is hard coded.

 I'm on the latest hardened-sources kernel so I'll wait it out.  In the
 meantime I've plugged in a USB wireless NIC and it's working fine.
 Thank you for your help.

 I'm on 2.6.34-gentoo-r6 and the b43 driver works fine here, but only a few
 kernels back it was exhibiting the same symptoms like yours.

 Some users have mentioned that if you use WPA/WPA2 encryption the symptoms are
 surprisingly less frequent!

 So until a more up to date kernel shows up you may want to look into
 experimenting with wpa_supplicant.

I'm actually using the same kernel version, for me it's
2.6.34-hardened-r6.  I've tried softmode with the same results.  I'm
using wicd and WPA2, and I tried wpa_supplicant when I first started
having the problem with the same results.

Thanks for your help.  I'm sure it will be fixed up soon.  Probably
already fixed in newer kernel versions.

- Grant



Re: [gentoo-user] machine check exception errors

2010-09-22 Thread Grant
   I'm getting a lot of machine check exception errors in dmesg on my
   hosted server.  Running mcelog I get:
   ...
  
   They offered to take my machine down and do a memory test which they
   said would take a number of hours.  Is a memory test likely to help?
   Did you suggest reseating or replacing RAM modules as opposed to a
   memory test because it will result in less downtime?
 
  I suspect that your hosting provider are offering you this memory test
  because they don't want to go swapping out memory modules willy-nilly.
 
  How do they know that the problem is really memory, and not your
  operating system? If they take all this RAM out and put new RAM in,
  what do they do with the old RAM? They don't know if it's good or bad,
  so are they expected to just slap it in a server belonging to another
  customer, and stitch him up?
 
  A memory test is likely to identify bad RAM, if it is bad, so you should
  proceed with this. This is likely the best route to solving the problem.
 
  I think that ideally, for you, they would move the system image onto a
  different known-good server with the same configuration. Then you cannot
  complain if the same problems start occurring again. If the problem is
  genuinely hardware then they won't. And the hosting provider is free to
  run diagnostics on your old machine.
 
  But realistically, the memory test is likely to show up a bad RAM
  module, you'll get it replaced and be up and running within a few
  hours. Why would you refuse? If your system needed a guaranteed uptime
  you'd perhaps have to pay for a higher level of service than the fees
  you're paying at present.
 
  I run memory tests overnight.  If a module is seriously borked then it
  will fail earlier.  Reseating/replacing takes a few minutes, instead of
  hours.
 
  If they have spare machines (for dev't or testing) they can fit the
  memory module(s) there and test them exhaustively, before they put the
  good ones back into a customer's machine.

 Thanks Mick and Stroller.  I'll see if they'll go for this.

 You're welcome.  Bear in mind though that a lot of hosters are just glorified
 resellers with an account in a bigger data centre.  In many cases they do not
 even have physical access to the machines.  Only the data centre techies do
 and they may be less willing to oblige and break procedure or routine, just
 because one end user out of hundreds/thousands complained about some memory
 errors.

Thanks Mick.  My host is big with multiple data centers of their own.
They did exactly as I asked and I'm running on new RAM.  There was a
problem bringing my system back online and the cause was purported to
be an unseated ethernet cable.  I handed over my root password as I
was requested to do, and then started to get paranoid.  I suppose I
shouldn't though because with physical access to my machine they
pretty much have full access anyway, right?

- Grant



[gentoo-user] Checking an HD for problems

2010-09-22 Thread Grant
I just switched to a new WD Caviar Black hard drive (really fast and
quiet!) and I noticed some errors when I was cp -ax'ing everything
from my old drive to the new drive which were accompanied by loud
clicks.  Is there a way to do a comprehensive test/check of the old
drive to see if it has any problems?

- Grant



Re: [gentoo-user] Checking an HD for problems

2010-09-22 Thread Mark Knecht
On Wed, Sep 22, 2010 at 9:46 AM, Grant emailgr...@gmail.com wrote:
 I just switched to a new WD Caviar Black hard drive (really fast and
 quiet!) and I noticed some errors when I was cp -ax'ing everything
 from my old drive to the new drive which were accompanied by loud
 clicks.  Is there a way to do a comprehensive test/check of the old
 drive to see if it has any problems?

 - Grant

I know it's not a popular solution here in Linux-land, and it's pretty
slow for large drives, but I still use SpinRite for that sort of
thing.

As a quick test, if the old drive has S.M.A.R.T. is to read the data
held in the drive to tell you if the on-board controller is seeing
problems.

Hope this helps,
Mark



[gentoo-user] X programs as root

2010-09-22 Thread Andrey Vul
When I launch X programs via sudo, I get the following:

$sudo gui-admin
No protocol specified
gui-admin: cannot connect to X server :0

( Assume gui-admin is an X program )

But (gk|kde)su(do)? works. This is somewhat confusing.


--
Andrey m05hbear Vul



Re: [gentoo-user] X programs as root

2010-09-22 Thread Volker Armin Hemmann
On Wednesday 22 September 2010, Andrey Vul wrote:
 When I launch X programs via sudo, I get the following:
 
 $sudo gui-admin
 No protocol specified
 gui-admin: cannot connect to X server :0
 
 ( Assume gui-admin is an X program )
 
 But (gk|kde)su(do)? works. This is somewhat confusing.
 
 
 --
 Andrey m05hbear Vul

a) pam
b) sux



[gentoo-user] Re: X programs as root

2010-09-22 Thread Nikos Chantziaras

On 09/22/2010 09:48 PM, Andrey Vul wrote:

When I launch X programs via sudo, I get the following:

$sudo gui-admin
No protocol specified
gui-admin: cannot connect to X server :0

( Assume gui-admin is an X program )

But (gk|kde)su(do)? works. This is somewhat confusing.


sudo doesn't keep the $DISPLAY environment variable by default.  There 
could be other issues too.  Best stick to kdesu and friends; that's what 
they are there for.





Re: [gentoo-user] Checking an HD for problems

2010-09-22 Thread Stroller

On 22 Sep 2010, at 17:46, Grant wrote:
 ... I noticed some errors when I was cp -ax'ing everything
 from my old drive to the new drive which were accompanied by loud
 clicks.  Is there a way to do a comprehensive test/check of the old
 drive to see if it has any problems?

You don't need to do a test. The disk that is making the noises is f**ked.

Assuming that it's the old drive that is knackered, and if you're not certain 
that all important data has been copied correctly, then use GNU ddrescue (there 
is more than one dd_rescue, and GNU's is the best one) to do a bitwise clone of 
the data. Follow the examples in the manual to do multiple passes - the first 
pass will get most of the data from good sectors, subsequent passes will make 
repeated attempts at the bad sectors.

Stroller.




[gentoo-user] Re: Checking an HD for problems

2010-09-22 Thread walt

On 09/22/2010 01:26 PM, Stroller wrote:


On 22 Sep 2010, at 17:46, Grant wrote:

... I noticed some errors when I was cp -ax'ing everything
from my old drive to the new drive which were accompanied by loud
clicks.  Is there a way to do a comprehensive test/check of the old
drive to see if it has any problems?


You don't need to do a test. The disk that is making the noises is f**ked.

Assuming that it's the old drive that is knackered...


I was thinking the same.  In the past three or four years I've had more
brand new drives go bad than older ones.  Funny, though, the replacement
drives I've received under warranty work spectacularly well.  Just luck?





Re: [gentoo-user] Re: Checking an HD for problems

2010-09-22 Thread Alan McKinnon
Apparently, though unproven, at 23:00 on Wednesday 22 September 2010, walt did 
opine thusly:

 On 09/22/2010 01:26 PM, Stroller wrote:
  On 22 Sep 2010, at 17:46, Grant wrote:
  ... I noticed some errors when I was cp -ax'ing everything
  from my old drive to the new drive which were accompanied by loud
  clicks.  Is there a way to do a comprehensive test/check of the old
  drive to see if it has any problems?
  
  You don't need to do a test. The disk that is making the noises is
  f**ked.
  
  Assuming that it's the old drive that is knackered...
 
 I was thinking the same.  In the past three or four years I've had more
 brand new drives go bad than older ones.  Funny, though, the replacement
 drives I've received under warranty work spectacularly well.  Just luck?


No, not luck. It's a numbers game and that how the dice roll.

Modern drives are complex. As such they are more likely to fail than ancient 
drives simply because of the complexity. They are also better engineered than 
old ones but the loss from complexity is greater than the game from better 
engineering. Plus, they are incredibly cheap compared to ancient times.

Engineered products all have characteristic failure rates common across the 
model, the infamous bathtub curve. The factory can't do the full range of 
nurn-in tests they'd like to (bean counters rule), so you get a drive at the 
later end of the bathtub. Hence, you see elevated failure rates. The factory 
is willing to take a financial knock here as the loss from a few replacements 
is much lower than the gigantic loss from fully and properly testing every 
drive for hours and hours.

You get a replacement. Simple odds are that it is not one of the few that will 
fail early, so it doesn't and you think Wow! The gods like me. Nope, 
statistics like me.

If the factory was real smart, they would keep a small stock of fully tested 
drives on the replacement shelf, only to be released as under-warranty 
replacements. You'd be certain these drives would NOT fail and it's trivially 
easy to get this past the bean counters because you'd be winning back customer 
loyalty. And the cost of testing those few drives fully is not that much. The 
average bean counter has a ballistic orgasm at the thought of this, and yes 
they can even tell you the price they attach to winning back that loyalty.

So now you know. Accountants do not think like techies.

-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] Not head, not tail, maybe belly

2010-09-22 Thread David Relson
Or, as a script ...

--- begin bin/belly ---
RANGE=$1
shift
sed -n ${RANGE}p $*
--- end --


On Wed, 22 Sep 2010 17:04:43 +0200
Maciej Grela wrote:

 2010/9/22 Al oss.el...@googlemail.com:
  Hi,
 
  I am looking for a program similar to head or tail. It should
  display a given range of lines or take a line and a context number
  like grep.
 
  Any suggestions? Thanks in advance.
 
 
 gr...@pazuzu ~ $ cat /etc/passwd | sed -n -e '4,10 p'
 adm:x:3:4:adm:/var/adm:/bin/false
 lp:x:4:7:lp:/var/spool/lpd:/bin/false
 sync:x:5:0:sync:/sbin:/bin/sync
 shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown
 halt:x:7:0:halt:/sbin:/sbin/halt
 mail:x:8:12:mail:/var/spool/mail:/bin/false
 news:x:9:13:news:/usr/lib/news:/bin/false
 
 Br,
 Maciej Grela



[gentoo-user] usb-storage errors in dmesg

2010-09-22 Thread Bill Longman
 I have a new workstation running 64 bits 2.6.34 gentoo sources. It's an
HP p6520y (AthlonIIX4) with 6GB and lsusb reports an Alcor Micro 21-in-1
Flash Card Reader.

I have no usb storage devices plugged in and I see in my dmesg many of
the following messages:

usb-storage: queuecommand called
usb-storage: *** thread awakened.
usb-storage: Command TEST_UNIT_READY (6 bytes)
usb-storage:  00 00 00 00 00 00
usb-storage: Bulk Command S 0x43425355 T 0x5473 L 0 F 0 Trg 0 LUN 1 CL 6
usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes
usb-storage: Status code 0; transferred 31/31
usb-storage: -- transfer complete
usb-storage: Bulk command transfer result=0
usb-storage: Attempting to get CSW...
usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes
usb-storage: Status code 0; transferred 13/13
usb-storage: -- transfer complete
usb-storage: Bulk status result = 0
usb-storage: Bulk Status S 0x53425355 T 0x5473 R 0 Stat 0x1
usb-storage: -- transport indicates command failure
usb-storage: Issuing auto-REQUEST_SENSE
usb-storage: Bulk Command S 0x43425355 T 0x5474 L 18 F 128 Trg 0 LUN 1 CL 6
usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes
usb-storage: Status code 0; transferred 31/31
usb-storage: -- transfer complete
usb-storage: Bulk command transfer result=0
usb-storage: usb_stor_bulk_transfer_sglist: xfer 18 bytes, 1 entries
usb-storage: Status code 0; transferred 18/18
usb-storage: -- transfer complete
usb-storage: Bulk data transfer result 0x0
usb-storage: Attempting to get CSW...
usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes
usb-storage: Status code 0; transferred 13/13
usb-storage: -- transfer complete
usb-storage: Bulk status result = 0
usb-storage: Bulk Status S 0x53425355 T 0x5474 R 0 Stat 0x0
usb-storage: -- Result from auto-sense is 0
usb-storage: -- code: 0xf0, key: 0x2, ASC: 0x3a, ASCQ: 0x0
usb-storage: Not Ready: Medium not present
usb-storage: scsi cmd done, result=0x2
usb-storage: *** thread sleeping.

Any ideas who/what is doing this? How to debug?

Bill

--
Bill Longman
Εν αρχη ην ο λογος








Re: [gentoo-user] usb-storage errors in dmesg

2010-09-22 Thread me
On Wed, Sep 22, 2010 at 7:00 PM, Bill Longman bill.long...@gmail.com wrote:
  I have a new workstation running 64 bits 2.6.34 gentoo sources. It's an
 HP p6520y (AthlonIIX4) with 6GB and lsusb reports an Alcor Micro 21-in-1
 Flash Card Reader.

 I have no usb storage devices plugged in and I see in my dmesg many of
 the following messages:

 usb-storage: queuecommand called
 usb-storage: *** thread awakened.
 usb-storage: Command TEST_UNIT_READY (6 bytes)
 usb-storage:  00 00 00 00 00 00
 usb-storage: Bulk Command S 0x43425355 T 0x5473 L 0 F 0 Trg 0 LUN 1 CL 6
 usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes
 usb-storage: Status code 0; transferred 31/31
 usb-storage: -- transfer complete
 usb-storage: Bulk command transfer result=0
 usb-storage: Attempting to get CSW...
 usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes
 usb-storage: Status code 0; transferred 13/13
 usb-storage: -- transfer complete
 usb-storage: Bulk status result = 0
 usb-storage: Bulk Status S 0x53425355 T 0x5473 R 0 Stat 0x1
 usb-storage: -- transport indicates command failure
 usb-storage: Issuing auto-REQUEST_SENSE
 usb-storage: Bulk Command S 0x43425355 T 0x5474 L 18 F 128 Trg 0 LUN 1 CL 6
 usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes
 usb-storage: Status code 0; transferred 31/31
 usb-storage: -- transfer complete
 usb-storage: Bulk command transfer result=0
 usb-storage: usb_stor_bulk_transfer_sglist: xfer 18 bytes, 1 entries
 usb-storage: Status code 0; transferred 18/18
 usb-storage: -- transfer complete
 usb-storage: Bulk data transfer result 0x0
 usb-storage: Attempting to get CSW...
 usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes
 usb-storage: Status code 0; transferred 13/13
 usb-storage: -- transfer complete
 usb-storage: Bulk status result = 0
 usb-storage: Bulk Status S 0x53425355 T 0x5474 R 0 Stat 0x0
 usb-storage: -- Result from auto-sense is 0
 usb-storage: -- code: 0xf0, key: 0x2, ASC: 0x3a, ASCQ: 0x0
 usb-storage: Not Ready: Medium not present
 usb-storage: scsi cmd done, result=0x2
 usb-storage: *** thread sleeping.

 Any ideas who/what is doing this? How to debug?

 Bill

 --
 Bill Longman
 Εν αρχη ην ο λογος


I'd guess, at a glance, that you have CONFIG_USB_STORAGE_DEBUG set in
your kernel config.

To check if that's it (assuming you have /proc/config.gz enabled) run:
# zgrep CONFIG_USB_STORAGE_DEBUG /proc/config.gz

-- 
Poison [BLX]
Joshua M. Murphy



Re: [gentoo-user] Re: X programs as root

2010-09-22 Thread Dale

Nikos Chantziaras wrote:

On 09/22/2010 09:48 PM, Andrey Vul wrote:

When I launch X programs via sudo, I get the following:

$sudo gui-admin
No protocol specified
gui-admin: cannot connect to X server :0

( Assume gui-admin is an X program )

But (gk|kde)su(do)? works. This is somewhat confusing.


sudo doesn't keep the $DISPLAY environment variable by default.  There 
could be other issues too.  Best stick to kdesu and friends; that's 
what they are there for.





Well, I noticed after the recent upgrade to 4.5.1 that mine doesn't work 
either.  It worked before but not now.  I'm not sure what changed 
between 4.4 and 4.5.1 but it broke my konqueror as root and other 
programs as well.  Still have some I haven't tried tho.  Konqueror is 
the one I need most.  Oh, I can get Dolphin to work tho.  The conspiracy 
theory part in me is starting to think.


Sure would like to get this working again too.

Dale

:-)  :-)



Re: [gentoo-user] machine check exception errors

2010-09-22 Thread Dale

Grant wrote:


Thanks Mick.  My host is big with multiple data centers of their own.
They did exactly as I asked and I'm running on new RAM.  There was a
problem bringing my system back online and the cause was purported to
be an unseated ethernet cable.  I handed over my root password as I
was requested to do, and then started to get paranoid.  I suppose I
shouldn't though because with physical access to my machine they
pretty much have full access anyway, right?

- Grant


   


Usually, physical access means they either have it or can get it pretty 
quick.  Boot a CD/DVD, mount the partitions, chroot in, change password 
and reboot.  Then, you don't have the password but they do.


My conspiracy hat on, if you can't trust them with the password, why do 
they have your data?  Just thinking.  ;-)


This leaves out the encryption thing tho.  That would change things.

Dale

:-)  :-)



[gentoo-user] Singapore Citizen Mr. Teo En Ming (Zhang Enming) wants to become the next person after U.S. Senator Ernie Chambers to sue God

2010-09-22 Thread Mr. Teo En Ming (Zhang Enming) 张恩鸣 o f Singapore
I want to sue God for being too busy and unresponsive. How can I file a 
lawsuit against Him at the United States Supreme Court?


--
Yours sincerely,

Mr. Teo En Ming (Zhang Enming) 张恩鸣 Dip(Mechatronics) 
BEng(Hons)(Mechanical Engineering)

Citizenship: Singapore Citizen/Singaporean
Alma Maters:
[1] Singapore Polytechnic (Graduated 1998)
[2] National University of Singapore (Graduated 2006)
Facebook account: Teo En Ming (Zhang Enming)
Facebook link: http://www.facebook.com/profile.php?id=10750083982
Facebook photos: 
http://www.facebook.com/profile.php?id=10750083982#!/profile.php?id=10750083982v=photos
Facebook videos: 
http://www.facebook.com/profile.php?id=10750083982v=app_2392950137

Mobile Phone (Starhub pre-paid): +65-8369-2618
Windows Live Messenger: teoenming-at-hotmail.com
Location: Bedok Reservoir Road, Singapore
ZIP: 470103
My Open Letter (Plea for Medical Help/Assistance) to World Leaders 
(Updated 28 August 2010):-

http://lists.mcs.anl.gov/pipermail/mpich-discuss/2010-August/007811.html
http://mythtv.org/pipermail/mythtv-users/2010-August/295952.html
http://archives.gentoo.org/gentoo-user/msg_f6a341d9623fda17880159b137c07335.xml
Photo of Mr. Teo En Ming (Zhang Enming) 张恩鸣 of Singapore: 
http://i53.tinypic.com/207tamp.jpg