Re: [gentoo-user]How can i remove the xfce clearly?

2012-04-21 Thread Florian Philipp
Am 21.04.2012 05:27, schrieb 赵佳晖:
 I just install the xfce a few days ago, But i find i didn't like it . So
 i want to remove it and install the Gnome . How can i remove the xfce
 clearly ? 
 
 -- 
 好好学习,天天向上!!!

Gnome and Xfce share many libraries. Therefore it is best to install
Gnome first, before removing Xfce. Otherwise you will remove libraries
which you will later re-emerge for Gnome.

Then you need to configure your display manager (kdm, gdm, xdm) to use
Gnome instead of Xfce. Kdm and Gdm should allow you to do that directly
on the login screen.

When you are satisfied with Gnome, edit /var/lib/portage/world and
remove every line containing an Xfce package. Then run `emerge -av
--depclean` and you are done.

You could continue to remove config files but that is usually not worth
the trouble.

Hope this helps,
Florian Philipp



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] changed motherboard, no AHCI

2012-04-21 Thread Philip Webb
120421 pk wrote:
 On 2012-04-21 04:12, Philip Webb wrote:
 It's an Asus P5G41T-M LX  the manual says :
 the chipset on that mobo is G41 (released in 2008) and it combines
 with ICH7 which unfortunately doesn't seem to support AHCI.

That's important to hear, but it can't be a show-stopper,
as the  3  other Linux distro's I've mentioned have no problem.
I tried compiling AHCI as [M], which is what Mandriva + Ubuntu do,
but it makes no difference.  There must be some other setting
their kernels use to identify the drive, which mine doesn't have set.
Can anyone suggest what other settings to try ?
I've looked at their kernel  .config  files, but nothing jumps out.

At least, I've managed to compile + install a kernel
in a chroot using System Rescue, which I hadn't done before !

-- 
,,
SUPPORT ___//___,   Philip Webb
ELECTRIC   /] [] [] [] [] []|   Cities Centre, University of Toronto
TRANSIT`-O--O---'   purslowatchassdotutorontodotca




Re: [gentoo-user]How can i remove the xfce clearly?

2012-04-21 Thread 赵佳晖
Thank you for your answer , Philipp .I will tried it later

在 2012年4月21日 下午3:45,Florian Philipp li...@binarywings.net写道:

 Am 21.04.2012 05:27, schrieb 赵佳晖:
  I just install the xfce a few days ago, But i find i didn't like it . So
  i want to remove it and install the Gnome . How can i remove the xfce
  clearly ?
 
  --
  好好学习,天天向上!!!

 Gnome and Xfce share many libraries. Therefore it is best to install
 Gnome first, before removing Xfce. Otherwise you will remove libraries
 which you will later re-emerge for Gnome.

 Then you need to configure your display manager (kdm, gdm, xdm) to use
 Gnome instead of Xfce. Kdm and Gdm should allow you to do that directly
 on the login screen.

 When you are satisfied with Gnome, edit /var/lib/portage/world and
 remove every line containing an Xfce package. Then run `emerge -av
 --depclean` and you are done.

 You could continue to remove config files but that is usually not worth
 the trouble.

 Hope this helps,
 Florian Philipp




-- 
好好学习,天天向上!!!


Re: [gentoo-user] changed motherboard, no AHCI

2012-04-21 Thread Graham Murray
pk pete...@coolmail.se writes:

 On 2012-04-21 04:12, Philip Webb wrote:

 It's an Asus P5G41T-M LX  the manual says :

 Hm... the chipset on that mobo is G41 (released in 2008) and it combines
 with ICH7 which unfortunately doesn't seem to support AHCI. Sorry...

If it is an ICH which does not support AHCI, then try the option for
Intel ESB, ICH, PIIX3, PIIX4 PATA/SATA Support which generates the
PIIX driver.





Re: [gentoo-user] changed motherboard, no AHCI

2012-04-21 Thread Helmut Jarausch

On 04/21/2012 10:02:26 AM, Philip Webb wrote:

120421 pk wrote:
 On 2012-04-21 04:12, Philip Webb wrote:
 It's an Asus P5G41T-M LX  the manual says :
 the chipset on that mobo is G41 (released in 2008) and it combines
 with ICH7 which unfortunately doesn't seem to support AHCI.

That's important to hear, but it can't be a show-stopper,
as the  3  other Linux distro's I've mentioned have no problem.
I tried compiling AHCI as [M], which is what Mandriva + Ubuntu do,
but it makes no difference.  There must be some other setting
their kernels use to identify the drive, which mine doesn't have set.
Can anyone suggest what other settings to try ?
I've looked at their kernel  .config  files, but nothing jumps out.

At least, I've managed to compile + install a kernel
in a chroot using System Rescue, which I hadn't done before !



Boot your system e.g. with SystemRescueCD

then do   lspci -k

this shows you which module is in use.
Then build your own kernel with this module.

Helmut.




Re: [gentoo-user]How can i remove the xfce clearly?

2012-04-21 Thread Mick
On Saturday 21 Apr 2012 08:45:49 Florian Philipp wrote:
 Am 21.04.2012 05:27, schrieb 赵佳晖:
  I just install the xfce a few days ago, But i find i didn't like it . So
  i want to remove it and install the Gnome . How can i remove the xfce
  clearly ?
 
 Gnome and Xfce share many libraries. Therefore it is best to install
 Gnome first, before removing Xfce. Otherwise you will remove libraries
 which you will later re-emerge for Gnome.
 
 Then you need to configure your display manager (kdm, gdm, xdm) to use
 Gnome instead of Xfce. Kdm and Gdm should allow you to do that directly
 on the login screen.
 
 When you are satisfied with Gnome, edit /var/lib/portage/world and
 remove every line containing an Xfce package. Then run `emerge -av
 --depclean` and you are done.
 
 You could continue to remove config files but that is usually not worth
 the trouble.

Also, follow the advice on the screen when you run 'emerge --depclean -p' 
which is to run revdep-rebuild afterward to rebuild any dependencies.  Such 
dependencies may have been broken from uninstalling packages with depclean,  
(man revdep-rebuild gives you more information).

-- 
Regards,
Mick


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


Re: [gentoo-user] changed motherboard, no AHCI [SOLVED]

2012-04-21 Thread Philip Webb
120421 Graham Murray wrote:
 pk pete...@coolmail.se writes:
 On 2012-04-21 04:12, Philip Webb wrote:
 It's an Asus P5G41T-M LX  the manual says :
 the chipset on that mobo is G41 (released in 2008) and it combines
 with ICH7 which unfortunately doesn't seem to support AHCI.
 If it is an ICH which does not support AHCI, then try the option
 for Intel ESB, ICH, PIIX3, PIIX4 PATA/SATA Support
 which generates the PIIX driver.

Thanks enormously ! -- that's the solution (ATA_PIIX).

I'm surprised that the newer mobo (G41) dropped support for AHCI
which the older mobo (G33) had, but it shouldn't make much difference
 I'm planning to build an upto-date machine later in the year.

So I'm now able to operate normally in the 2007 machine,
but it still has a problem with Eth0, which hopefully wb easier to fix:
this is being sent from the 2003 machine, which chugs along adequately.

-- 
,,
SUPPORT ___//___,   Philip Webb
ELECTRIC   /] [] [] [] [] []|   Cities Centre, University of Toronto
TRANSIT`-O--O---'   purslowatchassdotutorontodotca




Re: [gentoo-user] changed motherboard, no AHCI [SOLVED]

2012-04-21 Thread Pandu Poluan
On Apr 21, 2012 5:26 PM, Philip Webb purs...@ca.inter.net wrote:

 120421 Graham Murray wrote:
  pk pete...@coolmail.se writes:
  On 2012-04-21 04:12, Philip Webb wrote:
  It's an Asus P5G41T-M LX  the manual says :
  the chipset on that mobo is G41 (released in 2008) and it combines
  with ICH7 which unfortunately doesn't seem to support AHCI.
  If it is an ICH which does not support AHCI, then try the option
  for Intel ESB, ICH, PIIX3, PIIX4 PATA/SATA Support
  which generates the PIIX driver.

 Thanks enormously ! -- that's the solution (ATA_PIIX).

 I'm surprised that the newer mobo (G41) dropped support for AHCI
 which the older mobo (G33) had, but it shouldn't make much difference
  I'm planning to build an upto-date machine later in the year.


