Re: [gentoo-user] Re: Gentoo's advantage: 'optimized for your system' -- huh?

2009-02-08 Thread Sebastian Günther
* Neil Bothwick (n...@digimed.co.uk) [07.02.09 22:42]:
 On Sat, 7 Feb 2009 20:43:04 +0100, Sebastian Günther wrote:
 
  If i have to do *multiple* installs for several copumters, which I do 
  not use myself, I choose debian, because fai rocks. 
  
  Shouldn't this fai be adopted for Gentoo? I should investigate if this 
  is possible...
 
 Did you look at quickstart, mentioned earlier in this discussion?
 
 

Nope, unless fai-quickstart was meant...

Any links?

Sebastian

-- 
  Religion ist das Opium des Volkes.   Karl Marx

 s...@sti@N GÜNTHER mailto:sam...@guenther-roetgen.de


pgpu9WIEuafuf.pgp
Description: PGP signature


[gentoo-user] Update mime database - won't!

2009-02-08 Thread Mick
Hi All,

I tried following the elog suggestion after emerging 
x11-misc/shared-mime-info-0.51, but I get this message back:

# update-mime-database /usr/local/share/mime/
update-mime-database: I don't have write permission on /usr/local/share/mime.
Try rerunning me as root.

Looking for it reveals that it's not there:

# ls -la /usr/local/share/mime/
ls: cannot access /usr/local/share/mime/: No such file or directory

Is there anything else that I need to do first before trying to update it?
-- 
Regards,
Mick


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


Re: [gentoo-user] Update mime database - won't!

2009-02-08 Thread Justin
Mick wrote:
 Hi All,
 
 I tried following the elog suggestion after emerging 
 x11-misc/shared-mime-info-0.51, but I get this message back:
 
 # update-mime-database /usr/local/share/mime/
 update-mime-database: I don't have write permission on /usr/local/share/mime.
 Try rerunning me as root.
 
 Looking for it reveals that it's not there:
 
 # ls -la /usr/local/share/mime/
 ls: cannot access /usr/local/share/mime/: No such file or directory
 
 Is there anything else that I need to do first before trying to update it?

Just do update-mime-database /usr/share/mime/

I don't know who has it in /usr/local?



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Re: Hard disk power save

2009-02-08 Thread Danis Petkakis
ok thank you for your response...will do as suggested...

Danis

2009/2/8 Stroller strol...@stellar.eclipse.co.uk

 He wrote the lines of his post upside down, because he thinks you're wrong
 to top-post.

 If you read it as:

 Usually, you have to
 umount it before you
 put it too sleep. There's
 almost always something
 waking it up if it's
 still mounted.


 It makes perfect sense  you don't need to ask any further questions.

 Stroller.



 On 7 Feb 2009, at 19:19, Danis Petkakis wrote:

  you're telling me i have to umount it first and then put it to sleep?
 because it is mounted it cannot be put to sleep?

 2009/2/7 Nikos Chantziaras rea...@arcor.de

 still mounted.
 waking it up if it's
 almost always something
 put it too sleep. There's
 umount it before you
 Usually, you have to






[gentoo-user] Re: KDE-4.2 missing Oxygen

2009-02-08 Thread Nikos Chantziaras

Naga wrote:

On Thursday 05 February 2009 20:32:53 Nikos Chantziaras wrote:

Naga wrote:

I've reinstalled KDE-4.2 from portage at least 3 times, and in between
compiling it from svn. The svn copy always works ok, the portage one is
always missing Oxygen.

Do you have kde-base/kdebase-desktoptheme installed?  That's Oxygen.


Yes, that only pulls in some files under .../default/... (instead of 
.../oxygen/...) no mention about Oxygen.


That is correct.  The default *is* Oxygen and it's installed in 
share/apps/desktoptheme/default.


The package itself says (try eix kdebase-dektoptheme):

  Description: oxygen desktoptheme from kdebase

It's the default style in KDE 4 without you having to enable it.  So I 
guess if it still doesn't work and doesn't get listed in System 
Settings-Appearance-Style, something is messed up.  I would go over 
the packages one by one and see if I have some left-overs from some overlay.





[gentoo-user] Re: {OT} xfce4 network management?

2009-02-08 Thread Francesco Talamona
On Sunday 08 February 2009, Grant wrote:
 Why choose wicd over NetworkManager?

Hi guys I'm back with a differend mail address, hope someone missed 
me :-)

I tested both, but NM keeps shutting down wired NIC randomly, sometimes 
is eth0, other times is eth1.

eth0 and ath0 are connected to the same access point, so it is sane to 
inhibite eth0, but I have hundred services relying on eth1 (fixed IP, 
internal network), half my system go upside down when eth1 lose its 
address. I don't want NM to touch this interface, even it is unplugged.

Is it there a way to fix this?

With wicd is trivial to pair eth0 and ath0, but it runs wireless for a 
few minutes, then it switches back to wired.

So I'm going to try wpa_gui...

Cheers
Francesco

