Re: [gentoo-user] Latest unstable ntp not generating ntp.drift file.

2011-01-04 Thread Thanasis
on 01/05/2011 09:39 AM Dale wrote the following:
> Thanasis wrote:
>> date 0101010101&&  /etc/init.d/ntpd restart&&  date
>
> I got this:
>
> Jan  1 01:05:16 localhost ntpd[5709]: time correction of 315880203
> seconds exceeds sanity limit (1000); set clock manually to the correct
> UTC time.
>
> I was pretty sure it would exceed its adjustment but thought it worth
> a try.  At least it complains.  lol
>
> Dale
>
> :-)  :-)
>
>
Have you set "-s" in its startup options and does directory /var/empty
exist?

Here is my /etc/conf.d/ntpd :

# /etc/conf.d/ntpd: config file for openntpd's ntpd

NTPD_HOME=/var/empty

# See ntpd(8) man page ... some popular options:
#  -s   Set the time immediately at startup
NTPD_OPTS="-s"



Re: [gentoo-user] Latest unstable ntp not generating ntp.drift file.

2011-01-04 Thread Thanasis
Try the following and see if it resets time correctly

date 0101010101 && /etc/init.d/ntpd restart && date




Re: [gentoo-user] Slotted PHP behavior

2011-01-04 Thread Adam Carter
> > I had a similar problem before and I did solve it by running this
> command:
> > eselect php set apache2 php5.3. I believe I get this command from a
> Gentoo
> > official PHP guide.
> >
> > Hung
>
> Thank you, that fixed it.  I'm getting some errors in squirrelmail but
> functionality seems to be intact.
>
> Since things seem to be working with php-5.3.4, how can I get rid of
> the older version of php that must be installed in another slot?  I'm
> hoping that simplifies things a bit.  PHP on Gentoo just got more
> complicated and all I need out of it is squirrelmail.
>

also;
eselect php list cli

and you may need to

eselect php set cli php5.3


Re: [gentoo-user] trackpoint *and* trackpad

2011-01-04 Thread Mick
On Wednesday 05 January 2011 04:42:53 James wrote:
> All,
> 
> Has anyone gotten both the trackpad and trackpoint on a t400 to work
> simultaneously? I can't seem to get it to work. Here are the relevant
> sections of my xorg.conf file.
> 
> Section "ServerLayout"
> Identifier "Layout0"
> Screen  0  "Screen0" 0 0
> InputDevice"Keyboard0" "CoreKeyboard"
> #InputDevice"TrackPoint" "CorePointer"
> InputDevice"TouchPad" "CorePointer"
> EndSection
> 
> Section "InputDevice"
> Identifier "TrackPoint"
> Driver "mouse"
> Option "Protocol"
> Option "Device" "/dev/input/mouse1"
> Option "Emulate3Buttons" "no"
> Option "ZAxisMapping" "4 5"
> EndSection
> 
> 
> 
> Section "InputDevice"
> Identifier "TouchPad"
> Driver   "synaptics"
> Option   "Device" "/dev/input/mouse0"
> Option   "Protocol" "auto-dev"
> Option   "VertEdgeScroll" "on"
> Option   "HorizEdgeScroll" "on"
> Option   "VertTwoFingerScroll" "on"
> Option   "HorizTwoFingerScroll" "on"
> Option   "CornerCoasting" "on"
> #Option   "MinSpeed" "0.40"
> #Option   "MaxSpeed" "0.65"
> #Option   "AccelFactor" "0.030"
> Option   "LockedDrags" "on"
> Option   "LockedDragTimeout" "5000"
> Option   "UpDownScrolling" "on"
> Option   "TapButton1" "1"
> Option   "TapButton2" "2"
> Option   "TapButton3" "3"
> Option   "CircularScrolling" "on"
> Option   "CircScrollTrigger" "2"
> #Option   "CircScrollDelta" "0.1"
> #Option   "CircScrollTrigger" "3"
> Option   "SHMConfig" "on"
> EndSection
> 
> Section "InputDevice"
> # generated from default
> Identifier "Keyboard0"
> Driver "kbd"
> EndSection
> 
> Interestingly enough this same configuration seemed to work quite well
> for a friend of mine who has a T500 or similar model.
> 
> Anything I'm missing here? Thoughts / help would be appreciated!

Do things change if you add:

Option "AllowEmptyInput" "off"

in Section "ServerLayout"?
-- 
Regards,
Mick


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


Re: [gentoo-user] Re: Re: Changing boot device with 2.6.36

2011-01-04 Thread Mick
On Wednesday 05 January 2011 00:55:49 Alex Schuster wrote:
> Dale writes:
> > Alan McKinnon wrote:
> >> Apparently, though unproven, at 15:18 on Tuesday 04 January 2011,
> >> Stroller did
> >> 
> >> opine thusly:
> >>> I found numerous references to this syntax going back to 2005 or
> >>> so, and some major distros seem to use it as the default way of
> >>> describing "root=" to the kernel.
> >>> 
> >>> http://www.linuxforums.org/forum/redhat-fedora-linux-help/23010-root-la
> >>> bel- grub-conf.html
> >>> http://linux.derkeiler.com/Mailing-Lists/RedHat/2005-01/0026.html
> >>> 
> >>> However:
> >>> http://old.nabble.com/Re%3A-Using--%22root%3DLABEL%3D%22-in-grub.co
> >>> nf-p 21909347.html http://tinyurl.com/2u4srg4
> >>> 
> >>> Stroller.
> >> 
> >> All the major distros I've seen it on also use initrds though (rare in
> >> gentoo- land). I have no idea how it all works, I just know how to type
> >> it on a RHEL box.
> 
> I am using an initrd, I need it since my root partition is encrypted.
> It's generated and copied to /boot with 'genkernel --install --luks
> --lvm all', but you have to have CLEAN="no" in /etc/genkernel.conf or
> genkernel will create its own .config.
> 
> >> Elsewhere in the thread someone mentioned that this syntax relies on an
> >> initrd, and I suspect he may be correct.
> 
> And Stroller's 3rd link also does this.
> 
> > I tried using labels with the old grub a while back and it didn't work.
> > Labels in fstab works fine tho.  We may have to wait on the new grub to
> > get finished
> 
> I would be surprised if it had this feature. AFAIK grub is already done
> at this stage, the kernel has taken over. And I guess it does not know
> about the LABEL= syntax, and has no code to scan all devices for file
> system labels.
> With an initramfs, the kernel runs an init script which can do various
> stuff, like probing all devices for file system labels.

I understand that GRUB2 has bash scripting capabilities which can can use the 
command 'search' to probe devices at boot time and use things like UUID and 
LABEL.  Not sure if an initrd is required.  I could be wrong though - I have 
not had the time to experiment with it yet.
-- 
Regards,
Mick


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


Re: [gentoo-user] Slotted PHP behavior

2011-01-04 Thread Michael Orlitzky
On 01/04/11 14:42, Grant wrote:
> 
> Thank you, that fixed it.  I'm getting some errors in squirrelmail but
> functionality seems to be intact.
> 
> Since things seem to be working with php-5.3.4, how can I get rid of
> the older version of php that must be installed in another slot?  I'm
> hoping that simplifies things a bit.  PHP on Gentoo just got more
> complicated and all I need out of it is squirrelmail.  Actually, I
> wish there was a decent webmail client that didn't depend on PHP at
> all so I could remove it.
> 
> - Grant
> 

