Re: [gentoo-user] Setting up two monitors

2010-11-04 Thread Florian Philipp
Am 03.11.2010 21:51, schrieb Mick:

 Is there some invocation to allow me to set this up like aheam!
 MSWindows does?  I mean, in WinXP all desktop icons and toolbar stays
 at the bottom of the DVI monitor.  The VGA monitor on the left just
 shows the desktop background, but has no toolbar or desktop icons.
 The user can however drag application windows from the DVI monitor to
 the VGA monitor, seamlessly between the two.  On this machine I can't
 - they are just clones of each other ...

Don't you have one of the major desktop environments like Gnome or KDE
running? There are graphical XRandr-Wrapper for most of them:
x11-misc/arandr, x11-apps/grandr, rox-extra/resolution,
lxde-base/lxrandr and kde-base/kephal, just to name a few. That would
spare us from testing and providing command line options for you.

Anyway, try something like:
xrandr --output DVI-0 --right-of VGA-0

Hope this helps,
Florian Philipp



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Setting up two monitors

2010-11-04 Thread Mick
Oops! This didn't make it to the list.  Answer to Alan half way down
and more info on card at the bottom.

On 3 November 2010 22:20, Mick michaelkintz...@gmail.com wrote:
 On Wednesday 03 November 2010 20:55:01 you wrote:
 Apparently, though unproven, at 22:51 on Wednesday 03 November 2010, Mick
 did

 opine thusly:
  Hi All,
 
  I am trying to set up two monitors, but have next to no experience on
  the subject.  Last time I set up two monitors on a machine was years
  ago and I recall using xinerama and xorg.conf.  Now I do not use
  xorg.conf and I'm still running x11-base/xorg-server-1.7.7-r1
 
  Upon booting up this machine showed both monitors with the same
  resolution and cloning each other.

 What video driver?

 x11-drivers/xf86-video-ati


  $ xrandr -q
  Screen 0: minimum 320 x 200, current 1280 x 1024, maximum 1920 x 1920
  VGA-0 connected 1280x1024+0+0 (normal left inverted right x axis y
  axis) 359mm x 287mm
 
     1280x1024      75.0*+   60.0
     1152x864       75.0
     1024x768       85.0     75.0     70.1     60.0
     832x624        74.6
     800x600        85.1     72.2     75.0     60.3     56.2
     640x480        85.0     75.0     72.8     66.7     59.9
     720x400        70.1
 
  DVI-0 connected 1280x1024+0+0 (normal left inverted right x axis y
  axis) 509mm x 286mm
 
     1920x1080      60.0 +
     1280x1024      75.0     60.0*
     1152x864       75.0
     1024x768       75.0     60.0
     800x600        75.0     60.3
     640x480        75.0     59.9
     720x400        70.1
 
  To change the new larger monitor connected on the DVI port, I ran:
 
  $ xrandr --output DVI-0 --auto
 
  and that gave me:
 
  $ xrandr -q
  Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 1920 x 1920
  VGA-0 connected 1280x1024+0+0 (normal left inverted right x axis y
  axis) 359mm x 287mm
 
     1280x1024      75.0*+   60.0
     1152x864       75.0
     1024x768       85.0     75.0     70.1     60.0
     832x624        74.6
     800x600        85.1     72.2     75.0     60.3     56.2
     640x480        85.0     75.0     72.8     66.7     59.9
     720x400        70.1
 
  DVI-0 connected 1920x1080+0+0 (normal left inverted right x axis y
  axis) 509mm x 286mm
 
     1920x1080      60.0*+
     1280x1024      75.0     60.0
     1152x864       75.0
     1024x768       75.0     60.0
     800x600        75.0     60.3
     640x480        75.0     59.9
     720x400        70.1
 
  Is there some invocation to allow me to set this up like aheam!
  MSWindows does?  I mean, in WinXP all desktop icons and toolbar stays
  at the bottom of the DVI monitor.  The VGA monitor on the left just
  shows the desktop background, but has no toolbar or desktop icons.
  The user can however drag application windows from the DVI monitor to
  the VGA monitor, seamlessly between the two.  On this machine I can't
  - they are just clones of each other ...

From lshw:

   *-display:0 UNCLAIMED
description: VGA compatible controller
product: RV380 0x3e50 [Radeon X600]
vendor: ATI Technologies Inc
physical id: 0
bus info: p...@:01:00.0
version: 00
width: 32 bits
clock: 33MHz
capabilities: pm pciexpress vga_controller bus_master cap_list
configuration: latency=0
resources: memory:d000-dfff
ioport:b000(size=256) memory:cfee-cfee
memory:cfec-cfed
   *-display:1 UNCLAIMED
description: Display controller
product: RV380 [Radeon X600] (Secondary)
vendor: ATI Technologies Inc
physical id: 0.1
bus info: p...@:01:00.1
version: 00
width: 32 bits
clock: 33MHz
capabilities: pm pciexpress bus_master cap_list
configuration: latency=0
resources: memory:cfef-cfef

From lspci -v

01:00.0 VGA compatible controller: ATI Technologies Inc RV380 0x3e50
[Radeon X600] (prog-if 00 [VGA controller])
Subsystem: ASUSTeK Computer Inc. Device 0328
Flags: bus master, fast devsel, latency 0, IRQ 16
Memory at d000 (32-bit, prefetchable) [size=256M]
I/O ports at b000 [size=256]
Memory at cfee (32-bit, non-prefetchable) [size=64K]
Expansion ROM at cfec [disabled] [size=128K]
Capabilities: [50] Power Management version 2
Capabilities: [58] Express Endpoint, MSI 00
Capabilities: [100] Advanced Error Reporting

01:00.1 Display controller: ATI Technologies Inc RV380 [Radeon X600] (Secondary)
Subsystem: ASUSTeK Computer Inc. Device 0329
Flags: bus master, fast devsel, latency 0
Memory at cfef (32-bit, non-prefetchable) [size=64K]
Capabilities: [50] Power Management version 2
Capabilities: [58] Express Endpoint, MSI 00

Please ask if 

Re: [gentoo-user] Setting up two monitors

2010-11-04 Thread Florian Philipp
Am 04.11.2010 08:38, schrieb Mick:
 
 PS.  Another thing I noticed with the WinXP setup is that the
 application windows seem to be screen aware.  On the left monitor they
 will maximise only to cover fully the left hand screen not the right
 hand. The same happens when maximising an application window on the
 right.  I don't remember seeing this in Linux - applications I think
 maximised across both screens.

Again, I don't know what desktop environment you are using but that
works flawlessly on KDE.



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Setting up two monitors

2010-11-04 Thread Alan McKinnon
Apparently, though unproven, at 09:38 on Thursday 04 November 2010, Mick did 
opine thusly:

 PS.  Another thing I noticed with the WinXP setup is that the
 application windows seem to be screen aware.  On the left monitor they
 will maximise only to cover fully the left hand screen not the right
 hand. The same happens when maximising an application window on the
 right.  I don't remember seeing this in Linux - applications I think
 maximised across both screens.


nvidia-drivers does this by default with Twinview.

Those drivers rip out vast sections of the OpenGL libs and who knows what 
else, replacing it with an NVidia version. Lots of their code is in the core, 
intended to be used cross-platform, which probably explains the default 
behaviour being the same as on windows.



-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] Setting up two monitors

2010-11-04 Thread YoYo Siska
On Thu, Nov 04, 2010 at 08:43:25AM +0100, Florian Philipp wrote:
 Am 04.11.2010 08:38, schrieb Mick:
  
  PS.  Another thing I noticed with the WinXP setup is that the
  application windows seem to be screen aware.  On the left monitor they
  will maximise only to cover fully the left hand screen not the right
  hand. The same happens when maximising an application window on the
  right.  I don't remember seeing this in Linux - applications I think
  maximised across both screens.
 
 Again, I don't know what desktop environment you are using but that
 works flawlessly on KDE.
 

Just to make it a bit more clear:
xrandr is used to setup the resolution and position of the monitors
(you can make them clone each other, overlap, be alongside / above /
below the other...)

How the windows / panels behave depends on your windows manager/desktop
environment (or on the panels themselves). X server provides them with
enough information about the layout of the monitors, and they have to
use it. So it depends on which DE or window manager you use...

In kde3,  there was a configuration option for kwin, whether windows
should be maximized across all screens  or on single screen...
I can't find it in kde4 settings right now, but I have only single head
card here and I guess it would be under Multiple Monitors option in
settings, which just says You don't appear to have this configuration
for me ;)

Plasma in kde4 manages things per monitor, so panels should be only
on one monitor (and you can't get them across multiple monitors, you
have to have a separate panel on each)...

Recent versions of fluxbox allow you to have the toolbar on a certain
monitor (head) or across all heads... Don't know how it is when maximizing
windows (some time ago I used to patch it to make it an option, didn't
play with it lately...)

I can't say anything for gnome or other DEs/WMs...

yoyo




Re: [gentoo-user] Re: world symlinking

2010-11-04 Thread Neil Bothwick
On Thu, 4 Nov 2010 00:32:01 +, Peter Humphrey wrote:

 On this ~amd64 box portage 2.2x was hard-masked a day or two ago and I 
 was required to downgrade to sys-apps/portage-2.1.9.24. It seems that 
 the 2.2 branch is now only fit for 32-bit systems - there must really
 be some hard problem in there.

They just changed from package masking to keyword masking, as noted in
the ChangeLog

 Drop keywords from portage-2.2*, as a substitute for masking via
  package.mask.

Remove the entry from /etc/portage/package.unmask and add it
to /etc/portage/package.keywords. This applies equally to ~x86 and ~amd64.


-- 
Neil Bothwick

When you finally buy enough memory, you will not have enough disk space.
 -- Murphy's Computer Laws n°3


signature.asc
Description: PGP signature


[gentoo-user] usb error log spam

2010-11-04 Thread a...@sourcegarden.de
Got some strange usb errors message all time plug in a usb storage key.

Nov  3 07:37:28 Slaxy kernel: usb-storage: *** thread awakened.
Nov  3 07:37:28 Slaxy kernel: usb-storage: Command TEST_UNIT_READY (6 bytes)
Nov  3 07:37:28 Slaxy kernel: usb-storage:  00 00 00 00 00 00
Nov  3 07:37:28 Slaxy kernel: usb-storage: Bulk Command S 0x43425355 T
0x5ff L 0 F 0 Trg 0 LUN 0 CL 6
Nov  3 07:37:28 Slaxy kernel: usb-storage: usb_stor_bulk_transfer_buf:
xfer 31 bytes
Nov  3 07:37:28 Slaxy kernel: usb-storage: Status code 0; transferred 31/31
Nov  3 07:37:28 Slaxy kernel: usb-storage: -- transfer complete
Nov  3 07:37:28 Slaxy kernel: usb-storage: Bulk command transfer result=0
Nov  3 07:37:28 Slaxy kernel: usb-storage: Attempting to get CSW...
Nov  3 07:37:28 Slaxy kernel: usb-storage: usb_stor_bulk_transfer_buf:
xfer 13 bytes
Nov  3 07:37:28 Slaxy kernel: usb-storage: Status code 0; transferred 13/13
Nov  3 07:37:28 Slaxy kernel: usb-storage: -- transfer complete
Nov  3 07:37:28 Slaxy kernel: usb-storage: Bulk status result = 0
Nov  3 07:37:28 Slaxy kernel: usb-storage: Bulk Status S 0x53425355 T
0x5ff R 0 Stat 0x0
Nov  3 07:37:28 Slaxy kernel: usb-storage: scsi cmd done, result=0x0
Nov  3 07:37:28 Slaxy kernel: usb-storage: *** thread sleeping.