That's Intel for you. Similar situation with their CPUs.

I always feel depressed if I have to purchase an Intel CPU. Feature support
(e.g. VT-x) are not guaranteed to exist, even when the CPU is a new one.

Rgds,


Re: [gentoo-user]How can i remove the xfce clearly?

2012-04-21 Thread 赵佳晖
OK,Thank you

在 2012年4月21日 下午5:20,Mick michaelkintz...@gmail.com写道:

 On Saturday 21 Apr 2012 08:45:49 Florian Philipp wrote:
  Am 21.04.2012 05:27, schrieb 赵佳晖:
   I just install the xfce a few days ago, But i find i didn't like it .
 So
   i want to remove it and install the Gnome . How can i remove the xfce
   clearly ?
 
  Gnome and Xfce share many libraries. Therefore it is best to install
  Gnome first, before removing Xfce. Otherwise you will remove libraries
  which you will later re-emerge for Gnome.
 
  Then you need to configure your display manager (kdm, gdm, xdm) to use
  Gnome instead of Xfce. Kdm and Gdm should allow you to do that directly
  on the login screen.
 
  When you are satisfied with Gnome, edit /var/lib/portage/world and
  remove every line containing an Xfce package. Then run `emerge -av
  --depclean` and you are done.
 
  You could continue to remove config files but that is usually not worth
  the trouble.

 Also, follow the advice on the screen when you run 'emerge --depclean -p'
 which is to run revdep-rebuild afterward to rebuild any dependencies.  Such
 dependencies may have been broken from uninstalling packages with depclean,
 (man revdep-rebuild gives you more information).

 --
 Regards,
 Mick




-- 
好好学习,天天向上!!!


[gentoo-user] new mobo : no Eth0

2012-04-21 Thread Philip Webb
Having solved the problem of booting -- thanks for all the advice -- ,
the next  hopefully remaining obstacle is that Dhcpcd can't find Eth0.

I've used 'lspci | grep Eth', which gives Realtek Semiconductor
RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 06),
so I enabled CONFIG_REALTEK_PHY in the kernel, but no improvement.
'syslog' lists Gigabit Ethernet Driver loading ...
eth0 : RTL8168e/8111e ... : do those e's make a difference ?

The mobo manual mentions LAN RJ45  PCIe Gigabit LAN;
a mobo review via Google mentions LAN: Qualcomm Atheros Gb LAN.

The mobo is P5G41T-M LX PLUS by Asus.

Does anyone have suggestions ?

-- 
,,
SUPPORT ___//___,   Philip Webb
ELECTRIC   /] [] [] [] [] []|   Cities Centre, University of Toronto
TRANSIT`-O--O---'   purslowatchassdotutorontodotca




Re: [gentoo-user] new mobo : no Eth0

2012-04-21 Thread Michael Mol
On Sat, Apr 21, 2012 at 7:53 AM, Philip Webb purs...@ca.inter.net wrote:
 Having solved the problem of booting -- thanks for all the advice -- ,
 the next  hopefully remaining obstacle is that Dhcpcd can't find Eth0.

 I've used 'lspci | grep Eth', which gives Realtek Semiconductor
 RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 06),
 so I enabled CONFIG_REALTEK_PHY in the kernel, but no improvement.
 'syslog' lists Gigabit Ethernet Driver loading ...
 eth0 : RTL8168e/8111e ... : do those e's make a difference ?

 The mobo manual mentions LAN RJ45  PCIe Gigabit LAN;
 a mobo review via Google mentions LAN: Qualcomm Atheros Gb LAN.

 The mobo is P5G41T-M LX PLUS by Asus.

 Does anyone have suggestions ?

/etc/udev/rules.d/70-persistent-net.rules

Find the line that includes ( NAME=eth0 ) ... then find the part of
that line that says ATTR{address}==whatever-your-MAC-address-is, and
change it to reflect the MAC address of your onboard NIC.
-- 
:wq



Re: [gentoo-user] new mobo : no Eth0

2012-04-21 Thread Andrea Conti

 Does anyone have suggestions ?

Your logs show that the interface is being detected and is named 'eth0'.
If you can't see eth0 at the end of the boot process, the device node
has probably been renamed by udev (you should see it as eth1, e.g. in
the output of ifconfig -a). So:

# rm /etc/udev/rules.d/70-persistent-net.rules

and reboot

andrea



Re: [gentoo-user] new mobo : no Eth0

2012-04-21 Thread Neil Bothwick
On Sat, 21 Apr 2012 08:07:49 -0400, Michael Mol wrote:

 /etc/udev/rules.d/70-persistent-net.rules
 
 Find the line that includes ( NAME=eth0 ) ... then find the part of
 that line that says ATTR{address}==whatever-your-MAC-address-is, and
 change it to reflect the MAC address of your onboard NIC.

Or, if you have only one NIC, delete the file and it will be recreated
with the correct settings on the next reboot.


-- 
Neil Bothwick

Hors d'oeuvres: 3 sandwiches cut into 40 pieces.


signature.asc
Description: PGP signature


Re: [gentoo-user] initramfs with lvm

2012-04-21 Thread 林守磊
yes,and I already boot up successfully

2012/4/21 Sebastian Pipping sp...@gentoo.org

 On 04/19/2012 03:56 AM, 林守磊 wrote:
  I get problom with my initramfs.:
 
  1. I used to boot my kernel with genkernel-initramfs, but I must
  genarate the initramfs again by genkernel. when I change the kernel
  vernsion.
  2. I have the '/' partition created with lvm, when I use genkernel to
  make the kernel and initramfs( with option --lvm ), the error block
  device /dev/mapper/vg-gentoo_root is not a valid root device show up.
  kernel version 3.2.2

 Do you have dolvm in the kernel boot options?  That's needed.

 Best,



 Sebastian




[gentoo-user] new mobo : Eth0 recovered

2012-04-21 Thread Philip Webb
Thanks again for the help : I'm now back in my 2007 machine
 able to send e-mails.  You actually have to remove the offensive file
from the dir, not simply rename it to 'xx70xx...' !
Between Intel  Udev, I'm feeling somewhat abused today,
but Gentoo User mailing-list came thro' yet again :
I hope I sometimes manage to help others with similar problems.

-- 
,,
SUPPORT ___//___,   Philip Webb
ELECTRIC   /] [] [] [] [] []|   Cities Centre, University of Toronto
TRANSIT`-O--O---'   purslowatchassdotutorontodotca




Re: [gentoo-user] new mobo : Eth0 recovered

2012-04-21 Thread Dale
Philip Webb wrote:
 Thanks again for the help : I'm now back in my 2007 machine
  able to send e-mails.  You actually have to remove the offensive file
 from the dir, not simply rename it to 'xx70xx...' !
 Between Intel  Udev, I'm feeling somewhat abused today,
 but Gentoo User mailing-list came thro' yet again :
 I hope I sometimes manage to help others with similar problems.
 


That's the same way files in /etc/portage/ works too.  I do wish we
could put a # on the front to make it ignore files.

We can dream I guess.

Dale

:-)  :-)

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

Miss the compile output?  Hint:
EMERGE_DEFAULT_OPTS=--quiet-build=n



Re: [gentoo-user] new mobo : Eth0 recovered

2012-04-21 Thread Philip Webb
120421 Dale wrote:
 Philip Webb wrote:
 You actually have to remove the offensive file
 from the dir, not simply rename it to 'xx70xx...' !
 That's the same way files in /etc/portage/ works too.
 I do wish we could put a # on the front to make it ignore files.
 We can dream I guess.

Yes  why did it start doing this only with the new mobo
-- was it provoked by seeing an unknown driver ?
And whyever did it want to rename the device to 'eth1' ??