The slotting is just for major versions, so you probably don't have two
installed (you most likely went from 5.3.3 to 5.3.4).

But watch out -- after the eselect, you'll need to move your php.ini
from e.g. /etc/php/apache2 to /etc/php/apache2-php5.3.



[gentoo-user] gpg-agent crach on arm

2011-01-04 Thread Maxime Brachet
Hi,

I installed gnupg 2.0.16-r2 (and r1 previously) on the AC100 which is
arm based.
When I start gpg-agent i got this error :  

$ gpg-agent 
*** longjmp causes uninitialized stack frame ***: gpg-agent terminated
Aborted

there is a bugfix in ubuntu :
https://bugs.launchpad.net/ubuntu/+source/gnupg2/+bug/599862

I haven't find any references for gentoo.

If anyone has an idea.

Thanks,

Maxime.




Re: [gentoo-user] Latest unstable ntp not generating ntp.drift file.

2011-01-04 Thread Dale

William Kenworthy wrote:

Is the clock almost in sync? - if its too far out ntp will silently fail
to sync (by design - large scale time steps can be destructive for
heavily active databases for instance)

Check out the -g option to ntpd in 'man ntpd'

or 'tinker panic 0' in ntp.conf

Also, has ntp.conf specified a writable frift file in a directory that
exists?

ntp can be VERY complex when it doesnt "just work" :)

BillK


   


It syncs and adjusts the time.  It just doesn't do it like my older 
rig.  My old rig, when I booted it up, ntp would sync and in about a 
hour or so it would be accurate enough that it would only sync a few 
times a day.  Since I have long uptimes, that worked out well.  With 
this new rig, it syncs about every ten to 15 minutes and adjusts and 
just keeps doing the same thing.  It never sets the drift file to a 
setting that allows it to go more than ten or fifteen minutes without 
resetting the clock.  This is what is in messages:


Jan  4 21:09:26 localhost ntpd[10181]: time reset +0.636966 s
Jan  4 21:16:25 localhost ntpd[10181]: synchronized to 67.159.5.90, 
stratum 2

Jan  4 21:22:53 localhost ntpd[10181]: synchronized to 64.6.144.6, stratum 2
Jan  4 21:26:01 localhost ntpd[10181]: time reset +0.567349 s
Jan  4 21:30:25 localhost ntpd[10181]: synchronized to 67.159.5.90, 
stratum 2

Jan  4 21:41:09 localhost ntpd[10181]: time reset +0.603411 s
Jan  4 21:45:32 localhost ntpd[10181]: synchronized to 64.6.144.6, stratum 2
Jan  4 21:51:56 localhost ntpd[10181]: synchronized to 67.159.5.90, 
stratum 2

Jan  4 21:54:39 localhost ntpd[10181]: synchronized to 64.6.144.6, stratum 2
Jan  4 21:56:17 localhost ntpd[10181]: time reset +0.604867 s
Jan  4 22:03:13 localhost ntpd[10181]: synchronized to 67.159.5.90, 
stratum 2

Jan  4 22:07:18 localhost ntpd[10181]: synchronized to 64.6.144.6, stratum 2
Jan  4 22:11:56 localhost ntpd[10181]: time reset +0.649596 s
Jan  4 22:16:47 localhost ntpd[10181]: synchronized to 67.59.168.233, 
stratum 3
Jan  4 22:20:06 localhost ntpd[10181]: synchronized to 67.159.5.90, 
stratum 2

Jan  4 22:24:24 localhost ntpd[10181]: synchronized to 64.6.144.6, stratum 2
Jan  4 22:28:37 localhost ntpd[10181]: synchronized to 67.159.5.90, 
stratum 2

Jan  4 22:28:46 localhost ntpd[10181]: time reset +0.621297 s
Jan  4 22:37:41 localhost ntpd[10181]: synchronized to 67.159.5.90, 
stratum 2


Now on my old system, it would adjust the drift file and the adjustments 
would get smaller and smaller.  On the new rig, as you can see it stays 
about the same.  I would like it to get to a point where it doesn't have 
to sync so often.  I read on the website where they are needing more 
servers to help with the load and I don't want to be one of the ones 
putting a load on it.


I downgraded back to a stable ntp and it did generate a drift file after 
a while.  The messages above are from the stable ntp.  I think I have it 
configured correctly but just need to add a option somewhere to make it 
do better.  I'm even wondering if it could be something kernel related.  
Maybe I forgot to enable something.


Dale

:-)  :-)



[gentoo-user] trackpoint *and* trackpad

2011-01-04 Thread James
All,

Has anyone gotten both the trackpad and trackpoint on a t400 to work
simultaneously? I can't seem to get it to work. Here are the relevant
sections of my xorg.conf file.

Section "ServerLayout"
Identifier "Layout0"
Screen  0  "Screen0" 0 0
InputDevice"Keyboard0" "CoreKeyboard"
#InputDevice"TrackPoint" "CorePointer"
InputDevice"TouchPad" "CorePointer"
EndSection

Section "InputDevice"
Identifier "TrackPoint"
Driver "mouse"
Option "Protocol"
Option "Device" "/dev/input/mouse1"
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "4 5"
EndSection



Section "InputDevice"
Identifier "TouchPad"
Driver   "synaptics"
Option   "Device" "/dev/input/mouse0"
Option   "Protocol" "auto-dev"
Option   "VertEdgeScroll" "on"
Option   "HorizEdgeScroll" "on"
Option   "VertTwoFingerScroll" "on"
Option   "HorizTwoFingerScroll" "on"
Option   "CornerCoasting" "on"
#Option   "MinSpeed" "0.40"
#Option   "MaxSpeed" "0.65"
#Option   "AccelFactor" "0.030"
Option   "LockedDrags" "on"
Option   "LockedDragTimeout" "5000"
Option   "UpDownScrolling" "on"
Option   "TapButton1" "1"
Option   "TapButton2" "2"
Option   "TapButton3" "3"
Option   "CircularScrolling" "on"
Option   "CircScrollTrigger" "2"
#Option   "CircScrollDelta" "0.1"
#Option   "CircScrollTrigger" "3"
Option   "SHMConfig" "on"
EndSection

Section "InputDevice"
# generated from default
Identifier "Keyboard0"
Driver "kbd"
EndSection

Interestingly enough this same configuration seemed to work quite well
for a friend of mine who has a T500 or similar model.

Anything I'm missing here? Thoughts / help would be appreciated!

-james



Re: [gentoo-user] Latest unstable ntp not generating ntp.drift file.

2011-01-04 Thread William Kenworthy
Is the clock almost in sync? - if its too far out ntp will silently fail
to sync (by design - large scale time steps can be destructive for
heavily active databases for instance)

Check out the -g option to ntpd in 'man ntpd'

or 'tinker panic 0' in ntp.conf

Also, has ntp.conf specified a writable frift file in a directory that
exists?

ntp can be VERY complex when it doesnt "just work" :)

BillK