this appears all the time, somehow it very annoying. Someone any idea?

Greeting Alex

--
Sourcegarden GmbH HR: B-104357
Steuernummer: 37/167/21214 USt-ID: DE814784953
Geschaeftsfuehrer: Mario Scheliga, Rene Otto
Bank: Deutsche Bank, BLZ: 10070024, KTO: 0810929
Schoenhauser Allee 55, 10437 Berlin



Re: [gentoo-user] usb error log spam

2010-11-04 Thread Neil Bothwick
On Thu, 04 Nov 2010 11:21:29 +0100, a...@sourcegarden.de wrote:

 Got some strange usb errors message all time plug in a usb storage key.

Are they errors, they return status 0?

You probably have CONFIG_USB_DEBUG or CONFIG_USB_STORAGE_DEBUG enabled in
your kernel.


-- 
Neil Bothwick

Men who have playful kittens shouldn't sleep in the nude.


signature.asc
Description: PGP signature


Re: [gentoo-user] usb error log spam

2010-11-04 Thread a...@sourcegarden.de
On 11/04/10 12:32, Neil Bothwick wrote:
 On Thu, 04 Nov 2010 11:21:29 +0100, a...@sourcegarden.de wrote:

 Got some strange usb errors message all time plug in a usb storage key.
 Are they errors, they return status 0?

 You probably have CONFIG_USB_DEBUG or CONFIG_USB_STORAGE_DEBUG enabled in
 your kernel.


no, it's not:
CONFIG_USB_DEBUG is not set
That also why, i think this more a error message than a debug
--
Sourcegarden GmbH HR: B-104357
Steuernummer: 37/167/21214 USt-ID: DE814784953
Geschaeftsfuehrer: Mario Scheliga, Rene Otto
Bank: Deutsche Bank, BLZ: 10070024, KTO: 0810929
Schoenhauser Allee 55, 10437 Berlin



Re: [gentoo-user] Setup for two graphical logins on one machine

2010-11-04 Thread Robin Atwood
On Thursday 04 November 2010, Albert Hopkins wrote:
 On Wed, 2010-11-03 at 12:53 +0100, Markus Oehme wrote:
  Hi everybody,
  
  I've got a somewhat exotic wish: I want to have two graphical logins on
  my box. Currently I'm using /etc/init.d/xdm to start slim which in turn
  starts an XFce session after login. All of this happens on vt7
  (reachable via ctrl-alt-f7). Now I wish for a second graphical login on
  vt8.
  What I currently hope for is a way to tell /etc/init.d/xdm to start two
  instances of slim, one on vt7 and one on vt8. Bonus points if the second
  instance of slim starts a fluxbox session instead of an XFce session upon
  login. Do you think this is possible?

AFAIK, you must poke around in /etc/X11/ where the xserver config files are. 
XAccess seems to ring a bell! I have kdm here which does it all in one big 
kdmrc file, so I can't tell you exactly.

HTH
-Robin
-- 
--
Robin Atwood.

Ship me somewheres east of Suez, where the best is like the worst,
 Where there ain't no Ten Commandments an' a man can raise a thirst
 from Mandalay by Rudyard Kipling
--











Re: [gentoo-user] usb error log spam

2010-11-04 Thread Fatih Tümen
On Thu, Nov 4, 2010 at 14:53, a...@sourcegarden.de a...@sourcegarden.de wrote:
 On 11/04/10 12:32, Neil Bothwick wrote:
 On Thu, 04 Nov 2010 11:21:29 +0100, a...@sourcegarden.de wrote:

 Got some strange usb errors message all time plug in a usb storage key.
 Are they errors, they return status 0?

 You probably have CONFIG_USB_DEBUG or CONFIG_USB_STORAGE_DEBUG enabled in
 your kernel.


 no, it's not:
 CONFIG_USB_DEBUG is not set
 That also why, i think this more a error message than a debug

Make sure you have the line HALD_VERBOSE=no in /etc/conf.d/hald.

--
Fatih



Re: [gentoo-user] usb error log spam

2010-11-04 Thread alex
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Am 04.11.2010 14:31, schrieb Fatih Tümen:
 On Thu, Nov 4, 2010 at 14:53, a...@sourcegarden.de a...@sourcegarden.de 
 wrote:
 On 11/04/10 12:32, Neil Bothwick wrote:
 On Thu, 04 Nov 2010 11:21:29 +0100, a...@sourcegarden.de wrote:

 Got some strange usb errors message all time plug in a usb storage key.
 Are they errors, they return status 0?

 You probably have CONFIG_USB_DEBUG or CONFIG_USB_STORAGE_DEBUG enabled in
 your kernel.


 no, it's not:
 CONFIG_USB_DEBUG is not set
 That also why, i think this more a error message than a debug
 
 Make sure you have the line HALD_VERBOSE=no in /etc/conf.d/hald.
 
 --
 Fatih
 
is the only one there.

Greeting Alex

-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.14 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJM0sIPAAoJEB8n+SuWCkjv9VoH/18Ei4ekDotx3/8ypXwcuu91
WK1oZkXWjVVHObJqnVO4aGdrM8P7BFHuYKjrsE5rpzgMpoXbJcWOQT3kIpn+NrIO
yBCWSTsIcGznYu4Lp13w6Aa6kpeyHFBLhvFB8FR9HMLjNmvK0VeEme8Plkogi3FA
ogfi6WNYfWy4pvCMCnJSYIZZzLXOHV49d5IS7w13m7ms+DgHDZOMKAFqmc5tLCtu
Jh4pt3Qt8KbONY1DJw/w5YwCDPWKQnziwNcHWQj6Om4si2m4yFt8osgzoqYmSAY7
FKfuPSuHD6PyjjL8uYbwpns4oKNs/QQJd8kItpum3CihTdlgKyUBbSLC1Lg6IR4=
=rSnY
-END PGP SIGNATURE-
--
Sourcegarden GmbH HR: B-104357
Steuernummer: 37/167/21214 USt-ID: DE814784953
Geschaeftsfuehrer: Mario Scheliga, Rene Otto
Bank: Deutsche Bank, BLZ: 10070024, KTO: 0810929
Schoenhauser Allee 55, 10437 Berlin



Re: [gentoo-user] Setting up two monitors

2010-11-04 Thread Mick
On 4 November 2010 09:24, YoYo Siska y...@gl.ksp.sk wrote:
 On Thu, Nov 04, 2010 at 08:43:25AM +0100, Florian Philipp wrote:
 Am 04.11.2010 08:38, schrieb Mick:
 
  PS.  Another thing I noticed with the WinXP setup is that the
  application windows seem to be screen aware.  On the left monitor they
  will maximise only to cover fully the left hand screen not the right
  hand. The same happens when maximising an application window on the
  right.  I don't remember seeing this in Linux - applications I think
  maximised across both screens.

 Again, I don't know what desktop environment you are using but that
 works flawlessly on KDE.


 Just to make it a bit more clear:
 xrandr is used to setup the resolution and position of the monitors
 (you can make them clone each other, overlap, be alongside / above /
 below the other...)

 How the windows / panels behave depends on your windows manager/desktop
 environment (or on the panels themselves). X server provides them with
 enough information about the layout of the monitors, and they have to
 use it. So it depends on which DE or window manager you use...

 In kde3,  there was a configuration option for kwin, whether windows
 should be maximized across all screens  or on single screen...
 I can't find it in kde4 settings right now, but I have only single head
 card here and I guess it would be under Multiple Monitors option in
 settings, which just says You don't appear to have this configuration
 for me ;)

 Plasma in kde4 manages things per monitor, so panels should be only
 on one monitor (and you can't get them across multiple monitors, you
 have to have a separate panel on each)...

 Recent versions of fluxbox allow you to have the toolbar on a certain
 monitor (head) or across all heads... Don't know how it is when maximizing
 windows (some time ago I used to patch it to make it an option, didn't
 play with it lately...)

 I can't say anything for gnome or other DEs/WMs...

Thank you all for your responses!

The box in question is running KDE.

The first thing I tried was to go into Systemsettings and play with
Display settings in there.  Nothing I tried would take.  Only xranrd
on the CLI brought some results.  Even so, rebooting means that I have
to rerun the stanza to make the new large monitor on the DVI port
auto-adjust.  It seems that the card sees the VGA as the primary
monitor and the DVI as the secondary monitor, when I really want them
the other way around.

Any way, I'll have another go at the Display settings in the KDE
Systemsettings and see if I am missing something in there.
-- 
Regards,
Mick



Re: [gentoo-user] ldap client authentication

2010-11-04 Thread James
Bump -- any ideas?

In a tough spot right now trying to wrap this LDAP project up and I'm stuck. :(

-james

On Wed, Nov 3, 2010 at 15:26, James j...@nc.rr.com wrote:
 Straight from the Gentoo + LDAP page.

 # pam ldap stuff
 auth    sufficient  pam_ldap.so use_first_pass
 account sufficient  pam_ldap.so
 password    sufficient  pam_ldap.so use_authtok use_first_pass
 session optional    pam_ldap.so

 -james

 On Wed, Nov 3, 2010 at 15:13, Stroller strol...@stellar.eclipse.co.uk
 wrote:

 On 3/11/2010, at 4:25pm, James wrote:

 ...
 I'm attempting to set up LDAP authentication against my OpenDS server on a
 Gentoo box. I've been struggling with this for several days now with no
 progress.

 Here's the rundown of how things are configured (fairly straight forward):
 ...

 == auth.log ==
 Nov  3 06:26:03 s_dg...@client.whatever.com sshd[2650]: error: PAM:
 Authentication failure for tb from blah.whatever.com

 You've shown us all about your LDAP configuration, but nothing about your
 PAM configuration, or whether sshd or IMAP are configured to use PAM.
 Stroller.





[gentoo-user] kernel panic on manually built kernel

2010-11-04 Thread dhk
I've always used the genkernel, but now am trying to make a manual one.
 I think the kernel is alright since all the default setting seemed
reasonable and the build was easy enough.  However, when I boot to it I
get a kernel panic and it complains about the root device /dev/hda3. So
I think the problem has to do with my parameters or syntax in grub.conf.
 Below are three grub menu options.  The first two have the problem and
the third is the genkernel that works fine.  Is there something wrong
with the way the first two are?  Thanks.

# This is a Manually built kernel with default settings.  kernel panic
title Gentoo Linux x86 2.6.34-r12
root (hd0,0)
kernel /boot/kernel-2.6.34-gentoo-r12 root=/dev/hda3

# This is a Manually built kernel with default settings.  kernel panic
title Gentoo Linux x86 2.6.34-r12
root (hd0,0)
kernel /boot/kernel-2.6.34-gentoo-r12 root=/dev/hda3 vga=791
splash=verbose video=vesafb:mtrr,ywrap udev
# From Documentation: video=uvesafb:mtrr:3,ywrap,1024x768...@85

# This a genkernel and works
title Gentoo Linux x86 2.6.34-r6
root (hd0,0)
kernel /boot/kernel-genkernel-x86_64-2.6.34-gentoo-r6 init=/linuxrc
ramdisk=8192 real_root=/dev/hda3 vga=791 splash=verbose
video=vesafb:mtrr,ywrap udev
initrd /boot/initramfs-genkernel-x86_64-2.6.34-gentoo-r6

--dhk



[gentoo-user] VMware - Linux kernel yield() functionality is disabled.