-- 
Linux Version 2.6.28-gentoo, Compiled #2 SMP PREEMPT Fri Dec 26 08:55:48 
CET 2008
Two 1GHz AMD Athlon 64 Processors, 4GB RAM, 4018.04 Bogomips Total
aemaeth



[gentoo-user] Re: media-video/gspcav1 or kernel module?

2009-02-08 Thread Francesco Talamona
On Sunday 08 February 2009, Iain Buchanan wrote:
[...]
 I recently upgraded from 2.6.26 to 2.6.28.  My el-cheapo webcam
 (lsusb: 0c45:602c Microdia Clas Ohlson TWC-30XOP WebCam) used the
 media-video/gspcav1 driver, but that no longer compiles:

 /var/tmp/portage/media-video/gspcav1-20071224/work/gspcav1-20071224/g
spca_core.c:54:27: error: asm/semaphore.h: No such file or directory
 /var/tmp/portage/media-video/gspcav1-20071224/work/gspcav1-20071224/g
spca_core.c: In function 'spca5xx_ioctl':
 /var/tmp/portage/media-video/gspcav1-20071224/work/gspcav1-20071224/g
spca_core.c:2463: error: implicit declaration of function
 'video_usercopy'

 etc.

 I discovered a number of gspca modules in the kernel:

 gspca_spca508
 gspca_spca506
 gspca_spca505
 gspca_spca500
 gspca_spca501
 gspca_spca561
[...]

If you boot 2.6.26 it should be easier to spot the right module. Anyway 
I encountered the same problem with my gspca561, IIRC there's a problem 
with 2.6.28 kernel.

Waiting for a kernel upgrade I lent my webcam to a vista user...

HTH. Ciao
Francesco


-- 
Linux Version 2.6.28-gentoo, Compiled #2 SMP PREEMPT Fri Dec 26 08:55:48 
CET 2008
Two 1GHz AMD Athlon 64 Processors, 4GB RAM, 4018.04 Bogomips Total
aemaeth




Re: [gentoo-user] media-video/gspcav1 or kernel module?

2009-02-08 Thread Mike Mazur
Hi,

On Sun, Feb 8, 2009 at 12:24 PM, Iain Buchanan iai...@netspace.net.au wrote:
 I recently upgraded from 2.6.26 to 2.6.28.  My el-cheapo webcam (lsusb:
 0c45:602c Microdia Clas Ohlson TWC-30XOP WebCam) used the
 media-video/gspcav1 driver, but that no longer compiles:

Maybe this page will point you to the right driver:

http://cateee.net/lkddb/web-lkddb/VIDEO_DEV.html

HTH,
Mike



Re: [gentoo-user] Re: What version of nvidia-drivers to use with FX5200?

