[gentoo-user] rc_coldplug - what to use instead of it?

2009-01-09 Thread Helmut Jarausch
Hi,

when moving GenToo to similar hardware by cloning  / and /usr
I had strange effects like renaming eth0 to eth1 unless I got the hint
by some helpful guy on this list to set (in /etc/rc.conf)

rc_coldplug=NO

during the first boot
switching back to 

rc_coldplug=YES

for future boots.

Now, that rc_coldplug has gone,
what can I do instead?

Many thanks for hint,
Helmut.

-- 
Helmut Jarausch

Lehrstuhl fuer Numerische Mathematik
RWTH - Aachen University
D 52056 Aachen, Germany



Re: [gentoo-user] rc_coldplug - what to use instead of it?

2009-01-09 Thread Neil Bothwick
On Fri, 09 Jan 2009 13:11:15 +0100 (CET), Helmut Jarausch wrote:

 when moving GenToo to similar hardware by cloning  / and /usr
 I had strange effects like renaming eth0 to eth1


Delete /etc/udev/rules.d/70-persistent-net.rules. It maps your old MAC
address to eth0, so the new NIC has to use eth1. It will be recreated
with the correct values after the next reboot.


-- 
Neil Bothwick

One person's error is another person's data.


signature.asc
Description: PGP signature


[gentoo-user] Re: Iozone on multiple nodes using ssh

2009-01-09 Thread Chuanwen Wu
Hi, thank t35t0r!
I have tried your script, but still got the same problem.

 Then I run iozone on node73:
 /***/
 d...@node73 ~ $ iozone -s 1m -Rb log.xls  -t 1 -+m clientlist
Iozone: Performance Test of File I/O
Version $Revision: 3.242 $
Compiled for 64 bit mode.
Build: linux-AMD64
[...]
Run began: Thu Jan  8 23:11:13 2009

File size set to 1024 KB
Excel chart generation enabled
Network distribution mode enabled.
Command line used: iozone -s 1m -Rb log.xls -t 1 -+m clientlist
Output is in Kbytes/sec
Time Resolution = 0.01 seconds.
Processor cache size set to 1024 Kbytes.
Processor cache line size set to 32 bytes.
File stride size set to 17 * record size.
Throughput test with 1 process
Each process writes a 1024 Kbyte file in 4 Kbyte records
 /**/
 Then iozone stoped here.

 I still use strace to see what happend:
 /**/
 d...@node73 ~ $ strace iozone -s 1m -Rb log.xls  -t 1 -+m clientlist
 execve(/usr/bin/iozone, [iozone, -s, 1m, -Rb, log.xls,
 -t, 1, -+m, clientlist], [/* 45 vars */]) = 0
 brk(0)  = 0x7cb000
 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
 0) = 0x7f67f3639000
 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
 0) = 0x7f67f3638000
 access(/etc/ld.so.preload, R_OK)  = -1 ENOENT (No such file or 
 directory)
 open(/etc/ld.so.cache, O_RDONLY)  = 3
 fstat(3, {st_mode=S_IFREG|0644, st_size=48606, ...}) = 0
 mmap(NULL, 48606, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f67f362c000
 close(3)= 0
 open(/lib/librt.so.1, O_RDONLY)   = 3
 read(3, \177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0\0\1\0\0\0\300\\0\0\0\0\0\0...,
 832) = 832
 fstat(3, {st_mode=S_IFREG|0755, st_size=35688, ...}) = 0
 mmap(NULL, 2132968, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
 0) = 0x7f67f3217000
 mprotect(0x7f67f321f000, 2093056, PROT_NONE) = 0
 mmap(0x7f67f341e000, 8192, PROT_READ|PROT_WRITE,
 MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x7000) = 0x7f67f341e000
 close(3)= 0
 open(/lib/libpthread.so.0, O_RDONLY)  = 3
 read(3, \177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0\0\1\0\0\0\240W\0\0\0\0\0\0...,
 832) = 832
 fstat(3, {st_mode=S_IFREG|0755, st_size=131577, ...}) = 0
 mmap(NULL, 2204528, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
 0) = 0x7f67f2ffc000
 mprotect(0x7f67f3011000, 2097152, PROT_NONE) = 0
 mmap(0x7f67f3211000, 8192, PROT_READ|PROT_WRITE,
 MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x15000) = 0x7f67f3211000
 mmap(0x7f67f3213000, 13168, PROT_READ|PROT_WRITE,
 MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f67f3213000
 close(3)= 0
 open(/lib/libc.so.6, O_RDONLY)= 3
 read(3, 
 \177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0\0\1\0\0\0\220\334\1\0\0\0\0\0...,
 832) = 832
 fstat(3, {st_mode=S_IFREG|0755, st_size=1293456, ...}) = 0
 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
 0) = 0x7f67f362b000
 mmap(NULL, 3399928, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
 0) = 0x7f67f2cbd000
 mprotect(0x7f67f2df3000, 2093056, PROT_NONE) = 0
 mmap(0x7f67f2ff2000, 20480, PROT_READ|PROT_WRITE,
 MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x135000) = 0x7f67f2ff2000
 mmap(0x7f67f2ff7000, 16632, PROT_READ|PROT_WRITE,
 MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f67f2ff7000
 close(3)= 0
 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
 0) = 0x7f67f362a000
 arch_prctl(ARCH_SET_FS, 0x7f67f362a6f0) = 0
 mprotect(0x7f67f2ff2000, 16384, PROT_READ) = 0
 mprotect(0x7f67f3211000, 4096, PROT_READ) = 0
 mprotect(0x7f67f341e000, 4096, PROT_READ) = 0
 mprotect(0x62a000, 4096, PROT_READ) = 0
 mprotect(0x7f67f363a000, 4096, PROT_READ) = 0
 munmap(0x7f67f362c000, 48606)   = 0
 set_tid_address(0x7f67f362a780) = 31886
 set_robust_list(0x7f67f362a790, 0x18)   = 0
 rt_sigaction(SIGRTMIN, {0x7f67f3001310, [], SA_RESTORER|SA_SIGINFO,
 0x7f67f3009ec0}, NULL, 8) = 0
 rt_sigaction(SIGRT_1, {0x7f67f3001390, [],
 SA_RESTORER|SA_RESTART|SA_SIGINFO, 0x7f67f3009ec0}, NULL, 8) = 0
 rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0
 getrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM_INFINITY}) = 0
 uname({sys=Linux, node=Gentoo-F312-73, ...}) = 0
 brk(0)  = 0x7cb000
 brk(0x7ec000)   = 0x7ec000
 open(/etc/localtime, O_RDONLY)= 3
 fstat(3, {st_mode=S_IFREG|0644, st_size=405, ...}) = 0
 fstat(3, {st_mode=S_IFREG|0644, st_size=405, ...}) = 0
 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
 0) = 0x7f67f3637000
 read(3, TZif2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\0\0\0\3\0\0\0\0...,
 4096) = 405