2010-11-04 Thread Mark Knecht
Hi,
   When starting VMware-Player I get the following message:

The host's Linux kernel yield() functionality is disabled.
Multiprocessor virtual machines exhibit degraded performance without
yield(). Choose 'OK' to enable the sysctl 'kernel.sched_compat_yield'
or 'Cancel' to continue without yield().


   Looking around at VMware's site they recommend changing
/etc/sysctl.conf to enable the feature:

http://kb.vmware.com/selfservice/microsites/search.do?language=en_UScmd=displayKCexternalId=1027987

   I can do that but I'm pretty sure that if I edit that file then
I'll lose the edits some day when doing etc-update's. I'm wondering if
there's a more Gentoo way to turn on a kernel feature like this so
that it survives updates without my full attention.

Thanks,
Mark



Re: [gentoo-user] kernel panic on manually built kernel

2010-11-04 Thread Dale

dhk wrote:

I've always used the genkernel, but now am trying to make a manual one.
  I think the kernel is alright since all the default setting seemed
reasonable and the build was easy enough.  However, when I boot to it I
get a kernel panic and it complains about the root device /dev/hda3. So
I think the problem has to do with my parameters or syntax in grub.conf.
  Below are three grub menu options.  The first two have the problem and
the third is the genkernel that works fine.  Is there something wrong
with the way the first two are?  Thanks.

# This is a Manually built kernel with default settings.  kernel panic
title Gentoo Linux x86 2.6.34-r12
root (hd0,0)
kernel /boot/kernel-2.6.34-gentoo-r12 root=/dev/hda3

# This is a Manually built kernel with default settings.  kernel panic
title Gentoo Linux x86 2.6.34-r12
root (hd0,0)
kernel /boot/kernel-2.6.34-gentoo-r12 root=/dev/hda3 vga=791
splash=verbose video=vesafb:mtrr,ywrap udev
# From Documentation: video=uvesafb:mtrr:3,ywrap,1024x768...@85

# This a genkernel and works
title Gentoo Linux x86 2.6.34-r6
root (hd0,0)
kernel /boot/kernel-genkernel-x86_64-2.6.34-gentoo-r6 init=/linuxrc
ramdisk=8192 real_root=/dev/hda3 vga=791 splash=verbose
video=vesafb:mtrr,ywrap udev
initrd /boot/initramfs-genkernel-x86_64-2.6.34-gentoo-r6

--dhk


   


When I get a kernel panic, it's usually because I'm pointing to the 
wrong partition or I forgot to include the file system that the root 
partition uses.  Since the one you made and the genkernel match up, I 
would check to make sure you included the correct file system and it is 
BUILT IN not a module.


Hope that helps or someone else comes up with another idea.

Dale

:-)  :-)



Re: [gentoo-user] Re: world symlinking

2010-11-04 Thread Peter Humphrey
On Thursday 04 November 2010 09:30:11 Neil Bothwick wrote:

 They just changed from package masking to keyword masking, as noted
 in the ChangeLog

I couldn't get emerge to show me the change log.

 Remove the entry from /etc/portage/package.unmask and add it
 to /etc/portage/package.keywords. This applies equally to ~x86 and
 ~amd64.

As expected, that didn't help - this is a ~amd64 gentoo box, and so 
everything is already emerged with the ~amd64 keyword. I still get a 
missing-keyword error from emerge.

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



Re: [gentoo-user] kernel panic on manually built kernel

2010-11-04 Thread Alan McKinnon
Apparently, though unproven, at 18:34 on Thursday 04 November 2010, dhk did 
opine thusly:

 I've always used the genkernel, but now am trying to make a manual one.
  I think the kernel is alright since all the default setting seemed
 reasonable and the build was easy enough.  However, when I boot to it I
 get a kernel panic and it complains about the root device /dev/hda3. So
 I think the problem has to do with my parameters or syntax in grub.conf.
  Below are three grub menu options.  The first two have the problem and
 the third is the genkernel that works fine.  Is there something wrong
 with the way the first two are?  Thanks.

Why did you think it a good idea to NOT post the *actual* error? 

Your grub entries are correct.

I'll bet money that you built one or more of your chipset drivers, libata, or 
root filesystem driver as a module.

These must not be modules, they must be built-in (otherwise you need an 
initrd)



 
 # This is a Manually built kernel with default settings.  kernel panic
 title Gentoo Linux x86 2.6.34-r12
 root (hd0,0)
 kernel /boot/kernel-2.6.34-gentoo-r12 root=/dev/hda3
 
 # This is a Manually built kernel with default settings.  kernel panic
 title Gentoo Linux x86 2.6.34-r12
 root (hd0,0)
 kernel /boot/kernel-2.6.34-gentoo-r12 root=/dev/hda3 vga=791
 splash=verbose video=vesafb:mtrr,ywrap udev
 # From Documentation: video=uvesafb:mtrr:3,ywrap,1024x768...@85
 
 # This a genkernel and works
 title Gentoo Linux x86 2.6.34-r6
 root (hd0,0)
 kernel /boot/kernel-genkernel-x86_64-2.6.34-gentoo-r6 init=/linuxrc
 ramdisk=8192 real_root=/dev/hda3 vga=791 splash=verbose
 video=vesafb:mtrr,ywrap udev
 initrd /boot/initramfs-genkernel-x86_64-2.6.34-gentoo-r6
 
 --dhk

-- 
alan dot mckinnon at gmail dot com



[gentoo-user] Command-line wicd?

2010-11-04 Thread Peter Humphrey
Hello list,

I'm installing Gentoo on a Thinkpad laptop and I want to install wicd in 
place of the manually configured network, rather than installing the 
standard network setup and then ripping it out again to put wicd in its 
place.

The problem is that wicd insists* on a gtk interface, which would force 
me to install X etc. before the first boot, so that wicd could enable me 
to fetch all the sources.

Is there any way to get a CLI version of wicd installed?

* It really insists: even USE=-gtk emerge -pv wicd still throws the same 
error about missing config parameters in some X package.


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



Re: [gentoo-user] VMware - Linux kernel yield() functionality is disabled.

2010-11-04 Thread Alan McKinnon
Apparently, though unproven, at 18:43 on Thursday 04 November 2010, Mark 
Knecht did opine thusly:

 Hi,
When starting VMware-Player I get the following message:
 
 The host's Linux kernel yield() functionality is disabled.
 Multiprocessor virtual machines exhibit degraded performance without
 yield(). Choose 'OK' to enable the sysctl 'kernel.sched_compat_yield'
 or 'Cancel' to continue without yield().
 
 
Looking around at VMware's site they recommend changing
 /etc/sysctl.conf to enable the feature:
 
 http://kb.vmware.com/selfservice/microsites/search.do?language=en_UScmd=di
 splayKCexternalId=1027987
 
I can do that but I'm pretty sure that if I edit that file then
 I'll lose the edits some day when doing etc-update's. I'm wondering if
 there's a more Gentoo way to turn on a kernel feature like this so
 that it survives updates without my full attention.


Gentoo way:

Use conf-update (or etc-update if you must)
use merge function
tell computer what you want it to do

Ubuntu way:

it survives updates without my full attention
maintainer tells user what he thinks the computer should do
frustrate user, user gives up in apathy and says Oh well...

-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] Re: world symlinking

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

 On Thursday 04 November 2010 09:30:11 Neil Bothwick wrote:
  They just changed from package masking to keyword masking, as noted
  in the ChangeLog
 
 I couldn't get emerge to show me the change log.
 
  Remove the entry from /etc/portage/package.unmask and add it
  to /etc/portage/package.keywords. This applies equally to ~x86 and
  ~amd64.
 
 As expected, that didn't help - this is a ~amd64 gentoo box, and so
 everything is already emerged with the ~amd64 keyword. I still get a
 missing-keyword error from emerge.


It's not package.keywords, it's package.accept_keywords. The old name will be 
accepted for a while but I don't know when that warranty expires. Do this:

sys-apps/portage-**

in package.{accept_,}keywords


-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] kernel panic on manually built kernel

2010-11-04 Thread dhk
On 11/04/2010 12:52 PM, Alan McKinnon wrote:
 Apparently, though unproven, at 18:34 on Thursday 04 November 2010, dhk did 
 opine thusly:
 
 I've always used the genkernel, but now am trying to make a manual one.
  I think the kernel is alright since all the default setting seemed
 reasonable and the build was easy enough.  However, when I boot to it I
 get a kernel panic and it complains about the root device /dev/hda3. So
 I think the problem has to do with my parameters or syntax in grub.conf.
  Below are three grub menu options.  The first two have the problem and
 the third is the genkernel that works fine.  Is there something wrong
 with the way the first two are?  Thanks.
 
 Why did you think it a good idea to NOT post the *actual* error? 
 
 Your grub entries are correct.
 
 I'll bet money that you built one or more of your chipset drivers, libata, or 
 root filesystem driver as a module.
 
 These must not be modules, they must be built-in (otherwise you need an 
 initrd)
 
 
 

 # This is a Manually built kernel with default settings.  kernel panic
 title Gentoo Linux x86 2.6.34-r12
 root (hd0,0)
 kernel /boot/kernel-2.6.34-gentoo-r12 root=/dev/hda3

 # This is a Manually built kernel with default settings.  kernel panic
 title Gentoo Linux x86 2.6.34-r12
 root (hd0,0)
 kernel /boot/kernel-2.6.34-gentoo-r12 root=/dev/hda3 vga=791
 splash=verbose video=vesafb:mtrr,ywrap udev
 # From Documentation: video=uvesafb:mtrr:3,ywrap,1024x768...@85

 # This a genkernel and works
 title Gentoo Linux x86 2.6.34-r6
 root (hd0,0)
 kernel /boot/kernel-genkernel-x86_64-2.6.34-gentoo-r6 init=/linuxrc
 ramdisk=8192 real_root=/dev/hda3 vga=791 splash=verbose
 video=vesafb:mtrr,ywrap udev
 initrd /boot/initramfs-genkernel-x86_64-2.6.34-gentoo-r6

 --dhk
 

Thanks all, I check those suggestions and get back to you.

The reason I didn't include the exact error is that I can't capture it.
 I'd have to write it on paper and then reboot to the working kernel.
By then it doesn't seem to be in any of the logs.  I'll see what I can
do about that.

Thanks again.

--dhk



Re: [gentoo-user] Re: world symlinking

2010-11-04 Thread Sebastian Beßler

Am 04.11.2010 17:46, schrieb Peter Humphrey:


As expected, that didn't help - this is a ~amd64 gentoo box, and so
everything is already emerged with the ~amd64 keyword. I still get a
missing-keyword error from emerge.


portage-2.2_rc67.ebuild has KEYWORDS=~sparc-fbsd ~x86-fbsd

As you can see there is no ~amd64 set in the ebuild and so it can't 
match your ~amd64 in make.conf.
Because of that you have to put 'sys-apps/portage-2.2_rc67 **' to 
package.keywords


HtH

Sebastian Beßler





Re: [gentoo-user] Command-line wicd?

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

 Hello list,
 
 I'm installing Gentoo on a Thinkpad laptop and I want to install wicd in
 place of the manually configured network, rather than installing the
 standard network setup and then ripping it out again to put wicd in its
 place.
 
 The problem is that wicd insists* on a gtk interface, which would force
 me to install X etc. before the first boot, so that wicd could enable me
 to fetch all the sources.
 
 Is there any way to get a CLI version of wicd installed?
 
 * It really insists: even USE=-gtk emerge -pv wicd still throws the same
 error about missing config parameters in some X package.

