Re: [gentoo-user] Can't update dev-lib/nss

2010-11-10 Thread Fatih Tümen
On Wed, Nov 10, 2010 at 01:45, Stroller strol...@stellar.eclipse.co.uk wrote:

 On 9/11/2010, at 9:03pm, Fatih Tümen wrote:
 On Tue, Nov 9, 2010 at 22:05, Alan McKinnon alan.mckin...@gmail.com wrote:

 The language of this list is English. You might be lucky and find 
 someonewhounderstands French and knows the answer to your problem, but the 
 odds arenotgood. I don't speak French at all, I can't even make jokes about 
 leBigMacand get it right, so I can't help you much :-)

 I suggest you find and post to a French speaking list, or translate 
 theFrencherror messages to English.

 Come on, there was nothing French there except 'Leaving directory' message
 preceded by its mnemonic 'make[1]':)

 The point is that I don't know that the error message translates to 'Leaving 
 directory'. And it's the only error message there is.


Sorry for assuming that the words 'quitant' and 'enterant' were
trivial for a English speaker.  Anyway that line was not an error
line. Correct me if I am wrong but make usually [always?] shouts the
errors with triple asteriks followed by error numbers as in:

make[1]: *** [../../dist/public/dbm] Erreur 134
make: *** [export] Erreur 2

package name, make, and error nr are the keyword of my search.

 Isn't it possible for non-English speakers to set something like 
 LANG=en_GB.UTF-8 in /etc/env.d/02locale and then simply `export 
 LANG=en_GB.UTF-8` before posting their errors?


If it is not a bug of portage to produce error messages in English on
a system with non-English locale then it should be a feature of
portage to reproduce all error messages in English.

--
   Fatih



[gentoo-user] GNS3 gentoo overlay

2010-11-10 Thread Coert Waagmeester

Hello all,

I see the gns3 overlay link is broken
http://code.gns3.net/gns3-overlay/file/ec6bc595d263/gns3-overlay-docs.txt

Do any of you use gns3? what is the recommended way of installing it on 
gentoo?


Regards,
Coert Waagmeester



Re: [gentoo-user] GNS3 gentoo overlay SOLVED

2010-11-10 Thread Neil Bothwick
On Wed, 10 Nov 2010 11:52:08 +0200, Coert Waagmeester wrote:

 My bad, I found it after some more googling in the zugaina overlay.

Eix is able to search overlays, installed and otherwise, for packages. In
this case it shows that sunrise has a newer version that zuigana.


-- 
Neil Bothwick

WinErr 018: Unrecoverable error - System has been destroyed. Buy a new
one. Old Windows licence is not valid anymore.


signature.asc
Description: PGP signature


Re: [gentoo-user] Can't update dev-lib/nss

2010-11-10 Thread alain . didierjean
Selon Dale rdalek1...@gmail.com:


 I would try it with sandbox disabled.

 FEATURES=-*sandbox* your emerge command here

 It may work.  Certainly worth a shot I guess.


Bingo! For some reason, FEATURES=-*sandbox* emerge nss did'nt work (sandbox
still used) when replacing FEATURE=...usersandbox by -sandbox  launching
emerge -u nss worked.
Thanks Dale,
Thanks Alan for helping in explaining why you can't help.





Re: [gentoo-user] GNS3 gentoo overlay SOLVED

2010-11-10 Thread Coert Waagmeester

Neil Bothwick wrote:

On Wed, 10 Nov 2010 11:52:08 +0200, Coert Waagmeester wrote:


My bad, I found it after some more googling in the zugaina overlay.


Eix is able to search overlays, installed and otherwise, for packages. In
this case it shows that sunrise has a newer version that zuigana.




Thanks Neil,

The older version depended on a hard masked qt.

This is indeed better!



Re: [gentoo-user] [Somewhat OT] Laptop battery not showing up in KDE, Smart Battery calibration

2010-11-10 Thread Fatih Tümen
On Tue, Nov 9, 2010 at 23:52, Paul Hartman
paul.hartman+gen...@gmail.com wrote:
 Hi,

 I have a laptop running Gentoo (with dual-boot to Windows XP). It was
 manufactured in 2004 and battery life have been consistent for all
 those years. However, it sat dormant for almost a year, after which I
 did a few days worth of updating to bring it up to current kernel and
 ~amd64 package levels. There are two issues that have arisen:

 1) The smart battery is not so smart anymore. It only charges about
 halfway, then the charging light turns green and it stops. Effective
 battery capacity is about one-third of what it used to be. From what I
 understand, while Li-ion don't have memory like old Ni-Cd batteries,
 the smart circuitry cannot account for power drain that happens when
 the battery is not in use. Say the battery lost half of its power
 while it was in storage, so the chip thinks charge is at one level
 when it is really much lower. When recharging, it stops when it is
 full even though it's only halfway there.

 Has anyone successfully re-calibrated one of these batteries to
 recognize a larger capacity?

 My understanding is that, to do this, I should discharge at a constant
 rate until it is empty, then charge to full. Repeat ?? times. I've
 drained the poor little battery after regular usage (not a constant
 rate of discharge) a few times and haven't noticed any change so far.
 So I'm probably doing it wrong (or completely misunderstanding...)


AFAIK, this is the advised way to dis/charge Li-ion batteries to keep
their performance up. But since you left it to sleep for a year, you
probably lost some of the cells to death. You can perhaps try keep
doing that not to loose any more of them.

 This is complicated by my second problem:

 2) If I click on the Power Management in the KDE system settings, it
 says Number of CPUs 0 Number of batteries 0 and battery-related
 options are greyed out. Since battery monitoring does not work, I have
 no idea how much battery life is left and have no warning when it
 suddenly shuts down, causing filesystem corruption and who knows what
 other problems.

 Everything in /proc/acpi/battery/ seems normal and /proc/cpuinfo does as well:

 $ cat /proc/acpi/battery/BAT1/info
 present:                 yes
 design capacity:         4400 mAh
 last full capacity:      1984 mAh
[..]
 $ cat /proc/acpi/battery/BAT1/state
 present:                 yes
 capacity state:          ok
 charging state:          charged
 present rate:            0 mA
 remaining capacity:      1984 mAh
 present voltage:         16384 mV

Only ~45% [1985/4400*100] of your battery seems to be alive. For
reference, I have 3062/4400*100 ~70% of a 5 year old battery here and
I have not paid attention to the above mentioned dis/charge advise.

I don't know why KDE cannot read. Try to check ~/.xsession-error for
some useful error. FYI the remaining battery level is calculated by
the following formula FYI:

remaining capacity / last full capacity * 100

If youre planning to use this battery, either try other battery
monitors or have a script to calculate above values periodically and
give a warning. Otherwise at some point your system will get as
corrupted as your battery. Good luck.

--
   Fatih



[gentoo-user] Re: Anyone using consolekit?

2010-11-10 Thread walt

On 11/09/2010 05:08 AM, 李健 wrote:

I don't know how to solve this, but I hope the following messages may help you.

  Messages generated by process 14982 on 2010-10-18 23:54:00 CST for package
sys-auth/polkit-0.96-r1:

WARN: postinst
If you don't use GDM or KDM for logging in,
you must start your desktop environment (DE) as follows:
 ck-launch-session $STARTGUI
Where $STARTGUI is a DE-starting command such as 'gnome-session'.
You should add this to your ~/.xinitrc if you use startx.


I don't know how I missed that message after emerging consolekit ten times, but
I missed it.  Thanks, I'll give that a try.



2010/11/6 walt w41...@gmail.com mailto:w41...@gmail.com