2009-02-08 Thread Michael P. Soulier
On 08/02/09 Grant Edwards said:

 I know.  173.15 and newer don't support FX5200 cards.
 
 I tried several different 173.14.xx versions and none of them
 work for me (I don't remmeber if .09 was one of them).  I
 always got an illegal instruction traps when Xorg is starting.
 Other people reported that same problem to nvidia, but AFAICT,
 there was never any fix.
 
 I went back to 100.19 and a 2.6.24 kernel and it seems to work
 fine.  It's a bit dissappointing that my card isn't suported by
 recent drivers/kernels when it's only about 1-1/2 years old.

01:00.0 VGA compatible controller: nVidia Corporation NV34 [GeForce FX 5200]
(rev a1) (prog-if 00 [VGA controller])
Subsystem: ASUSTeK Computer Inc. Device 80cf
Flags: bus master, 66MHz, medium devsel, latency 248, IRQ 16
Memory at e800 (32-bit, non-prefetchable) [size=16M]
Memory at e000 (32-bit, prefetchable) [size=128M]
[virtual] Expansion ROM at e900 [disabled] [size=128K]
Capabilities: [60] Power Management version 2
Capabilities: [44] AGP version 3.0
Kernel driver in use: nvidia
Kernel modules: nvidia

msoul...@anton:~$ equery list | grep nvidia
media-video/nvidia-settings-169.07
x11-drivers/nvidia-drivers-173.14.15

msoul...@anton:~$ uname -a
Linux anton 2.6.25-gentoo-r8 #9 Sun Nov 23 19:14:08 EST 2008 i686 AMD
Athlon(tm) XP 1700+ AuthenticAMD GNU/Linux

This works for me. I'm masking out newer nvidia-drivers now and kernels, since
I'm told that version of nvidia-drivers won't build against a newer kernel.

Mike
-- 
Michael P. Soulier msoul...@digitaltorque.ca
Any intelligent fool can make things bigger and more complex... It takes a
touch of genius - and a lot of courage to move in the opposite direction.
--Albert Einstein


pgpTNT7R7pj8Z.pgp
Description: PGP signature


Re: [gentoo-user] {OT} xfce4 network management?

2009-02-08 Thread Neil Bothwick
On Sat, 7 Feb 2009 15:46:18 -0800, Grant wrote:

  The only thing I wish it would handle, that the latest NetworkManager
  does, is 3G modem connections.  
 
 Why choose wicd over NetworkManager?

It was far easier to set up so that my wireless connection was available
before the desktop loaded. It also handles reconnections in a more
straightforward manner.

That saves a lot more time than I lose by having to type sudo pon
occasionally.


-- 
Neil Bothwick

I'm not closed minded, you're just wrong.


signature.asc
Description: PGP signature


Re: [gentoo-user] Change colours of xterm

2009-02-08 Thread Ian Lee

Mike Kazantsev wrote:

On Sat, 07 Feb 2009 17:57:18 +
Ian Lee i...@leehouse.eclipse.co.uk wrote:


but still no white on black xterm, what am I missing??


You can try putting

XTerm*background:   #001800
XTerm*foreground:   #A8A8A8

to ~/.Xresources
WFM




Thanks that worked.


I got finally got a system config rather than user config working
(not that i needed a system config)

/etc/X11/Xresources:
add

*customization: -color


/etc/env.d/10xpaths:
change
XFILESEARCHPATH=/etc/X11/%T/%N:/usr/share/X11/%T/%N
to
XFILESEARCHPATH=/etc/X11/%T/%N%C:/usr/share/X11/%T/%N%C

/etc/X11/app-defaults/XTerm-color now works.




Re: [gentoo-user] Re: Gentoo's advantage: 'optimized for your system' -- huh?

2009-02-08 Thread Neil Bothwick
On Sun, 8 Feb 2009 01:57:39 +0100 (CET), Jesús Guerrero wrote:

 Yes. That's true and I agree. But since emacs was proposed
 as a way to overcome the natural limitations of info, I guess
 that's completely fair if others point out also the disadvantages
 of doing so. All in all, we could also say how nice is man in
 konqueror, but that wouldn't be fair, would it?

Everyone's more or less agreeing here, that the info format is useful but
the standard info reader sucks. Once you start reading info pages in a
decent reader, like Konqueror, they are useful for more complex
documents. Although I'd still prefer HTML, mainly because of the
wide choice of readers available.


-- 
Neil Bothwick

Don't take life too seriously, you won't get out alive.


signature.asc
Description: PGP signature


Re: [gentoo-user] Re: Hard disk power save

2009-02-08 Thread Neil Bothwick
On Sun, 8 Feb 2009 11:51:00 +0200, Danis Petkakis wrote:

 ok thank you for your response...will do as suggested...

The suggestion was not to top-post...


-- 
Neil Bothwick

Do not handicap your children by making their lives easy.
 -- Robert Heinlein


signature.asc
Description: PGP signature


Re: [gentoo-user] Re: Gentoo's advantage: 'optimized for your system' -- huh?

2009-02-08 Thread Graham Murray
Neil Bothwick n...@digimed.co.uk writes:

 Everyone's more or less agreeing here, that the info format is useful but
 the standard info reader sucks. Once you start reading info pages in a
 decent reader, like Konqueror, they are useful for more complex
 documents. Although I'd still prefer HTML, mainly because of the
 wide choice of readers available.

Yet much (I would even suggest most) HTML documentation does not take
much advantage of the HTML format. It is rare for it to contain many
hyperlinks within the text. Often it is formatted more like a book with
each page just having previous, next, up and contents links at top
and/or bottom with few, if any, hyperlinks in the text.



Re: [gentoo-user] Update mime database - won't!

2009-02-08 Thread Mick
On Sunday 08 February 2009, Justin wrote:
 Mick wrote:
  Hi All,
 
  I tried following the elog suggestion after emerging
  x11-misc/shared-mime-info-0.51, but I get this message back:
 
  # update-mime-database /usr/local/share/mime/
  update-mime-database: I don't have write permission on
  /usr/local/share/mime. Try rerunning me as root.
 
  Looking for it reveals that it's not there:
 
  # ls -la /usr/local/share/mime/
  ls: cannot access /usr/local/share/mime/: No such file or directory
 
  Is there anything else that I need to do first before trying to update
  it?

 Just do update-mime-database /usr/share/mime/

 I don't know who has it in /usr/local?

Thanks, should I file a bug?
-- 
Regards,
Mick


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


[gentoo-user] Re: Gentoo's advantage: 'optimized for your system' -- huh?

2009-02-08 Thread Grant Edwards
On 2009-02-08, Graham Murray gra...@gmurray.org.uk wrote:
 Neil Bothwick n...@digimed.co.uk writes:

 Everyone's more or less agreeing here, that the info format is
 useful but the standard info reader sucks. Once you start
 reading info pages in a decent reader, like Konqueror, they
 are useful for more complex documents. Although I'd still
 prefer HTML, mainly because of the wide choice of readers
 available.

 Yet much (I would even suggest most) HTML documentation does
 not take much advantage of the HTML format. It is rare for it
 to contain many hyperlinks within the text. Often it is
 formatted more like a book with each page just having
 previous, next, up and contents links at top and/or bottom
 with few, if any, hyperlinks in the text.

And that format completely sucks for much the same reason that
info sucks.  I hate it when a large HTML document is broken up
into chunks 1-2 paragraphs long with prev/next buttons.  Such
documents are impossible to search either by eye or using a
browser's search feature.  Unfortunately, when HTML is
generated from info or docbook formats, the default seems to be
to generated a completely factured, disconnected heap if small
HTML pages.  The Python documentation is like that.

The Gentoo docs are a pretty decent example of how to do HTML
documentation right.

-- 
Grant




Re: [gentoo-user] Update mime database - won't!

2009-02-08 Thread Justin
Mick wrote:
 On Sunday 08 February 2009, Justin wrote:
 Mick wrote:
 Hi All,

 I tried following the elog suggestion after emerging
 x11-misc/shared-mime-info-0.51, but I get this message back:

 # update-mime-database /usr/local/share/mime/
 update-mime-database: I don't have write permission on
 /usr/local/share/mime. Try rerunning me as root.

 Looking for it reveals that it's not there:

 # ls -la /usr/local/share/mime/
 ls: cannot access /usr/local/share/mime/: No such file or directory

 Is there anything else that I need to do first before trying to update
 it?
 Just do update-mime-database /usr/share/mime/

 I don't know who has it in /usr/local?
 
 Thanks, should I file a bug?

Do that.



signature.asc
Description: OpenPGP digital signature


[gentoo-user] Re: What version of nvidia-drivers to use with FX5200?

2009-02-08 Thread Grant Edwards
On 2009-02-08, Michael P. Soulier msoul...@digitaltorque.ca wrote:

 01:00.0 VGA compatible controller: nVidia Corporation NV34 [GeForce FX 5200]
[...]

 msoul...@anton:~$ equery list | grep nvidia
 media-video/nvidia-settings-169.07
 x11-drivers/nvidia-drivers-173.14.15

 msoul...@anton:~$ uname -a
 Linux anton 2.6.25-gentoo-r8 #9 Sun Nov 23 19:14:08 EST 2008 i686 AMD
 Athlon(tm) XP 1700+ AuthenticAMD GNU/Linux

 This works for me. I'm masking out newer nvidia-drivers now
 and kernels, since I'm told that version of nvidia-drivers
 won't build against a newer kernel.

I never got any of the 173.14 series to work -- I alwasy got an
illegal instruction trap as Xorg was starting up.  My box is a
Celeron Mendocino, and I suspect that the binary blob in
173.14.xx drivers is incompatile with older processors.  So
it's not my card that's not supported by 173.14.xx, but my CPU.
There's also a chance that it's not the CPU which is
unsupported by 173.14.xx but rather the PCI bus interface, but
because the fault is illegal instruction, I'm guessing the CPU
is no longer supported by the driver.

The 100.19.xx series seems to work, but I had to go back to
2.6.24 to get it to build.


-- 
Grant





Re: [gentoo-user] Re: Gentoo's advantage: 'optimized for your system' -- huh?

2009-02-08 Thread Neil Bothwick
On Sun, 8 Feb 2009 09:54:48 +0100, Sebastian Günther wrote:

  Did you look at quickstart, mentioned earlier in this discussion?

 Nope, unless fai-quickstart was meant...
 
 Any links?

Yes, posted twice already but not to hand now.


-- 
Neil Bothwick

Math and alcohol don't mix. Don't drink and derive.


signature.asc
Description: PGP signature


[gentoo-user] share control rights to a daemon by both root and another user

2009-02-08 Thread zhangweiwu
Me as root user of a server wish to share the control privilege (to
start and stop) a daemon with another non-root user and find it
difficult. The requirement: 1) either me or him can start the daemon
then stop it; 2) he can stop the daemon started by me; 3) I can stop the
daemon started by him.