wicd is designed for laptops and mobile computers. 

Once you see that it's features are quite overkill for desktops (and complete 
overkill for servers), then this is apparent.

Instead, why don't you just let baselayout get on with adding the 20 extra 
characters that go into /etc/conf.d/net to get you a working interface, build 
stuff, then add wicd later? wicd is not in any sane @system or default @world, 
it's simply a very useful tool for laptops. But by no means required and 
easily left till last.

-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] Re: world symlinking

2010-11-04 Thread Sebastian Beßler

Am 04.11.2010 18:01, schrieb Alan McKinnon:


It's not package.keywords, it's package.accept_keywords.


Good to know, when and where was that announced?

Greetings

Sebastian Beßler



Re: [gentoo-user] kernel panic on manually built kernel

2010-11-04 Thread Neil Bothwick
On Thu, 04 Nov 2010 13:00:21 -0400, dhk wrote:

 The reason I didn't include the exact error is that I can't capture it.
  I'd have to write it on paper and then reboot to the working kernel.

Which is a lot less work than trying to fix the problem by guesswork.


-- 
Neil Bothwick

Velilind's Laws of Experimentation:
1. If reproducibility may be a problem, conduct the test only once.
2. If a straight line fit is required, obtain only two data points.


signature.asc
Description: PGP signature


Re: [gentoo-user] Re: world symlinking

2010-11-04 Thread Neil Bothwick
On Thu, 4 Nov 2010 19:01:45 +0200, Alan McKinnon wrote:

 It's not package.keywords, it's package.accept_keywords. The old name
 will be accepted for a while but I don't know when that warranty expires

I hadn't noticed that, but the portage man page still advocates the use
of either, and portage doesn't spit out any deprecation warnings, so I
expect it will be OK for a while, maybe until 2.2.0_alpha99 :-/


-- 
Neil Bothwick

 There are two kinds of people in this world: Those who are
good with words, and those who are... erm... thingy 


signature.asc
Description: PGP signature


Re: [gentoo-user] Command-line wicd?

2010-11-04 Thread Neil Bothwick
On Thu, 4 Nov 2010 16:55:25 +, Peter Humphrey wrote:

 The problem is that wicd insists* on a gtk interface, which would force 
 me to install X etc. before the first boot, so that wicd could enable
 me to fetch all the sources.
 
 Is there any way to get a CLI version of wicd installed?
 
 * It really insists: even USE=-gtk emerge -pv wicd still throws the
 same error about missing config parameters in some X package.

Wicd also has an X use flag. I've just tried emerge -p wicd on a headless
(and Xless) box and it didn't try to pull in any X related packages.
You'll have to try

USE=-X -gtk -qt4 emerge -pvt wicd

see what is pulling in X, add USE flags to the command, rinse and repeat.

That it can be done is not in doubt, whether it is worth the effort is.

Personally, I USE=eth0 when installing Gentoo on a laptop.


-- 
Neil Bothwick

WinErr 01F: Reserved for future mistakes of our developers.


signature.asc
Description: PGP signature


[gentoo-user] flags: v4l and v4l2

2010-11-04 Thread James
Hello,


My google is not sufficient to flesh out the difference 
(other than the obvious)  of these 2 flags.

Where would I read about the deep, detailed difference
in flags that appear similar in purpose?

How would/should I know when flags are deprecated, or 
on the fast track to becoming deprecated? 

It there systematic (methologies/syntax) to
discover such nuggets of knowledge?


James





Re: [gentoo-user] kernel panic on manually built kernel

2010-11-04 Thread dhk
On 11/04/2010 01:08 PM, Neil Bothwick wrote:
 On Thu, 04 Nov 2010 13:00:21 -0400, dhk wrote:
 
 The reason I didn't include the exact error is that I can't capture it.
  I'd have to write it on paper and then reboot to the working kernel.
 
 Which is a lot less work than trying to fix the problem by guesswork.
 
 

I have /boot as ext2 and the rest ext3 with lvm2.

$ df -k
Filesystem   1K-blocks  Used Available Use% Mounted on
/dev/hda3  8262068712028   7130344  10% /
udev 10240   336  9904   4% /dev
/dev/mapper/vg-usr15481840  12867912   1827496  88% /usr
/dev/mapper/vg-home   51606140  42781428   6203272  88% /home
/dev/mapper/vg-opt 5160576   2635064   2263368  54% /opt
/dev/mapper/vg-var15481840   2387500  12307908  17% /var
/dev/mapper/vg-tmp 2064208 68708   1890644   4% /tmp
shm 512572 0512572   0% /dev/shm

The ext2 wasn't compiled in, so I compiled it in and rebooted.  I got
the same error.

kernel panic - not syncing : VFS: unable to mount root FS on
unknown-block (2,0)

This is what I had.
  Second extended fs support   │ │
  │ │* Ext3 journalling file system support
  │ │
  │ │[ ]   Default to 'data=ordered' in ext3
  │ │
  │ │[*]   Ext3 extended attributes
  │ │
  │ │[*] Ext3 POSIX Access Control Lists
  │ │
  │ │[*] Ext3 Security Labels

This is what I added.
* Second extended fs support   │ │
  │ │[ ]   Ext2 extended attributes (NEW)
  │ │
  │ │[ ]   Ext2 execute in place support (NEW)
  │ │
  │ │* Ext3 journalling file system support
  │ │
  │ │[ ]   Default to 'data=ordered' in ext3
  │ │
  │ │[*]   Ext3 extended attributes
  │ │
  │ │[*] Ext3 POSIX Access Control Lists
  │ │
  │ │[*] Ext3 Security Labels
  │ │

Thanks,

--dhk



Re: [gentoo-user] Command-line wicd?

2010-11-04 Thread Willie Wong
On Thu, Nov 04, 2010 at 07:06:18PM +0200, Alan McKinnon wrote:
 Apparently, though unproven, at 18:55 on Thursday 04 November 2010, Peter 
 Humphrey did opine thusly:
 
  I'm installing Gentoo on a Thinkpad laptop 

 wicd is designed for laptops and mobile computers. 

Alan: time for new reading glasses?

Peter: I am pretty sure on my laptop I disabled the wicd gtk/X
interface (and only use the curses interface). Check the list of USE
for wicd again? Maybe you need to also issue -X? 

Best, 

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



Re: [gentoo-user] kernel panic on manually built kernel

2010-11-04 Thread covici
Dale rdalek1...@gmail.com wrote:

 dhk wrote:
  I've always used the genkernel, but now am trying to make a manual one.
I think the kernel is alright since all the default setting seemed
  reasonable and the build was easy enough.  However, when I boot to it I
  get a kernel panic and it complains about the root device /dev/hda3. So
  I think the problem has to do with my parameters or syntax in grub.conf.
Below are three grub menu options.  The first two have the problem and
  the third is the genkernel that works fine.  Is there something wrong
  with the way the first two are?  Thanks.
 
  # This is a Manually built kernel with default settings.  kernel panic
  title Gentoo Linux x86 2.6.34-r12
  root (hd0,0)
  kernel /boot/kernel-2.6.34-gentoo-r12 root=/dev/hda3
 
  # This is a Manually built kernel with default settings.  kernel panic
  title Gentoo Linux x86 2.6.34-r12
  root (hd0,0)
  kernel /boot/kernel-2.6.34-gentoo-r12 root=/dev/hda3 vga=791
  splash=verbose video=vesafb:mtrr,ywrap udev
  # From Documentation: video=uvesafb:mtrr:3,ywrap,1024x768...@85
 
  # This a genkernel and works
  title Gentoo Linux x86 2.6.34-r6
  root (hd0,0)
  kernel /boot/kernel-genkernel-x86_64-2.6.34-gentoo-r6 init=/linuxrc
  ramdisk=8192 real_root=/dev/hda3 vga=791 splash=verbose
  video=vesafb:mtrr,ywrap udev
  initrd /boot/initramfs-genkernel-x86_64-2.6.34-gentoo-r6
 
  --dhk
 
 
 
 
 When I get a kernel panic, it's usually because I'm pointing to the
 wrong partition or I forgot to include the file system that the root
 partition uses.  Since the one you made and the genkernel match up, I
 would check to make sure you included the correct file system and it
 is BUILT IN not a module.
 
 Hope that helps or someone else comes up with another idea.
He does not have the ramdisk or initrd in his manual ones.  That would
do it right there.  Be sure to generate the ramdisk as well.

-- 
Your life is like a penny.  You're going to lose it.  The question is:
How do
you spend it?

 John Covici
 cov...@ccs.covici.com



Re: [gentoo-user] kernel panic on manually built kernel

2010-11-04 Thread dhk
On 11/04/2010 02:12 PM, cov...@ccs.covici.com wrote:
 Dale rdalek1...@gmail.com wrote:
 
 dhk wrote:
 I've always used the genkernel, but now am trying to make a manual one.
   I think the kernel is alright since all the default setting seemed
 reasonable and the build was easy enough.  However, when I boot to it I
 get a kernel panic and it complains about the root device /dev/hda3. So
 I think the problem has to do with my parameters or syntax in grub.conf.
   Below are three grub menu options.  The first two have the problem and
 the third is the genkernel that works fine.  Is there something wrong
 with the way the first two are?  Thanks.

 # This is a Manually built kernel with default settings.  kernel panic
 title Gentoo Linux x86 2.6.34-r12
 root (hd0,0)
 kernel /boot/kernel-2.6.34-gentoo-r12 root=/dev/hda3

 # This is a Manually built kernel with default settings.  kernel panic
 title Gentoo Linux x86 2.6.34-r12
 root (hd0,0)
 kernel /boot/kernel-2.6.34-gentoo-r12 root=/dev/hda3 vga=791
 splash=verbose video=vesafb:mtrr,ywrap udev
 # From Documentation: video=uvesafb:mtrr:3,ywrap,1024x768...@85

 # This a genkernel and works
 title Gentoo Linux x86 2.6.34-r6
 root (hd0,0)
 kernel /boot/kernel-genkernel-x86_64-2.6.34-gentoo-r6 init=/linuxrc
 ramdisk=8192 real_root=/dev/hda3 vga=791 splash=verbose
 video=vesafb:mtrr,ywrap udev
 initrd /boot/initramfs-genkernel-x86_64-2.6.34-gentoo-r6

 --dhk




 When I get a kernel panic, it's usually because I'm pointing to the
 wrong partition or I forgot to include the file system that the root
 partition uses.  Since the one you made and the genkernel match up, I
 would check to make sure you included the correct file system and it
 is BUILT IN not a module.

 Hope that helps or someone else comes up with another idea.
 He does not have the ramdisk or initrd in his manual ones.  That would
 do it right there.  Be sure to generate the ramdisk as well.
 

The documentation doesn't say to use ramdisk or initrd for a manual
kernel, only the genkernel.




Re: [gentoo-user] Re: world symlinking

2010-11-04 Thread Peter Humphrey
On Thursday 04 November 2010 17:01:45 Alan McKinnon wrote:

 It's not package.keywords, it's package.accept_keywords. The old name
 will be accepted for a while but I don't know when that warranty
 expires. Do this:
 
 sys-apps/portage-**
 
 in package.{accept_,}keywords

accept_keywords did it. Thanks. I didn't know about that either.

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



Re: [gentoo-user] kernel panic on manually built kernel

2010-11-04 Thread covici
dhk dhk...@optonline.net wrote:

 On 11/04/2010 02:12 PM, cov...@ccs.covici.com wrote:
  Dale rdalek1...@gmail.com wrote:
  
  dhk wrote:
  I've always used the genkernel, but now am trying to make a manual one.