When I turned on the consolekit useflag, all the nice auto-mounting stuff in
gnome stopped working.







Re: [gentoo-user] GNS3 gentoo overlay SOLVED

2010-11-10 Thread Coert Waagmeester

Coert Waagmeester wrote:

Hello all,

I see the gns3 overlay link is broken
http://code.gns3.net/gns3-overlay/file/ec6bc595d263/gns3-overlay-docs.txt

Do any of you use gns3? what is the recommended way of installing it on 
gentoo?


Regards,
Coert Waagmeester




My bad, I found it after some more googling in the zugaina overlay.

Rgds,
Coert



[gentoo-user] [OT] rsync question

2010-11-10 Thread Helmut Jarausch
Hi,

the following behaviour of rsync puzzles me.

I have the following situation

Source/Athis is a symlink !

Dest/A  this is a real directory


now
cd Dest/A
rsync -auHz -ni --rsh=ssh --delete --exclude='/A/' source
machine:Source/ .

shows that it's going to delete the folder Dest/A

Can anybody please explain me why?

Thanks a lot,
Helmut.

(P.S. : I did google for it but couldn't find an explanation)



Re: [gentoo-user] suidperl missing after update to perl 5.12.2-r2

2010-11-10 Thread Dan Johansson
On Monday 08 November 2010 20.18:22 Sebastian Beßler wrote:
 Am 08.11.2010 15:02, schrieb Dan Johansson:
  Hi,
  
  After updating from dev-lang/perl-5.8.8-r8 to dev-lang/perl-5.12.2-r2
  I am no missing the suidperl binary. Some of my perl scripts _need_
  this feature. Any suggestion on how to be able to execute
  perl-scritps suid (except downgrade to 5.8.8).
 
 
 Hello,
 
 have you run perl-cleaner --phall after the update?
 If not, do so.
 
No, only perl-cleaner --all was run.
I have now run perl-cleaner --phall as well and it did not help - still no 
suidperl.

Regards,
-- 
Dan Johansson, http://www.dmj.nu
***
This message is printed on 100% recycled electrons!
***



Re: [gentoo-user] {OT} Deliberately obfuscating my code

2010-11-10 Thread felix
I haven't read the entire thread and I don't intend to.  The whole
concept is so bizarre that I could not read it without thinking of the
worst most evil bosses and environments I have worked on, and none of
them even come close.

It does remind me a bit of what I have read about computers back in
the 1930s, and especially on the atom bomb projects.  There would be a
project leader who would have to break some formula down into little
bitty steps which could be famed out to people running calculating
machines.  There would be a page of steps.  The first few numbers
would be filled in; each computer (being a human at this time) would
follow one specific line, say 17 being the sum of 10 and 6, and pass
the sheet on to someone else.  Presumably hard problems had many
pages, and someone would copy final numbers from one page to beginning
numbers on another page.

Not only did the steps have to be simple, they had to parallelize as
much as possible, so multiple sheets could start at once, only coming
together for the final calculations.

But what really made it fascinating was that for anything secret,
whether the atom bomb or mere commercial trade secrets, one of the
goals was to make sure that no one who worked on any single sheet
could have any idea of the overall project.  You never put units on a
sheet, never used familiar constants (5280 feet per mile), never ever
ever let anyone have any idea what they were doing other than
repeating line 6 + line 10 yields line 17.  I would imagine that if
you wanted to multiple miles by 5280 to get feet, you could split it
into two steps on different sheets; one multiplied by 264, the other
by 20, but probably more obfuscated.

That is what Grant wants here, and it requires that the people he hire
be mere mechanical monkeys.  Anyone with any intelligence will run
away from such a project faster than kryptonite diarrhea thru Superman.

Grant, you need to stop being paranoid.  I am surprised you even
worked up the courage to let slip on here, in public, that you even
have a sooper dooper sekrit project.

-- 
... _._. ._ ._. . _._. ._. ___ .__ ._. . .__. ._ .. ._.
 Felix Finch: scarecrow repairman  rocket surgeon / fe...@crowfix.com
  GPG = E987 4493 C860 246C 3B1E  6477 7838 76E9 182E 8151 ITAR license #4933
I've found a solution to Fermat's Last Theorem but I see I've run out of room o



Re: [gentoo-user] Re: {OT} Deliberately obfuscating my code

2010-11-10 Thread Florian Philipp
Am 10.11.2010 06:56, schrieb Grant Edwards:
 On 2010-11-09, Florian Philipp li...@f_philipp.fastmail.net wrote:
 
 Well, there are two ways to go here:
 
 1. Modularize what you have. Give every developer only the source he
is supposed to work on and binary interfaces (libs + header files
for C/C++) and documentation for everything else.

Then the devs will be able to run the software but no one will
have all the source code.

 2. Do not give working code to anyone. Define specs, test cases,
prototypes and mock-ups. Then tell your devs to develop against these.

When they have finished their modules (classes, units, whatever),
it is your job to integrate these modules and see whether they
work together as expected. If they don't, improve your specs and
tests and give the code back to the devs for another iteration.

 I favor the second approach, especially as there are tools available
 to help you and it is safer against reverse-engineering.
 
 Both of these approaches are going to involve a lot of overhead (the
 second more so that the first).  I would _guess_ than approach 2 will
 add at least 50-100% overhead.  IOW, there's a pretty good chance that
 writing the whole thing yourself would take less of your time than
 designing, specifying, coordinating, integrating, testing and managing
 approach 2.
[...]

Sure. But it will be fun! ;)
... Just kidding. Unless specifications, inline interface documentation
(doxygen, javadoc) and unit tests were already planned or even done
(kudos if you actually do this while developing), you are probably right
concerning the overhead.

Of course it all depends on your development environment. When you get
into the embedded, real-time, high-performance, high-security or
high-redundancy realm, specifications etc. tend to become less overhead
in comparison to actual coding and algorithmic effort. There are reasons
why in some environments it is even affordable to create two independent
implementations and then choose the better one.

I highly doubt that we are actually talking about such software here,
though.

Regards,
Florian Philipp



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] [Somewhat OT] Laptop battery not showing up in KDE, Smart Battery calibration

2010-11-10 Thread Petri Rosenström
Hi,

On Tue, Nov 9, 2010 at 11:52 PM, Paul Hartman
paul.hartman+gen...@gmail.com wrote:
 Hi,

 I have a laptop running Gentoo (with dual-boot to Windows XP). It was
 manufactured in 2004 and battery life have been consistent for all
 those years. However, it sat dormant for almost a year, after which I
 did a few days worth of updating to bring it up to current kernel and
 ~amd64 package levels. There are two issues that have arisen:

 1) The smart battery is not so smart anymore. It only charges about
 halfway, then the charging light turns green and it stops. Effective
 battery capacity is about one-third of what it used to be. From what I
 understand, while Li-ion don't have memory like old Ni-Cd batteries,
 the smart circuitry cannot account for power drain that happens when
 the battery is not in use. Say the battery lost half of its power
 while it was in storage, so the chip thinks charge is at one level
 when it is really much lower. When recharging, it stops when it is
 full even though it's only halfway there.

 Has anyone successfully re-calibrated one of these batteries to
 recognize a larger capacity?

 My understanding is that, to do this, I should discharge at a constant
 rate until it is empty, then charge to full. Repeat ?? times. I've
 drained the poor little battery after regular usage (not a constant
 rate of discharge) a few times and haven't noticed any change so far.
 So I'm probably doing it wrong (or completely misunderstanding...)

 This is complicated by my second problem:

 2) If I click on the Power Management in the KDE system settings, it
 says Number of CPUs 0 Number of batteries 0 and battery-related
 options are greyed out. Since battery monitoring does not work, I have
 no idea how much battery life is left and have no warning when it
 suddenly shuts down, causing filesystem corruption and who knows what
 other problems.