3) is very easy because I am root; 1) is also easy, difficult part is 2).

I first thought of setting the process suid and make him owner of the
executable. However I found if I do so, the process starts with his
privilege while belonging to me, he could not signal the processes of mine.

Is the requirement 2 possible with Linux? How?

If the problem can be solved giving the setting two users both are not
root, the solution would be even more preferable.

Thanks in advance!

-- 
Real Softservice

Huateng Tower, Unit 1788
Jia 302 3rd area of Jinsong, Chao Yang

Tel: +86 (10) 8773 0650 ext 603
Mobile: 159  7382
http://www.realss.com




Re: [gentoo-user] SecurDisc Software ?

2009-02-08 Thread Yannick Mortier
2009/2/7  meino.cra...@gmx.de:
 Hi,

 is there any open sourced software, with which I can use
 the SecurDisc funtionality of my LG HL-DST DVD-RAM GH22NP20
 DVD burner ?

 Thank you very much in advance for any help!

 Have a nice weekend! :)
 mcc


This is some Nero-specific feature that was developed by LG and Nero
together AFAIK. So I guess it's rather not possible for a free
software to support it. If you absolutely need it you should try Nero
for Linux. It advertises that it supports the same features as the
windows version so this should be included, but of course, it's not
open source.


-- 
Currently developing a browsergame...
http://www.p-game.de
Trade - Expand - Fight