On Mon, 2011-01-03 at 19:31 -0600, Dale wrote:
> Hi,
> 
> I been watching my clock here for a while.  On my old rig, ntp kept the 
> clock set very, very well.  This rig seems to have issues.  I tried the 
> stable version of ntp and it just seems to keep resetting the time but 
> not adjusting the drift file at all.  I even adjusted manually once and 
> my entry was better than the one it made.
> 
> I then decided to try the latest unstable ntp to see if maybe it would 
> work better.  I emerged ntp, renamed the drift file and started the 
> service.  That was several hours ago and it has yet to even create the 
> drift file.  It also puts nothing in the log file except that it started 
> and is using ports and the normal stuff.  No syncing or anything like 
> the older version.
> 
> Also, I copied the ntp.conf file over from the old rig.  I would think 
> they would work pretty much the same.  Same program, same config and 
> hopefully same results.
> 
> First version tried:  net-misc/ntp-4.2.4_p7-r1
> Current unstable version:  net-misc/ntp-4.2.6_p2-r1
> 
> When I looked at the ntp website, it said it should sync much faster 
> than the old one.  Basically it is minutes instead of hours.  So far 
> this is not the case.
> 
> Anybody else ran into this?  Am I missing something that is different on 
> a 64 bit rig?
> 
> Thanks.
> 
> Dale
> 
> :-)  :-)
> 

-- 
William Kenworthy 
Home in Perth!




Re: [gentoo-user] Slotted PHP behavior

2011-01-04 Thread Duong "Yang" Ha Nguyen
On Tue, 4 Jan 2011, Grant wrote:
>
> Since things seem to be working with php-5.3.4, how can I get rid of
> the older version of php that must be installed in another slot?  I'm
> hoping that simplifies things a bit.  PHP on Gentoo just got more
> complicated and all I need out of it is squirrelmail.  Actually, I
> wish there was a decent webmail client that didn't depend on PHP at
> all so I could remove it.
>
> - Grant
>
>

Hi,

Personally, I think slot is a very good way for multiple versions of a
package to co-exist.

You can safely unemerge a specific version of any package by pointing
out its exact signature, i.e.

| # emerge --unmerge =/-

Replace it with your exact PHP package name.

Best,
-- 
Yang Nguyen
Web log: http://cmpitg.wordpress.com/
Life is a hack




Re: [gentoo-user] Re: Re: Changing boot device with 2.6.36

2011-01-04 Thread Alex Schuster
Dale writes:

> Alan McKinnon wrote:
>> Apparently, though unproven, at 15:18 on Tuesday 04 January 2011, Stroller 
>> did
>> opine thusly:
>>
>>> I found numerous references to this syntax going back to 2005 or
>>> so, and some major distros seem to use it as the default way of
>>> describing "root=" to the kernel.
>>>
>>> http://www.linuxforums.org/forum/redhat-fedora-linux-help/23010-root-label-
>>> grub-conf.html
>>> http://linux.derkeiler.com/Mailing-Lists/RedHat/2005-01/0026.html
>>>
>>> However:
>>> http://old.nabble.com/Re%3A-Using--%22root%3DLABEL%3D%22-in-grub.conf-p
>>> 21909347.html http://tinyurl.com/2u4srg4
>>>
>>> Stroller.  
>>
>> All the major distros I've seen it on also use initrds though (rare in 
>> gentoo-
>> land). I have no idea how it all works, I just know how to type it on a RHEL
>> box.

I am using an initrd, I need it since my root partition is encrypted.
It's generated and copied to /boot with 'genkernel --install --luks
--lvm all', but you have to have CLEAN="no" in /etc/genkernel.conf or
genkernel will create its own .config.

>> Elsewhere in the thread someone mentioned that this syntax relies on an
>> initrd, and I suspect he may be correct.

And Stroller's 3rd link also does this.

> I tried using labels with the old grub a while back and it didn't work.  
> Labels in fstab works fine tho.  We may have to wait on the new grub to 
> get finished

I would be surprised if it had this feature. AFAIK grub is already done
at this stage, the kernel has taken over. And I guess it does not know
about the LABEL= syntax, and has no code to scan all devices for file
system labels.
With an initramfs, the kernel runs an init script which can do various
stuff, like probing all devices for file system labels.

Wonko



Re: [gentoo-user] Re: Re: Changing boot device with 2.6.36

2011-01-04 Thread Dale

Alan McKinnon wrote:

Apparently, though unproven, at 15:18 on Tuesday 04 January 2011, Stroller did
opine thusly:

   

I found numerous references to this syntax going back to 2005 or
so, and some major distros seem to use it as the default way of
describing "root=" to the kernel.

http://www.linuxforums.org/forum/redhat-fedora-linux-help/23010-root-label-
grub-conf.html
http://linux.derkeiler.com/Mailing-Lists/RedHat/2005-01/0026.html

However:
http://old.nabble.com/Re%3A-Using--%22root%3DLABEL%3D%22-in-grub.conf-p
21909347.html http://tinyurl.com/2u4srg4

Stroller.
 


All the major distros I've seen it on also use initrds though (rare in gentoo-
land). I have no idea how it all works, I just know how to type it on a RHEL
box.

Elsewhere in the thread someone mentioned that this syntax relies on an
initrd, and I suspect he may be correct.


   


I tried using labels with the old grub a while back and it didn't work.  
Labels in fstab works fine tho.  We may have to wait on the new grub to 
get finished.


Dale

:-)  :-)



Re: [gentoo-user] New Install Problems with X

2011-01-04 Thread Dale

KIM WHALEN wrote:
Yes, it looks like I'm using python 3.  I change it to python2.6 and 
it looks like it's emerge'ing without errors.  This should be 
mentioned in the install documentation.  Now do I need to rebuild 
everything else, emerge --empty-tree, now that I switched python 
interpreters?


# eselect python list
Available Python interpreters:
  [1]   python2.6
  [2]   python3.1 *

Thanks,

--dhk



How did you get python3 enabled?  It shouldn't be enabled.  This from 
the build:


WARNING!
Many Python modules have not been ported yet to Python 3.*.
Python 3 has not been activated and Python wrapper is still configured 
to use Python 2.

You can manually activate Python 3.1 using `eselect python set python3.1`.
It is recommended to currently have Python wrapper configured to use 
Python 2.

Having Python wrapper configured to use Python 3 is unsupported.

The last line is the important part.

Dale

:-)  :-)



Re: [gentoo-user] New Install Problems with X

2011-01-04 Thread Mick
On Tuesday 04 January 2011 21:35:08 KIM WHALEN wrote:
> Yes, it looks like I'm using python 3.  I change it to python2.6 and it
> looks like it's emerge'ing without errors.  This should be mentioned in
> the install documentation.  Now do I need to rebuild everything else,
> emerge --empty-tree, now that I switched python interpreters?
> 
> # eselect python list
> Available Python interpreters:
>[1]   python2.6
>[2]   python3.1 *

There's an enotice when you emerge python-3.x which warns about it being 
experimental and not to be used as the default.
-- 
Regards,
Mick


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


Re: [gentoo-user] New Install Problems with X