I would guess that you are missing either hal or solid?


 Everything in /proc/acpi/battery/ seems normal and /proc/cpuinfo does as well:

 $ cat /proc/acpi/battery/BAT1/info
 present:                 yes
 design capacity:         4400 mAh
 last full capacity:      1984 mAh
 battery technology:      rechargeable
 design voltage:          14800 mV
 design capacity warning: 300 mAh
 design capacity low:     100 mAh
 cycle count:              0
 capacity granularity 1:  32 mAh
 capacity granularity 2:  32 mAh
 model number:            01ZG
 serial number:           1020
 battery type:            LION
 OEM info:                SMP

 $ cat /proc/acpi/battery/BAT1/state
 present:                 yes
 capacity state:          ok
 charging state:          charged
 present rate:            0 mA
 remaining capacity:      1984 mAh
 present voltage:         16384 mV

 $ cat /proc/cpuinfo
 processor       : 0
 vendor_id       : AuthenticAMD
 cpu family      : 15
 model           : 28
 model name      : Mobile AMD Athlon 64 Processor 3000+
 stepping        : 0
 cpu MHz         : 2000.000
 cache size      : 512 KB
 fpu             : yes
 fpu_exception   : yes
 cpuid level     : 1
 wp              : yes
 flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
 mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx mmxext
 fxsr_opt lm 3dnowext 3dnow rep_good
 bogomips        : 4009.21
 TLB size        : 1024 4K pages
 clflush size    : 64
 cache_alignment : 64
 address sizes   : 40 bits physical, 48 bits virtual
 power management: ts fid vid ttp

 That all seems to look normal to me, so I'm not sure if I'm missing
 some setting somewhere else.

 Any advice or suggestions would be appreciated.

 Thanks,
 Paul



Best regards
Petri Rosenström



Re: [gentoo-user] [Somewhat OT] Laptop battery not showing up in KDE, Smart Battery calibration

2010-11-10 Thread Paul Hartman
2010/11/10 Fatih Tümen fthtmn+gen...@gmail.com:
 On Tue, Nov 9, 2010 at 23:52, Paul Hartman
 paul.hartman+gen...@gmail.com wrote:
 Hi,

 I have a laptop running Gentoo (with dual-boot to Windows XP). It was
 manufactured in 2004 and battery life have been consistent for all
 those years. However, it sat dormant for almost a year, after which I
 did a few days worth of updating to bring it up to current kernel and
 ~amd64 package levels. There are two issues that have arisen:

 1) The smart battery is not so smart anymore. It only charges about
 halfway, then the charging light turns green and it stops. Effective
 battery capacity is about one-third of what it used to be. From what I
 understand, while Li-ion don't have memory like old Ni-Cd batteries,
 the smart circuitry cannot account for power drain that happens when
 the battery is not in use. Say the battery lost half of its power
 while it was in storage, so the chip thinks charge is at one level
 when it is really much lower. When recharging, it stops when it is
 full even though it's only halfway there.

 Has anyone successfully re-calibrated one of these batteries to
 recognize a larger capacity?

 My understanding is that, to do this, I should discharge at a constant
 rate until it is empty, then charge to full. Repeat ?? times. I've
 drained the poor little battery after regular usage (not a constant
 rate of discharge) a few times and haven't noticed any change so far.
 So I'm probably doing it wrong (or completely misunderstanding...)


 AFAIK, this is the advised way to dis/charge Li-ion batteries to keep
 their performance up. But since you left it to sleep for a year, you
 probably lost some of the cells to death. You can perhaps try keep
 doing that not to loose any more of them.

After consulting my laptop manual, it recommends doing full
discharge/charge cycle once a month, to remove battery when operating
solely on AC power, and to remove battery when laptop is not in use. I
didn't do any of those things.

 If youre planning to use this battery, either try other battery
 monitors or have a script to calculate above values periodically and
 give a warning. Otherwise at some point your system will get as
 corrupted as your battery. Good luck.

Thanks, it seems my poor batteries may have been killed then. My
laptop used to last about 90 minutes in Linux or 2.5 hours in Windows
XP, at the beginning of this year. Under extreme load (frequency
scaling disabled) it would last about 30 minutes.

Last night I took it to full charge, put in memtest86+ boot CD and the
system lasted 9 minutes before battery was drained. So that matches
the 1/3 batter life I experienced under normal usage, too.

I just read somewhere on WWW that sometimes better calibration can be
achieved by leaving battery completely drained for some time (more
than 5 hours) before plugging the charger back in. So I'll try that as
one last desperate hope. If the cells are dead then I can't do any
more harm to them so why not try it? :)

Now, since this is an old laptop (6 years) I am skeptical about buying
a replacement battery that may have been sitting in a stockroom for
several years. Local battery store wants more than US$100 for a name
brand replacement (Rayovac). Online, I can find one for less than
half that price, but I am really suspicious about the quality. My past
experience of buying generic laptop batteries online has not been
good. Don't fit properly, poor lifespan, etc.

Of course Acer does not sell the batteries for my laptop anymore, so
getting an original battery is not an option.

Has anyone tried to replace the cells inside their own battery? I'm
reading this site:
http://www.electronics-lab.com/articles/Li_Ion_reconstruct/

Seems kind of dangerous... I can't price the cells because I haven't
opened my battery pack, so I don't know if it's really any cheaper
than buying a new one.



Re: [gentoo-user] Suspect fs, or suspect disk, or something else?

2010-11-10 Thread Mick
On 9 November 2010 23:30, Stroller strol...@stellar.eclipse.co.uk wrote:

 On 9/11/2010, at 4:04pm, Alex Schuster wrote:
 ...
 I need to mention here that the machine is a laptop which I use
 regularly on train journeys (bumpy ride).  The drive has a Seagate
 G-Force Protection™ which is meant to park the head in case of a fall.

 Which probably would not help in the train, unless you drop it there.

 Further to Alex's comment: the G-Force Protection™ probably parks the head in 
 the event that the laptop goes weightless (a cheap sensor built into the 
 drive would be quite adequate to detect that), but it probably takes half a 
 second to do so. In the case of up and down jolts I'm not sure that it would 
 detect those the same way - maybe it is indeed clever enough to do so, but 
 would it have time to park the head?

Thank you all, I have now completed exhaustive (and exhausting) tests
with memtest86+, memtester and badblocks.  They did not show errors.
So if I am to believe all the results I have gathered the disk and
memory should be OK.

Have you had any problems with this Seagate Momentus 7200?

Have you had any fs corruptions with Reiser4?
-- 
Regards,
Mick



Re: [gentoo-user] suidperl missing after update to perl 5.12.2-r2

2010-11-10 Thread Stroller

On 8/11/2010, at 2:02pm, Dan Johansson wrote:
 ...
 After updating from dev-lang/perl-5.8.8-r8 to dev-lang/perl-5.12.2-r2 I am no 
 missing the suidperl binary. Some of my perl scripts _need_ this feature. 
 Any suggestion on how to be able to execute perl-scritps suid (except 
 downgrade to 5.8.8).

I've been slightly paranoid after a couple of recent updates, so looked to see 
on my system, and it doesn't have suidperl, either.

So I googled it for you:
http://bugs.gentoo.org/show_bug.cgi?id=344945

Stroller.




Re: [gentoo-user] {OT} Deliberately obfuscating my code