Follow me at twitter!
http://twitter.com/moortier



Re: [gentoo-user] share control rights to a daemon by both root and another user

2009-02-08 Thread Daniel Troeder
Am Sonntag, den 08.02.2009, 23:59 +0800 schrieb zhangwe...@realss.com:
 Me as root user of a server wish to share the control privilege (to
 start and stop) a daemon with another non-root user and find it
 difficult. The requirement: 1) either me or him can start the daemon
 then stop it; 2) he can stop the daemon started by me; 3) I can stop the
 daemon started by him.
 
 3) is very easy because I am root; 1) is also easy, difficult part is 2).
 
 I first thought of setting the process suid and make him owner of the
 executable. However I found if I do so, the process starts with his
 privilege while belonging to me, he could not signal the processes of mine.
 
 Is the requirement 2 possible with Linux? How?
 
 If the problem can be solved giving the setting two users both are not
 root, the solution would be even more preferable.
 
 Thanks in advance!
 
Hello :)

You can use app-admin/sudo to achieve your goal. It can be configured to
allow certain users to execute certain commands as other users (possibly
root). You can even restrict the allowed arguments to a command.

Bye,
Daniel


signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil


[gentoo-user] [OT] Sendmail and Comcast

2009-02-08 Thread Mick
Hi All,

If any of you guys has a working sendmail configuration with Comcast I would 
be grateful if you could share off list.  Although I have followed the 
instructions detailed here (except for the masquerade options) I cannot get 
it to work:

http://www.linuxha.com/other/sendmail/

After a long day trying to get it to run I have now grown blind to it.  The 
error I get is:

   - Transcript of session follows -
... while talking to smtp.comcast.net:
 MAIL From:nag...@my_domain.com SIZE=578
 550 5.1.0 Authentication required
554 5.0.0 Service unavailable

-- 
Regards,
Mick


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


[gentoo-user] Re: [OT] Sendmail and Comcast

2009-02-08 Thread Harry Putnam
Mick michaelkintz...@gmail.com writes:

 Hi All,

 If any of you guys has a working sendmail configuration with Comcast I would 
 be grateful if you could share off list.  Although I have followed the 
 instructions detailed here (except for the masquerade options) I cannot get 
 it to work:

 http://www.linuxha.com/other/sendmail/

 After a long day trying to get it to run I have now grown blind to it.  The 
 error I get is:

I'm including this on the list since I think there will be others who
may find it useful.
Mine is setup like this:
(I'm going to assume you know to use m4 to compile sendmail.cf)

1) In sendmail.mc

( Some of this may not be necessary... I've placed asterisks around
 those I think are critical )

(I masquerade as the host that supplies my email pop service
(newsguy), I don't use comcast email much. you may be able to ignore
masquerading)