2011-01-04 Thread Stéphane Guedon
On Tuesday 04 January 2011 22:35:08 KIM WHALEN wrote:
> Yes, it looks like I'm using python 3.  I change it to python2.6 and it
> looks like it's emerge'ing without errors.  This should be mentioned in
> the install documentation.  Now do I need to rebuild everything else,
> emerge --empty-tree, now that I switched python interpreters?
> 
> # eselect python list
> Available Python interpreters:
>[1]   python2.6
>[2]   python3.1 *
> 
> Thanks,
> 
> --dhk
> 
> On Tue, Jan 4, 2011 at 4:00 PM, Matías Marquez wrote:
> > Hello.
> > 
> > Are you using python 3 as your main python interpreter?
> > 
> > Try:
> > 
> > #emerge -av python:2.6
> > #eselect python lists
> > #eselect python set N
> > 
> > where N is the number of python 2 in the previos command.
> > 
> > I can't help with the video card problem.
> > 
> > Sorry about my poor English.
> > 
> > Bye.

no, you needn't to rebuild everything !
python is just yhe tool to build, it doesn't affect the binaries.

-- 
Stéphane Guedon
page web : http://www.22decembre.eu/
carte de visite : http://www.22decembre.eu/downloads/Stephane-Guedon.vcf
clé publique gpg : http://www.22decembre.eu/downloads/Stephane-Guedon.asc



Re: [gentoo-user] Re: nvidia update problems

2011-01-04 Thread Alan McKinnon
Apparently, though unproven, at 12:50 on Tuesday 04 January 2011, Peter 
Humphrey did opine thusly:

> On Monday 03 January 2011 14:40:41 walt wrote:
> > I'm wondering if you have some mixture of baselayout versions on that
> > machine from previous updates.
> 
> Unlikely: this box has been ~amd64 since before it had a complete
> system.
> 
> > Could your machine be trying to start something other than kdm by
> > mistake? I.e., maybe you are starting kdm for the first time from
> > the VT instead of re-starting it?
> 
> Also unlikely.
> 
> I tried taking xdm out of the default run-level and calling both it and
> xdm-setup in /etc/conf.d/local. It started up ok then.

Do you have 

rc_parallel="YES"

in /etc/rc.conf? 

Try setting it to NO. If stuff then works right, we know your start order is 
incorrect and I would be suspecting you declined an update in /etc/init.d/ 
that you should have accepted.

Dunno how you would fix that easily apart from re-emerging everything related 
that creates an init script.


-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] Re: SVGA mode & the console

2011-01-04 Thread Alan McKinnon
Apparently, though unproven, at 18:03 on Tuesday 04 January 2011, Paul Hartman 
did opine thusly:

> On Mon, Jan 3, 2011 at 5:22 PM, Nikos Chantziaras  wrote:
> > On 01/03/2011 10:23 PM, Paul Hartman wrote:
> >> On Mon, Jan 3, 2011 at 2:07 PM, Nikos Chantziaras 
 wrote:
> >>> uvesafb will not give you extra resolutions.  It will however allow you
> >>> to
> >>> use non-default refresh-rates which is sometimes useful with CRT
> >>> monitors.
> >>> 
> >>> But it has a drawback too: it needs a userspace tool and resolution is
> >>> switched too late during the boot process, meaning until it loads
> >>> you'll be
> >>> seeing the kernel boot in 80x25 mode (which in turn means no boot
> >>> graphics/logo right from the start.)
> >> 
> >> I use uvesafb and I can see Tux (eight of him) during my boot process
> >> before uvesafb kicks in.
> > 
> > I mean more something like this when I say "boot logo":
> > 
> > http://mjanusz.files.wordpress.com/2008/02/shot.png
> > 
> > It's at least 10 years since I saw that default Tux boot thingy :-P  But
> > anyway, if uvesafb hasn't kicked in yet, what on earth is drawing that
> > Tux?
> 
> Ah-ha, I think that's bootsplash (which I'm not using).  I've only
> seen it on a Live CD. :)
> 
> In my kernel config I have enabled VESA framebuffer as well as
> userspace framebuffer (uvesafb), and I enabled "Bootup Logo". So maybe
> what happens is that VESA framebuffer starts immediately into some
> default resolution, I see eight Tuxs (Tuxes?), then shortly thereafter
> the uvesafb kicks in and video mode changes to the one I specified. At
> least that's how it seems to happen. I reboot so rarely that I never
> gave it much thought.


It's the VESA framebuffer that does it, nothing to do with bootsplash.

Look at the help text for CONFIG_FB_VESA in menuconfig.


-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] Re: Re: Changing boot device with 2.6.36

2011-01-04 Thread Alan McKinnon
Apparently, though unproven, at 15:18 on Tuesday 04 January 2011, Stroller did 
opine thusly:

> On 4/1/2011, at 9:42am, Jörg Schaible wrote:
> >> ...
> >> Does
> >> 
> >> boot=LABEL=
> >> 
> >> in grub config work for you?
> > 
> > I hoped so, but actually no. Grub complains at boot time not finding the
> > root device. Is this available in the grub-0.97 series at all?
> 
> I found numerous references to this syntax going back to 2005 or
> so, and some major distros seem to use it as the default way of
> describing "root=" to the kernel.
> 
> http://www.linuxforums.org/forum/redhat-fedora-linux-help/23010-root-label-
> grub-conf.html
> http://linux.derkeiler.com/Mailing-Lists/RedHat/2005-01/0026.html
> 
> However:
> http://old.nabble.com/Re%3A-Using--%22root%3DLABEL%3D%22-in-grub.conf-p
> 21909347.html http://tinyurl.com/2u4srg4
> 
> Stroller.


All the major distros I've seen it on also use initrds though (rare in gentoo-
land). I have no idea how it all works, I just know how to type it on a RHEL 
box.

Elsewhere in the thread someone mentioned that this syntax relies on an 
initrd, and I suspect he may be correct.


-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] New Install Problems with X

2011-01-04 Thread KIM WHALEN
Yes, it looks like I'm using python 3.  I change it to python2.6 and it 
looks like it's emerge'ing without errors.  This should be mentioned in 
the install documentation.  Now do I need to rebuild everything else, 
emerge --empty-tree, now that I switched python interpreters?


# eselect python list
Available Python interpreters:
  [1]   python2.6
  [2]   python3.1 *

Thanks,

--dhk

On Tue, Jan 4, 2011 at 4:00 PM, Matías Marquez wrote:


Hello.

Are you using python 3 as your main python interpreter?

Try:

#emerge -av python:2.6
#eselect python lists
#eselect python set N

where N is the number of python 2 in the previos command.

I can't help with the video card problem.

Sorry about my poor English.

Bye.




Re: [gentoo-user] New Install Problems with X

2011-01-04 Thread Matías Marquez
Hello.

Are you using python 3 as your main python interpreter?

Try:

#emerge -av python:2.6
#eselect python lists
#eselect python set N

where N is the number of python 2 in the previos command.

I can't help with the video card problem.

Sorry about my poor English.

Bye.



Re: [gentoo-user] Strange behaviour with CD tray

2011-01-04 Thread David Abbott
On Tue, Jan 4, 2011 at 3:09 PM, Jacques Montier
 wrote:
> Le 04/01/2011 21:00, Thanasis a écrit :
>> What happens if you give the command
>> eject
>>
>>
> CD tray opens then close.
>
> Jacques
>
>
This may help;
http://gentoo-pr.org/node/27
http://bugs.gentoo.org/show_bug.cgi?id=319829

-- 
David Abbott (dabbott)
Gentoo
http://dev.gentoo.org/~dabbott/



Re: [gentoo-user] Strange behaviour with CD tray

2011-01-04 Thread Jacques Montier
Le 04/01/2011 21:00, Thanasis a écrit :
> What happens if you give the command
> eject
>
>
CD tray opens then close.

Jacques



Re: [gentoo-user] Strange behaviour with CD tray

2011-01-04 Thread Thanasis
What happens if you give the command
eject




Re: [gentoo-user] Slotted PHP behavior

2011-01-04 Thread Grant
> I just upgraded to php-5.3.4 which I believe went into a new slot.  Is
> slotted behavior new for PHP?  I think things have been rearranged.
> Can someone clue me in to the new layout?  For example, I get:
>
> # /etc/init.d/apache2 restart
>  * Caching service dependencies ...
>  * apache2 has detected an error in your setup:
> apache2: Syntax error on line 149 of /etc/apache2/httpd.conf: Syntax
> error on line 4 of /etc/apache2/modules.d/70_mod_php5.conf: Cannot
> load /usr/lib64/apache2/modules/libphp5.so into server:
> /usr/lib64/apache2/modules/libphp5.so: cannot open shared object file:
> No such file or directory
>
> - Grant
>
> I had a similar problem before and I did solve it by running this command:
> eselect php set apache2 php5.3. I believe I get this command from a Gentoo
> official PHP guide.
>
> Hung

Thank you, that fixed it.  I'm getting some errors in squirrelmail but
functionality seems to be intact.

Since things seem to be working with php-5.3.4, how can I get rid of
the older version of php that must be installed in another slot?  I'm
hoping that simplifies things a bit.  PHP on Gentoo just got more
complicated and all I need out of it is squirrelmail.  Actually, I
wish there was a decent webmail client that didn't depend on PHP at
all so I could remove it.

- Grant



Re: [gentoo-user] Re: Re: Changing boot device with 2.6.36

2011-01-04 Thread Andrea Conti
>> boot=LABEL=
>>
>> in grub config work for you?
> 
> I hoped so, but actually no. Grub complains at boot time not finding the 
> root device. Is this available in the grub-0.97 series at all?

I am not sure about grub 2, but 0.97 knows nothing about filesystem
labels (and neither does the kernel itself).

Where the syntax above works, it's because the distribution provides an
initramfs containing (among other things) a script which looks at the
kernel commandline and figures out the correct device node before
attempting to mount the root filesystem.

The only sensible way to handle the OP's problem is to have everything
USB-related (or at least usb-storage) built as a module.

Why would you want USB compiled in the kernel, anyway? Even if you were
using an USB keyboard, you would not be able to do much if the boot
process does not even reach the point where udev starts loading modules...

andrea



Re: [gentoo-user] Slotted PHP behavior

2011-01-04 Thread Stéphane Guedon
On Tuesday 04 January 2011 18:47:30 Hung Dang wrote:
> On 01/04/11 10:27, Grant wrote:
> > I just upgraded to php-5.3.4 which I believe went into a new slot.  Is
> > slotted behavior new for PHP?  I think things have been rearranged.
> > Can someone clue me in to the new layout?  For example, I get:
> > 
> > # /etc/init.d/apache2 restart
> > 
> >  * Caching service dependencies ...
> > 
> >  * apache2 has detected an error in your setup:
> > apache2: Syntax error on line 149 of /etc/apache2/httpd.conf: Syntax
> > error on line 4 of /etc/apache2/modules.d/70_mod_php5.conf: Cannot
> > load /usr/lib64/apache2/modules/libphp5.so into server:
> > /usr/lib64/apache2/modules/libphp5.so: cannot open shared object file:
> > No such file or directory
> > 
> > - Grant
> 
> I had a similar problem before and I did solve it by running this
> command: eselect php set apache2 php5.3. I believe I get this command
> from a Gentoo official PHP guide.
> 
> Hung

I did this just few weeks ago and had to switch back because my web app 
(wordpress native, not from gentoo) didn't work. Be sure you need this !
-- 
Stéphane Guedon
page web : http://www.22decembre.eu/
carte de visite : http://www.22decembre.eu/downloads/Stephane-Guedon.vcf
clé publique gpg : http://www.22decembre.eu/downloads/Stephane-Guedon.asc



Re: [gentoo-user] Strange behaviour with CD tray

2011-01-04 Thread Jacques Montier
Hi again,

Some tests about the problem :

1- problem = cdrom and cdrw tray open and close.
2- I run /etc/init.d/dbus restart, then : dbus, consolekit, cupsd and
hald restart => the problem is gone.
3- I open Nautilus => problem is back...
4- I uninstall gvfs ; i open Nautilus => problem is gone, but i can't
mount the cdrom.
5- I re-install gvfs ; i open Nautilus => problem is back...
6- I run /etc/init.d/dbus restart, then : dbus, consolekit, cupsd and
hald restart and i boot the system => problem is back...

Any idea ?

Cheers,

--
Jacques
Site web 
Le 04/01/2011 16:20, Jacques Montier a gentiment tapote:
> Hi all,
>
> With last updates, i encounter some strange behaviour witth my cdrom and
> cdrw tray.
> When i open the tray, this one closes quite immediatly, and i can't
> insert any CD or DVD...
> It's not very convenient... :-(
> Where is the problem ? hal ? udev ? gvfs ?
> When i uninstall gvfs, problem is gone...
> My gvfs version and flags :
> 1.6.4-r2  gdu gnome hal http udev -archive -avahi -bash-completion
> -bluetooth -cdda -doc -fuse -gnome-keyring -gphoto2 -iphone -samba
>
> Any idea ?
>
> Thank you very much.
>
> Best regards
>
> --
> Jacques
> Site web 
>
>




Re: [gentoo-user] Slotted PHP behavior

2011-01-04 Thread Hung Dang
On 01/04/11 10:27, Grant wrote:
> I just upgraded to php-5.3.4 which I believe went into a new slot.  Is
> slotted behavior new for PHP?  I think things have been rearranged.
> Can someone clue me in to the new layout?  For example, I get:
>
> # /etc/init.d/apache2 restart
>  * Caching service dependencies ...
>  * apache2 has detected an error in your setup:
> apache2: Syntax error on line 149 of /etc/apache2/httpd.conf: Syntax
> error on line 4 of /etc/apache2/modules.d/70_mod_php5.conf: Cannot
> load /usr/lib64/apache2/modules/libphp5.so into server:
> /usr/lib64/apache2/modules/libphp5.so: cannot open shared object file:
> No such file or directory
>
> - Grant
>
I had a similar problem before and I did solve it by running this
command: eselect php set apache2 php5.3. I believe I get this command
from a Gentoo official PHP guide.

Hung



[gentoo-user] Slotted PHP behavior

2011-01-04 Thread Grant
I just upgraded to php-5.3.4 which I believe went into a new slot.  Is
slotted behavior new for PHP?  I think things have been rearranged.
Can someone clue me in to the new layout?  For example, I get:

# /etc/init.d/apache2 restart
 * Caching service dependencies ...
 * apache2 has detected an error in your setup:
apache2: Syntax error on line 149 of /etc/apache2/httpd.conf: Syntax
error on line 4 of /etc/apache2/modules.d/70_mod_php5.conf: Cannot
load /usr/lib64/apache2/modules/libphp5.so into server:
/usr/lib64/apache2/modules/libphp5.so: cannot open shared object file:
No such file or directory

- Grant



Re: [gentoo-user] SVGA mode & the console

2011-01-04 Thread meino . cramer
Paul Hartman  [11-01-04 17:28]:
> On Mon, Jan 3, 2011 at 9:04 PM,   wrote:
> > Very last question:
> > Is there any way to test what font looks best without haveing
> > to boot each time ?
> 
> setfont
> 

Hi all,

thank you very much for your help again!
Now I have a beautiful console!
Long lives Linux! ;)

Best regards,
mcc




Re: [gentoo-user] Latest unstable ntp not generating ntp.drift file.

2011-01-04 Thread Dale

Peter Humphrey wrote:

On Tuesday 04 January 2011 01:31:27 Dale wrote:

   

Anybody else ran into this?  Am I missing something that is different
on a 64 bit rig?
 

I discovered chrony some years ago, which has a sophisticated clock
slewing mechanism, and haven't used ntp since.

Chrony runs on my gateway machine to maintain a stable time source for
the boxes inside, which are a mixture of 32- and 64-bit. I just don't
think about timekeeping any more.

You might want to give it a try.

   


I'll give it some thought.  I was the same way about ntp on my old rig.  
I set it up and it "just worked".  It just doesn't work on this rig.


I let the unstable package run a good while and it never did create a 
drift file.  I emerged the stable version and it created a drift file 
but it is still reseting almost 1 second every ten minutes.  On the old 
rig, once it got the drift file set up with a good value, it only synced 
a few times a day and set maybe once a day and it was very little.  On 
the new rig, its having to reset every few minutes and still can't get 
it right.


This is weird.

Dale

:-)  :-)



Re: [gentoo-user] Re: Changing boot device with 2.6.36

2011-01-04 Thread Mick
On 4 January 2011 11:01, Peter Humphrey  wrote:
> On Tuesday 04 January 2011 09:44:05 Jörg Schaible wrote:
>> J. Roeleveld wrote:
>> > One way to avoid USB-devices to be picked up before the kernel
>> > picks its boot- device is to put the USB-stuff as modules and have
>> > them loaded later.
>> >
>> > I haven't found a way to delay usb-device detection yet.
>>
>> If nothing else helps ... :-/
>
> As someone remarked a few days ago (Alan? Volker?), a sound strategy is
> to have only components that are essential to booting the machine built
> into the kernel; all else should be modules.

There's also the device.map file, but if device names change on the
fly each time the machine boots with different things connected to it
... may not be any good for this problem.

Perhaps it's time to upgrade to GRUB2 and use labels - because it
definitely can use them as well as UUID Nos and can also use scripts
which will scan your devices and pick the one you want.

-- 
Regards,
Mick



Re: [gentoo-user] Latest unstable ntp not generating ntp.drift file.

2011-01-04 Thread Steffen Loos

Am 04.01.2011 02:31, schrieb Dale:

Hi,

I been watching my clock here for a while. On my old rig, ntp kept the clock 
set very, very well. This rig seems to have issues. I tried the stable version 
of ntp and it just seems to keep resetting the time but not adjusting the drift 
file at all. I even adjusted manually once and my entry was better than the one 
it made.

Maybe the drift of your systemclock is to large. E.g. in (full) virtuell 
machines i experienced this problem.
In such a case ntp only resets the clock regulary ("time reset +2.171765 s" in 
/var/log/ntp).[1]
I have solved it with adjtimex as i speedup the systemclock a little bit 
(params: tick and freq). Since ntpd is working as expected again.
[2] gave me the hint.

Steffen



[1] man 8 ntpd  (just look for "maximum slew rate")
[2] http://www.ep.ph.bham.ac.uk/general/support/adjtimex.html



Re: [gentoo-user] SVGA mode & the console

2011-01-04 Thread Paul Hartman
On Mon, Jan 3, 2011 at 9:04 PM,   wrote:
> Very last question:
> Is there any way to test what font looks best without haveing
> to boot each time ?

setfont



[gentoo-user] New Install Problems with X

2011-01-04 Thread KIM WHALEN
I'm trying to do a new install on an amd64 box and there are a lot of 
problems somewhere between X, Gnome, and the Graphics card.  I'm using 
genkernel so there shouldn't be too much of a problem there.


The graphics card as identified by the system is:  nVidia Corporation 
NV36 [GeForce FX 5700LE]


The base system and xorg-x11 seems to be set up alright.  However, when 
I run startx as a regular user I get errors about drm, dri, and dri2 
modules and the screen.  I've tried with both nvidia and xorg-x11 
selected for opengl and have tried with both VIDEO_CARDS="nouveau" and 
VIDEO_CARDS="nivida" in /etc/make.conf.

# eselect opengl list
Available OpenGL implementations:
  [1]   nvidia *
  [2]   xorg-x11

I would expect the trival windows manager to work with startx as soon as 
xorg-x11 was installed, but it doesn't.


Emergeing gnome doesn't work.  I had to remove GTK from the USE in 
make.conf; pygtlsourceview and I think some other things pulled in 
didn't like it.


The first package in "emerge gnome" that gives me problems is the 
app-text/gnome-doc-utils-0.20.1 package.  When emerged by itself I get 
the following output.


# emerge -pv app-text/gnome-doc-utils

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

Calculating dependencies... done!
[ebuild  N] app-text/gnome-doc-utils-0.20.1  USE="-debug" 0 kB

Total: 1 package (1 new), Size of downloads: 0 kB

# emerge app-text/gnome-doc-utils
Calculating dependencies... done!

Verifying ebuild manifests
Emerging (1 of 1) app-text/gnome-doc-utils-0.20.1
Failed to emerge app-text/gnome-doc-utils-0.20.1, Log file:
 '/var/tmp/portage/app-text/gnome-doc-utils-0.20.1/temp/build.log'
Jobs: 0 of 1 complete, 1 failed Load avg: 0.45, 
0.11, 0.03

 * Package:app-text/gnome-doc-utils-0.20.1
 * Repository: gentoo
 * Maintainer: gn...@gentoo.org s...@gentoo.org
 * USE:  amd64 elibc_glibc kernel_linux multilib userland_GNU

Unpacking source...
Unpacking gnome-doc-utils-0.20.1.tar.bz2 to 
/var/tmp/portage/app-text/gnome-doc-utils-0.20.1/work
Source unpacked in 
/var/tmp/portage/app-text/gnome-doc-utils-0.20.1/work
Preparing source in 
/var/tmp/portage/app-text/gnome-doc-utils-0.20.1/work/gnome-doc-utils-0.20.1 
...

 * Fixing OMF Makefiles ...
 [ ok ]

Source prepared.
Configuring source in 
/var/tmp/portage/app-text/gnome-doc-utils-0.20.1/work/gnome-doc-utils-0.20.1 
...
 * econf: updating gnome-doc-utils-0.20.1/config.guess with 