2010-11-10 Thread Florian Philipp
Am 10.11.2010 17:44, schrieb fe...@crowfix.com:
 I haven't read the entire thread and I don't intend to.  The whole
 concept is so bizarre that I could not read it without thinking of the
 worst most evil bosses and environments I have worked on, and none of
 them even come close.
 
 It does remind me a bit of what I have read about computers back in
 the 1930s, and especially on the atom bomb projects.  There would be a
 project leader who would have to break some formula down into little
 bitty steps which could be famed out to people running calculating
 machines.  There would be a page of steps.  The first few numbers
 would be filled in; each computer (being a human at this time) would
 follow one specific line, say 17 being the sum of 10 and 6, and pass
 the sheet on to someone else.  Presumably hard problems had many
 pages, and someone would copy final numbers from one page to beginning
 numbers on another page.
 
 Not only did the steps have to be simple, they had to parallelize as
 much as possible, so multiple sheets could start at once, only coming
 together for the final calculations.
 
 But what really made it fascinating was that for anything secret,
 whether the atom bomb or mere commercial trade secrets, one of the
 goals was to make sure that no one who worked on any single sheet
 could have any idea of the overall project.  You never put units on a
 sheet, never used familiar constants (5280 feet per mile), never ever
 ever let anyone have any idea what they were doing other than
 repeating line 6 + line 10 yields line 17.  I would imagine that if
 you wanted to multiple miles by 5280 to get feet, you could split it
 into two steps on different sheets; one multiplied by 264, the other
 by 20, but probably more obfuscated.
 


That reminds me of its modern successor: Secure computation [1]

In a nutshell: Do arbitrary computations with data from different
organizations who do not want to share their source data with each
other. They only want to share the final result.

[1] http://en.wikipedia.org/wiki/Secure_multi-party_computation



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] suidperl missing after update to perl 5.12.2-r2

2010-11-10 Thread Dan Johansson
On Wednesday 10 November 2010 18.17:19 Stroller wrote:
 
 On 8/11/2010, at 2:02pm, Dan Johansson wrote:
  ...
  After updating from dev-lang/perl-5.8.8-r8 to dev-lang/perl-5.12.2-r2 I am 
  no missing the suidperl binary. Some of my perl scripts _need_ this 
  feature. Any suggestion on how to be able to execute perl-scritps suid 
  (except downgrade to 5.8.8).
 
 I've been slightly paranoid after a couple of recent updates, so looked to 
 see on my system, and it doesn't have suidperl, either.
 
 So I googled it for you:
 http://bugs.gentoo.org/show_bug.cgi?id=344945
 
Yeah, I have seen that too (after I started this thread).
What I'm looking for now is some wrapper functionality for my CGI-script.

Regards,
-- 
Dan Johansson, http://www.dmj.nu
***
This message is printed on 100% recycled electrons!
***



Re: [gentoo-user] [Somewhat OT] Laptop battery not showing up in KDE, Smart Battery calibration

2010-11-10 Thread J. Roeleveld
On Wednesday 10 November 2010 18:05:40 Paul Hartman wrote:
 2010/11/10 Fatih Tümen fthtmn+gen...@gmail.com:
  On Tue, Nov 9, 2010 at 23:52, Paul Hartman
  
  paul.hartman+gen...@gmail.com wrote:
  Hi,
  

snipped
 
 Last night I took it to full charge, put in memtest86+ boot CD and the
 system lasted 9 minutes before battery was drained. So that matches
 the 1/3 batter life I experienced under normal usage, too.
 
 I just read somewhere on WWW that sometimes better calibration can be
 achieved by leaving battery completely drained for some time (more
 than 5 hours) before plugging the charger back in. So I'll try that as
 one last desperate hope. If the cells are dead then I can't do any
 more harm to them so why not try it? :)

If these are discharged too far (The circuitry in the battery-pack should 
prevent this) the cells can get permanently damaged. This seems to have 
happened.
Best practices for batteries (any type, apart from Lead Acid ;) ) is to take 
them out of the laptop when running for long periods from the mains. This is 
to prevent the batteries from being constantly charged.

 Now, since this is an old laptop (6 years) I am skeptical about buying
 a replacement battery that may have been sitting in a stockroom for
 several years. Local battery store wants more than US$100 for a name
 brand replacement (Rayovac). Online, I can find one for less than
 half that price, but I am really suspicious about the quality. My past
 experience of buying generic laptop batteries online has not been
 good. Don't fit properly, poor lifespan, etc.

snipped

If these batteries have been charged to 70% before storage, they can last a 
while, but one should still top them up to 70% once every year or so.

 Has anyone tried to replace the cells inside their own battery? I'm
 reading this site:
 http://www.electronics-lab.com/articles/Li_Ion_reconstruct/
 
 Seems kind of dangerous... I can't price the cells because I haven't
 opened my battery pack, so I don't know if it's really any cheaper
 than buying a new one.

Actually, it is dangerous and I wouldn't trust the batterypack anywhere near 
my laptop after a procedure like that.

If the soldering isn't done correctly, the battery-pack can literally explode 
when put under load.

--
Joost Roeleveld



Re: [gentoo-user] suidperl missing after update to perl 5.12.2-r2

2010-11-10 Thread Stroller

On 10/11/2010, at 6:04pm, Dan Johansson wrote:

 On Wednesday 10 November 2010 18.17:19 Stroller wrote:
 
 On 8/11/2010, at 2:02pm, Dan Johansson wrote:
 ...
 After updating from dev-lang/perl-5.8.8-r8 to dev-lang/perl-5.12.2-r2 I am 
 no missing the suidperl binary. Some of my perl scripts _need_ this 
 feature. Any suggestion on how to be able to execute perl-scritps suid 
 (except downgrade to 5.8.8).
 
 I've been slightly paranoid after a couple of recent updates, so looked to 
 see on my system, and it doesn't have suidperl, either.
 
 So I googled it for you:
 http://bugs.gentoo.org/show_bug.cgi?id=344945
 
 Yeah, I have seen that too (after I started this thread).
 What I'm looking for now is some wrapper functionality for my CGI-script.

Well, if you don't think this decision will be reviewed, have you tried digging 
out the previous version of the rebuild (CVS attic, if necessary), and copying 
it to /usr/local/portage/dev-lang/perl/perl-5.12.2-r2.ebuild ?

Stroller.


[gentoo-user] Swing !

2010-11-10 Thread meino . cramer
Hi,

I am a little confused.
I am compiled SuperCollider3 from source.
When started, it complains of not finding swing.
As far as I know, Swing is part of the java sdk.
Is it? Or what can trigger this message?
Best regards,
mcc




Re: [gentoo-user] 32bit-Executables on a AMD64 system...

2010-11-10 Thread meino . cramer
Coert Waagmeester lgro...@waagmeester.co.za [10-11-10 18:40]:
 meino.cra...@gmx.de wrote:
 Hi,
 it is possible to run a 32-bit binary executable on a 64-bit system
 (AMD64).
 But: Is it possible to compile source code on a 64-bit system and get
 an 32-bit executable a the result ??? And if 'yes'...how???
 Thank you very much for any help in advance!
 Best regards,
 mcc
 
 Hello Meino,
 
 My setup is one 32bit pc with gentoo and another 64bit pc with gentoo
 
 I managed to get this going on the 64bit with a 32-bit chroot, distcc, 
 and crosstools
 
 Just make sure you compiled your kernel with IA32 binary support 
 (should be default)
 
 Here are some links:
 http://www.gentoo.org/proj/en/base/amd64/howtos/index.xml?part=1chap=2
 http://www.gentoo.org/doc/en/cross-compiling-distcc.xml
 http://www.gentoo.org/doc/en/distcc.xml
 http://www.gentoo.org/proj/en/base/embedded/handbook/index.xml?part=1chap=2
 
 Regards,
 Coert Waagmeester
 