Re: [gentoo-user] Permissions of files in /sys/

2009-01-09 Thread Andrea Momesso
On Wed, Jan 7, 2009 at 9:47 PM, Paul Hartman
paul.hartman+gen...@gmail.com wrote:
 On Wed, Jan 7, 2009 at 8:29 AM, Momesso Andrea momesso.and...@gmail.com 
 wrote:
 I'd like to make the file /sys/class/backlight/asus-laptop/brightness
 writeable for users, so that I don't need to be root anymore to change
 the brightness.

 Of course I can chown or chmod ot in local.start but I'm asking if there
 is a cleaner way.

 I guess you need to use udevinfo to get the important information
 about /sys/class/backlight/asus-laptop/brightness and then write up a
 rule, slap it into a file in /etc/udev/rules.d/ and enjoy your new
 permissions. :) I don't have that device on my system so I can't
 really suggest anything more specific.

 Here's a udev rules HOWTO that might help:

 http://www.reactivated.net/writing_udev_rules.html

 (specifically Controlling permissions and ownership)

 Good luck :)
 Paul



It looks like I cannot simply write a rule to change that permission...
After experiencing some failures I guess that udev rules can change
permissions on /dev/ files, but not on /sys/ files...

This is my case:

# udevadm info -a -p /sys/class/backlight/asus-laptop/

  looking at device '/class/backlight/asus-laptop':
KERNEL==asus-laptop
SUBSYSTEM==backlight
DRIVER==
ATTR{bl_power}==0
ATTR{brightness}==5
ATTR{actual_brightness}==5
ATTR{max_brightness}==15

And this is the rule I added in /etc/udev/rules.d/10-local.rules

KERNEL==asus-laptop, SUBSYSTEM==backlight, GROUP=video, MODE=0660

After a reboot I still get this:

# ls -la /sys/class/backlight/asus-laptop
total 0
drwxr-xr-x 3 root root0 2009-01-09 15:18 .
drwxr-xr-x 3 root root0 2009-01-09 15:18 ..
-r--r--r-- 1 root root 4096 2009-01-09 15:18 actual_brightness
-rw-r--r-- 1 root root 4096 2009-01-09 15:19 bl_power
-rw-r--r-- 1 root root 4096 2009-01-09 17:02 brightness
-r--r--r-- 1 root root 4096 2009-01-09 15:18 max_brightness
drwxr-xr-x 2 root root0 2009-01-09 15:19 power
lrwxrwxrwx 1 root root0 2009-01-09 15:18 subsystem - ../../backlight
-rw-r--r-- 1 root root 4096 2009-01-09 15:18 uevent