/usr/share/gnuconfig/config.guess
 * econf: updating gnome-doc-utils-0.20.1/config.sub with 
/usr/share/gnuconfig/config.sub
./configure --prefix=/usr --build=x86_64-pc-linux-gnu 
--host=x86_64-pc-linux-gnu --mandir=/usr/share/man 
--infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc 
--localstatedir=/var/lib --libdir=/usr/lib64 --disable-scrollkeeper

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gawk... (cached) gawk
checking whether ln -s works... yes
checking for a Python interpreter with version >= 2.4... python
checking for python... /usr/bin/python
checking for python version... 3.1
checking for python platform... linux2
checking for python script directory... 
${prefix}/lib64/python3.1/site-packages
checking for python extension module directory... 
${exec_prefix}/lib64/python3.1/site-packages

checking for x86_64-pc-linux-gnu-pkg-config... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for GNOME_DOC_UTILS... yes
checking whether NLS is requested... yes
checking for style of include used by make... GNU
checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether x86_64-pc-linux-gnu-gcc accepts -g... yes
checking for x86_64-pc-linux-gnu-gcc option to accept ISO C89... none 
needed

checking dependency style of x86_64-pc-linux-gnu-gcc... none
checking for intltool >= 0.35.0... 0.41.1 found
checking for intltool-update... /usr/bin/intltool-update
checking for intltool-merge... /usr/bin/intltool-merge
checking for intltool-extract... /usr/bin/intltool-extract
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/gmsgfmt
checking for perl... /usr/bin/perl
checking for perl >= 5.8.1... 5.12.2
checking for XML::Parser... ok
checking how to run the C preprocessor... x86_64-pc-linux-gnu-gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking f

Re: [gentoo-user] Re: Changing boot device with 2.6.36

2011-01-04 Thread Peter Humphrey
On Tuesday 04 January 2011 09:44:05 Jörg Schaible wrote:
> J. Roeleveld wrote:
> > One way to avoid USB-devices to be picked up before the kernel
> > picks its boot- device is to put the USB-stuff as modules and have
> > them loaded later.
> > 
> > I haven't found a way to delay usb-device detection yet.
> 
> If nothing else helps ... :-/

As someone remarked a few days ago (Alan? Volker?), a sound strategy is 
to have only components that are essential to booting the machine built 
into the kernel; all else should be modules.

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



Re: [gentoo-user] Re: SVGA mode & the console

2011-01-04 Thread Paul Hartman
On Mon, Jan 3, 2011 at 5:22 PM, Nikos Chantziaras  wrote:
> On 01/03/2011 10:23 PM, Paul Hartman wrote:
>>
>> On Mon, Jan 3, 2011 at 2:07 PM, Nikos Chantziaras  wrote:
>>>
>>> uvesafb will not give you extra resolutions.  It will however allow you
>>> to
>>> use non-default refresh-rates which is sometimes useful with CRT
>>> monitors.
>>>
>>> But it has a drawback too: it needs a userspace tool and resolution is
>>> switched too late during the boot process, meaning until it loads you'll
>>> be
>>> seeing the kernel boot in 80x25 mode (which in turn means no boot
>>> graphics/logo right from the start.)
>>
>> I use uvesafb and I can see Tux (eight of him) during my boot process
>> before uvesafb kicks in.
>
> I mean more something like this when I say "boot logo":
>
> http://mjanusz.files.wordpress.com/2008/02/shot.png
>
> It's at least 10 years since I saw that default Tux boot thingy :-P  But
> anyway, if uvesafb hasn't kicked in yet, what on earth is drawing that Tux?

Ah-ha, I think that's bootsplash (which I'm not using).  I've only
seen it on a Live CD. :)

In my kernel config I have enabled VESA framebuffer as well as
userspace framebuffer (uvesafb), and I enabled "Bootup Logo". So maybe
what happens is that VESA framebuffer starts immediately into some
default resolution, I see eight Tuxs (Tuxes?), then shortly thereafter
the uvesafb kicks in and video mode changes to the one I specified. At
least that's how it seems to happen. I reboot so rarely that I never
gave it much thought.



[gentoo-user] Strange behaviour with CD tray

2011-01-04 Thread Jacques Montier
Hi all,

With last updates, i encounter some strange behaviour witth my cdrom and
cdrw tray.
When i open the tray, this one closes quite immediatly, and i can't
insert any CD or DVD...
It's not very convenient... :-(
Where is the problem ? hal ? udev ? gvfs ?
When i uninstall gvfs, problem is gone...
My gvfs version and flags :
1.6.4-r2  gdu gnome hal http udev -archive -avahi -bash-completion
-bluetooth -cdda -doc -fuse -gnome-keyring -gphoto2 -iphone -samba

Any idea ?

Thank you very much.

Best regards

--
Jacques
Site web 




[gentoo-user] Re: nvidia update problems

2011-01-04 Thread walt

On 01/04/2011 02:50 AM, Peter Humphrey wrote:

On Monday 03 January 2011 14:40:41 walt wrote:


I'm wondering if you have some mixture of baselayout versions on that
machine from previous updates.


Unlikely: this box has been ~amd64 since before it had a complete
system.


Could your machine be trying to start something other than kdm by
mistake? I.e., maybe you are starting kdm for the first time from
the VT instead of re-starting it?


Also unlikely.

I tried taking xdm out of the default run-level and calling both it and
xdm-setup in /etc/conf.d/local. It started up ok then.


That experiment still makes me suspect something in /etc is wrong. I'm out
of ideas except to search through /etc for files with old dates.


-- just a SWAG :)


Eh? Don't know that one.


Scientific Wild-Ass Guess.





Re: [gentoo-user] Re: Re: Changing boot device with 2.6.36

2011-01-04 Thread Stroller

On 4/1/2011, at 9:42am, Jörg Schaible wrote:
>> ...
>> Does
>> 
>> boot=LABEL=
>> 
>> in grub config work for you?
> 
> I hoped so, but actually no. Grub complains at boot time not finding the 
> root device. Is this available in the grub-0.97 series at all?

I found numerous references to this syntax going back to 2005 or   
so, and some major distros seem to use it as the default way of   
describing "root=" to the kernel. 

http://www.linuxforums.org/forum/redhat-fedora-linux-help/23010-root-label-grub-conf.html
http://linux.derkeiler.com/Mailing-Lists/RedHat/2005-01/0026.html

However:
http://old.nabble.com/Re%3A-Using--%22root%3DLABEL%3D%22-in-grub.conf-p21909347.html
http://tinyurl.com/2u4srg4

Stroller.




Re: [gentoo-user] Latest unstable ntp not generating ntp.drift file.

2011-01-04 Thread Peter Humphrey
On Tuesday 04 January 2011 01:31:27 Dale wrote:

> Anybody else ran into this?  Am I missing something that is different
> on a 64 bit rig?

I discovered chrony some years ago, which has a sophisticated clock 
slewing mechanism, and haven't used ntp since.

Chrony runs on my gateway machine to maintain a stable time source for 
the boxes inside, which are a mixture of 32- and 64-bit. I just don't 
think about timekeeping any more.