Hi Coert,

thanks a lot for your informations and the links! :)

I will see, how I will proceed...

Best regards
mcc





Re: [gentoo-user] suidperl missing after update to perl 5.12.2-r2

2010-11-10 Thread Alan McKinnon
Apparently, though unproven, at 20:40 on Wednesday 10 November 2010, Stroller 
did opine thusly:

 On 10/11/2010, at 6:04pm, Dan Johansson wrote:
  On Wednesday 10 November 2010 18.17:19 Stroller wrote:
  On 8/11/2010, at 2:02pm, Dan Johansson wrote:
  ...
  After updating from dev-lang/perl-5.8.8-r8 to dev-lang/perl-5.12.2-r2 I
  am no missing the suidperl binary. Some of my perl scripts _need_ this
  feature. Any suggestion on how to be able to execute perl-scritps
  suid (except downgrade to 5.8.8).
  
  I've been slightly paranoid after a couple of recent updates, so looked
  to see on my system, and it doesn't have suidperl, either.
  
  So I googled it for you:
  http://bugs.gentoo.org/show_bug.cgi?id=344945
  
  Yeah, I have seen that too (after I started this thread).
  What I'm looking for now is some wrapper functionality for my CGI-script.
 
 Well, if you don't think this decision will be reviewed, have you tried
 digging out the previous version of the rebuild (CVS attic, if necessary),
 and copying it to /usr/local/portage/dev-lang/perl/perl-5.12.2-r2.ebuild ?
 
 Stroller.

We don't know the specifics of what Dan wants to do, but I would definitely 
recommend the use of sudo.

suidperl always seemed a botch job to me, and effort to get something to work 
at any cost. Almost exactly the same thought process that led to suid itself 
(I'm not arguing against suid, I don't know any other easy way to achieve that 
result - I just resent the need for there to be a suid at all.)

I almost never want to run something as root. I usually want a specific user 
to be able to run something as root under specific circumstances or times. And 
all those specifics can be configured into /etc/sudoers, even down to no 
password being needed.

It does mean a litte more work to set sudo up properly, but IMHO it's usually 
worth the effort.


-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] Re: Upgrading from FX-5200 to a GeForce 6200 512MB

2010-11-10 Thread Dale

Dale wrote:


According to top, gkrellm and cat /proc/meminfo there is no swap in 
use.  I have 2Gbs of ram and have swappiness set to 20 or 30.  I 
rarely use swap unless I am compiling something huge, OOo comes to 
mind, or have a LOT of images open with GIMP.


I did check to make sure tho.  My swappiness did get magically changed 
once before.  I wish it was something that easy tho.


Still open to ideas.  I started a emerge -e world.

Dale

:-)  :-)



Just to update here.  I started a emerge -e world.  It has not even 
finished yet but it appears to be working fine now.  It was working 
yesterday, last night, this morning and was working fine when I tried 
just a minute ago.  So, it appears that something needed to be 
recompiled somewhere but no clue what that could have been.


I'll keep testing over the next few days and may report back if it is 
still working correctly.  I hope that it does tho.  It was getting on my 
nerves.


Thanks for the ideas and help.

Dale

:-)  :-)



[gentoo-user] Colors of the USE flags in emerge --pretend

2010-11-10 Thread Benyamin Dvoskin
Hi ,

When running emerge -p for some package , one gets for each dependency and
package a list of USE flags at the end of the line.
some are colored in red , some blue

what are the differences ?

Thanks,
Benny


Re: [gentoo-user] Colors of the USE flags in emerge --pretend

2010-11-10 Thread KH
Am 10.11.2010 21:37, schrieb Benyamin Dvoskin:
 Hi ,
 
 When running emerge -p for some package , one gets for each dependency
 and package a list of USE flags at the end of the line.
 some are colored in red , some blue
 
 what are the differences ?
 
 Thanks,
 Benny

Hi,

for me red is enabled and blue disabled.

 _
ASCII ribbon campaign   ( )
against HTML e-mail  X
/ \

ascii ribbon campaign - stop html mail - www.asciiribbon.org


Regards

kh



Re: [gentoo-user] Colors of the USE flags in emerge --pretend

2010-11-10 Thread Dale

Benyamin Dvoskin wrote:

Hi ,

When running emerge -p for some package , one gets for each dependency 
and package a list of USE flags at the end of the line.

some are colored in red , some blue

what are the differences ?

Thanks,
Benny



From the emerge man page:

   [ebuild U ] sys-devel/distcc-2.16 [2.13-r1] USE=ipv6* -gtk -qt%
  Here we see that the make.conf variable USE affects how 
this package is built.  In  this  example,
  ipv6 optional support is enabled and both gtk and qt 
support are disabled.  The asterisk following
  ipv6 indicates that ipv6 support was disabled the last 
time this packages was installed.  The per-
  cent  sign  following  qt  indicates that the qt option 
has been added to the package since it was
  last installed.  For information about all USE symbols, 
see  the  --verbose  option  documentation

  above.
  *Note:  Flags  that  haven't  changed  since  the last 
install are only displayed when you use the
  --pretend and --verbose options.  Using the --quiet 
option will prevent all information from being

  displayed.

The colors tend to follow what is being changed to make it more 
noticeable.  I think red is disabled or something to that effect.  I 
don't pay to much attention to the colors, I look for the percent sign 
for changes.  Keep in mind that you can change or disable those colors 
locally too.


Dale

:-)  :-)


Re: [gentoo-user] Can't update dev-lib/nss

2010-11-10 Thread Dale

alain.didierj...@free.fr wrote:

Selon Dalerdalek1...@gmail.com:


   

I would try it with sandbox disabled.

FEATURES=-*sandbox*your emerge command here

It may work.  Certainly worth a shot I guess.

 

Bingo! For some reason, FEATURES=-*sandbox* emerge nss did'nt work (sandbox
still used) when replacing FEATURE=...usersandbox by -sandbox  launching
emerge -u nss worked.
Thanks Dale,
Thanks Alan for helping in explaining why you can't help.

   


You're welcome.  I wasn't sure it would help but it couldn't hurt to try 
it at least.  Sometimes things won't compile with sandbox just like 
sometimes you can't use more than one core to compile a package.  I 
guess one gets ahead of the other or something.


When grasping at straws, grab all you can.  lol

Glad you got it fixed.

Dale

:-)  :-)



Re: [gentoo-user] Re: When ls command fails but only on $HOME

2010-11-10 Thread Enrico Weigelt
* Harry Putnam rea...@newsguy.com wrote:

 Just to close this thread... a reboot swept away all `ls' problems so
 still not sure what caused it, but am happily having normal experience
 with `ls' once again.

Might well be that the reboot caused an fsck run, which fixed
the problems.


cu
-- 
--
 Enrico Weigelt, metux IT service -- http://www.metux.de/

 phone:  +49 36207 519931  email: weig...@metux.de
 mobile: +49 151 27565287  icq:   210169427 skype: nekrad666
--
 Embedded-Linux / Portierung / Opensource-QM / Verteilte Systeme
--



Re: [gentoo-user] Converting RCS/CVS to git

2010-11-10 Thread Enrico Weigelt
* fe...@crowfix.com fe...@crowfix.com wrote:

 I found git has a cvsimport command, but it complained that cvs didn't
 recognize the server command, and some hints I saw of requiring cvs 2
 made me pause ... all I can see is cvs 1.12. 