I think the kernel is alright since all the default setting seemed
  reasonable and the build was easy enough.  However, when I boot to it I
  get a kernel panic and it complains about the root device /dev/hda3. So
  I think the problem has to do with my parameters or syntax in grub.conf.
Below are three grub menu options.  The first two have the problem and
  the third is the genkernel that works fine.  Is there something wrong
  with the way the first two are?  Thanks.
 
  # This is a Manually built kernel with default settings.  kernel panic
  title Gentoo Linux x86 2.6.34-r12
  root (hd0,0)
  kernel /boot/kernel-2.6.34-gentoo-r12 root=/dev/hda3
 
  # This is a Manually built kernel with default settings.  kernel panic
  title Gentoo Linux x86 2.6.34-r12
  root (hd0,0)
  kernel /boot/kernel-2.6.34-gentoo-r12 root=/dev/hda3 vga=791
  splash=verbose video=vesafb:mtrr,ywrap udev
  # From Documentation: video=uvesafb:mtrr:3,ywrap,1024x768...@85
 
  # This a genkernel and works
  title Gentoo Linux x86 2.6.34-r6
  root (hd0,0)
  kernel /boot/kernel-genkernel-x86_64-2.6.34-gentoo-r6 init=/linuxrc
  ramdisk=8192 real_root=/dev/hda3 vga=791 splash=verbose
  video=vesafb:mtrr,ywrap udev
  initrd /boot/initramfs-genkernel-x86_64-2.6.34-gentoo-r6
 
  --dhk
 
 
 
 
  When I get a kernel panic, it's usually because I'm pointing to the
  wrong partition or I forgot to include the file system that the root
  partition uses.  Since the one you made and the genkernel match up, I
  would check to make sure you included the correct file system and it
  is BUILT IN not a module.
 
  Hope that helps or someone else comes up with another idea.
  He does not have the ramdisk or initrd in his manual ones.  That would
  do it right there.  Be sure to generate the ramdisk as well.
  
 
 The documentation doesn't say to use ramdisk or initrd for a manual
 kernel, only the genkernel.
But if the configs are the same, you need to do the same things, so
generate your ramdisk and see what happens.  I do this all the time,
just use genkernel to generate the ramdisk and do all other things
manually.  I just make oldconfig when I upgrade and do make Bzimage and
make modules and make modules_install and copy the kernel to the right
place and update my lilo.conf.

-- 
Your life is like a penny.  You're going to lose it.  The question is:
How do
you spend it?

 John Covici
 cov...@ccs.covici.com



Re: [gentoo-user] kernel panic on manually built kernel

2010-11-04 Thread Yohan Pereira
On Thursday 04 November 2010 11:49:07 pm dhk wrote:

stupid queston but did you select the appropriate sata drivers ?

i ran into a similar problem just about an hr back becuase i forgot to include 
those .

-- 
- Yohan Pereira.



Re: [gentoo-user] Command-line wicd?

2010-11-04 Thread Peter Humphrey
On Thursday 04 November 2010 17:22:28 Neil Bothwick wrote:

 Wicd also has an X use flag. I've just tried emerge -p wicd on a
 headless (and Xless) box and it didn't try to pull in any X related
 packages. You'll have to try
 
 USE=-X -gtk -qt4 emerge -pvt wicd
 
 see what is pulling in X, add USE flags to the command, rinse and
 repeat.
 
 That it can be done is not in doubt, whether it is worth the effort
 is.
 
 Personally, I USE=eth0 when installing Gentoo on a laptop.

I see what you mean. I'll do that. Thanks all.

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



[gentoo-user] Re: VMware - Linux kernel yield() functionality is disabled.

2010-11-04 Thread Nikos Chantziaras

On 11/04/2010 06:43 PM, Mark Knecht wrote:

Hi,
When starting VMware-Player I get the following message:

The host's Linux kernel yield() functionality is disabled.
Multiprocessor virtual machines exhibit degraded performance without
yield(). Choose 'OK' to enable the sysctl 'kernel.sched_compat_yield'
or 'Cancel' to continue without yield().


Looking around at VMware's site they recommend changing
/etc/sysctl.conf to enable the feature:

http://kb.vmware.com/selfservice/microsites/search.do?language=en_UScmd=displayKCexternalId=1027987

I can do that but I'm pretty sure that if I edit that file then
I'll lose the edits some day when doing etc-update's.


Gentoo will never overwrite your /etc config files.  New files are 
created with an ._ prefix.  When that happens, portage tells you that 
N files in /etc/ need updating.  At that point, you either manually 
merge the changes or use a tool like dispatch-conf (I recommend this 
one) or etc-update.  And until you do so, the old files will be used.





Re: [gentoo-user] Re: VMware - Linux kernel yield() functionality is disabled.

2010-11-04 Thread Mark Knecht
On Thu, Nov 4, 2010 at 11:54 AM, Nikos Chantziaras rea...@arcor.de wrote:
 On 11/04/2010 06:43 PM, Mark Knecht wrote:

 Hi,
    When starting VMware-Player I get the following message:

 The host's Linux kernel yield() functionality is disabled.
 Multiprocessor virtual machines exhibit degraded performance without
 yield(). Choose 'OK' to enable the sysctl 'kernel.sched_compat_yield'
 or 'Cancel' to continue without yield().


    Looking around at VMware's site they recommend changing
 /etc/sysctl.conf to enable the feature:


 http://kb.vmware.com/selfservice/microsites/search.do?language=en_UScmd=displayKCexternalId=1027987

    I can do that but I'm pretty sure that if I edit that file then
 I'll lose the edits some day when doing etc-update's.

 Gentoo will never overwrite your /etc config files.  New files are created
 with an ._ prefix.  When that happens, portage tells you that N files in
 /etc/ need updating.  At that point, you either manually merge the changes
 or use a tool like dispatch-conf (I recommend this one) or etc-update.
  And until you do so, the old files will be used.

Yes, thanks Nikos. I do understand that part.

I tried dispatch-conf years ago and couldn't get the hang of it. It
was not clear to me what was old/new and all the rest of that.

My worry with etc-update is that I know, for the most part, all the
files I modify when doing an install so I know what to look for when
I'm selecting files to replace myself. However with that tool there's
a point where you might have 20 files that need updating, you look at
the list and nothing looks like what I changed and you hit -5 to tell
it to do everything. I know I'm going to overwrite sysctl.conf that
way because it's not in my mental list.

It's easy enough for me to keep a copy and fix it by hand since the
only place this option seems to matter is VMware and it's very clear
about what the problem is. I'll likely just go that way. This isn't a
problem that causes the machine not to boot or anything like that.

Cheers,
Mark



Re: [gentoo-user] flags: v4l and v4l2

2010-11-04 Thread Alan McKinnon
Apparently, though unproven, at 19:34 on Thursday 04 November 2010, James did 
opine thusly:

 Hello,
 
 
 My google is not sufficient to flesh out the difference
 (other than the obvious)  of these 2 flags.
 
 Where would I read about the deep, detailed difference
 in flags that appear similar in purpose?

$ grep v4l /var/portage/profiles/use.*
/var/portage/profiles/use.desc:v4l - Enables video4linux support
/var/portage/profiles/use.desc:v4l2 - Enable video4linux2 support

To grok that, you need to know a little about the video4linux project. It's 
safe to assume as step 1 that v4l builds support for video4linux (which is 
deprecated, moribund, obsolete or discarded depending on your point of view);
and v4l2 is support for the currently supported video4linux2 project.

Considering your line of work, you likely work with this and already know it.

I suppose there are tools that display info about flags (euse is good for the 
quick one-line description), but if I want to know what is actually being 
*done* with a USE flag, I look in the ebuild. Nothing quite like reading the 
code, eh?

equery depends shows info but it really just greps the portage tree or 
/var/lib/something with default settings (search installed packages only).
Reading the ebuild shows you the context too which often contains very 
valuable info. equery hasuse quickly shows installed packages that use a 
specified flag.

The ffmpeg ebuild shows that ffmpeg supports both projects, you just say which 
you want. The ebuild for sane-backends reveals:

RDEPEND=v4l? ( media-libs/libv4l )

which I'm certain is a current project using v4l2. Oops, initial assumption 
about flags above is probably wrong. Oh well, it's code, this happens. A lot.

 How would/should I know when flags are deprecated, or
 on the fast track to becoming deprecated?

$PORTDIR/package.mask has info about why things are masked
$PORTDIR/use*desc contains the one-line description of flags
$PORTDIR/profiles/ChangeLog has useful info about all sorts of stuff.
Anything in $PORTDIR with use in it's name is worth a look

 It there systematic (methologies/syntax) to
 discover such nuggets of knowledge?

Not that I ever found. It's more a case of familiarity with where things are 
found and a deep knowledge of grep :-)

And ChangeLogs are always the best source of info. That's true for almost all 
projects out there.


-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] flags: v4l and v4l2

2010-11-04 Thread Paul Hartman
On Thu, Nov 4, 2010 at 12:34 PM, James wirel...@tampabay.rr.com wrote:
 Hello,


 My google is not sufficient to flesh out the difference
 (other than the obvious)  of these 2 flags.

 Where would I read about the deep, detailed difference
 in flags that appear similar in purpose?

 How would/should I know when flags are deprecated, or
 on the fast track to becoming deprecated?

 It there systematic (methologies/syntax) to
 discover such nuggets of knowledge?

I don't know what you considered obvious, so excuse me if I'm
repeating what you already knew. :)

Start with the Gentoo USE flag list:
http://www.gentoo.org/dyn/use-index.xml

Though that doesn't tell you anything technical, it tells you that v4l
stands for video4linux. Google for video4linux and first result is
this page:
http://linux.bytesex.org/v4l2/

Which says:
[snip]
About v4l + v4l2

v4l
is the original video capture/overlay API of the linux kernel. It
appeared late the 2.1.x development cycle in the linux kernel.
v4l2
is the second generation of the video4linux API which fixes a
number of design bugs of the first version. It was integrated into the
standard kernel in 2.5.x.

Althrough v4l2 is integrated into the standard kernel a number of
drivers don't support the new v4l2 API yet, so we'll likely see v4l
and v4l2 coexist for some time.
[/snip]

The last line being key. There are 2 versions of the V4L API and not
everything uses the new one. So that's most likely why we have USE
flags for both versions in Gentoo, too.

The third result on Google is a gentoo-dev thread from 2006 about
those USE flags themselves:
http://www.mail-archive.com/gentoo-...@lists.gentoo.org/msg11831.html

My suggestion with these v4l v4l2 USE flags in particular:
Use V4L2 in your kernel, enable the V4L1 compatibility mode and
hopefully every package should work regardless of which version of V4L
it actually needs. Hopefully. :)



Re: [gentoo-user] Command-line wicd?

2010-11-04 Thread Alan McKinnon
Apparently, though unproven, at 19:40 on Thursday 04 November 2010, Willie 
Wong did opine thusly:

 On Thu, Nov 04, 2010 at 07:06:18PM +0200, Alan McKinnon wrote:
  Apparently, though unproven, at 18:55 on Thursday 04 November 2010, Peter
  
  Humphrey did opine thusly:
   I'm installing Gentoo on a Thinkpad laptop
  
  wicd is designed for laptops and mobile computers.
 
 Alan: time for new reading glasses?

Funny you say that. I just fixed mine after the dog chewed them and then I 
stood on them. fixed because they're not right and still wonky.

Damn, now I feel like a chop.