-- 
,,
SUPPORT ___//___,   Philip Webb
ELECTRIC   /] [] [] [] [] []|   Cities Centre, University of Toronto
TRANSIT`-O--O---'   purslowatchassdotutorontodotca




[gentoo-user] I've met strange message when i execute vim

2012-04-21 Thread Seong-ho Cho


meow@darkcircle ~/xfce-ko $ vi xfdesktop.master.ko.po

** (process:15449): WARNING **: Trying to register gtype
'GMountMountFlags' as enum when in fact it is of type 'GFlags'

** (process:15449): WARNING **: Trying to register gtype
'GDriveStartFlags' as enum when in fact it is of type 'GFlags'

** (process:15449): WARNING **: Trying to register gtype
'GSocketMsgFlags' as enum when in fact it is of type 'GFlags'



when I execute vim as above, I've met some messages like that.

what does above mean? how can I solve that problem?

I did damn googling but I didn't find why that message shown.



Re: [gentoo-user] new mobo : Eth0 recovered

2012-04-21 Thread Dale
Philip Webb wrote:
 120421 Dale wrote:
 Philip Webb wrote:
 You actually have to remove the offensive file
 from the dir, not simply rename it to 'xx70xx...' !
 That's the same way files in /etc/portage/ works too.
 I do wish we could put a # on the front to make it ignore files.
 We can dream I guess.
 
 Yes  why did it start doing this only with the new mobo
 -- was it provoked by seeing an unknown driver ?
 And whyever did it want to rename the device to 'eth1' ??
 


I would imagine udev saw something different and renamed it.  It's not
the first time something like this has happened.  I doubt it will be the
last either.  Udev is hard to predict for sure.

Dale

:-)  :-)

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

Miss the compile output?  Hint:
EMERGE_DEFAULT_OPTS=--quiet-build=n



Re: [gentoo-user] MAC from IPv6 address. WAS: Re: How to find the MAC address

2012-04-21 Thread Stroller

On 20 April 2012, at 18:21, Michael Mol wrote:
 … 
 The inet6 address listed is
 
  fe80::be5f:f4ff:fe19:ad18
 
 and your MAC is
 
  bc:5f:f4:19:ad:18
 
 … 
 
  be:5f:f4:19:ad:18
 
 Which is your MAC.

And then we just convert all incidences of the letter e to c? Is there some 
rule for this part?

Perhaps I'm missing something here.

Stroller.




[gentoo-user] Re: new mobo : Eth0 recovered

2012-04-21 Thread Nikos Chantziaras

On 21/04/12 17:25, Philip Webb wrote:

120421 Dale wrote:

Philip Webb wrote:

You actually have to remove the offensive file
from the dir, not simply rename it to 'xx70xx...' !

That's the same way files in /etc/portage/ works too.
I do wish we could put a # on the front to make it ignore files.
We can dream I guess.


Yes  why did it start doing this only with the new mobo
-- was it provoked by seeing an unknown driver ?
And whyever did it want to rename the device to 'eth1' ??


So that eth0 still works.  It can't know that what you have is a new 
mobo rather than you having added an additional NIC.


Also, make sure to emerge sys-kernel/linux-firmware.  Without it, 
RTL8111/8168B NICs will produce random connectivity hang-ups after a few 
hours; they need firmware that was previously part of the kernel itself 
but has now been split to sys-kernel/linux-firmware.


Do a:

  dmesg | grep -i firmware

and check for firmware loading errors.




Re: [gentoo-user] I've met strange message when i execute vim

2012-04-21 Thread Stroller

On 21 April 2012, at 15:32, Seong-ho Cho wrote:

 
 
 meow@darkcircle ~/xfce-ko $ vi xfdesktop.master.ko.po
 
 ** (process:15449): WARNING **: Trying to register gtype
 'GMountMountFlags' as enum when in fact it is of type 'GFlags'
 
 ** (process:15449): WARNING **: Trying to register gtype
 'GDriveStartFlags' as enum when in fact it is of type 'GFlags'
 
 ** (process:15449): WARNING **: Trying to register gtype
 'GSocketMsgFlags' as enum when in fact it is of type 'GFlags'
 
 
 
 when I execute vim as above, I've met some messages like that.
 
 what does above mean? how can I solve that problem?
 
 I did damn googling but I didn't find why that message shown.

I find at least 3 bugs when I google that message.

They're Ubuntu bugs, they don't refer to vim, but they make some sense to me.

Am I right in thinking that vim does work and allow you to edit this file after 
showing these messages?

Stroller.




Re: [gentoo-user] Re: pambase/shadow warning

2012-04-21 Thread Allan Gottlieb
On Fri, Apr 20 2012, Neil Bothwick wrote:

 On Fri, 20 Apr 2012 13:22:20 +0100, Neil Bothwick wrote:

  I'll run the update again today, paying more attention, and see what
  happens.  
 
 What happened is it broke again, with no obvious signs of the cause.
 conf-update reported only trivial changes to three files.

 I've just tried it on my netbook and the same happened, but I think I'm
 closer to the cause. The three files in /etc/pam.d are login, passwd and
 su. After updating, there were ._cfg* versions of these files, but no
 originals, so conf-update just deleted them. It turns out these were
 owned by shadow but now belong to pambase. I suspect that pambase
 installed them as ._cfg versions, because the others already existed,
 then shadow removed the originals as they were no longer part of the
 package.

 Whether this is a bug in portage, the ebuilds or conf-update is open to
 debate, but conf-update ought to handle the situation better. I'll file a
 bug later if no one beats me to it.

First, thanks for the warning.

There is a bug filed https://bugs.gentoo.org/show_bug.cgi?id=412721

The comments there say that if you run etc-update right after the
emerge all is well (but this isn't sufficient for people who use
screen, detatch, and log out).  Someone also mentioned dispatch-conf
working.  No one mentioned cfg-update, which I use (and I believe
neil does as well).  Could the problem be dependent on which
configuration file updater one uses?

I have not updated my primary machine.  I did update another one (both
machines are ~amd64) including a cfg-update -q, but have not rebooted
it.  The secondary can su.  This seems to suggest that cfg-update is
sufficient in some cases.

Am I correct in believing the safe procedure is to add

=sys-auth/pambase-20101024-r2
=sys-apps/shadow-4.1.5.

to /etc/portage/package.mask (or a file in that directory)?

thanks,
allan



Re: [gentoo-user] new mobo : Eth0 recovered

2012-04-21 Thread Stroller

On 21 April 2012, at 15:25, Philip Webb wrote:

 120421 Dale wrote:
 Philip Webb wrote:
 You actually have to remove the offensive file
 from the dir, not simply rename it to 'xx70xx...' !
 That's the same way files in /etc/portage/ works too.
 I do wish we could put a # on the front to make it ignore files.
 We can dream I guess.
 
 Yes  why did it start doing this only with the new mobo
 -- was it provoked by seeing an unknown driver ?
 And whyever did it want to rename the device to 'eth1' ??

Because it knows the NIC with the MAC address of 11:22:33:aa:bb:cc always has 
to be eth0. 

It found a new NIC, and eth0 wasn't available for the new NIC.
So the new NIC was granted the first available etcX allocation.

This is a real pain if you insist on thinking about it in terms of I always 
expect there to be an eth0 or the first card should always be eth0. 

But if you were to slap a second NIC into the system and - hey! - suddenly the 
original network card didn't work any more because they've been allocated the 
wrong way around, then this would make perfect sense to you.

I mean, you could find yourself sorting that problem out, then the next time 
you reboot the two interfaces swap identities again (either randomly or for 
some obscure reasons that I can imagine) - that's really problematic if the two 
are now physically connected to different networks the wrong way around and 
you're firewalled out from them. This applies especially if you're hundreds of 
miles away from the machine which, from experience, happens far more often than 
one might wish or imagine (although I guess, to be fair, it only takes 1 or 2 
or 3 occasions per decade for this to be far too bleedin' often). 

It is really freakin' useful to know that an interface number is *always* going 
to match up with the server's physical socket marked net1.

Stroller.




Re: [gentoo-user] Re: new mobo : Eth0 recovered

2012-04-21 Thread Dale
Nikos Chantziaras wrote:
 On 21/04/12 17:25, Philip Webb wrote:
 120421 Dale wrote:
 Philip Webb wrote:
 You actually have to remove the offensive file
 from the dir, not simply rename it to 'xx70xx...' !
 That's the same way files in /etc/portage/ works too.
 I do wish we could put a # on the front to make it ignore files.
 We can dream I guess.

 Yes  why did it start doing this only with the new mobo
 -- was it provoked by seeing an unknown driver ?
 And whyever did it want to rename the device to 'eth1' ??
 
 So that eth0 still works.  It can't know that what you have is a new
 mobo rather than you having added an additional NIC.
 
 Also, make sure to emerge sys-kernel/linux-firmware.  Without it,
 RTL8111/8168B NICs will produce random connectivity hang-ups after a few
 hours; they need firmware that was previously part of the kernel itself
 but has now been split to sys-kernel/linux-firmware.
 
 Do a:
 
   dmesg | grep -i firmware
 
 and check for firmware loading errors.
 
 
 


So that is what is wrong with my connection.  I been having this issue
for a while and it is getting on my nerves.  Is this fix OK even if you
don't build your drivers as modules?  I build everything into the
kernel.  I never did like modules much.

This goes to show, it doesn't hurt to read a thread even if you can't
help.

Thanks Nikos.  You helped two people.

Dale

:-)  :-)

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

Miss the compile output?  Hint:
EMERGE_DEFAULT_OPTS=--quiet-build=n



Re: [gentoo-user] MAC from IPv6 address. WAS: Re: How to find the MAC address

2012-04-21 Thread Michael Mol
On Sat, Apr 21, 2012 at 11:16 AM, Stroller
strol...@stellar.eclipse.co.uk wrote:

 On 20 April 2012, at 18:21, Michael Mol wrote:
 …
 The inet6 address listed is

  fe80::be5f:f4ff:fe19:ad18

 and your MAC is

  bc:5f:f4:19:ad:18

 …

  be:5f:f4:19:ad:18

 Which is your MAC.

 And then we just convert all incidences of the letter e to c? Is there 
 some rule for this part?

 Perhaps I'm missing something here.

Whups. Missed a spot. Thank you for so graciously pointing it out.

So, on this laptop, here's the output of

  ip -6 addr show wlan0

6: wlan0: BROADCAST,MULTICAST,UP,LOWER_UP mtu 1500 qdisc mq state UP qlen 1000
link/ether 4c:ed:de:93:63:a0 brd ff:ff:ff:ff:ff:ff
inet 192.168.83.146/27 brd 192.168.83.159 scope global wlan0
inet6 2001:470:c5b9:beef:4eed:deff:fe93:63a0/64 scope global dynamic
   valid_lft 86100sec preferred_lft 14100sec
inet6 fe80::4eed:deff:fe93:63a0/64 scope link
   valid_lft forever preferred_lft forever

So you can see my MAC is

  4c:ed:de:93:63:a0

and that I have a couple IPv6 addresses:

  fe80::4eed:deff:fe93:63a0
  2001:470:c5b9:beef:4eed:deff:fe93:63a0

(They look like they have different lengths, but that's because the
bits between fe80 and 4eed in the first one are all 0s, and so are
collapsed by using ::)

Take only the host portion of those addresses, and you get:

4eed:deff:fe93:63a0

Remove the ff:fe from the middle, and redistribute the : delimiters to
be every byte.

  43:ed:de::93:63:a0

Compare with my MAC:
  4c:ed:de:93:63:a0

And, yeah, that second digit is different again. That's because bit 7
is inverted. From RFC4291:

   Modified EUI-64 format interface identifiers are formed by inverting
   the u bit (universal/local bit in IEEE EUI-64 terminology) when
   forming the interface identifier from IEEE EUI-64 identifiers.  In
   the resulting Modified EUI-64 format, the u bit is set to one (1)
   to indicate universal scope, and it is set to zero (0) to indicate
   local scope.  The first three octets in binary of an IEEE EUI-64
   identifier are as follows:

  0   0 0   1 1   2
 |0   7 8   5 6   3|
 +++++++
 ||ccug|||||
 +++++++

   written in Internet standard bit-order, where u is the
   universal/local bit, g is the individual/group bit, and c is the
   bits of the company_id.  Appendix A, Creating Modified EUI-64 Format
   Interface Identifiers, provides examples on the creation of Modified
   EUI-64 format-based interface identifiers.

-- 
:wq



[gentoo-user] Re: new mobo : Eth0 recovered

2012-04-21 Thread Nikos Chantziaras

On 21/04/12 18:55, Dale wrote:

Nikos Chantziaras wrote:

 [...]
Also, make sure to emerge sys-kernel/linux-firmware.  Without it,
RTL8111/8168B NICs will produce random connectivity hang-ups after a few
hours; they need firmware that was previously part of the kernel itself
but has now been split to sys-kernel/linux-firmware.

Do a:

   dmesg | grep -i firmware

and check for firmware loading errors.


So that is what is wrong with my connection.  I been having this issue
for a while and it is getting on my nerves.  Is this fix OK even if you
don't build your drivers as modules?  I build everything into the
kernel.  I never did like modules much.


The kernel source doesn't have any firmware files in it, so it doesn't 
matter whether you build the drivers into the kernel or as modules; the 
firmware isn't there in either case.


However, this particular driver (r8169), says in its description that 
building as a module is recommended.  However, it doesn't give you any 
explanation as to why this recommendation is made.  I suppose the driver 
developer was working for Apple previously :-P


Anyway, dmesg | grep -i firmware should tell you whether you actually 
even need the firmware.  If you don't get a firmware loading error in 
dmesg, then you don't need it and your problem is not related.  In that 
case, you belong to the (quite large) group of people for which only the 
net-misc/r8168 driver works reliably (which unfortunately doesn't always 
support the latest linux kernel.)





Re: [gentoo-user] Re: new mobo : Eth0 recovered

2012-04-21 Thread Dale
Nikos Chantziaras wrote:
 On 21/04/12 18:55, Dale wrote:
 Nikos Chantziaras wrote:
  [...]
 Also, make sure to emerge sys-kernel/linux-firmware.  Without it,
 RTL8111/8168B NICs will produce random connectivity hang-ups after a few
 hours; they need firmware that was previously part of the kernel itself
 but has now been split to sys-kernel/linux-firmware.

 Do a:

dmesg | grep -i firmware

 and check for firmware loading errors.

 So that is what is wrong with my connection.  I been having this issue
 for a while and it is getting on my nerves.  Is this fix OK even if you
 don't build your drivers as modules?  I build everything into the
 kernel.  I never did like modules much.
 
 The kernel source doesn't have any firmware files in it, so it doesn't
 matter whether you build the drivers into the kernel or as modules; the
 firmware isn't there in either case.
 
 However, this particular driver (r8169), says in its description that
 building as a module is recommended.  However, it doesn't give you any
 explanation as to why this recommendation is made.  I suppose the driver
 developer was working for Apple previously :-P
 
 Anyway, dmesg | grep -i firmware should tell you whether you actually
 even need the firmware.  If you don't get a firmware loading error in
 dmesg, then you don't need it and your problem is not related.  In that
 case, you belong to the (quite large) group of people for which only the
 net-misc/r8168 driver works reliably (which unfortunately doesn't always
 support the latest linux kernel.)
 
 
 


Something like this:

root@fireball / # dmesg | grep -i firmware
[   10.138253] r8169 :03:00.0: eth0: unable to load firmware patch
rtl_nic/rtl8168d-2.fw (-2)
root@fireball / #

Looks like I found the fix for this problem.  Yeppie !!

I don't use modules because a long time ago is was recommended not to.
So far, I have seen no reason to change that.  Sort of like using the
init thingy.  I may start using modules, when there is good reason to do
so.  I'm just a old fart that likes the old ways of doing some things.
LOL  I still don't like the init thingy although I am using one.  :/

Thanks much.  I can leave google alone now.

Dale

:-)  :-)

P. S.   dale makes note of that command.  May come in handy one day. 

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

Miss the compile output?  Hint:
EMERGE_DEFAULT_OPTS=--quiet-build=n



[gentoo-user] Re: MAC from IPv6 address. WAS: Re: How to find the MAC address

2012-04-21 Thread Grant Edwards
On 2012-04-21, Stroller strol...@stellar.eclipse.co.uk wrote:

 On 20 April 2012, at 18:21, Michael Mol wrote:
 ? 
 The inet6 address listed is
 
  fe80::be5f:f4ff:fe19:ad18
 
 and your MAC is
 
  bc:5f:f4:19:ad:18
 
 ? 
 
  be:5f:f4:19:ad:18
 
 Which is your MAC.

 And then we just convert all incidences of the letter e to c? Is
 there some rule for this part?

Yes.  I answered that question in the original thread.  You toggle bit
1 of the first byte of the MAC address when converting to/from an IPv6
LL address.

 Perhaps I'm missing something here.

RFC2464 sections 4 and 5.

-- 
Grant Edwards   grant.b.edwardsYow! I just had my entire
  at   INTESTINAL TRACT coated
  gmail.comwith TEFLON!




Re: [gentoo-user] I've met strange message when i execute vim

2012-04-21 Thread Seong-ho Cho
Yes. I can edit text file after these messages.
Your thinking is so exact !! :D

2012/4/22 Stroller strol...@stellar.eclipse.co.uk:

 On 21 April 2012, at 15:32, Seong-ho Cho wrote:



 meow@darkcircle ~/xfce-ko $ vi xfdesktop.master.ko.po

 ** (process:15449): WARNING **: Trying to register gtype
 'GMountMountFlags' as enum when in fact it is of type 'GFlags'

 ** (process:15449): WARNING **: Trying to register gtype
 'GDriveStartFlags' as enum when in fact it is of type 'GFlags'

 ** (process:15449): WARNING **: Trying to register gtype
 'GSocketMsgFlags' as enum when in fact it is of type 'GFlags'



 when I execute vim as above, I've met some messages like that.

 what does above mean? how can I solve that problem?

 I did damn googling but I didn't find why that message shown.

 I find at least 3 bugs when I google that message.

 They're Ubuntu bugs, they don't refer to vim, but they make some sense to me.

 Am I right in thinking that vim does work and allow you to edit this file 
 after showing these messages?

 Stroller.





[gentoo-user] Mic works, but doesn't work...

2012-04-21 Thread Mark Knecht
Hi,
   Ah, for a peaceful Saturday, but I guess not this one...  I'm just
starting to investigate this but maybe someone's worked on this sort
of thing recently?

   The bottom line is that my mic for conferencing is working, in the
sense that with headphones on I can raise the either the 'Front Mic'
or 'Front Mic Boost' sliders in the KDE mixer and I hear myself
speaking. However none of the applications I use the mic with - either
Skype or VirtualBox VMs - are receiving any audio. My main method of
testing the mic is the little app in Skype where you make a test call
and then it plays it back for you. I do love that sweet sounding
English girl who talks to me but I don't hear what I recorded.

   I haven't used the mic in 2 weeks so I only know it was working 2
Saturday's ago. (We didn't have a conference call last Saturday
morning.) The kernel was updated from 3.2.1 to 3.2.12 on April 15th,
so that's changed since the mix worked. It seems that
/var/lib/alsa/asound.state changed as recently as yesterday. (April
20th)

   The machine is Gentoo (mostly) stable, and has been since it was
built 2 years ago, and is updated nearly every day so anything that
changed in the last 2 weeks is a possible candidate for root cause.

   All other aspect of Alsa are basically working. Everything can play
audio. KDE system sounds work. VMs can stream NetFlix, etc. The only
thing not working at the app level is the mic.

   Any ideas where to look?

   I've not rebooted yet on the off chance this is a one-off hardware
problem. I have restarted Alsa but it didn't fix anything. If the
reboot doesn't work I'll try dropping back to the previous kernel.

   In the old days you would sometimes delete asound.state and let
Alsa recreate it when you had problems with a new version of Alsa.
Anyone know if that's still recommended?

Thanks in advance,
Mark



[gentoo-user] Re: Mic works, but doesn't work...

2012-04-21 Thread Nikos Chantziaras

On 21/04/12 21:13, Mark Knecht wrote:

Hi,
Ah, for a peaceful Saturday, but I guess not this one...  I'm just
starting to investigate this but maybe someone's worked on this sort
of thing recently?


Make sure the mic is selected as the capture source:

* Run alsamixer in a terminal.
* Press F6 and select your sound card.
* Press F4 to get to the capture settings.
* From the available inputs, select Mic (left/right arrow keys) and 
press space to select it as the capture source. Raise the capture volume 
to maximum (up arrow key.)

* Esc.

All of this can also be done in KMix if you're on KDE.




[gentoo-user] [OT] Length of a video...

2012-04-21 Thread meino . cramer
Hi,

is there a way to determine the playing length of a video file in
minutes without playing the while file?

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





Re: [gentoo-user] [OT] Length of a video...

2012-04-21 Thread Michael Mol
On Sat, Apr 21, 2012 at 2:27 PM,  meino.cra...@gmx.de wrote:
 Hi,

 is there a way to determine the playing length of a video file in
 minutes without playing the while file?

Depends on the file. If the file has an index and/or sufficient
metadata, yes. If not, you'll have to decode the sequence of frames
and sum each frame's display time. (Videos whose framerate changes
halfway through suck...)

Either way, I'd suggest looking at 'ffmpeg' manpage.

There may be a better tool for your purposes...what's the context?


-- 
:wq



Re: [gentoo-user]How can i remove the xfce clearly?

2012-04-21 Thread ny6p01
On Sat, Apr 21, 2012 at 09:45:49AM +0200, Florian Philipp wrote:
 Am 21.04.2012 05:27, schrieb ??:
  I just install the xfce a few days ago, But i find i didn't like it . So
  i want to remove it and install the Gnome . How can i remove the xfce
  clearly ? 
  
  -- 
  
 
 Gnome and Xfce share many libraries. Therefore it is best to install
 Gnome first, before removing Xfce. Otherwise you will remove libraries
 which you will later re-emerge for Gnome.
 
 Then you need to configure your display manager (kdm, gdm, xdm) to use
 Gnome instead of Xfce. Kdm and Gdm should allow you to do that directly
 on the login screen.
 
 When you are satisfied with Gnome, edit /var/lib/portage/world and
 remove every line containing an Xfce package. Then run `emerge -av
 --depclean` and you are done.
 
 You could continue to remove config files but that is usually not worth
 the trouble.
 
 Hope this helps,
 Florian Philipp
 


Do I understand you correctly that it is not necessary to run emerge
-unmerge first before removing the atoms from @world and running emerge
--depclean?

Terry



[gentoo-user] Correct syntax for /etc/conf.d/modules

2012-04-21 Thread Mick
I am getting confused about the syntax that openrc is meant to follow ...

One box of mine that uses modules ran some script at the time that I upgraded 
to openrc and it added my currently running modules into /etc/conf.d/modules.

The syntax was like so:

modules_2_6=${modules_2_6} cls_tcindex
module_cls_tcindex_args_2_6=

Things moved on and with newer kernel versions I went to update the file after 
I had a look at the documentation:

  http://www.gentoo.org/doc/en/openrc-migration.xml

Well there is no ${modules_2_6} shown in the examples so I removed it from my 
/etc/conf.d/modules.  The new syntax was now:

modules_3_2=cls_tcindex

and guess what?  No modules loaded at all when I reboot.  :-/


I had to add ${modules_3_2} in there to get things going again.

However 'echo ${modules_3_2}' on the CLI does not show anything.  Can you 
please explain why this variable is needed for modules to load up again and 
why it is not shown in the documentation?
-- 
Regards,
Mick


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


Re: [gentoo-user] Re: Mic works, but doesn't work...

2012-04-21 Thread Mark Knecht
On Sat, Apr 21, 2012 at 11:24 AM, Nikos Chantziaras rea...@gmail.com wrote:
 On 21/04/12 21:13, Mark Knecht wrote:

 Hi,
    Ah, for a peaceful Saturday, but I guess not this one...  I'm just
 starting to investigate this but maybe someone's worked on this sort
 of thing recently?


 Make sure the mic is selected as the capture source:

 * Run alsamixer in a terminal.
 * Press F6 and select your sound card.
 * Press F4 to get to the capture settings.
 * From the available inputs, select Mic (left/right arrow keys) and press
 space to select it as the capture source. Raise the capture volume to
 maximum (up arrow key.)
 * Esc.

 All of this can also be done in KMix if you're on KDE.



Hi Nikos,
   Right, all done both in KMix as well as alsamixer. No change yet.
Capture was already selected and volume up. I tried with Capture1 and
Capture2. No change.

   I tried dropping back to my earlier 3.2.1-gentoo-r2 kernel but that
also didn't work. However for some reason it also had a problem with
the nvidia driver and to get X I had to do a modules-rebuild -X
rebuild so I'm no longer sure what state that's in WRT also. Anyway,
3.2.1 boots, KDE logs in but no microphone audio. That kernel was
built on 3/17 so I'm 200% certain the mix worked on that kernel 2
weeks ago.

   What's strange about this (to me) is that when I'm in the Skype
Test Call app (darn I like that English girl in that. Where is she
from?) :-) I can tap on the mic and hear the thumps in my headphones
so I know the mix works. However I'm not sure if possibly the sound
card isn't mixing that directly into the audio output and maybe Alsa
is never hearing the mic.

   Stumped. Going to try the old delete asound.state thing next...

Cheers,
Mark



Re: [gentoo-user]How can i remove the xfce clearly?

2012-04-21 Thread Mick
On Saturday 21 Apr 2012 19:39:56 ny6...@gmail.com wrote:
 On Sat, Apr 21, 2012 at 09:45:49AM +0200, Florian Philipp wrote:
  Am 21.04.2012 05:27, schrieb ??:
   I just install the xfce a few days ago, But i find i didn't like it .
   So i want to remove it and install the Gnome . How can i remove the
   xfce clearly ?
  
  Gnome and Xfce share many libraries. Therefore it is best to install
  Gnome first, before removing Xfce. Otherwise you will remove libraries
  which you will later re-emerge for Gnome.
  
  Then you need to configure your display manager (kdm, gdm, xdm) to use
  Gnome instead of Xfce. Kdm and Gdm should allow you to do that directly
  on the login screen.
  
  When you are satisfied with Gnome, edit /var/lib/portage/world and
  remove every line containing an Xfce package. Then run `emerge -av
  --depclean` and you are done.
  
  You could continue to remove config files but that is usually not worth
  the trouble.
  
  Hope this helps,
  Florian Philipp
 
 Do I understand you correctly that it is not necessary to run emerge
 -unmerge first before removing the atoms from @world and running emerge
 --depclean?
 
 Terry

Yes.

The --depclean option will remove any packages that are not in 
/var/lib/portage/world and are not dependencies of other installed packages 
already in /var/lib/portage/world.
-- 
Regards,
Mick


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


Re: [gentoo-user] Re: pambase/shadow warning

2012-04-21 Thread Hinnerk van Bruinehsen
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 21.04.2012 17:30, Allan Gottlieb wrote:
 On Fri, Apr 20 2012, Neil Bothwick wrote:
 
 On Fri, 20 Apr 2012 13:22:20 +0100, Neil Bothwick wrote:
 
 I'll run the update again today, paying more attention, and
 see what happens.
 
 What happened is it broke again, with no obvious signs of the
 cause. conf-update reported only trivial changes to three
 files.
 
 I've just tried it on my netbook and the same happened, but I
 think I'm closer to the cause. The three files in /etc/pam.d are
 login, passwd and su. After updating, there were ._cfg* versions
 of these files, but no originals, so conf-update just deleted
 them. It turns out these were owned by shadow but now belong to
 pambase. I suspect that pambase installed them as ._cfg versions,
 because the others already existed, then shadow removed the
 originals as they were no longer part of the package.
 
 Whether this is a bug in portage, the ebuilds or conf-update is
 open to debate, but conf-update ought to handle the situation
 better. I'll file a bug later if no one beats me to it.
 
 First, thanks for the warning.
 
 There is a bug filed
 https://bugs.gentoo.org/show_bug.cgi?id=412721
 
 The comments there say that if you run etc-update right after the 
 emerge all is well (but this isn't sufficient for people who use 
 screen, detatch, and log out).  Someone also mentioned
 dispatch-conf working.  No one mentioned cfg-update, which I use
 (and I believe neil does as well).  Could the problem be dependent
 on which configuration file updater one uses?
 
 I have not updated my primary machine.  I did update another one
 (both machines are ~amd64) including a cfg-update -q, but have not
 rebooted it.  The secondary can su.  This seems to suggest that
 cfg-update is sufficient in some cases.
 
 Am I correct in believing the safe procedure is to add
 
 =sys-auth/pambase-20101024-r2 =sys-apps/shadow-4.1.5.
 
 to /etc/portage/package.mask (or a file in that directory)?
 
 thanks, allan
 

Hi,

I actually used cfg-update -u on 3 different machines up to now.
So cfg-update can't be at the core of that problem.
Maybe it's some kind of race-condition or the bug depends on other
things too (e.g.: I'm using gnome and gdm also puts some files to
/etc/pam.d which maybe mitigate the issue somehow) - pure speculation,
though.

The syntax for the masking seems to be correct (since shadow-4.1.5-r2
already has hit the tree maybe the problem is solved. Otherwise you
would most likely like to mask -r1 and -r2 also).

WKR
Hinnerk
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.19 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJPkwltAAoJEJwwOFaNFkYcuRwH/2FoHs4JwplMRZlSS4dtg388
y82/o4Cu60kgbdC1kHS7d/OXhu5ZHgTH1KhxW3zZZYxSBc6yGlTV4XBnBveEPBQG
R7VkBwLMK7kgQewQGBO2GVIVzDlKa2QtZAHTySgqFritZXZeYrpC5FXC+yj3/k3S
tpwZ2RcTFjdaCK8fbELRLtFK4DO00+j7Zs+3NvUz33tTSg8RBKh908DX6IRGW557
Ypd1o1X+Ea8RJcPN71Z8k4EGfwOI3nJW/kpttar3NdRfio6Kc7Gb8MYFeMFIGnX2
AVRTu7pfhdlkjR7+BCXm5kpMtcMZmhN1jelOj8lKtrZsC2VRuYbyjsT+1rssO8Q=
=CPBN
-END PGP SIGNATURE-



Re: [gentoo-user] Re: Mic works, but doesn't work...

2012-04-21 Thread Mark Knecht
On Sat, Apr 21, 2012 at 12:00 PM, Mark Knecht markkne...@gmail.com wrote:
 On Sat, Apr 21, 2012 at 11:24 AM, Nikos Chantziaras rea...@gmail.com wrote:
 On 21/04/12 21:13, Mark Knecht wrote:

 Hi,
    Ah, for a peaceful Saturday, but I guess not this one...  I'm just
 starting to investigate this but maybe someone's worked on this sort
 of thing recently?


 Make sure the mic is selected as the capture source:

 * Run alsamixer in a terminal.
 * Press F6 and select your sound card.
 * Press F4 to get to the capture settings.
 * From the available inputs, select Mic (left/right arrow keys) and press
 space to select it as the capture source. Raise the capture volume to
 maximum (up arrow key.)
 * Esc.

 All of this can also be done in KMix if you're on KDE.



 Hi Nikos,
   Right, all done both in KMix as well as alsamixer. No change yet.
 Capture was already selected and volume up. I tried with Capture1 and
 Capture2. No change.

   I tried dropping back to my earlier 3.2.1-gentoo-r2 kernel but that
 also didn't work. However for some reason it also had a problem with
 the nvidia driver and to get X I had to do a modules-rebuild -X
 rebuild so I'm no longer sure what state that's in WRT also. Anyway,
 3.2.1 boots, KDE logs in but no microphone audio. That kernel was
 built on 3/17 so I'm 200% certain the mix worked on that kernel 2
 weeks ago.

   What's strange about this (to me) is that when I'm in the Skype
 Test Call app (darn I like that English girl in that. Where is she
 from?) :-) I can tap on the mic and hear the thumps in my headphones
 so I know the mix works. However I'm not sure if possibly the sound
 card isn't mixing that directly into the audio output and maybe Alsa
 is never hearing the mic.

   Stumped. Going to try the old delete asound.state thing next...

 Cheers,
 Mark

A little more info:

1) If I run a YouTube video while I'm doing this then:
a) PCM controls YouTube volume
b) Master does nothing

2) While YouTube is running, if I turn off PCM so I have no volume,
then I can tap on the mic and hear it. To me this means the mic audio
I'm hearing isn't in Alsa at all but rather it's some sort of hardware
mixer in the sound chip.

3) Muting the Front mic input in Alsa stops the mic audio I am hearing.

4) Modifying Front Mic Boost works as expected: 4 steps of major mic
gain. 0 is totally off. (Like mute on Front mic)

5) In my Capture settings I have front  back mic volume and boost as
well as a 'Digital' input and places to set the Input sources which
are set to Front Mic, Rear Mic  Mix. Changes here haven't effected
anything so far. All 4 sliders are full up. (Capture, Capture1,
Capture2  Digital)



Re: [gentoo-user] new mobo : Eth0 recovered

2012-04-21 Thread Neil Bothwick
On Sat, 21 Apr 2012 09:06:08 -0500, Dale wrote:

  Thanks again for the help : I'm now back in my 2007 machine
   able to send e-mails.  You actually have to remove the offensive
  file from the dir, not simply rename it to 'xx70xx...' !

The problem here is that the file is created automatically, so renaming
the old one to not end in .rules new cause it to be ignored, but a 
one will be created.

 That's the same way files in /etc/portage/ works too.  I do wish we
 could put a # on the front to make it ignore files.

The correct way to disable it is to set

persistent_net_disable=no

in /etc/conf.d/udev


-- 
Neil Bothwick

I have seen the truth, and it makes no sense.


signature.asc
Description: PGP signature


Re: [gentoo-user] [OT] Length of a video...

2012-04-21 Thread Neil Bothwick
On Sat, 21 Apr 2012 20:27:37 +0200, meino.cra...@gmx.de wrote:

 is there a way to determine the playing length of a video file in
 minutes without playing the while file?

Use midentify, part of mplayer.

midentify filename | grep LENGTH


-- 
Neil Bothwick

You do not need a parachute to skydive. You only need a parachute to
skydive twice.


signature.asc
Description: PGP signature


Re: [gentoo-user] Re: Mic works, but doesn't work...

2012-04-21 Thread Mick
On Saturday 21 Apr 2012 20:00:00 Mark Knecht wrote:
 On Sat, Apr 21, 2012 at 11:24 AM, Nikos Chantziaras rea...@gmail.com 
wrote:
  On 21/04/12 21:13, Mark Knecht wrote:
  Hi,
 Ah, for a peaceful Saturday, but I guess not this one...  I'm just
  starting to investigate this but maybe someone's worked on this sort
  of thing recently?
  
  Make sure the mic is selected as the capture source:
  
  * Run alsamixer in a terminal.
  * Press F6 and select your sound card.
  * Press F4 to get to the capture settings.
  * From the available inputs, select Mic (left/right arrow keys) and
  press space to select it as the capture source. Raise the capture volume
  to maximum (up arrow key.)
  * Esc.
  
  All of this can also be done in KMix if you're on KDE.
 
 Hi Nikos,
Right, all done both in KMix as well as alsamixer. No change yet.
 Capture was already selected and volume up. I tried with Capture1 and
 Capture2. No change.
 
I tried dropping back to my earlier 3.2.1-gentoo-r2 kernel but that
 also didn't work. However for some reason it also had a problem with
 the nvidia driver and to get X I had to do a modules-rebuild -X
 rebuild so I'm no longer sure what state that's in WRT also. Anyway,
 3.2.1 boots, KDE logs in but no microphone audio. That kernel was
 built on 3/17 so I'm 200% certain the mix worked on that kernel 2
 weeks ago.
 
What's strange about this (to me) is that when I'm in the Skype
 Test Call app (darn I like that English girl in that. Where is she
 from?) :-) I can tap on the mic and hear the thumps in my headphones
 so I know the mix works. However I'm not sure if possibly the sound
 card isn't mixing that directly into the audio output and maybe Alsa
 is never hearing the mic.
 
Stumped. Going to try the old delete asound.state thing next...
 
 Cheers,
 Mark

I seem to recall activating/unmuting 'digital' capture in alsamix for my plug 
in mic to work.
-- 
Regards,
Mick


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


Re: [gentoo-user] new mobo : Eth0 recovered

2012-04-21 Thread Dale
Neil Bothwick wrote:
 On Sat, 21 Apr 2012 09:06:08 -0500, Dale wrote:
 
 Thanks again for the help : I'm now back in my 2007 machine
  able to send e-mails.  You actually have to remove the offensive
 file from the dir, not simply rename it to 'xx70xx...' !
 
 The problem here is that the file is created automatically, so renaming
 the old one to not end in .rules new cause it to be ignored, but a 
 one will be created.
 
 That's the same way files in /etc/portage/ works too.  I do wish we
 could put a # on the front to make it ignore files.
 
 The correct way to disable it is to set
 
 persistent_net_disable=no
 
 in /etc/conf.d/udev
 
 


I was referring to the files in /etc/portage with that.  Although, I
didn't know you could get it to ignore the ones for udev either, other
than deleting/removing them of course.

Dale

:-)  :-)

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

Miss the compile output?  Hint:
EMERGE_DEFAULT_OPTS=--quiet-build=n



Re: [gentoo-user] Re: Mic works, but doesn't work...

2012-04-21 Thread Mark Knecht
On Sat, Apr 21, 2012 at 12:56 PM, Mick michaelkintz...@gmail.com wrote:
 On Saturday 21 Apr 2012 20:00:00 Mark Knecht wrote:
 On Sat, Apr 21, 2012 at 11:24 AM, Nikos Chantziaras rea...@gmail.com
 wrote:
  On 21/04/12 21:13, Mark Knecht wrote:
  Hi,
     Ah, for a peaceful Saturday, but I guess not this one...  I'm just
  starting to investigate this but maybe someone's worked on this sort
  of thing recently?
 
  Make sure the mic is selected as the capture source:
 
  * Run alsamixer in a terminal.
  * Press F6 and select your sound card.
  * Press F4 to get to the capture settings.
  * From the available inputs, select Mic (left/right arrow keys) and
  press space to select it as the capture source. Raise the capture volume
  to maximum (up arrow key.)
  * Esc.
 
  All of this can also be done in KMix if you're on KDE.
SNIP

 I seem to recall activating/unmuting 'digital' capture in alsamix for my plug
 in mic to work.
 --
 Regards,
 Mick

OK, don't ask me why but it's working fine now. The 'Capture' control
is to full, PCM set to about 80, headphone control to set volume ot my
headphones.

No idea why it started working but it is so at least it's behind me/ (I hope...)

Thanks,
Mark



Re: [gentoo-user] kwin opengl compositing w/ nouveau?

2012-04-21 Thread Doug Hunley
On Tue, Apr 17, 2012 at 22:50, Joshua Murphy poiso...@gmail.com wrote:
 Two things come to mind, given some recent trouble I've had on the
 radeon side of the coin here, and with an intel system or two in the
 past. The DRM related drivers seem to be prone to misbehaving when
 they're not configured as modules. I haven't managed to sort out why,
 so you may see if a change there helps, though it'll likely cause mode
 changes throughout the booting process. The second thing that comes to
 mind is that you don't include any relevant entries from glxinfo
 (glxinfo | grep ender) or Xorg.?.log (notably anything flagged as an
 error, 'grep EE /var/log/Xorg.0.log' grabs that, plus a bit of cruft),
 notably from a session where things aren't working properly, as the
 majority of issues trace back to direct rendering being disabled due
 to some incompatibility that gets noted in the log (often in
 delightfully cryptic prose).

I converted nouveau to a kernel module:
$ lsmod
Module  Size  Used by
nouveau   579746  -2
cfbfillrect12485  -2
cfbimgblt  12313  -2
cfbcopyarea12313  -2
drm_kms_helper 27209  -2
ttm57762  -2

switched the kwinrc to OpenGL, ran startx. KDE loaded (I saw the
splash screen and heard the startup noise) but then nothing was shown
on the desktop (so I couldnt run glxinfo as I couldnt see anything)

Ive attached Xorg.0.log and xsession-errors herein. Bad.tgz has
versions of these files from OpenGL whereas good.tgz has versions from
XRender.

FWIW, the only 'EE' in the Xorg log is missing 'fb' and 'vesa' modules

Also  I do not have an xorg.conf if that makes a difference

-- 
Douglas J Hunley (doug.hun...@gmail.com)
Twitter: @hunleyd                                               Web:
douglasjhunley.com
G+: http://goo.gl/sajR3


bad.tgz
Description: GNU Zip compressed data


good.tgz
Description: GNU Zip compressed data


Re: [gentoo-user] Re: pambase/shadow warning

2012-04-21 Thread Allan Gottlieb
On Sat, Apr 21 2012, Hinnerk van Bruinehsen wrote:

 On 21.04.2012 17:30, Allan Gottlieb wrote:
 
 There is a bug filed
 https://bugs.gentoo.org/show_bug.cgi?id=412721
 
 Am I correct in believing the safe procedure is to add
 
 =sys-auth/pambase-20101024-r2 =sys-apps/shadow-4.1.5.
 
 to /etc/portage/package.mask (or a file in that directory)?
 
 I actually used cfg-update -u on 3 different machines up to now.
 So cfg-update can't be at the core of that problem.
 Maybe it's some kind of race-condition or the bug depends on other
 things too (e.g.: I'm using gnome and gdm also puts some files to
 /etc/pam.d which maybe mitigate the issue somehow) - pure speculation,
 though.

Thanks.  I also use gnome (-3) and gdm on all machines and this might
explain why my secondary machine survived the update.  However, there
are doubtless many users and developers running KDE and the bug has no
mention of them being unable to run after etc-update and friends (unless
the damage is so great they can't add to the bug :-( ).

My secondary laptop has the dangerous versions installed and has been
successfully rebooted and logged in to.

I am taking a more cautious approach on  my primary laptop and masking
   =sys-auth/pambase-20120417
   =sys-apps/shadow-4.1.5-r1
until the smoke clears.

allan



Re: [gentoo-user]How can i remove the xfce clearly?

2012-04-21 Thread Florian Philipp
Am 21.04.2012 20:39, schrieb ny6...@gmail.com:
 On Sat, Apr 21, 2012 at 09:45:49AM +0200, Florian Philipp wrote:
 Am 21.04.2012 05:27, schrieb ??:
 I just install the xfce a few days ago, But i find i didn't like it . So
 i want to remove it and install the Gnome . How can i remove the xfce
 clearly ? 

 -- 
 

 Gnome and Xfce share many libraries. Therefore it is best to install
 Gnome first, before removing Xfce. Otherwise you will remove libraries
 which you will later re-emerge for Gnome.

 Then you need to configure your display manager (kdm, gdm, xdm) to use
 Gnome instead of Xfce. Kdm and Gdm should allow you to do that directly
 on the login screen.

 When you are satisfied with Gnome, edit /var/lib/portage/world and
 remove every line containing an Xfce package. Then run `emerge -av
 --depclean` and you are done.

 You could continue to remove config files but that is usually not worth
 the trouble.

 Hope this helps,
 Florian Philipp

 
 
 Do I understand you correctly that it is not necessary to run emerge
 -unmerge first before removing the atoms from @world and running emerge
 --depclean?
 
 Terry
 

Yes. I think it is also mentioned in the gentoo handbook. In fact, you
should not use --unmerge because it doesn't check dependencies before
removing the package.

If you want to delete a package only if no other package depends on it,
either remove it from world or use
`emerge -av --depclean package_name`.
The latter has the advantage of also telling you what depends on it.

Regards,
Florian Philipp



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Correct syntax for /etc/conf.d/modules

2012-04-21 Thread Florian Philipp
Am 21.04.2012 20:56, schrieb Mick:
 I am getting confused about the syntax that openrc is meant to follow ...
 
 One box of mine that uses modules ran some script at the time that I upgraded 
 to openrc and it added my currently running modules into /etc/conf.d/modules.
 
 The syntax was like so:
 
 modules_2_6=${modules_2_6} cls_tcindex
 module_cls_tcindex_args_2_6=
 
 Things moved on and with newer kernel versions I went to update the file 
 after 
 I had a look at the documentation:
 
   http://www.gentoo.org/doc/en/openrc-migration.xml
 
 Well there is no ${modules_2_6} shown in the examples so I removed it from my 
 /etc/conf.d/modules.  The new syntax was now:
 
 modules_3_2=cls_tcindex
 
 and guess what?  No modules loaded at all when I reboot.  :-/
 
 
 I had to add ${modules_3_2} in there to get things going again.
 
 However 'echo ${modules_3_2}' on the CLI does not show anything.  Can you 
 please explain why this variable is needed for modules to load up again and 
 why it is not shown in the documentation?

I guess it is modules_3 now. With the transition to 3.x, the numbering
scheme has changed and minor numbers change much more frequently.

You can also simply use modules= unless you have a reason for
distinguishing between versions. At least, that's what I use here.

Hope this helps,
Florian Philipp



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user]How can i remove the xfce clearly?

2012-04-21 Thread 赵佳晖
But it seems that the --depclean is a dangerous operate ??

在 2012年4月22日 上午7:15,Florian Philipp li...@binarywings.net写道:

 Am 21.04.2012 20:39, schrieb ny6...@gmail.com:
  On Sat, Apr 21, 2012 at 09:45:49AM +0200, Florian Philipp wrote:
  Am 21.04.2012 05:27, schrieb ??:
  I just install the xfce a few days ago, But i find i didn't like it .
 So
  i want to remove it and install the Gnome . How can i remove the xfce
  clearly ?
 
  --
  
 
  Gnome and Xfce share many libraries. Therefore it is best to install
  Gnome first, before removing Xfce. Otherwise you will remove libraries
  which you will later re-emerge for Gnome.
 
  Then you need to configure your display manager (kdm, gdm, xdm) to use
  Gnome instead of Xfce. Kdm and Gdm should allow you to do that directly
  on the login screen.
 
  When you are satisfied with Gnome, edit /var/lib/portage/world and
  remove every line containing an Xfce package. Then run `emerge -av
  --depclean` and you are done.
 
  You could continue to remove config files but that is usually not worth
  the trouble.
 
  Hope this helps,
  Florian Philipp
 
 
 
  Do I understand you correctly that it is not necessary to run emerge
  -unmerge first before removing the atoms from @world and running emerge
  --depclean?
 
  Terry
 

 Yes. I think it is also mentioned in the gentoo handbook. In fact, you
 should not use --unmerge because it doesn't check dependencies before
 removing the package.

 If you want to delete a package only if no other package depends on it,
 either remove it from world or use
 `emerge -av --depclean package_name`.
 The latter has the advantage of also telling you what depends on it.

 Regards,
 Florian Philipp




-- 
好好学习,天天向上!!!


Re: [gentoo-user] Re: pambase/shadow warning

2012-04-21 Thread Alex Schuster
Hinnerk van Bruinehsen writes:

 On 21.04.2012 17:30, Allan Gottlieb wrote:
  On Fri, Apr 20 2012, Neil Bothwick wrote:
  
  On Fri, 20 Apr 2012 13:22:20 +0100, Neil Bothwick wrote:
[...]
  What happened is it broke again, with no obvious signs of the
  cause. conf-update reported only trivial changes to three
  files.
[...]
  There is a bug filed
  https://bugs.gentoo.org/show_bug.cgi?id=412721
  
  The comments there say that if you run etc-update right after the 
  emerge all is well (but this isn't sufficient for people who use 
  screen, detatch, and log out).  Someone also mentioned
  dispatch-conf working.  No one mentioned cfg-update, which I use
  (and I believe neil does as well).  Could the problem be dependent
  on which configuration file updater one uses?

No, he is using conf-update, which is a different utility.

Wonko



Re: [gentoo-user]How can i remove the xfce clearly?

2012-04-21 Thread Dale
赵佳晖 wrote:
 But it seems that the --depclean is a dangerous operate ??
 

I use it quite often here.  It's like a knife, use it carefully.  Always
use the -a or -p option and check that it is not removing something I
want or need before letting it complete the removal.  I prefer the -a
option since it is faster.  If the list is correct, just hit y and let
it remove the unwanted packages.

Dale

:-)  :-)

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

Miss the compile output?  Hint:
EMERGE_DEFAULT_OPTS=--quiet-build=n



Re: [gentoo-user] [OT] Length of a video...

2012-04-21 Thread meino . cramer
Neil Bothwick n...@digimed.co.uk [12-04-22 02:28]:
 On Sat, 21 Apr 2012 20:27:37 +0200, meino.cra...@gmx.de wrote:
 
  is there a way to determine the playing length of a video file in
  minutes without playing the while file?
 
 Use midentify, part of mplayer.
 
 midentify filename | grep LENGTH
 
 
 -- 
 Neil Bothwick
 
 You do not need a parachute to skydive. You only need a parachute to
 skydive twice.


Thanks a lot Neil! Works as a charm! :)

Have a nice Sunday!
Best regards,
mcc