echo dev-vcs/cvs server  /etc/portage/package.use  emerge -1 cvs

 I am not  excited at git expecting a cvs server; I'll be danged if I'm
 going to muck around with that just to convert a few files when git
 has direct access to the ,v files themselves.

You dont need to have an cvs server listening on some port.
git-cvsimport just uses the cvs server command to check out
individual revisions. Directly working on *,v files would require
an completely separate implementation, just for the special case
of importing local repos.


cu
-- 
--
 Enrico Weigelt, metux IT service -- http://www.metux.de/

 phone:  +49 36207 519931  email: weig...@metux.de
 mobile: +49 151 27565287  icq:   210169427 skype: nekrad666
--
 Embedded-Linux / Portierung / Opensource-QM / Verteilte Systeme
--



Re: [gentoo-user] Colors of the USE flags in emerge --pretend

2010-11-10 Thread Paul Hartman
On Wed, Nov 10, 2010 at 2:37 PM, Benyamin Dvoskin
benyamin.dvos...@gmail.com wrote:
 Hi ,

 When running emerge -p for some package , one gets for each dependency and
 package a list of USE flags at the end of the line.
 some are colored in red , some blue

 what are the differences ?

It's a little confusing but you can see the the portage colors by doing:
man color.map



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

2010-11-10 Thread Enrico Weigelt
* Remy Blank remy.bl...@pobox.com wrote:

 Put your /etc under SVN, or Mercurial, or whatever revision control
 system du jour. Bonus points if you manage to store file and directory
 permissions in there as well.

Is there a way to tell portage to conf-protected files under
some prefix ? This would allow easy integration into an
semi-automated vcs workflow. 


cu
-- 
--
 Enrico Weigelt, metux IT service -- http://www.metux.de/

 phone:  +49 36207 519931  email: weig...@metux.de
 mobile: +49 151 27565287  icq:   210169427 skype: nekrad666
--
 Embedded-Linux / Portierung / Opensource-QM / Verteilte Systeme
--



Re: [gentoo-user] Re: Upgrading from FX-5200 to a GeForce 6200 512MB

2010-11-10 Thread Alan McKinnon
Apparently, though unproven, at 22:18 on Wednesday 10 November 2010, Dale did 
opine thusly:

 Dale wrote:
  According to top, gkrellm and cat /proc/meminfo there is no swap in
  use.  I have 2Gbs of ram and have swappiness set to 20 or 30.  I
  rarely use swap unless I am compiling something huge, OOo comes to
  mind, or have a LOT of images open with GIMP.
  
  I did check to make sure tho.  My swappiness did get magically changed
  once before.  I wish it was something that easy tho.
  
  Still open to ideas.  I started a emerge -e world.
  
  Dale
  
  :-)  :-)
 
 Just to update here.  I started a emerge -e world.  It has not even
 finished yet but it appears to be working fine now.  It was working
 yesterday, last night, this morning and was working fine when I tried
 just a minute ago.  So, it appears that something needed to be
 recompiled somewhere but no clue what that could have been.
 
 I'll keep testing over the next few days and may report back if it is
 still working correctly.  I hope that it does tho.  It was getting on my
 nerves.

Useful tip to keep in mind:

Sometimes emerge -e world works out great. It's way overkill mostly but unlike 
a sledgehammer to kill a mosquito, doesn't break the wall as well as kill the 
insect :-)

IIRC, revdep-rebuild came about from the same line of thought. Some libs were 
being wrongly linked or linked to missing stuff and it was a huge ball-ache to 
find them all. Imagine running ldd on every binary and grepping for not 
found :-) It might even have been a glibc update (memory weak this end).

revdep-rebuild finds the easily detectable stuff. But there's other problems 
that can happen with binaries that are not so easy to check (or not known to 
the dev), and none of the Gentoo tools help locate the culprit. emerge -e 
world will just rebuild everything in sight with the nice side effect of 
taking care of these mysterious problems. Hello sledgehammer. Pity that it 
can't record what it fixed though.

It's interesting to see why Ubuntu and other binary distros never have this 
problem. First, they don't rip foundation libs out underneath a running system 
and insert different ones on the fly, and the API/ABI of their libs doesn't 
change for the life of that release of the distro. Plus, their build farms 
that generate new rpms/debs/pkgs nightly, essentially do the equivalent of a 
full emerge -e world daily and copy the binaries to the download server

So sometimes when all else fails and suicide seems attractive, this is a 
workable approach that can help. Now if we can just get the gcc upgrade docs 
changed to reflect intelligent reality, we can get newbies to grok that emerge 
-e world is not suitable for the *first* fault-finding tool one uses
-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] Colors of the USE flags in emerge --pretend

2010-11-10 Thread Alan McKinnon
Apparently, though unproven, at 22:37 on Wednesday 10 November 2010, Benyamin 
Dvoskin did opine thusly:

 Hi ,
 
 When running emerge -p for some package , one gets for each dependency and
 package a list of USE flags at the end of the line.
 some are colored in red , some blue
 
 what are the differences ?
 
 Thanks,
 Benny

You got three correct answers, so I won't repeat them here.

I would like to ask you to switch HTML mail OFF please. Folks on this mailing 
list prefer good old simple plaintext only.


-- 
alan dot mckinnon at gmail dot com



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

2010-11-10 Thread Alan McKinnon
Apparently, though unproven, at 23:37 on Wednesday 10 November 2010, Enrico 
Weigelt did opine thusly:

 * Remy Blank remy.bl...@pobox.com wrote:
  Put your /etc under SVN, or Mercurial, or whatever revision control
  system du jour. Bonus points if you manage to store file and directory
  permissions in there as well.
 
 Is there a way to tell portage to conf-protected files under
 some prefix ? This would allow easy integration into an
 semi-automated vcs workflow.

CONFIG_PROTECT

in make.conf(5)


-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] Colors of the USE flags in emerge --pretend

2010-11-10 Thread Benyamin Dvoskin
sure
sorry about the HTML ... :)


On Wed, Nov 10, 2010 at 11:58 PM, Alan McKinnon alan.mckin...@gmail.com wrote:

 Apparently, though unproven, at 22:37 on Wednesday 10 November 2010, Benyamin
 Dvoskin did opine thusly:

  Hi ,
 
  When running emerge -p for some package , one gets for each dependency and
  package a list of USE flags at the end of the line.
  some are colored in red , some blue
 
  what are the differences ?
 
  Thanks,
  Benny

 You got three correct answers, so I won't repeat them here.

 I would like to ask you to switch HTML mail OFF please. Folks on this mailing
 list prefer good old simple plaintext only.


 --
 alan dot mckinnon at gmail dot com




Re: [gentoo-user] 32bit-Executables on a AMD64 system...

2010-11-10 Thread Enrico Weigelt
* meino.cra...@gmx.de meino.cra...@gmx.de wrote:

 Is there a toolchain already setup for cross-compiling 32-bit
 executables on a AMD64 system, or do I have to do all that cross-
 compiling magic by myself ?

crosstool-ng

If you want a build system for crosscompiling, you might like
to look at Briegel.


cu
-- 
--
 Enrico Weigelt, metux IT service -- http://www.metux.de/

 phone:  +49 36207 519931  email: weig...@metux.de
 mobile: +49 151 27565287  icq:   210169427 skype: nekrad666
--
 Embedded-Linux / Portierung / Opensource-QM / Verteilte Systeme
--



Re: [gentoo-user] 32bit-Executables on a AMD64 system...