Googling a bit I found some solutions [1] [2], but all of them are
changing the permissions at every
boot. It works, but it looks to me a bit unclean...
[1] http://wiki.laptop.org/go/Xfce_keybindings#Adjust_screen_brightness_buttons
[2] http://www.thinkwiki.org/wiki/Automatically_reduce_brightness

-- 
Momesso (TopperH) Andrea
http://topperh.blogspot.com
Jabber: topper_har...@jabber.org
ICQ: 224179391



Re: [gentoo-user] Restricting Firefox website access

2009-01-09 Thread Grant
 You could use iptables to block all traffic headed to port 80 with
 exceptions for the domains you need.

Would that cause problems with fetching packages for emerges?

- Grant



Re: [gentoo-user] Restricting Firefox website access

2009-01-09 Thread Alan McKinnon
On Friday 09 January 2009 20:40:33 Grant wrote:
  You could use iptables to block all traffic headed to port 80 with
  exceptions for the domains you need.

 Would that cause problems with fetching packages for emerges?

If you wget your packages using http, then yes. You could then:

1. Put all your mirror sites in the exception list. This can get tedious as 
some ebuilds list many mirrors for sources

or

2. wget using ftp

or

3. set up a proxy

The easiest is #2 by far

-- 
alan dot mckinnon at gmail dot com



[gentoo-user] Im searching for a font

2009-01-09 Thread Frank Schwidom
Hi

im searching for the larabie - font. How can i finger out in which
package it resides?

Regards



Re: [gentoo-user] Im searching for a font

2009-01-09 Thread Dale
Frank Schwidom wrote:
 Hi

 im searching for the larabie - font. How can i finger out in which
 package it resides?

 Regards


   

I can't find them in a package but you can find there here:

http://www.larabiefonts.com/

Maybe I missed them but even google isn't helping right now.

Dale

:-)  :-) 



Re: [gentoo-user] Restricting Firefox website access

2009-01-09 Thread Grant
  You could use iptables to block all traffic headed to port 80 with
  exceptions for the domains you need.

 Would that cause problems with fetching packages for emerges?

 If you wget your packages using http, then yes. You could then:

 1. Put all your mirror sites in the exception list. This can get tedious as
 some ebuilds list many mirrors for sources

 or

 2. wget using ftp

 or

 3. set up a proxy

 The easiest is #2 by far

Does portage use wget over http by default?  Can I change a setting to
make it use ftp?

- Grant



[gentoo-user] non-PHP webmail in portage?

2009-01-09 Thread Grant
Does anyone know of a good (or OK) webmail client in portage that
doesn't use PHP?  I use squirrelmail now but I have PHP installed only
for that and I think PHP slows apache2 down a bit.

- Grant



Re: [gentoo-user] non-PHP webmail in portage?

2009-01-09 Thread kashani

Grant wrote:

Does anyone know of a good (or OK) webmail client in portage that
doesn't use PHP?  I use squirrelmail now but I have PHP installed only
for that and I think PHP slows apache2 down a bit.

- Grant



Have you installed dev-php5/eaccelerator for caching PHP opcode? That's 
probably more useful than swapping the underlying language your webmail 
client in implemented in unless your system is completely starved for RAM.


kashani



Re: [gentoo-user] non-PHP webmail in portage?

2009-01-09 Thread Matt Harrison

Grant wrote:

Does anyone know of a good (or OK) webmail client in portage that
doesn't use PHP?  I use squirrelmail now but I have PHP installed only
for that and I think PHP slows apache2 down a bit.

- Grant



I don't think you'll find anything faster except maybe written in C, 
which is doubtful. The only other language you might find webmail 
written in is Perl/CGI and that is definitely not faster in my 
experience. PHP is about as good as you will get IMHO.


Matt



Re: [gentoo-user] Restricting Firefox website access

2009-01-09 Thread Kyle Bader
 Does portage use wget over http by default?  Can I change a setting to
 make it use ftp?

Use a ftp:// mirror ?