divert(-1)
divert(0) dnl
include(`/usr/share/sendmail-cf/m4/cf.m4')dnl
VERSIONID(`$Id: sendmail.mc,v 1.17 2008/05/19 14:28:16 root Exp $')dnl
OSTYPE(linux)dnl
define(`confDONT_EXPAND_CNAMES'.`True')dnl

***
FEATURE(`authinfo') dnl
define(`confAUTH_MECHANISMS',`LOGIN PLAIN')dnl
define(`SMART_HOST',`smtp.comcast.net')dnl
***

dnl # [HP 05/16/08 17:22 define(`RELAY_MAILER_ARGS', `TCP $h 587') ]dnl
dnl Per H Message-ID: g0kmsb$2dd...@hedeland.org comp.mail.sendmail dnl
define(`RELAY_MAILER_ARGS', `TCP $h 587')
define(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail')dnl
MASQUERADE_AS(`newsguy.com')dnl
MASQUERADE_DOMAIN(`local.lan')dnl
FEATURE(masquerade_entire_domain)dnl
FEATURE(masquerade_envelope)dnl
FEATURE(relay_hosts_only) dnl relay exact hosts in /etc/mail/relay-hosts dnl
FEATURE(`always_add_domain') dnl
GENERICS_DOMAIN(`local.lan')dnl
define(`confTRUSTED_USERS',`reader defang apache bacula mysql')dnl
MAILER(procmail)dnl
MAILER(smtp)dnl


2) using authinfo is somewhat explained in the README at
   /usr/share/sendmail-cf/

Mine looks like this [with some things disguised with MYUSER, MYPASSWD]
(Should be all on one line... in case mail formatting breaks the line)

cat /etc/mail/authinfo
# [HP 02/04/06 23:14  NOTE make sure to makemap hash authinfo  authinfo]
AuthInfo:smtp.comcast.net  U:MYUSER I:myu...@comcast.net P:MYPASSWD M: 
LOGIN PLAIN
# end authinfo

Heed the comment about makemap or authinfo won't work.

I'm not sure this is necessary anymore but you should probably restart
sendmail after using makemap.. and definitely restart anytime you
recompile sendmail.cf

With those asterisked things in place my mail works fine.

I can relay mail from any of my home machines thru my gentoo host with
the sendmail.mc shown as well.  So the other machines are pointed as
my gentoo box as smart host.




Re: [gentoo-user] Re: Hard disk power save

2009-02-08 Thread Stroller

On 8 Feb 2009, at 13:39, Neil Bothwick wrote:

On Sun, 8 Feb 2009 11:51:00 +0200, Danis Petkakis wrote:


ok thank you for your response...will do as suggested...


The suggestion was not to top-post...


He was replying to one of my messages, and I did not suggest that.

I was actually slightly narked at having to futz around with the  
previous message - which did not make any sense the first time I read  
it, so no doubt it made no sense at all to a less-capable English  
speaker - copying  pasting 6 times, just so that Nikos could make a  
clever point.


I do not object to top-posting myself, but I find that Danis Petkakis'  
habit of opposite posting (posting at the top when all previous  
replies have been at the bottom, or posting at the bottom when all  
previous replies have been at the top) makes his posts very difficult  
to read.


But we cannot blame him for doing so because nobody has taken the time  
to *patiently* explain what he's doing wrong, or point him to a URL  
that does so.


Stroller.



Re: [gentoo-user] share control rights to a daemon by both root and another user

2009-02-08 Thread zhangweiwu
Daniel Troeder schrieb:
 Hello :)
 
 You can use app-admin/sudo to achieve your goal. It can be configured to
 allow certain users to execute certain commands as other users (possibly
 root). You can even restrict the allowed arguments to a command.

Hi. Thanks for that suggestion. I am thinking I need to add a
configuration in sudo that everyone in fetch group (who can run the
daemon) should be able to sudo and run the daemon. I'll try it later.



[gentoo-user] mit kerberos running on Gentoo Linux

2009-02-08 Thread zhangweiwu
Dear all. I've installed mit version of kerberos V on my Gentoo Linux
through the package repository (called portage in Gentoo). krlogin works
but krsh strangely quit with a message I don't understand:

zhangwe...@esmeralda:~$ krlogin emerson.realss.com
Last login: Fri Feb  6 14:09:47 from 123.116.113.65
Linux Pyrrhus 2.6.18.1-fl2f-v1.02 #41 Thu Jul 3 10:13:18 CST 2008 mips64

The programs included with the RAYS GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

RAYS GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
zhangwe...@pyrrhus:~$ exit
logout
Connection closed.
zhangwe...@esmeralda:~$ krsh emerson.realss.com
usage: rlogin [ -8EL] [-e char] [ -l username ] host

Should I complain to Gentoo packager or MIT or have problem of my own?

Thanks.



Re: [gentoo-user] Re: Hard disk power save

2009-02-08 Thread Neil Bothwick
On Mon, 9 Feb 2009 01:37:00 +, Stroller wrote:

  ok thank you for your response...will do as suggested...  
 
  The suggestion was not to top-post...  
 
 He was replying to one of my messages, and I did not suggest that.

No, although the response was will do as suggested not will do as you
suggested.

 I was actually slightly narked at having to futz around with the  
 previous message - which did not make any sense the first time I read  
 it, so no doubt it made no sense at all to a less-capable English  
 speaker - copying  pasting 6 times, just so that Nikos could make a  
 clever point.

Yes, a clear explanation of why the list prefers text to appear in
chronological order would have been better, and I was somewhat complicit
in continuing the obtuse complaints.

Danis, please do not top-post. Instead, place your comments so they
follow what your are replying to. That way the mail can be read in its
natural order, which makes it much easier to understand.


-- 
Neil Bothwick

Top Oxymorons Number 5: Twelve-ounce pound cake


signature.asc
Description: PGP signature


[gentoo-user] Time keeper app for KDE 4.2

2009-02-08 Thread Hung Dang

Hi all
I know that there is an option in GNOME which allows the computer 
keyboard, mouse and screen to freeze for a certain time for example 3 
minutes for each hour. I wonder if there is something similar in KDE?


Thanks
Hung



Re: [gentoo-user] Re: Hard disk power save

2009-02-08 Thread Stroller


On 9 Feb 2009, at 02:30, Neil Bothwick wrote:


On Mon, 9 Feb 2009 01:37:00 +, Stroller wrote:


ok thank you for your response...will do as suggested...


The suggestion was not to top-post...


He was replying to one of my messages, and I did not suggest that.


No, although the response was will do as suggested not will do as  
you

suggested.


I assumed the suggestion he was responding to was to umount drives  
before putting them to sleep.


Stroller.




[gentoo-user] Permissions of /etc/sudoers

2009-02-08 Thread Stroller

Hi there,

I'm just in the process of setting up my lovely new system :D, in the  
very first post-install steps.


I install sudo, give my user wide sudo rights and then set  
PermitRootLogin no in /etc/ssh/sshd_config.

(Critique of this measure welcomed).

Anyway, as root I started to edit /etc/sudoers and vim complained  
editing a read-only file.


Sure enough, /etc/sudoers has permissions 440, so I had to `chmod 640 / 
etc/sudoers` before editing it  changing it back.


I am sure I did not have to do this last time I installed a system,  
although that would have been at least a couple of years ago.


Obviously /etc/sudoers is a security-critical file and one wishes to  
prevent attackers from editing it, but surely if a file belongs to  
root there's not much point (??) in preventing root from writing to  
it, because root can always change the permissions and edit the file,  
just as I have done.


I see from some Googling that sudo complains if the permissions on  
this file are greater than 4xx - can anyone explain why, please?


I'm sure there is something I am not understanding, but my naive  
analysis suggests the only reason for this behaviour is to  
inconvenience administrators!


Stroller.





Re: [gentoo-user] Permissions of /etc/sudoers

2009-02-08 Thread Michael Hentsch

Stroller schrieb:

Hi there,

I'm just in the process of setting up my lovely new system :D, in the 
very first post-install steps.


I install sudo, give my user wide sudo rights and then set 
PermitRootLogin no in /etc/ssh/sshd_config.

(Critique of this measure welcomed).

Anyway, as root I started to edit /etc/sudoers and vim complained 
editing a read-only file.
The file /etc/sudoers should always be edited with visudo. visudo uses 
file locking, provides basic sanity checks and checks for parse errors.




Sure enough, /etc/sudoers has permissions 440, so I had to `chmod 640 
/etc/sudoers` before editing it  changing it back.


440 is ok.


I am sure I did not have to do this last time I installed a system, 
although that would have been at least a couple of years ago.


Obviously /etc/sudoers is a security-critical file and one wishes to 
prevent attackers from editing it, but surely if a file belongs to 
root there's not much point (??) in preventing root from writing to 
it, because root can always change the permissions and edit the file, 
just as I have done.


I see from some Googling that sudo complains if the permissions on 
this file are greater than 4xx - can anyone explain why, please?


I'm sure there is something I am not understanding, but my naive 
analysis suggests the only reason for this behaviour is to 
inconvenience administrators!


Stroller.








[gentoo-user] Using root=LABEL=xxxx in grub.conf

2009-02-08 Thread Stroller

Hi there,

Is anyone using root=LABEL= grub.conf, please? Anyone also using  
ext4 for their root?


I can find 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

But it doesn't work for me. :(

Here's a working configuration:

strol...@hex ~ $ cat /etc/fstab
# /etc/fstab: static file system information.
#
# fsmountpoint  typeopts  
  dump/pass

	# NOTE: If your BOOT partition is ReiserFS, add the notail option to  
opts.

LABEL=boot  /boot   ext2noauto,noatime  
1 2
LABEL=root  /   ext4noatime 
0 1
LABEL=swap  noneswapsw  
0 0
/dev/cdrom  /mnt/cdrom  autonoauto,ro   
0 0

# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
#  use almost no memory if not populated with files)
shm /dev/shmtmpfs   
nodev,nosuid,noexec 0 0

strol...@hex ~ $ sudo mount -v -L boot
/dev/sda1 on /boot type ext2 (rw,noatime)
strol...@hex ~ $ cat /boot/grub/grub.conf
default 0
timeout 30
splashimage=(hd0,0)/boot/grub/splash.xpm.gz

title Gentoo Linux 2.6.28-gentoo-r1
root (hd0,0)
kernel /boot/bzImage-2.6.28-gentoo-r1 root=/dev/sda6

strol...@hex ~ $


If I simply change the kernel line of grub.conf to:

kernel /boot/bzImage-2.6.28-gentoo-r1 root=LABEL=root

Then I get a kernel panic upon boot:
   VFS: Cannot open root device LABEL=root or unknown-block(0,0)
   Please append a correct root= boot option; here are the  
available partitions:

   ...
   Kernel Panic - not syncing: VFS Unable to mount root fs on unknown- 
block(0,0)


Full screenshot of kernel panic:
   http://stuff.stroller.uk.eu.org/KernelPanic.png


Googling this error brings up quite a number of hits, and I reckon I  
must have spent a couple of hours now trying the most popular  
resolutions. This is quite a minor error - if I wasn't such an  
obsessive-compulsive I could easily ignore it, but I am, and it's  
frustrating the heck out of me.


One forum thread / bug report suggests the ata_piix module is to  
blame, but compiling that statically into my kernel doesn't help.

http://www.linuxquestions.org/questions/fedora-35/fc2-vfs-cannot-open-root-device-label-or-unknown-block00-269230/
https://bugzilla.redhat.com/show_bug.cgi?id=126953

Another post (can't find the reference now) suggests disabling  
Initial RAM filesystem and RAM disk (initramfs/initrd) support but  
that doesn't make any difference, either.


Finally, this thread http://kerneltrap.org/node/2318 says check  
your .config and look for CONFIG_BLK_DEV_IDE and  
CONFIG_BLK_DEV_IDEDISK entries. This is quite an old post, however,  
and these options aren't available in 2.6.28 (from my distro); I  
enabled CONFIG_BLK_DEV_IDEPCI instead, but it has no positive effect.


I had better mention that I am using a 3ware 9500 RAID controller on  
the PCI bus. I suspect the problem is specific to this (and my  
combination of modules / compiled-in kernel drivers), but I thought I  
would throw the question out there  see if any other ext4 users had  
also seen the same thing.


Thanks in advance for any suggestions,

Stroller.




Re: [gentoo-user] Using root=LABEL=xxxx in grub.conf

2009-02-08 Thread Dale
Stroller wrote:
 Hi there,

 Is anyone using root=LABEL= grub.conf, please? Anyone also using
 ext4 for their root?

 I can find 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

 But it doesn't work for me. :(

 Here's a working configuration:

 strol...@hex ~ $ cat /etc/fstab
 # /etc/fstab: static file system information.
 #
 # fsmountpointtypeopts   
 dump/pass
 
 # NOTE: If your BOOT partition is ReiserFS, add the notail option
 to opts.
 LABEL=boot/bootext2noauto,noatime1 2
 LABEL=root/ext4noatime0 1
 LABEL=swapnoneswapsw0 0
 /dev/cdrom/mnt/cdromautonoauto,ro0 0
 
 # glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
 # POSIX shared memory (shm_open, shm_unlink).
 # (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
 #  use almost no memory if not populated with files)
 shm/dev/shmtmpfsnodev,nosuid,noexec0 0
 
 strol...@hex ~ $ sudo mount -v -L boot
 /dev/sda1 on /boot type ext2 (rw,noatime)
 strol...@hex ~ $ cat /boot/grub/grub.conf
 default 0
 timeout 30
 splashimage=(hd0,0)/boot/grub/splash.xpm.gz
 
 title Gentoo Linux 2.6.28-gentoo-r1
 root (hd0,0)
 kernel /boot/bzImage-2.6.28-gentoo-r1 root=/dev/sda6
 
 strol...@hex ~ $


 If I simply change the kernel line of grub.conf to:

 kernel /boot/bzImage-2.6.28-gentoo-r1 root=LABEL=root

 Then I get a kernel panic upon boot:
VFS: Cannot open root device LABEL=root or unknown-block(0,0)
Please append a correct root= boot option; here are the available
 partitions:
...
Kernel Panic - not syncing: VFS Unable to mount root fs on
 unknown-block(0,0)

 Full screenshot of kernel panic:
http://stuff.stroller.uk.eu.org/KernelPanic.png


 Googling this error brings up quite a number of hits, and I reckon I
 must have spent a couple of hours now trying the most popular
 resolutions. This is quite a minor error - if I wasn't such an
 obsessive-compulsive I could easily ignore it, but I am, and it's
 frustrating the heck out of me.

 One forum thread / bug report suggests the ata_piix module is to
 blame, but compiling that statically into my kernel doesn't help.
 http://www.linuxquestions.org/questions/fedora-35/fc2-vfs-cannot-open-root-device-label-or-unknown-block00-269230/

 https://bugzilla.redhat.com/show_bug.cgi?id=126953

 Another post (can't find the reference now) suggests disabling
 Initial RAM filesystem and RAM disk (initramfs/initrd) support but
 that doesn't make any difference, either.

 Finally, this thread http://kerneltrap.org/node/2318 says check
 your .config and look for CONFIG_BLK_DEV_IDE and
 CONFIG_BLK_DEV_IDEDISK entries. This is quite an old post, however,
 and these options aren't available in 2.6.28 (from my distro); I
 enabled CONFIG_BLK_DEV_IDEPCI instead, but it has no positive effect.

 I had better mention that I am using a 3ware 9500 RAID controller on
 the PCI bus. I suspect the problem is specific to this (and my
 combination of modules / compiled-in kernel drivers), but I thought I
 would throw the question out there  see if any other ext4 users had
 also seen the same thing.

 Thanks in advance for any suggestions,

 Stroller.




You may have done this but just in case, you did use the tools to set
the label on the drive right?  tune2fs does it for ext2 and ext3.  I'm
not sure about ext4. 

I only mention this cause this sounds like something I would do. 

Dale

:-)  :-) 



Re: [gentoo-user] Using root=LABEL=xxxx in grub.conf

2009-02-08 Thread Stroller


On 9 Feb 2009, at 07:42, Dale wrote:

Stroller wrote:

...
   strol...@hex ~ $ sudo mount -v -L boot
   /dev/sda1 on /boot type ext2 (rw,noatime)
   strol...@hex ~ $

...
You may have done this but just in case, you did use the tools to set
the label on the drive right?  tune2fs does it for ext2 and ext3.  I'm
not sure about ext4.


Good question! I thought for a moment that the above demonstrated that  
I had done so, but of course it is necessary to boot from a LiveCD  
instead:


r...@sysresccd /root % mount -v -L root /mnt/gentoo
mount: you didn't specify a filesystem type for /dev/sda6
   I will try type ext4
/dev/sda6 on /mnt/gentoo type ext4 (rw)
r...@sysresccd /root %

Stroller.