2010-11-10 Thread Enrico Weigelt
* meino.cra...@gmx.de meino.cra...@gmx.de wrote:

  gr...@kraken ~ $ gcc -o a.out.64 test.c
  gr...@kraken ~ $ gcc -m32 -o a.out.32 test.c
  gr...@kraken ~ $ file a.out.*
  a.out.32: ELF 32-bit LSB executable, Intel 80386, version 1
  (GNU/Linux), dynamically linked (uses shared libs), for GNU/Linux
  2.6.9, not stripped
  a.out.64: ELF 64-bit LSB executable, x86-64, version 1 (GNU/Linux),
  dynamically linked (uses shared libs), for GNU/Linux 2.6.9, not
  stripped
  gr...@kraken ~ $
  
  Br,
  Maciej Grela
  
 
 Oh YEAH! That's a definition of straight forward I do like very much!
 Thanks a lot, Maciej! You saved me a lot of half defunct bits ! ;)

Only for the specific case that your target system has the same
system libraries (and you have a *full* multilib installation)
as the building system.

If you want to crosscompile, you *most likely* want sysroot too.


cu
-- 
--
 Enrico Weigelt, metux IT service -- http://www.metux.de/

 phone:  +49 36207 519931  email: weig...@metux.de
 mobile: +49 151 27565287  icq:   210169427 skype: nekrad666
--
 Embedded-Linux / Portierung / Opensource-QM / Verteilte Systeme
--



Re: [gentoo-user] 32bit-Executables on a AMD64 system...

2010-11-10 Thread Enrico Weigelt
* Coert Waagmeester lgro...@waagmeester.co.za wrote:

 My setup is one 32bit pc with gentoo and another 64bit pc with gentoo
 
 I managed to get this going on the 64bit with a 32-bit chroot, distcc, 
 and crosstools

Why do you need an 32bit chroot if you're going to use an
crosscompiler anyways ?

 Just make sure you compiled your kernel with IA32 binary support (should 
 be default)

The _target_ kernel has to support the IA32 ABI. The host (building)
might be better off w/o it (better detection of build errors).


cu
-- 
--
 Enrico Weigelt, metux IT service -- http://www.metux.de/

 phone:  +49 36207 519931  email: weig...@metux.de
 mobile: +49 151 27565287  icq:   210169427 skype: nekrad666
--
 Embedded-Linux / Portierung / Opensource-QM / Verteilte Systeme
--



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

2010-11-10 Thread Enrico Weigelt
* Alan McKinnon alan.mckin...@gmail.com wrote:
 Apparently, though unproven, at 23:37 on Wednesday 10 November 2010, Enrico 
 Weigelt did opine thusly:
 
  * Remy Blank remy.bl...@pobox.com wrote:
   Put your /etc under SVN, or Mercurial, or whatever revision control
   system du jour. Bonus points if you manage to store file and directory
   permissions in there as well.
  
  Is there a way to tell portage to conf-protected files under
  some prefix ? This would allow easy integration into an
  semi-automated vcs workflow.
 
 CONFIG_PROTECT
 
 in make.conf(5)

According to the manpage, this only tells which directories should
be config-protect'ed. What I need is that these files should be put
under some prefix (w/ the same hierachy/names) instead of renamed
to ._cfg*.


cu
-- 
--
 Enrico Weigelt, metux IT service -- http://www.metux.de/

 phone:  +49 36207 519931  email: weig...@metux.de
 mobile: +49 151 27565287  icq:   210169427 skype: nekrad666
--
 Embedded-Linux / Portierung / Opensource-QM / Verteilte Systeme
--



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

2010-11-10 Thread Alan McKinnon
Apparently, though unproven, at 00:02 on Thursday 11 November 2010, Enrico 
Weigelt did opine thusly:

 * Alan McKinnon alan.mckin...@gmail.com wrote:
  Apparently, though unproven, at 23:37 on Wednesday 10 November 2010,
  Enrico
  
  Weigelt did opine thusly:
   * Remy Blank remy.bl...@pobox.com wrote:
Put your /etc under SVN, or Mercurial, or whatever revision control
system du jour. Bonus points if you manage to store file and
directory permissions in there as well.
   
   Is there a way to tell portage to conf-protected files under
   some prefix ? This would allow easy integration into an
   semi-automated vcs workflow.
  
  CONFIG_PROTECT
  
  in make.conf(5)
 
 According to the manpage, this only tells which directories should
 be config-protect'ed. What I need is that these files should be put
 under some prefix (w/ the same hierachy/names) instead of renamed
 to ._cfg*.

What version of portage are you running?

Mine is 2.2.0_alpha4 and the man page says:

   CONFIG_PROTECT = [space delimited list of files and/or directories]
  All files and/or directories that are defined here will  have  
config  file
  protection  enabled  for  them.  See  the  CONFIGURATION  FILES  
section of
  emerge(1) for more information.


-- 
alan dot mckinnon at gmail dot com



[gentoo-user] MIT-MAGIC-COOKIE

2010-11-10 Thread dhk
Lately I've been getting this MIT-MAGIC-COOKIE error.  It only happens
when I'm logged into my home amd64 box from my office x86 box.  I use
ssh -X ip.add.res.s to log in.  Everything seems to work and save fine
except for the error message and not being able to run an x-application
remotely.

The first error occurs when I try to run an x-application remotely.
$ jpilot
Invalid MIT-MAGIC-COOKIE-1 keyInvalid MIT-MAGIC-COOKIE-1 key
(jpilot:16276): Gtk-WARNING **: cannot open display: localhost:11.0

The second error occurs after I exit a file from a text editor.
$ vi file.txt
Invalid MIT-MAGIC-COOKIE-1 keyInvalid MIT-MAGIC-COOKIE-1 key

I've been doing this for years without any problems and this probably
started in the last month or so.

I've seen a few things on line, but nothing that looks right.  I also
don't want to run the xhost+ command.

Any ideas?

Thanks,

--dhk



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

2010-11-10 Thread Neil Bothwick
On Thu, 11 Nov 2010 01:18:08 +0200, Alan McKinnon wrote:

  According to the manpage, this only tells which directories should
  be config-protect'ed. What I need is that these files should be put
  under some prefix (w/ the same hierachy/names) instead of renamed
  to ._cfg*.  
 
 What version of portage are you running?
 
 Mine is 2.2.0_alpha4 and the man page says:
 
CONFIG_PROTECT = [space delimited list of files and/or
 directories] All files and/or directories that are defined here will
 have config  file
   protection  enabled  for  them.  See  the
 CONFIGURATION  FILES section of
   emerge(1) for more information.

I think what Enrico is getting at is storing the new config files
somewhere else, instead of the original path with the name prefixed
by ._cfg.

Such a move would break {etc,conf,cfg}-update for no real benefit. What
is the point of including these files in a VCS if you already have the
files they are to replace under VCS?


-- 
Neil Bothwick

Few women admit their age. Few men act theirs.


signature.asc
Description: PGP signature


Re: [gentoo-user] MIT-MAGIC-COOKIE

2010-11-10 Thread Neil Bothwick
On Wed, 10 Nov 2010 18:35:20 -0500, dhk wrote:

 Lately I've been getting this MIT-MAGIC-COOKIE error.  It only happens
 when I'm logged into my home amd64 box from my office x86 box.  I use
 ssh -X ip.add.res.s to log in.

Have you tried using -Y instead of -X?


-- 
Neil Bothwick

Voting Democrat or Republican is like choosing a cabin in the Titanic.


signature.asc
Description: PGP signature