-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] Re: VMware - Linux kernel yield() functionality is disabled.

2010-11-04 Thread Alan McKinnon
Apparently, though unproven, at 21:03 on Thursday 04 November 2010, Mark 
Knecht did opine thusly:

 On Thu, Nov 4, 2010 at 11:54 AM, Nikos Chantziaras rea...@arcor.de wrote:
  On 11/04/2010 06:43 PM, Mark Knecht wrote:
  Hi,
 When starting VMware-Player I get the following message:
  
  The host's Linux kernel yield() functionality is disabled.
  Multiprocessor virtual machines exhibit degraded performance without
  yield(). Choose 'OK' to enable the sysctl 'kernel.sched_compat_yield'
  or 'Cancel' to continue without yield().
  
  
 Looking around at VMware's site they recommend changing
  /etc/sysctl.conf to enable the feature:
  
  
  http://kb.vmware.com/selfservice/microsites/search.do?language=en_UScmd
  =displayKCexternalId=1027987
  
 I can do that but I'm pretty sure that if I edit that file then
  I'll lose the edits some day when doing etc-update's.
  
  Gentoo will never overwrite your /etc config files.  New files are
  created with an ._ prefix.  When that happens, portage tells you that
  N files in /etc/ need updating.  At that point, you either manually
  merge the changes or use a tool like dispatch-conf (I recommend this
  one) or etc-update. And until you do so, the old files will be used.
 
 Yes, thanks Nikos. I do understand that part.
 
 I tried dispatch-conf years ago and couldn't get the hang of it. It
 was not clear to me what was old/new and all the rest of that.
 
 My worry with etc-update is that I know, for the most part, all the
 files I modify when doing an install so I know what to look for when
 I'm selecting files to replace myself. However with that tool there's
 a point where you might have 20 files that need updating, you look at
 the list and nothing looks like what I changed and you hit -5 to tell
 it to do everything. I know I'm going to overwrite sysctl.conf that
 way because it's not in my mental list.
 
 It's easy enough for me to keep a copy and fix it by hand since the
 only place this option seems to matter is VMware and it's very clear
 about what the problem is. I'll likely just go that way. This isn't a
 problem that causes the machine not to boot or anything like that.


I find conf-update much better than dispatch-conf and etc-update. It's curses-
based and displays the modified files in a tree structure by directory. Very 
intuitive display. And it's smart enough to know to just apply changes to 
files that differ only in whitespace for example.

I set aside a few minutes after an update to look at each file individually. 
The diff it shows is colorized which is a huge help. The only tricky part is 
doing a merge. It shows old and new and you have to say l or r for each 
chunk (a contiguous collection of changed lines). The only issue is when you 
want to tweak only one line in a multi-line chunk. It's rare, and I just use 
vi on those files.

Try conf-update, you might like it. It's a good middle-ground, I find.


-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] kernel panic on manually built kernel

2010-11-04 Thread Alan McKinnon
Apparently, though unproven, at 19:00 on Thursday 04 November 2010, dhk did 
opine thusly:

 On 11/04/2010 12:52 PM, Alan McKinnon wrote:
  Apparently, though unproven, at 18:34 on Thursday 04 November 2010, dhk
  did
  
  opine thusly:
  I've always used the genkernel, but now am trying to make a manual one.
  
   I think the kernel is alright since all the default setting seemed
  
  reasonable and the build was easy enough.  However, when I boot to it I
  get a kernel panic and it complains about the root device /dev/hda3. So
  I think the problem has to do with my parameters or syntax in grub.conf.
  
   Below are three grub menu options.  The first two have the problem and
  
  the third is the genkernel that works fine.  Is there something wrong
  with the way the first two are?  Thanks.
  
  Why did you think it a good idea to NOT post the *actual* error?
  
  Your grub entries are correct.
  
  I'll bet money that you built one or more of your chipset drivers,
  libata, or root filesystem driver as a module.
  
  These must not be modules, they must be built-in (otherwise you need an
  initrd)
  
  # This is a Manually built kernel with default settings.  kernel panic
  title Gentoo Linux x86 2.6.34-r12
  root (hd0,0)
  kernel /boot/kernel-2.6.34-gentoo-r12 root=/dev/hda3
  
  # This is a Manually built kernel with default settings.  kernel panic
  title Gentoo Linux x86 2.6.34-r12
  root (hd0,0)
  kernel /boot/kernel-2.6.34-gentoo-r12 root=/dev/hda3 vga=791
  splash=verbose video=vesafb:mtrr,ywrap udev
  # From Documentation: video=uvesafb:mtrr:3,ywrap,1024x768...@85
  
  # This a genkernel and works
  title Gentoo Linux x86 2.6.34-r6
  root (hd0,0)
  kernel /boot/kernel-genkernel-x86_64-2.6.34-gentoo-r6 init=/linuxrc
  ramdisk=8192 real_root=/dev/hda3 vga=791 splash=verbose
  video=vesafb:mtrr,ywrap udev
  initrd /boot/initramfs-genkernel-x86_64-2.6.34-gentoo-r6
  
  --dhk
 
 Thanks all, I check those suggestions and get back to you.
 
 The reason I didn't include the exact error is that I can't capture it.
  I'd have to write it on paper and then reboot to the working kernel.
 By then it doesn't seem to be in any of the logs.  I'll see what I can
 do about that.

The usual error is something like

panic: can't find root filesystem (dev/hda3)

or similar. It's so common when building your own kernel the first time, that 
if you post the gist of the error (doesn't have to be 100% exact), you'll get 
10 replies in an error from folk who've all made the same mistake themselves. 
Some of us more than once...

It's always missing drivers or (more usually) drivers built as modules.


-- 

alan dot mckinnon at gmail dot com



Re: [gentoo-user] kernel panic on manually built kernel

2010-11-04 Thread Alan McKinnon
Apparently, though unproven, at 19:36 on Thursday 04 November 2010, dhk did 
opine thusly:

 On 11/04/2010 01:08 PM, Neil Bothwick wrote:
  On Thu, 04 Nov 2010 13:00:21 -0400, dhk wrote:
  The reason I didn't include the exact error is that I can't capture it.
  
   I'd have to write it on paper and then reboot to the working kernel.
  
  Which is a lot less work than trying to fix the problem by guesswork.
 
 I have /boot as ext2 and the rest ext3 with lvm2.
 
 $ df -k
 Filesystem   1K-blocks  Used Available Use% Mounted on
 /dev/hda3  8262068712028   7130344  10% /
 udev 10240   336  9904   4% /dev
 /dev/mapper/vg-usr15481840  12867912   1827496  88% /usr
 /dev/mapper/vg-home   51606140  42781428   6203272  88% /home
 /dev/mapper/vg-opt 5160576   2635064   2263368  54% /opt
 /dev/mapper/vg-var15481840   2387500  12307908  17% /var
 /dev/mapper/vg-tmp 2064208 68708   1890644   4% /tmp
 shm 512572 0512572   0% /dev/shm
 
 The ext2 wasn't compiled in, so I compiled it in and rebooted.  I got
 the same error.
 
 kernel panic - not syncing : VFS: unable to mount root FS on
 unknown-block (2,0)
 
 This is what I had.
   Second extended fs support   │ │
   │ │* Ext3 journalling file system support
   │ │
   │ │[ ]   Default to 'data=ordered' in ext3
   │ │
   │ │[*]   Ext3 extended attributes
   │ │
   │ │[*] Ext3 POSIX Access Control Lists
   │ │
   │ │[*] Ext3 Security Labels
 
 This is what I added.
 * Second extended fs support   │ │
   │ │[ ]   Ext2 extended attributes (NEW)
   │ │
   │ │[ ]   Ext2 execute in place support (NEW)
   │ │
   │ │* Ext3 journalling file system support
   │ │
   │ │[ ]   Default to 'data=ordered' in ext3
   │ │
   │ │[*]   Ext3 extended attributes
   │ │
   │ │[*] Ext3 POSIX Access Control Lists
   │ │
   │ │[*] Ext3 Security Labels
   │ │
 
 Thanks,
 
 --dhk


Is your / partition in or out of the lvm?


-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] Re: world symlinking

2010-11-04 Thread Alan McKinnon
Apparently, though unproven, at 20:35 on Thursday 04 November 2010, Peter 
Humphrey did opine thusly:

 On Thursday 04 November 2010 17:01:45 Alan McKinnon wrote:
  It's not package.keywords, it's package.accept_keywords. The old name
  will be accepted for a while but I don't know when that warranty
  expires. Do this:
  
  sys-apps/portage-**
  
  in package.{accept_,}keywords
 
 accept_keywords did it. Thanks. I didn't know about that either.

I found it myself by chance. As luck would have it, I now forget where it is, 
but I *think* it's in the portage(5) man page. I tend to read all portage's 
man pages about once a month or so just to keep current and see what might 
have changed.

$PORTDIR/profiles/package.mask is an amazing source of info too. Changes to 
mask values are documented there. Unfortunately this nugget of info about the 
change to portage isn't in that file, Zac put it in 
$PORTDIR/profiles/ChangeLog and references bug #336692


-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] kernel panic on manually built kernel

2010-11-04 Thread Neil Bothwick
On Thu, 04 Nov 2010 13:36:25 -0400, dhk wrote:

 The ext2 wasn't compiled in, so I compiled it in and rebooted.  I got
 the same error.
 
 kernel panic - not syncing : VFS: unable to mount root FS on
 unknown-block (2,0)

It's saying unknown block, not unknown fs. I suspect you haven't compiled
in the drivers for your hard disk controller.


-- 
Neil Bothwick

Philosophical error: Demonstrate the existence of a key to continue


signature.asc
Description: PGP signature


Re: [gentoo-user] Re: VMware - Linux kernel yield() functionality is disabled.

2010-11-04 Thread Neil Bothwick
On Thu, 4 Nov 2010 21:20:25 +0200, Alan McKinnon wrote:

 I find conf-update much better than dispatch-conf and etc-update. It's
 curses- based and displays the modified files in a tree structure by
 directory. Very intuitive display. And it's smart enough to know to
 just apply changes to files that differ only in whitespace for example.

+1 for conf-update


-- 
Neil Bothwick

Press Return to Continue - known as The Mail Menupause.


signature.asc
Description: PGP signature


Re: [gentoo-user] Re: VMware - Linux kernel yield() functionality is disabled.

2010-11-04 Thread Mark Knecht
On Thu, Nov 4, 2010 at 12:53 PM, Neil Bothwick n...@digimed.co.uk wrote:
 On Thu, 4 Nov 2010 21:20:25 +0200, Alan McKinnon wrote:

 I find conf-update much better than dispatch-conf and etc-update. It's
 curses- based and displays the modified files in a tree structure by
 directory. Very intuitive display. And it's smart enough to know to
 just apply changes to files that differ only in whitespace for example.

 +1 for conf-update


I'll give it a try next time around.

Thanks guys!

- Mark



Re: [gentoo-user] Setting up two monitors