You might want to give it a try.

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



Re: [gentoo-user] Re: nvidia update problems

2011-01-04 Thread Peter Humphrey
On Monday 03 January 2011 14:40:41 walt wrote:

> I'm wondering if you have some mixture of baselayout versions on that
> machine from previous updates.

Unlikely: this box has been ~amd64 since before it had a complete 
system.

> Could your machine be trying to start something other than kdm by
> mistake? I.e., maybe you are starting kdm for the first time from
> the VT instead of re-starting it?

Also unlikely.

I tried taking xdm out of the default run-level and calling both it and 
xdm-setup in /etc/conf.d/local. It started up ok then.

> -- just a SWAG :)

Eh? Don't know that one.

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



[gentoo-user] Re: Changing boot device with 2.6.36

2011-01-04 Thread Jörg Schaible
Hi Joost,

J. Roeleveld wrote:

> On Monday 03 January 2011 18:43:28 Jörg Schaible wrote:
>> Hi,
>> 
>> starting with the 2.6.36-r5 kernel of the Gentoo sources my boot device
>> changes. With 2.6.35 and below it is alway /dev/sda3, with the new kernel
>> it seems that anything that is internally connected with USB is assigned
>> a device first. Since my computer has an internal media bay (and my
>> monitor has such a thing also) the first HD moves - it I take care it is
>> now /dev/sde3. However, if I forget to switch on the monitor and do this
>> later or if an USB stick is already plugged in at boot time, the HD gets
>> a different device number again.
>> 
>> Can somebody else confirm such a behaviour with the 2.6.36 kernel and how
>> can this brought back to normal operation?
>> 
>> - Jörg
> 
> One way to avoid USB-devices to be picked up before the kernel picks its
> boot- device is to put the USB-stuff as modules and have them loaded
> later.
> 
> I haven't found a way to delay usb-device detection yet.

If nothing else helps ... :-/

- Jörg




[gentoo-user] Re: Re: Changing boot device with 2.6.36

2011-01-04 Thread Jörg Schaible
Hi Alan,

Alan McKinnon wrote:

> Apparently, though unproven, at 21:36 on Monday 03 January 2011, Jörg
> Schaible did opine thusly:
> 
>> Nikos Chantziaras wrote:
>> > On 01/03/2011 07:43 PM, Jörg Schaible wrote:
>> >> Hi,
>> >> 
>> >> starting with the 2.6.36-r5 kernel of the Gentoo sources my boot
>> >> device changes. With 2.6.35 and below it is alway /dev/sda3, with the
>> >> new kernel it seems that anything that is internally connected with
>> >> USB is assigned a device first. Since my computer has an internal
>> >> media bay (and my monitor has such a thing also) the first HD moves -
>> >> it I take care it is now /dev/sde3. However, if I forget to switch on
>> >> the monitor and do this later or if an USB stick is already plugged in
>> >> at boot time, the HD gets a different device number again.
>> >> 
>> >> Can somebody else confirm such a behaviour with the 2.6.36 kernel and
>> >> how can this brought back to normal operation?
>> > 
>> > This has been solved long ago: Label your filesystems and mount them by
>> > label.
>> 
>> I did this long ago, therefore I can switch between the old and new
>> kernel easily.
>> 
>> > For example, don't put "/dev/sda3" in your fstab, but label that
>> > filesystem with a name like "root_fs" and use
>> > "/dev/disk/by-label/root_fs" in fstab.
>> > 
>> > Ext2/3/4 filesystem can be labeled with the "e2label" tool.  For
>> > example:
>> >e2label /dev/sda3 root_fs
>> > 
>> > After that, modify your fstab accordingly.
>> 
>> And how does this help the kernel to find the root device where
>> /etc/fstab is located ?
> 
> Does
> 
> boot=LABEL=
> 
> in grub config work for you?

I hoped so, but actually no. Grub complains at boot time not finding the 
root device. Is this available in the grub-0.97 series at all?

- Jörg





[gentoo-user] Re: Changing boot device with 2.6.36

2011-01-04 Thread Jörg Schaible
Hi Paul,

Paul Hartman wrote:

> On Mon, Jan 3, 2011 at 11:43 AM, Jörg Schaible 
> wrote:
>> Hi,
>>
>> starting with the 2.6.36-r5 kernel of the Gentoo sources my boot device
>> changes. With 2.6.35 and below it is alway /dev/sda3, with the new kernel
>> it seems that anything that is internally connected with USB is assigned
>> a device first. Since my computer has an internal media bay (and my
>> monitor has such a thing also) the first HD moves - it I take care it is
>> now /dev/sde3. However, if I forget to switch on the monitor and do this
>> later or if an USB stick is already plugged in at boot time, the HD gets
>> a different device number again.
>>
>> Can somebody else confirm such a behaviour with the 2.6.36 kernel and how
>> can this brought back to normal operation?
> 
> Is it possible that your BIOS is changing device order? Do you have
> USB device set to boot before HDD device?

No, HD is first. But I'll recheck.

- Jörg




[gentoo-user] Re: Re: Changing boot device with 2.6.36

2011-01-04 Thread Jörg Schaible
Hi Stroller,

Stroller wrote:

> 
> On 3/1/2011, at 7:36pm, Jörg Schaible wrote:
>> ...
>> And how does this help the kernel to find the root device where
>> /etc/fstab is located ?
> 
> The kernel doesn't. You leave that to GRUB.
> 
> I'm not saying this helps solve your problem, I'm just sayin'.
> 
>> BTW: Yes, I will boot next time with a LABEL entry in the kernels boot
>> option, but I still don't want a kernel that assigns devices in random
>> order.
> 
> As long as you can boot, you should seriously stop caring.

That's it: I cannot! At least not always.

> If you're concerned about mounting USB sticks or memory cards then use
> udev rules to distinguish them.
>
> Regarding the booting, and having to change what's in your grub.conf, I'd
> assume this is a one-off change - you'll change grub.conf to point to the
> new /dev/sdX and that will require no maintenance in the forseeable
> future.

But that's the point: What is X? It is constantly changing with 2.6.36!

> GRUB can do labels, but it needs an initrd or initramfs, I think.

I could not get that working until now ...

- Jörg




Re: [gentoo-user] Changing boot device with 2.6.36

2011-01-04 Thread J. Roeleveld
On Monday 03 January 2011 18:43:28 Jörg Schaible wrote:
> Hi,
> 
> starting with the 2.6.36-r5 kernel of the Gentoo sources my boot device
> changes. With 2.6.35 and below it is alway /dev/sda3, with the new kernel
> it seems that anything that is internally connected with USB is assigned a
> device first. Since my computer has an internal media bay (and my monitor
> has such a thing also) the first HD moves - it I take care it is now
> /dev/sde3. However, if I forget to switch on the monitor and do this later
> or if an USB stick is already plugged in at boot time, the HD gets a
> different device number again.
> 
> Can somebody else confirm such a behaviour with the 2.6.36 kernel and how
> can this brought back to normal operation?
> 
> - Jörg

One way to avoid USB-devices to be picked up before the kernel picks its boot-
device is to put the USB-stuff as modules and have them loaded later.

I haven't found a way to delay usb-device detection yet.

--
Joost