Re: [gentoo-user] {OT} Deliberately obfuscating my code

2010-11-10 Thread Grant
 Grant, you need to stop being paranoid.  I am surprised you even
 worked up the courage to let slip on here, in public, that you even
 have a sooper dooper sekrit project.

This seems to be the general consensus.  You see, I don't have a
computer science degree and about 75% of what I know about Linux I
learned on this list.  Apparently this idea of mine is not a good one.

The sekrit isn't really a secret, it's just a mature piece of
ordinary software.  Most if not all of you wouldn't be interested in
receiving it for free, but people in the right industry would like to
have it and I'd like to keep it for myself.  Surely there is room for
private software even in an open source world.

So it's either trust your coders or do it yourself?  My budget is
small and the coders I can afford are outside of the US.  I'd be
working with them via chat, email, or phone.  Should I feel OK about
turning my source over to them?  Should I only hire coders I can sit
in the same room with?

- Grant



[gentoo-user] Re: netbook

2010-11-10 Thread James
Neil Bothwick neil at digimed.co.uk writes:


 This isn't such a problem with 10 netbooks where the keyboards tend to
 be around 92% of full size. On the other hand, my old Eee PC 900 didn't
 work well with my fat fingers (the fat fingers are on both hands, not
 just the other one).


Thanks for all the good view pionts on hardware.

I'll post back when I find potential hardware.
I do like the idea of SSD, but I am leaning towards
a HD for now, but in a 10 screen for small size.
Web and email are most it is for, but, I do
want the kid to be able to boot W7 and Gentoo,
as the teachers at school want windoze..

His pals all like Ubuntoo, so I figured I'd set
up Gentoo on his box (or show him the manual) and
help him with the install.He's been using
Gentoo for a couple of years. Now it's time to
deepen the learning curve.


cheers!

James







[gentoo-user] Re: DNSSEC

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


 My first spot of advice would be to use unbound as your caching servers - 

Yes, I'm going to play around with unbound first. 


 PowerDNS is a fine auth server. If it suits your needs I'd recommend you try 
 it first. I don't know about it's DNSSEC abilities or feature roadmap - it's 
 been a long time since I looked closely at it. Lack of ACLs is what killed 
 PowerDNS for us, I still feel sad about that


Ok, I'll look into PowerDNS too. Research for a while.


To the other posters, I might be rusty with DNS servers, but, certainly
not security nor circuit nor interface monitoring...


James










Re: [gentoo-user] Re: Upgrading from FX-5200 to a GeForce 6200 512MB

2010-11-10 Thread Dale

Alan McKinnon wrote:

Apparently, though unproven, at 22:18 on Wednesday 10 November 2010, Dale did
opine thusly:

   

Dale wrote:
 

According to top, gkrellm and cat /proc/meminfo there is no swap in
use.  I have 2Gbs of ram and have swappiness set to 20 or 30.  I
rarely use swap unless I am compiling something huge, OOo comes to
mind, or have a LOT of images open with GIMP.

I did check to make sure tho.  My swappiness did get magically changed
once before.  I wish it was something that easy tho.

Still open to ideas.  I started a emerge -e world.

Dale

:-)  :-)
   

Just to update here.  I started a emerge -e world.  It has not even
finished yet but it appears to be working fine now.  It was working
yesterday, last night, this morning and was working fine when I tried
just a minute ago.  So, it appears that something needed to be
recompiled somewhere but no clue what that could have been.

I'll keep testing over the next few days and may report back if it is
still working correctly.  I hope that it does tho.  It was getting on my
nerves.
 

Useful tip to keep in mind:

Sometimes emerge -e world works out great. It's way overkill mostly but unlike
a sledgehammer to kill a mosquito, doesn't break the wall as well as kill the
insect :-)

IIRC, revdep-rebuild came about from the same line of thought. Some libs were
being wrongly linked or linked to missing stuff and it was a huge ball-ache to
find them all. Imagine running ldd on every binary and grepping for not
found :-) It might even have been a glibc update (memory weak this end).

revdep-rebuild finds the easily detectable stuff. But there's other problems
that can happen with binaries that are not so easy to check (or not known to
the dev), and none of the Gentoo tools help locate the culprit. emerge -e
world will just rebuild everything in sight with the nice side effect of
taking care of these mysterious problems. Hello sledgehammer. Pity that it
can't record what it fixed though.

It's interesting to see why Ubuntu and other binary distros never have this
problem. First, they don't rip foundation libs out underneath a running system
and insert different ones on the fly, and the API/ABI of their libs doesn't
change for the life of that release of the distro. Plus, their build farms
that generate new rpms/debs/pkgs nightly, essentially do the equivalent of a
full emerge -e world daily and copy the binaries to the download server

So sometimes when all else fails and suicide seems attractive, this is a
workable approach that can help. Now if we can just get the gcc upgrade docs
changed to reflect intelligent reality, we can get newbies to grok that emerge
-e world is not suitable for the *first* fault-finding tool one uses
   


Yea, this for me was only considered when there was no more ideas 
coming.  People posted ideas and I tried different things but it still 
messed up with no error that I could find.


I guess I could have just did a emerge -e nvidia-drivers and that would 
have rebuilt everything needed by nvidia and should in theory have 
worked.  I do wish I knew what fixed it tho.  It may be a bug or like 
when we have to rebuild keyboard and mouse drivers after a xorg update.  
It may be something that others need to know about as well.  Right now, 
we don't know what was wrong.  This particular hammer just hit 
everything instead of one nail that was popping up.


I just checked again, it is still working.  I'm liking that I can watch 
a video whenever I want instead of when it decides to work.  ;-)


Dale

:-)  :-)



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

2010-11-10 Thread Jake Moe
On 05/11/10 04:44, Peter Humphrey wrote:
 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.
j...@aus10224 ~ $ equery hasuse eth0
 * Searching for USE flag eth0 ...
j...@aus10224 ~ $

Am I missing something here?  I never heard of that use flag before.

Jake Moe



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

2010-11-10 Thread Peter Humphrey
On Thursday 11 November 2010 02:35:21 Jake Moe wrote:
 On 05/11/10 04:44, Peter Humphrey wrote:
  On Thursday 04 November 2010 17:22:28 Neil Bothwick wrote:
[...]
  Personally, I USE=eth0 when installing Gentoo on a laptop.
  
  I see what you mean. I'll do that. Thanks all.
 
 j...@aus10224 ~ $ equery hasuse eth0
  * Searching for USE flag eth0 ...
 j...@aus10224 ~ $
 
 Am I missing something here?  I never heard of that use flag before.

It isn't a USE flag; it's a way of connecting to the network. You know: 
set the Ethernet connection up in /etc/conf.d/net as described in the 
installation handbook. (I think Neil's caps-lock key stayed on a bit too 
long.)

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



Re: [gentoo-user] Re: netbook

2010-11-10 Thread Walter Dnes
On Thu, Nov 11, 2010 at 01:31:08AM +, James wrote

 Thanks for all the good view pionts on hardware.

  Do *NOT* get a machine with a Poulsbo video chip.  It supported one
version of the linux kernel at release time, with a proprietary blob.
No updates since.  And as we all know, kernel upgrades and Xorg upgrades
kill compatability with binary blob video drivers every so often.

  What was sold as a 1366x768 Windows machine with decent video speed is
now a 1024x768 VESA-driven display that sucks at Youtube video playback.
It works for general browsing+email, but I could use some extra screen
pixels.  Poulsbo is a 3rd-party that Intel subcontracted for the video
chip.  Intel doesn't own, and cannot release the Poulsbo api. 

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