2010-11-04 Thread Mick
On Thursday 04 November 2010 15:36:37 you wrote:
 On 4 November 2010 09:24, YoYo Siska y...@gl.ksp.sk wrote:

  Just to make it a bit more clear:
  xrandr is used to setup the resolution and position of the monitors
  (you can make them clone each other, overlap, be alongside / above /
  below the other...)
  
  How the windows / panels behave depends on your windows manager/desktop
  environment (or on the panels themselves). X server provides them with
  enough information about the layout of the monitors, and they have to
  use it. So it depends on which DE or window manager you use...
  
  In kde3,  there was a configuration option for kwin, whether windows
  should be maximized across all screens  or on single screen...
  I can't find it in kde4 settings right now, but I have only single head
  card here and I guess it would be under Multiple Monitors option in
  settings, which just says You don't appear to have this configuration
  for me ;)
  
  Plasma in kde4 manages things per monitor, so panels should be only
  on one monitor (and you can't get them across multiple monitors, you
  have to have a separate panel on each)...
  
  Recent versions of fluxbox allow you to have the toolbar on a certain
  monitor (head) or across all heads... Don't know how it is when
  maximizing windows (some time ago I used to patch it to make it an
  option, didn't play with it lately...)
  
  I can't say anything for gnome or other DEs/WMs...
 
 Thank you all for your responses!
 
 The box in question is running KDE.
 
 The first thing I tried was to go into Systemsettings and play with
 Display settings in there.  Nothing I tried would take.  Only xranrd
 on the CLI brought some results.  Even so, rebooting means that I have
 to rerun the stanza to make the new large monitor on the DVI port
 auto-adjust.  It seems that the card sees the VGA as the primary
 monitor and the DVI as the secondary monitor, when I really want them
 the other way around.
 
 Any way, I'll have another go at the Display settings in the KDE
 Systemsettings and see if I am missing something in there.

OK, I had some more time to look at this.  As I said above, systemsettings 
changes won't take.  Having set the DVI at 1920x1080(auto) and to be on the 
right of VGA-0, I click on Apply and the DVI on the right of VGA reverts to 
'Clone of' and the size stays the same as the VGA (1280x1024).

Then I ran xrandr again as Florian suggested and this is what it shows:

$ xrandr --output DVI-0 --auto  --this gives 1920x1080
$ xrandr --output DVI-0 --right-of-VGA-0 --verbose
xrandr: screen cannot be larger than 1920x1920 (desired size 3200x1080)

As a result it does not place the DVI on the right of the VGA driven monitor.  
Can you please explain this error to me - why does it complain?
-- 
Regards,
Mick


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


Re: [gentoo-user] kernel panic on manually built kernel

2010-11-04 Thread Stroller

On 4/11/2010, at 5:36pm, dhk wrote:
 ...
 This is what I had.
   Second extended fs support   │ │
  │ │* Ext3 journalling file system support
  │ │
  │ │[ ]   Default to 'data=ordered' in ext3
  │ │
  │ │[*]   Ext3 extended attributes
  │ │
  │ │[*] Ext3 POSIX Access Control Lists
  │ │
  │ │[*] Ext3 Security Labels
 
 This is what I added.
 * Second extended fs support   │ │
  │ │[ ]   Ext2 extended attributes (NEW)
  │ │
  │ │[ ]   Ext2 execute in place support (NEW)
  │ │
  │ │* Ext3 journalling file system support
  │ │
  │ │[ ]   Default to 'data=ordered' in ext3
  │ │
  │ │[*]   Ext3 extended attributes
  │ │
  │ │[*] Ext3 POSIX Access Control Lists
  │ │
  │ │[*] Ext3 Security Labels
  │ │

The kernel configuration is not terribly readable when posted in this format. 
Might I suggest posting the whole .config file as an attachment, perhaps 
gzipped? You can transfer it from the non-booting machine to the PC on which 
you have internet access by using scp from the LiveCD.

Stroller.







[gentoo-user] [OT] Best way to restrict home web browsing

2010-11-04 Thread Jake Moe
A bit off topic, but this group seems to know a lot about this sort of
subject.

I've caught the 11 year old at home browsing sites he really shouldn't
be.  I'd like to implement some sort of filter so that he can only
access approved sites, but myself and my o/h can browse whatever we
want.  What is the best way to implement this?  A firewall?  Some sort
of web proxy?  Something else?  I've got a few Gentoo computers, one
that tri-boots between Windows XP (for work), Windows 7 (for games) and
Gentoo (for everything else), and one Windows laptop (my o/h won't give
it up) connecting to one wireless AP/router.

I'm thinking maybe a single firewall would be the way to go, but I
suppose it'd have to something that we could log into to let it know
who's who; I've never heard of a firewall that does that.  Otherwise,
maybe a software firewall on each PC, but it'd be a bit cumbersome
across all the PCs, unless it had some sort of central management server.

A web search seems to show a Squid proxy may be the way to go, as well.
but I'm not familiar enough with that to know if it'll really do what I
want.

Any help/suggestions would be appreciated.  Thanks.

Jake Moe




Re: [gentoo-user] Re: VMware - Linux kernel yield() functionality is disabled.

2010-11-04 Thread Stroller

On 4/11/2010, at 7:20pm, Alan McKinnon wrote:
 ...
 I find conf-update much better than dispatch-conf and etc-update. It's curses-
 based and displays the modified files in a tree structure by directory. Very 
 intuitive display. And it's smart enough to know to just apply changes to 
 files that differ only in whitespace for example.

I believe etc-update is smart about whitespace, too. At least, it will often 
report that it is automatically handling trivial changes in a number of files.

I will have to try conf-update - its interface sounds nice.

Stroller.




Re: [gentoo-user] [OT] Best way to restrict home web browsing

2010-11-04 Thread Matthew Summers
On Thu, Nov 4, 2010 at 3:41 PM, Jake Moe jakesaddr...@gmail.com wrote:

 A bit off topic, but this group seems to know a lot about this sort of
 subject.

 I've caught the 11 year old at home browsing sites he really shouldn't
 be.  I'd like to implement some sort of filter so that he can only
 access approved sites, but myself and my o/h can browse whatever we
 want.  What is the best way to implement this?  A firewall?  Some sort
 of web proxy?  Something else?  I've got a few Gentoo computers, one
 that tri-boots between Windows XP (for work), Windows 7 (for games) and
 Gentoo (for everything else), and one Windows laptop (my o/h won't give
 it up) connecting to one wireless AP/router.

 I'm thinking maybe a single firewall would be the way to go, but I
 suppose it'd have to something that we could log into to let it know
 who's who; I've never heard of a firewall that does that.  Otherwise,
 maybe a software firewall on each PC, but it'd be a bit cumbersome
 across all the PCs, unless it had some sort of central management server.

 A web search seems to show a Squid proxy may be the way to go, as well.
 but I'm not familiar enough with that to know if it'll really do what I
 want.

 Any help/suggestions would be appreciated.  Thanks.

 Jake Moe



Hi Jake,

This is something I wish there was more information about free/open
solutions available to assist parents in this exact situation.

So, dansguardian [1] is a good place to start, and here [2] is a nice
article on linux.com that provides an actual solution.

I think it would be really helpful if you could document what you learn as
you traverse this situation, so that other may benefit as well. Perhaps a
gentoo forum topic in addition to this ML might be appropriate.

Also, I have seen around some talk about running a setup like this on a WRT
router running DD-WRT and another system called packetprotector running
openwrt [3]


[1] http://dansguardian.org/
[2] http://www.linux.com/archive/feature/113733
[3] http://packetprotector.org/

Cheers and good luck,
Matt
-- 
Matthew W. Summers
quantumsummers | trustee, gentoo foundation


Re: [gentoo-user] [OT] Best way to restrict home web browsing

2010-11-04 Thread Stroller

On 4/11/2010, at 8:41pm, Jake Moe wrote:
 ...
 I've caught the 11 year old at home browsing sites he really shouldn't
 be.  I'd like to implement some sort of filter so that he can only
 access approved sites, but myself and my o/h can browse whatever we
 want.  What is the best way to implement this?  A firewall?  Some sort
 of web proxy?  Something else?

This is something that you can do in all sorts of complicated manners. But it's 
really not realistic for one person to maintain a list of porn sites, and even 
updating lists that you obtain from elsewhere can be a chore. The best 
blocklists are sold on a subscription basis, and so on.

The easiest way is probably to use OpenDNS, and sign up for an account with 
their filters. You can point your router to the OpenDNS servers and then it 
will serve DNS to all the client machines on the LAN. If you want to bypass it 
then you change the DNS on your own PC to point to an uncensored one.

A very small minority of capable employees and teenagers are probably capable 
of bypassing most any restriction. Based on the OpenDNS suggestion, the next 
level of security is to block at the router all DNS packets from inside the 
LAN, unless they're going to the router itself (which gets its DNS from OpenDNS 
on the filtered account). 

Stroller.




Re: [gentoo-user] Setting up two monitors

2010-11-04 Thread Florian Philipp
Am 04.11.2010 21:17, schrieb Mick:
[...]
 
 Then I ran xrandr again as Florian suggested and this is what it shows:
 
 $ xrandr --output DVI-0 --auto  --this gives 1920x1080
 $ xrandr --output DVI-0 --right-of-VGA-0 --verbose
 xrandr: screen cannot be larger than 1920x1920 (desired size 3200x1080)
 
 As a result it does not place the DVI on the right of the VGA driven monitor. 
  
 Can you please explain this error to me - why does it complain?

Hmm, do you still have an xorg.conf file or changed settings in
/etc/X11/xorg.conf.d? If you have, can you post it please?

I think it is related to the
'SubSection Device
Virtual xdim ydim'
setting but I'm not sure. In any case, if I were you, I'd try running
without any xorg.conf and see whether auto-configuration can handle it.
Oh, and if you are still on x11-base/xorg-server-1.7.*, please try
x11-base/xorg-server-1.8.2 with USE=udev -hal

Hope this helps,
Florian Philipp



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] usb error log spam

2010-11-04 Thread Adam Carter
ou probably have CONFIG_USB_DEBUG or CONFIG_USB_STORAGE_DEBUG enabled in

  your kernel.
 
 
 no, it's not:
 CONFIG_USB_DEBUG is not set
 That also why, i think this more a error message than a debug

 Looks like debug to me, and since all the entries are labeled 'usb-storage'
it strongly points to STORAGE_DEBUG :)


Re: [gentoo-user] ldap client authentication