(correct me if I'm wrong)

-Kyle



Re: [gentoo-user] Restricting Firefox website access

2009-01-09 Thread Nick Cunningham
2009/1/9 Kyle Bader kyle.ba...@gmail.com

  Does portage use wget over http by default?  Can I change a setting to
  make it use ftp?

 Use a ftp:// mirror ?

 (correct me if I'm wrong)

 -Kyle


While that would work for the basic gentoo mirrors, there are a number of
packages that point to sites like sourceforge that may cause you problems.

- Nick


Re: [gentoo-user] Restricting Firefox website access

2009-01-09 Thread Alan McKinnon
On Friday 09 January 2009 21:32:15 Grant wrote:
   You could use iptables to block all traffic headed to port 80 with
   exceptions for the domains you need.
 
  Would that cause problems with fetching packages for emerges?
 
  If you wget your packages using http, then yes. You could then:
 
  1. Put all your mirror sites in the exception list. This can get tedious
  as some ebuilds list many mirrors for sources
 
  or
 
  2. wget using ftp
 
  or
 
  3. set up a proxy
 
  The easiest is #2 by far

 Does portage use wget over http by default?  Can I change a setting to
 make it use ftp?

Just give GENTOO_MIRRORS a usable ftp:// url in make.conf

There's nothing you can do about http URLs that might be in ebuilds. Those are 
hardcoded and emerge will tell wget to use those exact URLs 

-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] Re: kernel linux-2.6.27-gentoo-r7 won't load network!

2009-01-09 Thread Mick
On Tuesday 06 January 2009, Dale wrote:
 Denis wrote:
  Looks like there are other bugs filed elsewhere on the net about E1000
  not loading with the 2.6.27 kernel.
 
  Here's a curious note from
  https://bugs.launchpad.net/launchpad-foundations/+bug/275611
 
  =
  If I remove the line of the card in
  /etc/udev/rules.d/70-persistent-net.rules and boot with kernel
  2.6.27-4, nothing happens, it's like the card does not exist.
  If I modprobe e1000, and try to bring up manually eth0:
 
  eth0: error fetching interface information: Device not found
  If I boot back in kernel 2.6.27-3, everything works fine,
  /etc/udev/rules.d/70-persistent-net.rules is correctly configured, and
  so on.
  =
 
  Sounds like something's up.  I will try to configure my 2.6.27 using
  menuconfig, but why do I get the sense that I'll just waste time doing
  that and end up at square one?

 Because if it is in the kernel, it is in the kernel.  It doesn't matter
 if it is put there by oldconfig or menuconfig or some other config.
 It's either there built in, as a module or it is not there.  Really simple.

Well, I would have thought the same up until a week or so ago, but my 
conspiracy theory is that the 2.6.27-r7 gentoo kernel (don't know about the 
vanilla version) broke things.  In my case I couldn't get my sound card to 
work - alsa would error out not recognising my card.  I have been using 
oldconfig for years now, but also tried menuconfig just in case - of course 
it made no difference.  Filed a bug and it was suggested to me that I try 
building the alsa drivers as modules.  I tried it on for size and guess what, 
it worked!  I have not idea why as modules it worked, while built in the 
kernel it did not.
-- 
Regards,
Mick


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


Re: [gentoo-user] Re: kernel linux-2.6.27-gentoo-r7 won't load network!

2009-01-09 Thread Neil Bothwick
On Fri, 9 Jan 2009 22:37:44 +, Mick wrote:

 Filed a bug and it was suggested to me that I try 
 building the alsa drivers as modules.  I tried it on for size and guess
 what, it worked!

AFAIR the Gentoo ALSA docs have always recommended building as modules.


-- 
Neil Bothwick

Puns are bad, but poetry is verse...


signature.asc
Description: PGP signature


Re: [gentoo-user] Restricting Firefox website access

2009-01-09 Thread Mike Kazantsev
On Fri, 9 Jan 2009 10:40:33 -0800
Grant emailgr...@gmail.com wrote:

  You could use iptables to block all traffic headed to port 80 with
  exceptions for the domains you need.
 
 Would that cause problems with fetching packages for emerges?
 
 - Grant
 

Why not just put a limit to a traffic from/to a specific user
account(s) or groups, leaving root unrestricted?

Makes sense, since root would be able to lift any restriction, anyway ;)

-- 
Mike Kazantsev // fraggod.net


signature.asc
Description: PGP signature


Re: [gentoo-user] non-PHP webmail in portage?

2009-01-09 Thread Mike Kazantsev
On Fri, 9 Jan 2009 11:38:16 -0800
Grant emailgr...@gmail.com wrote:

 Does anyone know of a good (or OK) webmail client in portage that
 doesn't use PHP?  I use squirrelmail now but I have PHP installed only
 for that and I think PHP slows apache2 down a bit.
 
 - Grant
 

There are bunch of python webmail systems, just type 'python webmail'
into google.

And if you're looking for performance I would suggest to abstrain from
cgi and apache in favor of fcgi with daemons like nginx or lighttpd.

-- 
Mike Kazantsev // fraggod.net


signature.asc
Description: PGP signature