2010-11-04 Thread Adam Carter
On Fri, Nov 5, 2010 at 2:51 AM, James j...@nc.rr.com wrote:

 Bump -- any ideas?

 In a tough spot right now trying to wrap this LDAP project up and I'm
 stuck. :(

 -james


You seem to be using ldap sometimes and ldaps other times in your configs.
Suggest you try getting everything working with ldap first, then convert
everything to ldaps (to get SSL working) once you have the application layer
sorted.


Re: [gentoo-user] Re: VMware - Linux kernel yield() functionality is disabled.

2010-11-04 Thread Adam Carter

 I will have to try conf-update - its interface sounds nice.


If you run X, then cfg-update, configured to use meld for the
diffing/editing via GUI, is nice and clear.


Re: [gentoo-user] Re: VMware - Linux kernel yield() functionality is disabled.

2010-11-04 Thread Alex Schuster
Am 04.11.2010 20:20, schrieb Alan McKinnon:

 Try conf-update, you might like it. It's a good middle-ground, I find.

I like cfg-update [*]. I use it with kdiff3, but you can use about any
merge tool you like, be it GUI or CLI. Looks quite sophisticated to me.
I only worry that it is not being developed any more, and needs a new
maintainer for a long time now. But it still seems to work very well.

Features:
- updating multiple machines from a single location
  (see /etc/cfg-update.hosts)
- updating with GUI or CLI tools of your choice
  (see /etc/cfg-update.conf)
- support for Portage and Paludis packagemanagers
  (via hooks)
- automatic updating of unmodified config files and
  unmodified binaries
- automatic 3-way merging of modified config files
  (only if backup of previous update is found)
- the above means that the script does more automatic
  updates the longer you use it
- it correctly handles file2link, link2file and link2link
  situations
- it creates backups before it touches your files so
  you can abort an update or restore files afterwards
- you can use the --automatic-only option for scheduling
  with cronjobs or other scripts
- supported GUI merge tools: xxdiff, kdiff3, meld, gtkdiff,
  tkdiff, gvimdiff
- supported CLI merge tools: vimdiff, sdiff, imediff2
- all features documented in the manpage (man cfg-update)

[*] http://forums.gentoo.org/viewtopic.php?t=86622

Wonko



Re: [gentoo-user] Setting up two monitors

2010-11-04 Thread Mick
On Thursday 04 November 2010 21:36:46 Florian Philipp wrote:
 Am 04.11.2010 21:17, schrieb Mick:
 [...]
 
  Then I ran xrandr again as Florian suggested and this is what it shows:
  
  $ xrandr --output DVI-0 --auto  --this gives 1920x1080
  $ xrandr --output DVI-0 --right-of-VGA-0 --verbose
  xrandr: screen cannot be larger than 1920x1920 (desired size 3200x1080)
  
  As a result it does not place the DVI on the right of the VGA driven
  monitor. Can you please explain this error to me - why does it complain?
 
 Hmm, do you still have an xorg.conf file or changed settings in
 /etc/X11/xorg.conf.d? If you have, can you post it please?
 
 I think it is related to the
 'SubSection Device
   Virtual xdim ydim'
 setting but I'm not sure. In any case, if I were you, I'd try running
 without any xorg.conf and see whether auto-configuration can handle it.
 Oh, and if you are still on x11-base/xorg-server-1.7.*, please try
 x11-base/xorg-server-1.8.2 with USE=udev -hal

Thanks again Florian,

I do not have an xorg.conf.  I am running x11-base/xorg-server-1.7.7-r1.  I 
have been waiting on 1.8.2 to go stable.

Googling around I suspect I know what the error is:

$ xrandr -q
Screen 0: minimum 320 x 200, current 1280 x 1024, maximum 1920 x 1920

is telling me that my ATI X600 can only do a max of 1920 x 1920.  Above that I 
will need to set up a virtual screen (and it won't be able to do dri).

Without an xorg.conf file it is failing because it is not given a virtual 
screen to expand its physical capability beyond 1920x1920.  Any idea if I can 
set up a virtual screen using the .fdi files?

Otherwise it is time for me to upgrade to 1.8.2 or perhaps 1.9.2?
-- 
Regards,
Mick


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


Re: [gentoo-user] ldap client authentication

2010-11-04 Thread James
LDAP and LDAPS work fine -- as I indicated, the ldapsearch queries
work without any issues. Thus the issue is, more or less, related
directly to PAM and LDAP together.

At some point during troubleshooting I switched to LDAP simply so that
I could sniff the packets going across the wire and see what was going
on.

This is purely a pam_ldap configuration problem as far as I can tell.

Any thoughts on how to go about troubleshooting this would be greatly
appreciated.

-james

On Thu, Nov 4, 2010 at 17:58, Adam Carter adamcart...@gmail.com wrote:
 You seem to be using ldap sometimes and ldaps other times in your configs.
 Suggest you try getting everything working with ldap first, then convert
 everything to ldaps (to get SSL working) once you have the application layer
 sorted.




[gentoo-user] Re: flags: v4l and v4l2

2010-11-04 Thread James
Paul Hartman paul.hartman+gentoo at gmail.com writes:

 I don't know what you considered obvious, so excuse me if I'm
 repeating what you already knew. :)


OK (Alan) and Paul. I should have explained that v4l and
v4l2 were just examples. Sure, I know about them. Why
is v4l still around? Some package somewhere with some old
kernel probably still needs it.. one man's deprecated cruft
is another man's gotta_have_crutch..

Lots of good information specific to those flags (Alan), but,
as I suspected, no general quick reference on a given flag,
with any sort of detail. Look here what I use from my .bashrc:

# USE flag settings hack by Ciaran McCreesh:
explainuseflag(){ sed -ne s,^\([^ ]*:\)\?$1 - ,,p 
$(portageq portdir)/profiles/use.{,local.}desc; }
alias ef=explainuseflag


ONE _OFF hunting around with some of the tools/methods
Alan mentioned or googling or hacks from wherever. WE
can do better.

Exactly what I expected and hoped I was wrong. As the DOC
team discusses opening up things a bit (Git vs wiki)
I thought I'd do a little test. Wouldn't it be nice
if (gentoo) documentation was expanded as surely USE flags
have some generic meaning and a (package) specific meaning
(sometimes) found deeper in the ebuild or code elsewhere.
Something maybe a little more systematic would be keen, methinks.
After all that work alan did, will it be assimilated
into the (gentoo/borg) collective? 

Maybe I'm rambling, maybe I expect too much, maybe I dream
of a documentation system, that is open to many folks easily
injecting knowledge therein.

Maybe, I dream about gentoo too much...

Oh well, thanks for participating in my little experiment.

(apologies in advance).

James




Re: [gentoo-user] usb error log spam

2010-11-04 Thread Brennan Shacklett
On 11/4/10, Adam Carter adamcart...@gmail.com wrote:
 ou probably have CONFIG_USB_DEBUG or CONFIG_USB_STORAGE_DEBUG enabled in

  your kernel.
 
 
 no, it's not:
 CONFIG_USB_DEBUG is not set
 That also why, i think this more a error message than a debug

 Looks like debug to me, and since all the entries are labeled
 'usb-storage'
 it strongly points to STORAGE_DEBUG :)


I used to have those messages as well.
They are not errors, it is a kernel config option.
I cannot remember the exact option, but it is either one of the usb
debug options such as CONFIG_USB_STORAGE_DEBUG or one of the scsi
debug options.



Re: [gentoo-user] Re: flags: v4l and v4l2

2010-11-04 Thread Brennan Shacklett
On 11/4/10, James wirel...@tampabay.rr.com wrote:
 Paul Hartman paul.hartman+gentoo at gmail.com writes:

 I don't know what you considered obvious, so excuse me if I'm
 repeating what you already knew. :)


 OK (Alan) and Paul. I should have explained that v4l and
 v4l2 were just examples. Sure, I know about them. Why
 is v4l still around? Some package somewhere with some old
 kernel probably still needs it.. one man's deprecated cruft
 is another man's gotta_have_crutch..

 Lots of good information specific to those flags (Alan), but,
 as I suspected, no general quick reference on a given flag,
 with any sort of detail. Look here what I use from my .bashrc:

 # USE flag settings hack by Ciaran McCreesh:
 explainuseflag(){ sed -ne s,^\([^ ]*:\)\?$1 - ,,p
 $(portageq portdir)/profiles/use.{,local.}desc; }
 alias ef=explainuseflag


 ONE _OFF hunting around with some of the tools/methods
 Alan mentioned or googling or hacks from wherever. WE
 can do better.

 Exactly what I expected and hoped I was wrong. As the DOC
 team discusses opening up things a bit (Git vs wiki)
 I thought I'd do a little test. Wouldn't it be nice
 if (gentoo) documentation was expanded as surely USE flags
 have some generic meaning and a (package) specific meaning
 (sometimes) found deeper in the ebuild or code elsewhere.
 Something maybe a little more systematic would be keen, methinks.
 After all that work alan did, will it be assimilated
 into the (gentoo/borg) collective?

 Maybe I'm rambling, maybe I expect too much, maybe I dream
 of a documentation system, that is open to many folks easily
 injecting knowledge therein.

 Maybe, I dream about gentoo too much...

 Oh well, thanks for participating in my little experiment.

 (apologies in advance).

 James


The quse command in app-portage/gentoolkit is useful for finding a
quick definition of a use flag. You go quse -D name of flag and it
will give you the global definition (if it exists), as well as local
definitions for packages in which the use flag does something
different.

For instance this is the output from quse -D udev:

 global:udev: Enable sys-fs/udev integration (device discovery, power
and storage device support, etc)
 local:udev:gnome-base/gvfs: Enable udev base replacement code for cdda feature
 local:udev:sys-fs/ntfs3g: Install udev rule to make udisks use
ntfs-3g instead of the kernel NTFS driver.

Hopefully this helps, I am not sure if this is what you meant.



Re: [gentoo-user] ldap client authentication

2010-11-04 Thread James
Things just got more interesting.

I just copied my /etc/ldap.conf file over from my Gentoo box to an
Ubuntu box -- it works without a single hitch.

I'm about to rip my hair out here...any ideas on where I can start
troubleshooting this?

- openssh versions are very similar
- newer nss_ldap on gentoo
- newer pam_ldap on gentoo

Thoughts would be greatly appreciated.

-james

On Thu, Nov 4, 2010 at 23:48, James j...@nc.rr.com wrote:
 LDAP and LDAPS work fine -- as I indicated, the ldapsearch queries
 work without any issues. Thus the issue is, more or less, related
 directly to PAM and LDAP together.

 At some point during troubleshooting I switched to LDAP simply so that
 I could sniff the packets going across the wire and see what was going
 on.

 This is purely a pam_ldap configuration problem as far as I can tell.

 Any thoughts on how to go about troubleshooting this would be greatly
 appreciated.

 -james

 On Thu, Nov 4, 2010 at 17:58, Adam Carter adamcart...@gmail.com wrote:
 You seem to be using ldap sometimes and ldaps other times in your configs.
 Suggest you try getting everything working with ldap first, then convert
 everything to ldaps (to get SSL working) once you have the application layer
 sorted.





[gentoo-user] Re: VMware - Linux kernel yield() functionality is disabled.

2010-11-04 Thread Nikos Chantziaras

On 11/04/2010 09:03 PM, Mark Knecht wrote:

On Thu, Nov 4, 2010 at 11:54 AM, Nikos Chantziarasrea...@arcor.de  wrote:

On 11/04/2010 06:43 PM, Mark Knecht wrote:

 [...]
Looking around at VMware's site they recommend changing
/etc/sysctl.conf to enable the feature:
 [...]
I can do that but I'm pretty sure that if I edit that file then
I'll lose the edits some day when doing etc-update's.


Gentoo will never overwrite your /etc config files.  New files are created
with an ._ prefix.  When that happens, portage tells you that N files in
/etc/ need updating.  At that point, you either manually merge the changes
or use a tool like dispatch-conf (I recommend this one) or etc-update.
  And until you do so, the old files will be used.


Yes, thanks Nikos. I do understand that part.

I tried dispatch-conf years ago and couldn't get the hang of it. It
was not clear to me what was old/new and all the rest of that.

My worry with etc-update is that I know, for the most part, all the
files I modify when doing an install so I know what to look for when
I'm selecting files to replace myself. However with that tool there's
a point where you might have 20 files that need updating, you look at
the list and nothing looks like what I changed and you hit -5 to tell
it to do everything. I know I'm going to overwrite sysctl.conf that
way because it's not in my mental list.


Specifically for sysctl.conf, when you open it, you will see this at the 
bottom of it:


  # YOUR OWN CUSTOM STUFF BELOW

That means it's very easy to copy whatever you inserted at the end, do 
the update, and then paste it back.


Also, I have a modified sysctl.conf too (a swapiness tweak), but 
updating baselayout (the package that owns that file) didn't actually 
install a new copy of it, presumably because all my changes were below 
the YOUR OWN STUFF line.  Many ebuilds are smart about updating /etc 
files; and sometimes, they don't install new ones, but directly modify 
existing ones to selectively add or remove stuff.