Re: [gentoo-user] Failed to start /etc/init.d/checkroot

2009-04-27 Thread Chuanwen Wu
Hi, thanks!

 It seems a bit strange that checkroot gave no output, just failure -
 as if it's execution didn't even started, and, since it's one of the
 first initscripts to start, prehaps there's a problem with bash
 interpreter or access to init.d path.

 Since you've mounted filesystem and it looks okay, you can try changing
 last two columns in /etc/fstab for root filesystem to 0 0, so script
 won't try to check it - that way you can see if it's something with
 fsck - prehaps the system will just boot.

I have tried it, but nothing change.



 Then, if the rest of the initscripts won't throw some similar errors
 (possibly exposing the real problem), you can probably insert a lot of
 echoes/einfos to that initscript to see at which point everything hangs
 and check what's wrong with the command causing it.

I have inserted some echos,  now the checkroot script is:
/*/
#!/sbin/runscript
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

depend() {
before *
}

start() {
local retval=0

echo 1

if [[ ! -f /fastboot  -z ${CDBOOT} ]] \
 ! is_net_fs /  ! is_union_fs / ; then
echo 2
if touch -c /  /dev/null ; then
ebegin Remounting root filesystem read-only
mount -n -o remount,ro /
eend $?
fi

if [[ -f /forcefsck ]] || get_bootparam forcefsck ; then
ebegin Checking root filesystem (full fsck forced)
fsck -C -a -f /
# /forcefsck isn't deleted because checkfs needs it.
# it'll be deleted in that script.
retval=$?
else
# Obey the fs_passno setting for / (see fstab(5))
# - find the / entry
# - make sure we have 6 fields
# - see if fs_passno is something other than 0
if [[ -n $(awk '($1 ~ /^(\/|UUID|LABEL)/  $2 == / \
 NF == 6  $6 != 0) { print }' /etc/fstab) ]]
then
ebegin Checking root filesystem
fsck -C -T -a /
retval=$?
else
ebegin Skipping root filesystem check (fstab's passno ==
0)
retval=0
fi
fi

if [[ ${retval} -eq 0 ]] ; then
eend 0
elif [[ ${retval} -eq 1 ]] ; then
ewend 1 Filesystem repaired
elif [[ ${retval} -eq 2 || ${retval} -eq 3 ]] ; then
ewend 1 Filesystem repaired, but reboot needed!
if [[ ${RC_FORCE_AUTO} != yes ]] ; then
echo -ne \a; sleep 1; echo -ne \a; sleep 1
echo -ne \a; sleep 1; echo -ne \a; sleep 1
ewarn Rebooting in 10 seconds ...
sleep 10
fi
einfo Rebooting
/sbin/reboot -f
else
if [[ ${RC_FORCE_AUTO} == yes ]] ; then
eend 2 Rerunning fsck in force mode
fsck -y -C -T /
else
eend 2 Filesystem couldn't be fixed :(
sulogin ${CONSOLE}
fi
einfo Unmounting filesystems
/bin/mount -a -o remount,ro  /dev/null
einfo Rebooting
/sbin/reboot -f
fi
fi

echo 3

# Should we mount root rw ?  the touch check is to see if the / is
# already mounted rw in which case there's nothing for us to do
[...]
/*/

Now the booting message is :
/*/
mounting devpts at /dev/pts OK
1
/*/
I am not quite understand the script. But I guess somethink must be wrong in
the if' statement which contain echo 2.

Any help will be appreciated!

-- 
wcw


[gentoo-user] Failed to start /etc/init.d/checkroot

2009-04-26 Thread Chuanwen Wu
Hi,
My gentoo failed to boot up. When my gentoo is booting up, after the message

mounting devpts at /dev/pts OK,
then it just stoped, and then I pressed CTRL + c to interrupt it, and the
message:
Failed to start /etc/init.d/checkroot“ appeared.

I have checked the file /etc/init.d/checkroot, and I am sure it's the same
with another checkroot file which is in another normal gentoo(I used 'diff'
to compare).
Here is the file '/etc/init.d/checkroot':

//
# cat /etc/init.d/checkroot
#!/sbin/runscript
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

depend() {
before *
}

start() {
local retval=0

if [[ ! -f /fastboot  -z ${CDBOOT} ]] \
 ! is_net_fs /  ! is_union_fs / ; then
if touch -c /  /dev/null ; then
ebegin Remounting root filesystem read-only
mount -n -o remount,ro /
eend $?
fi

if [[ -f /forcefsck ]] || get_bootparam forcefsck ; then
ebegin Checking root filesystem (full fsck forced)
fsck -C -a -f /
# /forcefsck isn't deleted because checkfs needs it.
# it'll be deleted in that script.
retval=$?
else
# Obey the fs_passno setting for / (see fstab(5))
# - find the / entry
# - make sure we have 6 fields
# - see if fs_passno is something other than 0
if [[ -n $(awk '($1 ~ /^(\/|UUID|LABEL)/  $2 == / \
 NF == 6  $6 != 0) { print }' /etc/fstab) ]]
then
ebegin Checking root filesystem
fsck -C -T -a /
retval=$?
else
ebegin Skipping root filesystem check (fstab's passno ==
0)
retval=0
fi
fi

if [[ ${retval} -eq 0 ]] ; then
eend 0
elif [[ ${retval} -eq 1 ]] ; then
ewend 1 Filesystem repaired
elif [[ ${retval} -eq 2 || ${retval} -eq 3 ]] ; then
ewend 1 Filesystem repaired, but reboot needed!
if [[ ${RC_FORCE_AUTO} != yes ]] ; then
echo -ne \a; sleep 1; echo -ne \a; sleep 1
echo -ne \a; sleep 1; echo -ne \a; sleep 1
ewarn Rebooting in 10 seconds ...
sleep 10
fi
einfo Rebooting
/sbin/reboot -f
else
if [[ ${RC_FORCE_AUTO} == yes ]] ; then
eend 2 Rerunning fsck in force mode
fsck -y -C -T /
else
eend 2 Filesystem couldn't be fixed :(
sulogin ${CONSOLE}
fi
einfo Unmounting filesystems
/bin/mount -a -o remount,ro  /dev/null
einfo Rebooting
/sbin/reboot -f
fi
fi

# Should we mount root rw ?  the touch check is to see if the / is
# already mounted rw in which case there's nothing for us to do
if mount -vf -o remount / 2 /dev/null | \
   awk '{ if ($6 ~ /rw/) exit 0; else exit 1; }'  \
   ! touch -c /  /dev/null
then
ebegin Remounting root filesystem read/write
mount -n -o remount,rw /  /dev/null
if [[ $? -ne 0 ]] ; then
eend 2 Root filesystem could not be mounted read/write :(
if [[ ${RC_FORCE_AUTO} != yes ]] ; then
sulogin ${CONSOLE}
fi
else
eend 0
fi
fi

if [[ ${BOOT} == yes ]] ; then
local x=
local y=

#
# Create /etc/mtab
#

# Don't create mtab if /etc is readonly
if ! touch /etc/mtab 2 /dev/null ; then
ewarn Skipping /etc/mtab initialization (ro root?)
return 0
fi

# Clear the existing mtab
 /etc/mtab

# Add the entry for / to mtab
mount -f /

# Don't list root more than once
awk '$2 != / {print}' /proc/mounts  /etc/mtab

# Now make sure /etc/mtab have additional info (gid, etc) in there
for x in $(awk '{ print $2 }' /proc/mounts | sort -u) ; do
for y in $(awk '{ print $2 }' /etc/fstab) ; do
if [[ ${x} == ${y} ]] ; then
mount -f -o remount $x
continue
fi
done
done

# Remove stale backups
rm -f /etc/mtab~ /etc/mtab~~
fi
}


# vim:ts=4
//

How to fix this problem?
Thanks in advanced!

-- 
wcw


Re: [gentoo-user] wicd start failed

2009-02-18 Thread Chuanwen Wu
Hi, thanks for your tips!
 Do you have pygobject installed?

I have updated pygobject to 2.14.2, then updated dbus-python to
0.82.4, now the problem is fixed :)


-- 
wcw



Re: [gentoo-user] wicd start failed

2009-02-18 Thread Chuanwen Wu

 It looks like the dependencies are wrong,have you filed a bug?
Not yet, do you mean in bugzilla?

-- 
wcw



[gentoo-user] wicd start failed

2009-02-17 Thread Chuanwen Wu
Hi,
Several day ago, someone in this list recommended wicd to configure
the net interface. And I tried it but failed.

# wicd
Traceback (most recent call last):
  File /usr/lib/wicd/wicd-daemon.py, line 45, in module
import gobject
ImportError: No module named gobject
# wicd-client
Traceback (most recent call last):
  File /usr/lib/wicd/wicd-client.py, line 40, in module
import gtk
ImportError: No module named gtk

After the error occurred, I have updated python to 2.5.2 and pygtk to
2.12.1-r2, I also  ran python-updater, but nothing changed.

So anybody knew how to fix the problem?

Thanks in advanced!

-- 
wcw



Re: [gentoo-user] Can't login from terminal?

2009-02-12 Thread Chuanwen Wu
Hi, thanks!
 If you have pam on your system, then it broken
 '/etc/pam.d/system-local-login' might be the cause, as well as
 user-specific files there.
 And if that's not the case, try commenting out pam modules like
 mod_access, which can add additional access restrictions.
which file has mod_access ?

# grep mod_access /etc/* -R
grep: /etc/ssl/certs/cacert.org.pem: No such file or directory
grep: /etc/ssl/certs/5ed36f99.0: No such file or directory


 Also, you can probably tell if pam is the cause of a problem by
 commenting out all the required modules from whole authentication chain
 (usually, commenting out everything in system-auth will do) - it should
 allow any access w/o password, and it's probably not pam if it
 doesn't... can't really think what else it might be, though.
I have commented out everything in system-auth,  and still can't
login, although the result is diff:

/*/
This is Gentoo-Server.unknown_domain (Linux i686 2.6.26-gentoo-r1) 12:22:39
Gentoo-Server login: root
Last login: Thu Feb 12:09:24 CST 2009 from node07 on pts/0

This is Gentoo-Server.unknown_domain (Linux i686 2.6.26-gentoo-r1) 12:28:36
Gentoo-Server login:
/*/
Now it don't prompt the Password:

-- 
wcw



Re: [gentoo-user] Can't login from terminal?

2009-02-12 Thread Chuanwen Wu
Hi, thanks!
 Looks like the system is unable to launch a shell for some reason,
 prehaps you can change it to something default, like /bin/sh, or just
 something else if it's bash already.
Could you please give more details? How to change it to something default?


 Also, I'd double-check the logs - if something fails, there shoud be a
 message about it. Make sure you have syslog daemon running and not
 dropping any debug messages.
I have checked the /var/log/faillog, which I'm not sure whether it's
the right log file, and seems it only contain binary data(I read it
from vi /var/log/faillog).

-- 
wcw



Re: [gentoo-user] Can't login from terminal?

2009-02-12 Thread Chuanwen Wu
HI, thanks!

On Fri, Feb 13, 2009 at 3:11 PM, Mike Kazantsev
mike_kazant...@fraggod.net wrote:
 On Fri, 13 Feb 2009 13:15:12 +0800
 Chuanwen Wu wcw8...@gmail.com wrote:

 Could you please give more details? How to change it to something
 default?

 Well, that's pretty much the basics...
 Shells for each system user are defined in /etc/passwd, which should be
 edited by 'vipw' command.

 What I've meant is the case, when you, or something else changed
 '/etc/passwd', replacing '/bin/bash' with something like
 '/sbin/nologin' or some other path, which is not a valid shell.
Hi, here is the root infomation in my /etc/passwd:

root:x:0:0:root:/root:/bin/bash


 Actually, ssh shouldn't work with invalid shell like that as well, but
 one, for example, can add some commands to .bashrc which will work
 only in ssh environment (using some env vars, set by ssh, for example).

 Then, there might be some ssh-only shell, so I'd suggest to set shell
 to '/bin/sh' (which is actually bash, for gentoo) and disable all the
 configs it's using, like '~/.bashrc' or '/etc/bashrc' (see 'man bash',
 for full list).
In the /root, there is no .bashrc, and in other users' home, the
.bashrc is normal:
/***
$ cat /home/wcw/.bashrc
# /etc/skel/.bashrc
#
# This file is sourced by all *interactive* bash shells on startup,
# including some apparently interactive shells such as scp and rcp
# that can't tolerate any output.  So make sure this doesn't display
# anything or bad things will happen !


# Test for an interactive shell.  There is no need to set anything
# past this point for scp and rcp, and it's important to refrain from
# outputting anything in those cases.
if [[ $- != *i* ]] ; then
# Shell is non-interactive.  Be done now!
return
fi


# Put your fun stuff here.
/*/

 Also, Neil has made a good point that there might be something
 in /etc/profile, which is usually sourced by all bash-like shells.
Here is my /etc/profile, which I think is normal, too:
/*/
# cat /etc/profile
# /etc/profile: login shell setup
#
# That this file is used by any Bourne-shell derivative to setup the
# environment for login shells.
#

# Load environment settings from profile.env, which is created by
# env-update from the files in /etc/env.d
if [ -e /etc/profile.env ] ; then
. /etc/profile.env
fi

# 077 would be more secure, but 022 is generally quite realistic
umask 022

# Set up PATH depending on whether we're root or a normal user.
# There's no real reason to exclude sbin paths from the normal user,
# but it can make tab-completion easier when they aren't in the
# user's PATH to pollute the executable namespace.
#
# It is intentional in the following line to use || instead of -o.
# This way the evaluation can be short-circuited and calling whoami is
# avoided.
if [ $EUID = 0 ] || [ $USER = root ] ; then

PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:${ROOTPATH}
else
PATH=/usr/local/bin:/usr/bin:/bin:${PATH}
fi
export PATH
unset ROOTPATH

# Extract the value of EDITOR
[ -z $EDITOR ]  EDITOR=`. /etc/rc.conf 2/dev/null; echo $EDITOR`
[ -z $EDITOR ]  EDITOR=/bin/nano
export EDITOR

if [ -n ${BASH_VERSION} ] ; then
# Newer bash ebuilds include /etc/bash/bashrc which will setup PS1
# including color.  We leave out color here because not all
# terminals support it.
if [ -f /etc/bash/bashrc ] ; then
# Bash login shells run only /etc/profile
# Bash non-login shells run only /etc/bash/bashrc
# Since we want to run /etc/bash/bashrc regardless, we source it
# from here.  It is unfortunate that there is no way to do
# this *after* the user's .bash_profile runs (without putting
# it in the user's dot-files), but it shouldn't make any
# difference.
. /etc/bash/bashrc
else
PS1='\...@\h \w \$ '
fi
else
# Setup a bland default prompt.  Since this prompt should be useable
# on color and non-color terminals, as well as shells that don't
# understand sequences such as \h, don't put anything special in it.
PS1=`whoa...@`uname -n | cut -f1 -d.` \$ 
fi

for sh in /etc/profile.d/*.sh ; do
if [ -r $sh ] ; then
. $sh
fi
done
unset sh
/*/

 Syslog usually uses '/var/log/messages' as a collector for everything
 that is being sent to it, so I'd check that file first. And make sure
 the timestamps there are recent - it should mean that syslog is writing
 to it and is not dead.
I got the login information below from the tail of /var/log/messages:
//
Feb 13 15:47:18 Gentoo-F304-Server login[5735]:
pam_unix(login:session): session opened

[gentoo-user] Can't login from terminal?

2009-02-11 Thread Chuanwen Wu
Hi,
My gentoo worked very well in the past two years. But today I found
that I can't login it from the terminal, but ssh login is OK.

I have written down the login message:
/*/
This is Gentoo-Server.unknown_domain (Linux i686 2.6.26-gentoo-r1) 12:22:39
Gentoo-Server login: root
Password:
Last login: Thu Feb 12:09:24 CST 2009 from node07 on pts/0

This is Gentoo-Server.unknown_domain (Linux i686 2.6.26-gentoo-r1) 12:28:36
Gentoo-Server login:
/*/

node07 is another machine from which I used ssh to login the
Gentoo-Server and as what I said above, it succeeded.

Have anybody ever encountered this problem?
Any help will be appreciate!

-- 
wcw



Re: [gentoo-user] Can't login from terminal?

2009-02-11 Thread Chuanwen Wu
Hi, thanks!

 man securetty
/*/
# cat /etc/securetty
# /etc/securetty: list of terminals on which root is allowed to login.
# See securetty(5) and login(1).
console

vc/0
vc/1
vc/2
vc/3
vc/4
vc/5
vc/6
vc/7
vc/8
vc/9
vc/10
vc/11
vc/12
tty0
tty1
tty2
tty3
tty4
tty5
tty6
tty7
tty8
tty9
tty10
tty11
tty12

tts/0
ttyS0
/*/

This is my /etc/securetty, I think it's normal.

Besides, I can't login as root, neither other user.

-- 
wcw



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

2009-01-10 Thread Chuanwen Wu

 exactly, he's doing something wrong, probably has the binaries in the
 wrong place, the clientlist he's using has 1 host too
Binaries? You mean the path of iozone?
I am very sure the path of iozone is correct, and if the path is
incorrect, I can see the error message:

d...@node73 ~ $ iozone -R -s 64k -t 1 -+m clientlist
   [...]
Throughput test with 1 process
Each process writes a 64 Kbyte file in 4 Kbyte records
bash: /tmp/iozone: No such file or directory


I alsa tried to use two host in clientlist, but the result is the same.

-- 
wcw



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

2009-01-10 Thread Chuanwen Wu
Hi, thanks!
On Sat, Jan 10, 2009 at 10:51 PM, t35t0r t35...@gmail.com wrote:
 d...@node73 ~ $ iozone -R -s 64k -t 1 -+m clientlist
   [...]
Throughput test with 1 process
Each process writes a 64 Kbyte file in 4 Kbyte records
I know what you mean. I just gave the example, in the case the path of
iozone is incorrect, what would happen, And the result is the error
below will be print out:
 bash: /tmp/iozone: No such file or directory
I just tried to proved that the path of iozone in my nodes is correct.

 # hostname   directoryForTestFiles   pathToIozoneOnEachHost
 node1 /net/NAS/awesomeFS /home/somewhere/bin/iozone
 node2 /net/NAS/awesomeFS /home/somewhere/bin/iozone
 node3 /net/NAS/awesomeFS /home/somewhere/bin/iozone


Now, I almost gave up iozone. I have tried iometer, which is better at
testing parallel fs as I know. It's very easy to config and run.

-- 
wcw



[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

[gentoo-user] Iozone on multiple nodes using ssh

2009-01-08 Thread Chuanwen Wu
Hi,
I am trying to use iozone to test my cluster with ssh but not rsh, but
I still can't running iozone on multiple nodes.

I have two nodes node73 and node74 in my LAN. And each node is able to
execute commands on another one without being challenged for a
password with user dnfs:
d...@node73 ~ $ ssh node74 date
Thu Jan  8 22:44:55 CST 2009

d...@gnode74 ~ $ ssh node73 date
Thu Jan  8 22:47:19 CST 2009

Iozone use rsh to execute commands on the clients, and now I use ssh
to replace rsh:
d...@node73 ~ $ cat ~/.bashrc
# /etc/skel/.bashrc
[...]
# Put your fun stuff here.
export RSH=ssh

Here is my clientlist, which contains the nodes' information:
d...@node73 ~ $ cat clientlist
node74 /home/dnfs /tmp/iozone

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

Contributors:William Norcott, Don Capps, Isom Crawford, Kirby Collins
 Al Slater, Scott Rhine, Mike Wisner, Ken Goss
 Steve Landherr, Brad Smith, Mark Kelly, Dr. Alain CYR,
 Randy Dunlap, Mark Montague, Dan Million,
 Jean-Marc Zucconi, Jeff Blomberg,
 Erik Habbinga, Kris Strecker, Walter Wong.

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) 

Re: [gentoo-user] Re: rsh failed : Connection reset by peer

2009-01-08 Thread Chuanwen Wu
Hi, thank all you guys!
I give up rsh and trying using ssh now.  I stiil find some problem and
have started a new thread.
On Thu, Jan 8, 2009 at 12:51 PM, Matt Harrison
iwasinnamuk...@genestate.com wrote:
 Chuanwen Wu wrote:

 I guess maybe rsh does not allow to login as root.

 Probably not, RSH was abandoned years ago and I'm surprised there are any
 applications still around that haven't moved to ssh.

 Exposing the root user to an already unsafe transmission is asking for
 trouble IMHO.

 Unfortunately I can't help with the configuration but I thought a brief
 warning should accompany any discussion on RSH.

 Matt






-- 
wcw



[gentoo-user] rsh failed : Connection reset by peer

2009-01-06 Thread Chuanwen Wu
Hi,
I want to use iozone to test my cluster, and I found that iozone need
rsh. But rsh never worked in my machine.

I have followed this guide
http://www.gentoo.org/doc/en/hpc-howto.xml#doc_chap2, which including
the configuration of rsh.

 # eix netkit-rsh
[I] net-misc/netkit-rsh
   Available versions:  0.17-r8 ~0.17-r9 {pam}
   Installed versions:  0.17-r8(08:51:30 10/20/08)(pam)
   Homepage:ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/
   Description: Netkit's Remote Shell Suite: rexec{,d}
rlogin{,d} rsh{,d}

# eix xinet
[I] sys-apps/xinetd
Available versions:  2.3.14 {perl tcpd}
Installed versions:  2.3.14(09:02:57 PM 01/05/2009)(perl tcpd)
Homepage:http://www.xinetd.org/
Description: powerful replacement for inetd

# cat /etc/xinetd.d/rsh
service shell
{
  socket_type = stream
  protocol= tcp
  wait= no
  user= root
  group   = tty
  server  = /usr/sbin/in.rshd
  log_type= FILE /var/log/rsh
  log_on_success  = PID HOST USERID EXIT DURATION
  log_on_failure  = USERID ATTEMPT
  disable = no
}

 # cat /etc/xinetd.d/rlogin
service login
{
  socket_type = stream
  protocol= tcp
  wait= no
  user= root
  group   = tty
  server  = /usr/sbin/in.rlogind
  log_type= FILE /var/log/rlogin
  log_on_success  = PID HOST USERID EXIT DURATION
  log_on_failure  = USERID ATTEMPT
  disable = no
}

I have a node07 whose is is 192.168.1.7 and a master, whose ip is 192.168.1.1.
I tried to rlogin to master from node73 with any user (i mean both
root and other users), I got the error in node07:
node07 # rlogin -l root master
rcmd: master: Connection reset by peer

and I read the log from /var/log/rlogin in master:
# cat /var/log/rsh
[...]
09/1/5...@23:10:36: FAIL: login address
09/1/5...@23:10:36: START: login pid=8961 from=192.168.1.7
09/1/5...@23:10:36: EXIT: login status=0 pid=8961 duration=0(sec)

And the master can't rlogin to itself, too: with root, because t:
master # rlogin -l root localhost
Password:
Password:
Login incorrect
 /*rlogin with root,  the password is incorrect forever and Of course,
I am sure the password is correct */

master # rlogin -l wcw localhost
Password:
Last login: Mon Jan  5 23:23:06 CST 2009 from localhost on pts/8
rlogin: connection closed.
/*rlogin with other user(wcw), it will succeed, but the connection
will closed immediately  */

# cat /var/log/rsh
[...]
09/1/5...@23:20:09: START: login pid=10227 from=127.0.0.1
09/1/5...@23:21:17: EXIT: login status=0 pid=10227 duration=68(sec)
09/1/5...@23:22:13: START: login pid=10954 from=127.0.0.1
09/1/5...@23:22:15: EXIT: login status=0 pid=10954 duration=2(sec)

# cat /etc/hosts.allow
ALL:192.168.1.0/255.255.255.0

# cat /etc/hosts.equiv
master
node07

Anybody can help?
Thanks in advanced!

--
wcw



[gentoo-user] Re: rsh failed : Connection reset by peer

2009-01-06 Thread Chuanwen Wu
I think I have fixed part of the problem, I found this option
only_from  = localhost in file /etc/xinetd.conf, and mask it.
And now I can rlogin into localhost or remotehost:
node07 # rlogin master
Password:
Last login: Tue Jan  6 20:40:36 CST 2009 from node07 on pts/4
rlogin: connection closed.

master # rlogin localhost
Password:
Last login: Tue Jan  6 20:56:42 CST 2009 from node07 on pts/8
rlogin: connection closed.

But as you can see, after login successfully, the connection is closed
immediately. I dont' know whether it's normal or not, as I never used
rsh before.

And now, although rlogin can be use, but rsh still don't work:



-- 
wcw



[gentoo-user] Re: rsh failed : Connection reset by peer

2009-01-06 Thread Chuanwen Wu
I am very sorry for the last e-mail, as I intented to save the email
but clicked the send button.
I will continue the last letter below.
On Tue, Jan 6, 2009 at 9:08 PM, Chuanwen Wu wcw8...@gmail.com wrote:
 I think I have fixed part of the problem, I found this option
 only_from  = localhost in file /etc/xinetd.conf, and mask it.
 And now I can rlogin into localhost or remotehost:
 node07 # rlogin master
 Password:
 Last login: Tue Jan  6 20:40:36 CST 2009 from node07 on pts/4
 rlogin: connection closed.

 master # rlogin localhost
 Password:
 Last login: Tue Jan  6 20:56:42 CST 2009 from node07 on pts/8
 rlogin: connection closed.

 But as you can see, after login successfully, the connection is closed
 immediately. I dont' know whether it's normal or not, as I never used
 rsh before.

 And now, although rlogin can be use, but rsh still don't work:
/*rsh into remotehost*/
node07 # rsh -l wcw master pwd
assword: 
^C

/* rsh into localhost */
master # rsh localhost pwd
assword: a
^C
It's very weird as you can see above, after I entered the rsh command,
the assword but not password appleared. The  is the
characters I typed.

Any help will be very appreciated!
-- 
wcw



[gentoo-user] Re: rsh failed : Connection reset by peer

2009-01-06 Thread Chuanwen Wu
I guessed it is the pam problem, and I re-installed netkit-rsh with
USE=-pam, now I can use rsh with common users, but root still not
work:

# rsh -l wcw master date
Tue Jan  6 23:33:35 CST 2009

# rsh -l root master date
Permission denied.

Everytime when I tried to use root to login, I got the error
Permission denied.

master # cat /root/.rhosts
node07 root
node07 wcw

master # ls -l /root/.rhosts
-rw--- 1 root root 33 Jan  6 23:31 /root/.rhosts

I guess maybe rsh does not allow to login as root. So anyway to solved
this problem?

Thanks!
-- 
wcw



Re: [gentoo-user] rsh failed

2008-10-22 Thread Chuanwen Wu
On Wed, Oct 22, 2008 at 1:59 PM, Dirk Heinrichs
[EMAIL PROTECTED] wrote:
 Am Mittwoch 22 Oktober 2008 06:38:50 schrieb ext Chuanwen Wu:
  Looks good, but what about ~/.rhosts?

 192.168.0.7 wcw
 192.168.0.7 root

 Permissions?

600



-- 
wcw



Re: [gentoo-user] rsh failed

2008-10-21 Thread Chuanwen Wu
Hi,
On Tue, Oct 21, 2008 at 1:40 PM, Dirk Heinrichs
[EMAIL PROTECTED] wrote:
 Am Dienstag 21 Oktober 2008 05:09:38 schrieb ext Chuanwen Wu:

 The permission of /home/wcw is 755, and /root is 700.

 Looks good, but what about ~/.rhosts?
192.168.0.7 wcw
192.168.0.7 root

 BTW: Did you restart xinetd after installation of rsh?
Yes.





-- 
wcw



[gentoo-user] rsh failed

2008-10-19 Thread Chuanwen Wu
Hi,
I want to use iozone to test my cluster, and I found that iozone would use rsh.

But rsh never worked in my machine.

I have followed this guide
http://www.gentoo.org/doc/en/hpc-howto.xml#doc_chap2, which including
the configuration of rsh.

 # eix netkit-rsh
[I] net-misc/netkit-rsh
 Available versions:  0.17-r8 ~0.17-r9 {pam}
 Installed versions:  0.17-r8(08:51:30 10/20/08)(pam)
 Homepage:ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/
 Description: Netkit's Remote Shell Suite: rexec{,d}
rlogin{,d} rsh{,d}

# cat /etc/xinetd.d/rsh
service shell
{
socket_type = stream
protocol= tcp
wait= no
user= root
group   = tty
server  = /usr/sbin/in.rshd
log_type= FILE /var/log/rsh
log_on_success  = PID HOST USERID EXIT DURATION
log_on_failure  = USERID ATTEMPT
disable = no
}

 # cat /etc/xinetd.d/rlogin
service login
{
socket_type = stream
protocol= tcp
wait= no
user= root
group   = tty
server  = /usr/sbin/in.rlogind
log_type= FILE /var/log/rlogin
log_on_success  = PID HOST USERID EXIT DURATION
log_on_failure  = USERID ATTEMPT
disable = no
}

I tried to rlogin(rlogin -l myuser host) and rsh(rsh -l myuser host
date) from the remote machine 192.168.0.7 and from localhost. Here is
the log:
# cat /var/log/rsh
08/10/[EMAIL PROTECTED]:58:39: START: shell pid=23802 from=127.0.0.1
08/10/[EMAIL PROTECTED]:58:48: EXIT: shell status=1 pid=23802 duration=9(sec)
08/10/[EMAIL PROTECTED]:58:53: START: shell pid=23857 from=127.0.0.1
08/10/[EMAIL PROTECTED]:58:59: EXIT: shell status=1 pid=23857 duration=6(sec)
08/10/[EMAIL PROTECTED]:17:21: START: shell pid=26446 from=192.168.0.7
08/10/[EMAIL PROTECTED]:17:21: FAIL: shell address
08/10/[EMAIL PROTECTED]:17:21: EXIT: shell status=0 pid=26446 duration=0(sec)

# cat /var/log/rlogin
08/10/[EMAIL PROTECTED]:19:04: START: login pid=26727 from=192.168.0.7
08/10/[EMAIL PROTECTED]:19:10: FAIL: login address
08/10/[EMAIL PROTECTED]:19:10: EXIT: login status=0 pid=26727 duration=6(sec)
08/10/[EMAIL PROTECTED]:39:31: START: login pid=28886 from=127.0.0.1
08/10/[EMAIL PROTECTED]:39:40: EXIT: login status=0 pid=28886 duration=9(sec)
08/10/[EMAIL PROTECTED]:39:46: START: login pid=28912 from=127.0.0.1
08/10/[EMAIL PROTECTED]:39:47: EXIT: login status=0 pid=28912 duration=1(sec)

So in a word, I can rlogin from localhost with common user(I meant not
root) but not from remote machine 192.168.0.7. And I can't  use rsh at
all.

So anyone can help?

PS:
I just want to use iozone, and I am not very sure whether I can ssh in
the iozone clusting test or not. If I can use ssh without changing the
source of iozone(iozone is a benchmark tool, so I don't think it's a
good idea to change it), please let me know.

Thanks in advanced!
-- 
wcw



[gentoo-user] tightvnc and clipboard

2008-09-25 Thread Chuanwen Wu
Hi!
I use tightvnc between linux and linux host. But the clipboard didn't
work. After I hightlight the word or use CTRL+C in one machine, I got
nothing when I pasted in another machine.

$ cat  /etc/conf.d/vnc
 DISPLAYS=wcw:1

$ cat xstartup
#!/bin/sh
xrdb $HOME/.Xresources
unset SESSION_MANAGER
exec /etc/X11/xinit/xinitrc


How to configure it to use clipboard in tightvnc?

Any help will be appreciated!

--
wcw



[gentoo-user] GFS2 or other

2008-08-29 Thread Chuanwen Wu
Hi, I want to use, but I can't find it in portage.
So is there any layman which have GFS2's ebuild?

Or maybe you can recommend other clustered-aware filesystem?

Thanks in advanced!

-- 
wcw



[gentoo-user] How to publish a project?

2008-08-28 Thread Chuanwen Wu
Hi,

I am not sure if here is a right place to ask such question, but I
just think maybe someone here have such experience and may help me.

I have written a project, which is a distribution net file system, and
I want to publish it under GPL.
I have source code now of course, but I don't know how to make package
and publish it  as a project .
I need the details, then I can follow step by step and make my dream
come true :)

I have read Software Release Practice
HOWTO(http://en.tldp.org/HOWTO/Software-Release-Practice-HOWTO/index.html),
but it seems very old.

So maybe you can give some advice?

Any help will be appreciated!

-- 
wcw



[gentoo-user] Re: [Alsa-user] speakers have no sound in Gentoo, but work in Ubuntu

2008-07-01 Thread Chuanwen Wu
Hi, thanks for your help!
 Both are detecting and loading snd_hda_intel.  Perhaps an options line might
 fix on Gentoo?
 Add them in the /etc/modprobe.d/sound file as lines like:
 options snd_hda_intel model=mbp3  or 3stack or 6stack or ...
It works! I have tried :

options snd_hda_intel model=mbp3
and
options snd_hda_intel model=dell-3stack  #I got it from Brian Johnson :)

Both of them works, but I can't tell  the difference between them.
So is there any more tips and tricks? Maybe I can optimize it.

Besides, now  hda_intel works both in kernel 2.6.24 and 2.6.25 :)

 See if they are detecting the same card by running  alsa-info.sh with
 --no-upload option under
 each OS and compare the output looking for differences.  The script is found
 at http://www.alsa-project.org/alsa-info.sh

Here is the output of running alsa-info.sh in my Gentoo after I add
the line options snd_hda_intel model=dell-3stack :
http://pastebin.ca/1060228

And the output in Ubuntu is here: http://pastebin.ca/1060247

I can see some differences especially the Modprobe options.

-- 
wcw
-- 
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] speakers have no sound in Gentoo, but work in Ubuntu

2008-07-01 Thread Chuanwen Wu
Hi, thanks for your help! It works!

But I think this line
 options snd-hda-intel model=dell-3stack

should be:
options snd_hda_intel model=dell-3stack


 Once that is done, save the file and run:

 update-modules

 Once that has completed (you may need to update-modules --force if it
 complains). Simply reboot the computer or restart the alsasound service.
 Note, some programs/applets using ALSA may crash if you unload/reload the
 sound card.
Yeah, it's very weird - It changed the theme of my Xfce and when I
enter the Xfce Setting Manager, the original theme return back, even
although I had not  actually done setting yet.


-- 
wcw
-- 
gentoo-user@lists.gentoo.org mailing list



[gentoo-user] speakers have no sound in Gentoo, but work in Ubuntu

2008-06-30 Thread Chuanwen Wu
Hi, my laptop(Dell1400)'s speakers never work in Gentoo(headphones can
work). But server days ago, I installed Ubuntu and I found that the
speakers work(headphones also work)!
I thought the alsa-driver could not drive my sound card properly
before, and now, I think there must be some way since Ubuntu can work.


# lspci | grep Audio
00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio
Controller (rev 02)

/ In Gentoo ***/
$ cat /proc/asound/version
Advanced Linux Sound Architecture Driver Version 1.0.16rc2 (Thu Jan 31
16:40:16 2008 UTC).

/ In Ubuntu ***/
$ cat /proc/asound/version
Advanced Linux Sound Architecture Driver Version 1.0.16.
Compiled on Apr 21 2008 for kernel 2.6.24-16-generic (SMP).

/ In Gentoo ***/
# uname -a
Linux wcw-laptop 2.6.25-tuxonice-r5 #1 SMP Mon Jun 30 15:13:46 CST
2008 x86_64 Intel(R) Core(TM)2 Duo CPU T5470 @ 1.60GHz GenuineIntel
GNU/Linux

/ In Ubuntu ***/
$ uname -a
Linux wcw-laptop 2.6.24-16-generic #1 SMP Thu Apr 10 12:47:45 UTC 2008
x86_64 GNU/Linux

/ In Gentoo ***/
# lsmod | grep snd
Module  Size  Used by
snd_seq_oss28992  0
snd_seq_device  6160  1 snd_seq_oss
snd_seq_midi_event  6912  1 snd_seq_oss
snd_seq47968  4 snd_seq_oss,snd_seq_midi_event
snd_pcm_oss37600  0
snd_mixer_oss  14592  1 snd_pcm_oss
snd_hda_intel 405080  2
snd_pcm70984  2 snd_pcm_oss,snd_hda_intel
snd_timer  19792  2 snd_seq,snd_pcm
snd_page_alloc  8144  2 snd_hda_intel,snd_pcm
snd_hwdep   7816  1 snd_hda_intel
snd50632  13
snd_seq_oss,snd_seq_device,snd_seq,snd_pcm_oss,snd_mixer_oss,snd_hda_intel,snd_pcm,snd_timer,snd_hwdep
soundcore   6688  1 snd


/ In Ubuntu ***/
$ lsmod | grep snd
snd_hda_intel 440408  3
snd_pcm_oss47648  0
snd_mixer_oss  20224  1 snd_pcm_oss
snd_pcm92168  2 snd_hda_intel,snd_pcm_oss
snd_page_alloc 13200  2 snd_hda_intel,snd_pcm
snd_hwdep  12552  1 snd_hda_intel
snd_seq_dummy   5764  0
snd_seq_oss38912  0
snd_seq_midi   10688  0
snd_rawmidi29856  1 snd_seq_midi
snd_seq_midi_event 10112  2 snd_seq_oss,snd_seq_midi
snd_seq63232  6
snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq_midi_event
snd_timer  27912  2 snd_pcm,snd_seq
snd_seq_device 10644  5
snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_rawmidi,snd_seq
snd70856  17
snd_hda_intel,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_hwdep,snd_seq_dummy,snd_seq_oss,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
soundcore  10400  1 snd


/ In Gentoo ***/
# amixer
Simple mixer control 'Master',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 127
  Mono: Playback 127 [100%] [0.00dB] [on]
Simple mixer control 'PCM',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 255
  Mono:
  Front Left: Playback 255 [100%] [0.00dB]
  Front Right: Playback 255 [100%] [0.00dB]
Simple mixer control 'Front',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 127
  Mono:
  Front Left: Playback 119 [94%] [-6.00dB] [on]
  Front Right: Playback 119 [94%] [-6.00dB] [on]
Simple mixer control 'Surround',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 127
  Mono:
  Front Left: Playback 127 [100%] [0.00dB] [off]
  Front Right: Playback 127 [100%] [0.00dB] [off]
Simple mixer control 'Center',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 127
  Mono: Playback 127 [100%] [0.00dB] [off]
Simple mixer control 'LFE',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 127
  Mono: Playback 127 [100%] [0.00dB] [off]
Simple mixer control 'Mic as Output',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'IEC958',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'Capture',0
  Capabilities: cvolume cswitch
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 14
  Front Left: Capture 4 [29%] [6.00dB] [off]
  Front Right: Capture 4 [29%] [6.00dB] [off]
Simple mixer control 'Capture',1
  Capabilities: cvolume cswitch
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 14
  Front Left: Capture 5 [36%] [7.50dB] [off]
  Front Right: Capture 5 [36%] [7.50dB] [off]
Simple mixer control 'Capture',2
  Capabilities: cvolume cswitch
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 14
  Front Left: Capture 7 [50%] [10.50dB] [off]
  Front Right: 

[gentoo-user] CD/DVD burning tools?

2008-06-23 Thread Chuanwen Wu
Hi,
I want to burn CD/DVD under Gentoo, I have installed Xfce.
So, can anybody recommend some CD/DVD burning tools, which is better if does
not depend Gnome or KDE?

Thanks in advanced!

-- 
wcw


Re: [gentoo-user] CD/DVD burning tools?

2008-06-23 Thread Chuanwen Wu
Thank all you guys!

I will try dvd+rw-tools since it support both DVD and CD.

I have ever tried xfburn, but it seemed that it still had some problem
s: it couldn't  detected my TSSTcorp DVD driver and I still heard that
it couldn't  burning DVD yet.
I have Windows, and of course I can do buring there, but I just feel
sick to reboot  into Windows just for burning a CD/DVD.
-- 
wcw
-- 
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] CD/DVD burning tools?

2008-06-23 Thread Chuanwen Wu
On Mon, Jun 23, 2008 at 8:27 PM, Joerg Schilling
[EMAIL PROTECTED] wrote:
 Chuanwen Wu [EMAIL PROTECTED] wrote:

 Thank all you guys!

 I will try dvd+rw-tools since it support both DVD and CD.

 This is a missunderstanding:

 cdrecord supports both CDs and DVDs.
Where is cdrecord? I can't see it in the portage.

 dvd+rw-tools only supports DVDs
From here http://fy.chalmers.se/~appro/linux/DVD+RW/
and what Dirk said, it depend on  cdrtools, so it can burning CDs now.

 Jörg

 --
  EMail:[EMAIL PROTECTED] (home) Jörg Schilling D-13353 Berlin
   [EMAIL PROTECTED](uni)
   [EMAIL PROTECTED] (work) Blog: http://schily.blogspot.com/
  URL:  http://cdrecord.berlios.de/old/private/ ftp://ftp.berlios.de/pub/schily
 --
 gentoo-user@lists.gentoo.org mailing list





-- 
wcw


[gentoo-user] the details of Council Meeting

2008-06-08 Thread Chuanwen Wu
Hi, we try to translate the GMN to our local language,  but I found it
was really hard to understand the section of  Council Meeting
Summary, for example:

The appeals will *not* be decided then -- it's about figuring out the
validity and the process.what validity and process is?
105 minutes were closed and 57 were open-what is 57?

Is there any link to the Council Meeting or where can I get the
details of Council Meeting?

Thanks in advanced!

-- 
wcw
-- 
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] the details of Council Meeting

2008-06-08 Thread Chuanwen Wu
Hi,

On Sun, Jun 8, 2008 at 11:32 PM, Philip Webb [EMAIL PROTECTED] wrote:
 080608 Chuanwen Wu wrote:
 We try to translate the GMN to our local language,
 but I found it was really hard to understand the section
 of  Council Meeting Summary, for example:
 The appeals will *not* be decided then
 -- it's about figuring out the validity and the process.
 what validity and process is?

 What we should be doing in all cases  how it would be best to do it,
 rather than deciding what to do about this particular person,
 who has been disciplined  has appealed to have his case reviewed :
 it is poorly expressed  not clear even to a native speaker (wry smile).
but I can't still see the relation between your reply and my question?
From the paragraph:

Enforced retirement: After 2.5 hours on the previous topics, people
had to go to sleep and jokey's computer broke. Instead of waiting till
the next regular meeting, because of its urgency, we scheduled a
special session next week at the same time. The appeals will *not* be
decided then -- it's about figuring out the validity and the process.

I know the meeting once stopped  and was rescheduled, and then ?


 105 minutes were closed and 57 were open - what is 57?

 Minutes : what else ?!
You mean the new meeting continued 105 minutes and then 57 minutes again?

Thanks!

 --
 ,,
 SUPPORT ___//___,  Philip Webb : [EMAIL PROTECTED]
 ELECTRIC   /] [] [] [] [] []|  Centre for Urban  Community Studies
 TRANSIT`-O--O---'  University of Toronto
 --
 gentoo-user@lists.gentoo.org mailing list





-- 
wcw
-- 
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] different strange kernel name - 2.6.24-gentoo-r4-g506ab20b-dirty

2008-04-29 Thread Chuanwen Wu
Thank Willie!
On Tue, Apr 29, 2008 at 9:59 PM, Willie Wong [EMAIL PROTECTED] wrote:
 On Tue, Apr 29, 2008 at 11:05:07AM +0800, Penguin Lover Chuanwen Wu squawked:

  1, Why I got a new  kernel  image(2.6.24-gentoo-r4-gb921d0de-dirty)
   instead of using the old one (2.6.24-gentoo-r4-g506ab20b-dirty) ? As I
   know if I add/change something as modules, all I need to do is make
make modules_install, and I don't need to install the kernel image
   again and reboot my OS because all the changes are  in modules and the
   kernel image is all the same - fixed me please if I'm wrong.
2, Why the kernel image  including my codes  have a very strange name
   - 2.6.24-gentoo-r4-g506ab20b-dirty.
  

  If you are coding for the kernel, I certainly hope you read the docs!
I have tried more than two hours.
In fact, at last I fixed this problem by READ Makefile in the root of
the kernel tree(/usr/src/linux).
From this Makefile, I find this section:
/***/
# If CONFIG_LOCALVERSION_AUTO is set scripts/setlocalversion is called
# and if the SCM is know a tag from the SCM is appended.
# The appended tag is determined by the SCM used.
#
# Currently, only git is supported.
# Other SCMs can edit scripts/setlocalversion and add the appropriate
# checks as needed.
ifdef CONFIG_LOCALVERSION_AUTO
_localver-auto = $(shell $(CONFIG_SHELL) \
  $(srctree)/scripts/setlocalversion $(srctree))
localver-auto  = $(LOCALVERSION)$(_localver-auto)
endif

localver-full = $(localver)$(localver-auto)
//
I thought the localver-auto may be something like -gb921d0de-dirty.
Then I checked out the file scripts/setlocalversion, and commend all
the git thing. Now my scripts/setlocalversion is:

$ cat scripts/setlocalversion
#!/bin/sh
# Print additional version information for non-release trees.

usage() {
echo Usage: $0 [srctree] 2
exit 1
}

cd ${1:-.} || usage

# Check for git and a git repo.
#if head=`git rev-parse --verify HEAD 2/dev/null`; then
# Do we have an untagged version?
#   if git name-rev --tags HEAD | grep -E
'^HEAD[[:space:]]+(.*~[0-9]*|undefined)$'  /dev/null; then
#   printf '%s%s' -g `echo $head | cut -c1-8`
#   fi

# Are there uncommitted changes?
#   if git diff-index HEAD | read dummy; then
#   printf '%s' -dirty
#   fi
#fi

I am not familiar with Shell script, so maybe my solution is not very
good, but it fixed the problem :)


  Here's something from the help menu that pops up when you go to
   make menuconfig
General Setup  Automatically append version information to the version 
 string
   and hit help for that entry

   This will try to automatically determine if the current tree is a
   release tree by looking for git tags that belong to the current top
   of tree revision.

   A string of the format -g will be added to the localversion
   if a git based tree is found. The string generated by this will be
   appended after any matching localversion files, and after the value
   set in CONFIG_LOCALVERSION

  If you are maintainig a git repository, you'd be dealing with a tree
  always in flux (with the same versioning number I think), so it helps
  tremendously if there's some way of differentiating between different
  kernel images.

  This also means that if you don't want this behaviour, just uncheck
  that option in the configs.

  W
  --
  When a clock is hungry it goes back four seconds.
  Sortir en Pantoufles: up 508 days, 12:29
  --
  gentoo-user@lists.gentoo.org mailing list





-- 
wcw
-- 
gentoo-user@lists.gentoo.org mailing list



[gentoo-user] different strange kernel name - 2.6.24-gentoo-r4-g506ab20b-dirty

2008-04-28 Thread Chuanwen Wu
Hi,
I want to add my codes to the kernel source( I use gentoo-source ) and
compile it as modules.
All my codes are under the directory /usr/src/linu/fs/dnfs/.
The problem is why everytime after I changed my codes and re-complied
the kernel, I got a different strange kernel image.

Here is the details:
  linux # make  make modules_install
  CHK include/linux/version.h
  [...]
  LD  kernel/built-in.o
  CC [M]  fs/dnfs/dnfs.o
  my codes
fs/dnfs/dnfs.c: In function 'init_once':
fs/dnfs/dnfs.c:22: warning: ISO C90 forbids mixed declarations and code
fs/dnfs/dnfs.c: In function 'init_dnfs_fs':
fs/dnfs/dnfs.c:51: warning: ISO C90 forbids mixed declarations and code
  GEN .version
  CHK include/linux/compile.h
  UPD include/linux/compile.h
  CC  init/version.o
  LD  init/built-in.o
  LD  .tmp_vmlinux1
  KSYM.tmp_kallsyms1.S
  AS  .tmp_kallsyms1.o
  LD  .tmp_vmlinux2
  KSYM.tmp_kallsyms2.S
  AS  .tmp_kallsyms2.o
  LD  vmlinux.o
  MODPOST vmlinux.o
  LD  vmlinux
  SYSMAP  System.map
  SYSMAP  .tmp_System.map
  AS  arch/x86/boot/header.o
  CC  arch/x86/boot/version.o
  LD  arch/x86/boot/setup.elf
  OBJCOPY arch/x86/boot/setup.bin
  OBJCOPY arch/x86/boot/compressed/vmlinux.bin
  GZIParch/x86/boot/compressed/vmlinux.bin.gz
  LD  arch/x86/boot/compressed/piggy.o
  LD  arch/x86/boot/compressed/vmlinux
  OBJCOPY arch/x86/boot/vmlinux.bin
  BUILD   arch/x86/boot/bzImage
Root device is (8, 38)
Setup is 10904 bytes (padded to 11264 bytes).
System is 2763 kB
Kernel: arch/x86/boot/bzImage is ready  (#22)
  Building modules, stage 2.
  MODPOST 12 modules
  [...]
  CC  fs/dnfs/dnfs.mod.o# build modules
  LD [M]  fs/dnfs/dnfs.ko
  [...]
  INSTALL fs/dnfs/dnfs.ko # install modules
  [...]
  DEPMOD  2.6.24-gentoo-r4-gb921d0de-dirty  ###  a
different strange kernel image name

then, the kernel image I am using now is:
 # uname -r
2.6.24-gentoo-r4-g506ab20b-dirty

From the above, I get two questions:
1, Why I got a new  kernel  image(2.6.24-gentoo-r4-gb921d0de-dirty)
instead of using the old one (2.6.24-gentoo-r4-g506ab20b-dirty) ? As I
know if I add/change something as modules, all I need to do is make
 make modules_install, and I don't need to install the kernel image
again and reboot my OS because all the changes are  in modules and the
kernel image is all the same - fixed me please if I'm wrong.
 2, Why the kernel image  including my codes  have a very strange name
- 2.6.24-gentoo-r4-g506ab20b-dirty.

Any help will be appreciated!
-- 
wcw
-- 
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] touchpad can't scroll

2008-03-30 Thread Chuanwen Wu
On Fri, Mar 28, 2008 at 4:28 PM, Mick [EMAIL PROTECTED] wrote:

 On Friday 28 March 2008, Chuanwen Wu wrote:
   Hi,
  
 You should change your server-layout to something like
   
 Section ServerLayout
Identifier Layout0
Screen Screen1
InputDeviceKeyboard1 CoreKeyboard
InputDeviceTouchpad CorePointer
Option  AIGLX true
 EndSection
  
   I have changed it, but after I restart X, I found it doesn't work, yet.

  This is what I have in mine under ServerLayout:
  ===
   InputDeviceMouse0 CorePointer
   InputDeviceKeyboard0 CoreKeyboard
   InputDeviceMouse1 AlwaysCore
  ===

  And this is what I have under InputDevice:
  ===
  Section InputDevice
 Identifier  Mouse0
 Driver  synaptics
 Option  Protocol SynPS/2
 Option  InputFashion Mouse

 Option  Device /dev/input/mice
 Option  Name SynPS/2 Synaptics TouchPad
 Option  SHMConfig on
 Option  Vendor 0002
 Option  ZAxisMapping  4 5
 Option  Emulate3Buttons   True
 Option  Buttons   3
  EndSection

  Section Input Device
 Identifier  Mouse1
 Driver  mouse
 Option  Protocol IMPS/2
 Option  InputFashion Mouse

 Option  Device /dev/input/mice
 Option  Name GenPS/2 Genius Mouse
 Option  Vendor 0002
 Option  ZAxisMapping  4 5
 Option  Emulate3Buttons   False
 Option  Buttons   9
  EndSection
  ===


  So, you may want to replace your /dev/input/mouse1 for mice and see if that
  fixes things.
Still can't fix the problem.

  --
  Regards,
  Mick




-- 
wcw
-- 
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] touchpad can't scroll

2008-03-30 Thread Chuanwen Wu
On Sun, Mar 30, 2008 at 3:19 PM, Mick [EMAIL PROTECTED] wrote:
 On Sunday 30 March 2008, Chuanwen Wu wrote:
   On Fri, Mar 28, 2008 at 4:28 PM, Mick [EMAIL PROTECTED] wrote:


So, you may want to replace your /dev/input/mouse1 for mice and see if
that fixes things.
  
   Still can't fix the problem.

  Hmm, what does xorg.0.log spit back out?  I assume that you have all the
  necessary built in your kernel and or emerged (e.g.
  x11-drivers/xf86-input-evdev)?

I have  CONFIG_INPUT_EVDEV=y in my kernel config.
and have this line:
INPUT_DEVICES=keyboard mouse evdev synaptics
in my make.conf

And the last line in the Xorg.0.log is:

(II) 3rd Button detected: disabling emulate3Button

so, doest it indicate the problem?


Best regards,

-- 
wcw
-- 
gentoo-user@lists.gentoo.org mailing list



[gentoo-user] touchpad can't scroll

2008-03-27 Thread Chuanwen Wu
Hi, I have a Dell 1400 laptop. The touchpad can implement most
functions except vertical scrolling, horizontal scrolling and dragging
(not only in firefox, and also other applications).

I have followed this guide
http://gentoo-wiki.com/HARDWARE_Synaptics_Touchpad, but still can't
fix the problem.

There is some information below:

 $ cat /proc/bus/input/devices
[...]
I: Bus=0011 Vendor=0002 Product=0008 Version=7325
N: Name=AlpsPS/2 ALPS GlidePoint
P: Phys=isa0060/serio1/input0
S: Sysfs=/class/input/input5
U: Uniq=
H: Handlers=mouse1 event5
B: EV=f
B: KEY=420 67 0 0 0 0
B: REL=3
B: ABS=103
[...]

And some configurations in my Xorg.conf:

Section InputDevice
Identifier  USB_Mouse
Driver  mouse
Option ProtocolAuto # Auto detect
Option Device  /dev/input/mice
Option ZAxisMapping   4 5
EndSection

Section InputDevice
   Identifier  TouchPad
   Driver  synaptics
   Option  Device/dev/input/mouse1
   Option  Protocol  alps
   Option  SendCoreEvents true
   Option  SHMConfig on
   Option  ZAxisMapping  4 5
   Option  Emulate3Buttons   on
   Option   LeftEdge  130
   Option   RightEdge 840
   Option   TopEdge   130
   Option   BottomEdge640
   Option   FingerLow 7
   Option   FingerHigh8
   Option   MaxTapTime180
   Option   MinTapTime 110
   Option   ClickTime 0
   Option   EmulateMidButtonTime 75
#   Option  MaxTapMove220
   Option   VertScrollDelta 20
   Option   HorizScrollDelta 20
   Option   MinSpeed  0.40
   Option   MaxSpeed  0.65
   Option   AccelFactor   0.030
   Option   EdgeMotionMinSpeed 200
   Option   EdgeMotionMaxSpeed 200
   Option   UpDownScrolling 1
   Option   CircularScrolling 1
   Option   CircScrollDelta 0.1
   Option   CircScrollTrigger 3
   Option   VertEdgeScroll on
EndSection

Section ServerLayout
Screen Screen 1
InputDevice USB_Mouse CorePointer
InputDevice Keyboard1 CoreKeyboard

Option AIGLX true
EndSection


Any help will be appreciated!

-- 
wcw
-- 
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] touchpad can't scroll

2008-03-27 Thread Chuanwen Wu
Hi,
  You should change your server-layout to something like

  Section ServerLayout
 Identifier Layout0
 Screen Screen1
 InputDeviceKeyboard1 CoreKeyboard
 InputDeviceTouchpad CorePointer
 Option  AIGLX true
  EndSection

I have changed it, but after I restart X, I found it doesn't work, yet.




-- 
wcw
-- 
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] uvesafb and screen resolution

2008-03-25 Thread Chuanwen Wu
On Wed, Mar 26, 2008 at 3:55 AM, Ricardo Saffi Marques
[EMAIL PROTECTED] wrote:
 On Tue, Mar 25, 2008 at 4:42 PM, Sergey Kobzar [EMAIL PROTECTED] wrote:

  uvesafb works nice.

 Can anyone help me with the following?
 Do any of you know how to make uvesafb (that replaces the old vesafb-tng)
 set to a pre-defined resolution?
May be you want this guide  http://dev.gentoo.org/~spock/projects/uvesafb/



-- 
wcw
-- 
gentoo-user@lists.gentoo.org mailing list



[gentoo-user] git-send-email get garble

2008-03-08 Thread Chuanwen Wu
Hi,
I usually use git-send-email to send my patch, and it work good before.
But these day, every time I sent my patch with git-send-email, the
receiver got garbled characters. But when I browser the email in my
gmail(I CC every email to myself) in firefox, everything was normal.
So I made a test. I git-send-email to my another email account which
was not gmail account(mail.163.com) and this time, I got the garbled.
I think the patch I have made is well.
When I $cat mypatch, I got:
//
From c3971685da29b3cbcd52a707891ff2f5767f4274 Mon Sep 17 00:00:00 2001
From: Chuanwen Wu [EMAIL PROTECTED]
Date: Sat, 8 Mar 2008 16:27:41 +0800
Subject: [PATCH] add new

Signed-off-by: Chuanwen Wu [EMAIL PROTECTED]
---
 new.txt |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/new.txt b/new.txt
index 8732dcf..9a71f81 100644
--- a/new.txt
+++ b/new.txt
@@ -1,2 +1,2 @@
-我爱你hello world
+hello world

-- 
1.5.4.3
/**/


But my another email account received:
//
Signed-off-by: Chuanwen Wu [EMAIL PROTECTED]
---
 new.txt |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/new.txt b/new.txt
index 8732dcf..9a71f81 100644
--- a/new.txt
+++ b/new.txt
@@ -1,2 +1,2 @@
-鎴戠埍浣爃ello world
+hello world

-- 
1.5.4.3
/**/

 You can see the difference. The first one contains the Chinese
characters我爱你, but the second one contains some garbled characters.

Anyone knows how to fixed it?
Thanks in advanced!

-- 
wcw
z�b�� z{h���x%��

Re: [gentoo-user] How to use mplayer play file online?

2008-03-04 Thread Chuanwen Wu
I have found a way. Just add USE=ftp when emerge mplayer.
Then, we can play movie in ftp use mplayer:

 mplayer ftp://FTP_SERVER/FILE

  I'm not sure if mplayer supports authentication, but you could try to
  pipe the output from another client. Something like:

  curl --auth-options ftp:/exemple.com/patth/file | mplayer -

  or

  wget --auth-options ftp://exemple.com/patth/file -O - | mplayer -
But I still want to find a pipe way like what you show above.
I have a simple program, which can fetch a file in a remote
machine(this machine also run my protocol).
If mplayer can play in a pipe way, then I can player media like this:
MY_PROGRAM --fetch --MY_SERVER -O - | mplayer -

  --
  Best regards,
  Daniel


 --
  gentoo-user@lists.gentoo.org mailing list





-- 
wcw
-- 
gentoo-user@lists.gentoo.org mailing list



[gentoo-user] what's PMS?

2008-03-02 Thread Chuanwen Wu
In GMN20080218, there is a section:

EAPI=1 (Where is the specification?): The general agreement was that
any new EAPIs should not be added until EAPI=0 is fully approved.
However, there wasn't any consensus on changing anything about EAPI=1.
Mark Loeser agreed to work on PMS for EAPI=0, and will provide an
update at the next meeting.

I just don't know what PMS and EAPI means.
Anyone can explain?

Thanks in advanced!
-- 
wcw
-- 
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] How to use mplayer play file online?

2008-02-29 Thread Chuanwen Wu
  Meanwhile, just download the file and play it. What's the problem with
  that? To view the whole thing from beginning to end all that data would
  still have to move from the server to your local machine anyway.

But I can save the time of downing the file and when I want to watch
any movie, I don't need to wait.


  --


 Alan McKinnon
  alan dot mckinnon at gmail dot com

  --
  gentoo-user@lists.gentoo.org mailing list





-- 
wcw
-- 
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] How to use mplayer play file online?

2008-02-29 Thread Chuanwen Wu
  Does the wget itself work, eg. does wget ftp://ftpserver/file.ext
  download your file?

Yes, I can see the file after downloading, but mplayer just don't  play it.
I attach the output below, when I do wget ftp://THE_FTPSERVER/1.RM -O
- | mplayer -cache 8192 - below. There are some Chinese characters. I
am sorry because I don't know how to get English output(although I
have tried to set the locale to POSIX), but I will give the translated
one:

 
////
$  wget ftp://FTPSERVER/upload/13.RM -O - | mplayer -cache 8192 -
MPlayer dev-SVN-rUNKNOWN-4.1.2 (C) 2000-2007 MPlayer Team
CPU: Intel(R) Core(TM)2 Duo CPU T5470  @ 1.60GHz (Family: 6,
Model: 15, Stepping: 13)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
编译用了针对 x86 CPU 的扩展指令集: MMX MMX2 SSE SSE2

正在播放 -。
从标准输入中读取...
缓存填充:  0.00% (0 字节)   --23:17:17--  ftp://FTPSERVER/upload/13.RM
   = `-'
缓存填充:  0.00% (0 字节)   connected. to 202.114.6.64:21...
//filling buf:  0.00% (0 char)   connected. to 202.114.6.64:21...
缓存填充:  0.00% (0 字节)   Logged in! as common ...
缓存填充:  0.00% (0 字节)   done.== PWD ...
缓存填充:  0.00% (0 字节)   done.WD /upload ...
缓存填充:  0.00% (0 字节)   done.== RETR 13.RM ...
缓存填充:  0.00% (0 字节)(unauthoritative)
缓存填充:  0.00% (0 字节)
缓存填充: 17.48% (1466368 字节)   ] 0 --.--K/s
检测到 REAL 文件格式。
//detected the REAL file formate
Stream description: Audio Stream
Stream mimetype: audio/x-pn-realaudio
[real] 找到音频流,-aid 0
//[real]found the audio stream, -aid 0
Stream description: Video Stream
Stream mimetype: video/x-pn-realvideo
[real] 找到视频流,-vid 1
// [real]found the video stream, -vid 1
100%[] 79,381,84310.60M/sETA 00:00

23:17:25 (10.59 MB/s) - `-' saved [79381843]

Something went wrong, no index chunk found on given address (79352095)
RM: 未找到视频流。
//RM:can't find the video stream
RM: 未找到音频流...  - 没声音。
//RM:can't find the audio stream... -no sound.
找不到流媒体。
//Can't find the media stream


正在退出... (文件结束)
 //Exiting...(file end)
//***//

-- 
wcw
z�b�� z{h���x%��

[gentoo-user] How to use mplayer play file online?

2008-02-28 Thread Chuanwen Wu
Hi,
I want to use mplayer to play files on the ftp server. For example, I
have some files on: ftp://user:[EMAIL PROTECTED]/thefile. Now I want to
play it, but I won't need to download all the file first then play it.
Is there any advice?

Thanks in advanced!
-- 
wcw
-- 
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] How to use mplayer play file online?

2008-02-28 Thread Chuanwen Wu
  You have to download it as it has to be in RAM before mplayer can use
  it.

  And you have to download the whole thing as it's a container file, not a
  stream.
So, you mean mplayer can NOT play stream?
As far as I know, mplayer can play file on a web(html) site.
In man mplayer, I can see that :

   Stream from HTTP:
   mplayer http://mplayer.hq/example.avi

   Stream using RTSP:
   mplayer rtsp://server.example.com/streamName

So, I think there may be some ways to play mplayer from the ftp(or
other protocol).
Somebody work it out and suggested me to do it like this:

wget ftp://THE_FTPSERVER/1.RM -O - | mplayer -cache 8192 -

But I just failed every time I tried to do it in this way. Can you do
it successfully?



  --
  Alan McKinnon
  alan dot mckinnon at gmail dot com

  --
  gentoo-user@lists.gentoo.org mailing list





-- 
wcw
-- 
gentoo-user@lists.gentoo.org mailing list



[gentoo-user] what NFP means?

2008-02-13 Thread Chuanwen Wu
Hi, I try to translate the GMN(2008-01-21), and now I want to know
what NFP exactly means or the full spelling of NFP in the section
below.
**
Foundation Status

Grant Goodyear, one of our active foundation trustees, recently gave
an update on the status of the Gentoo foundation on his blog. The
Gentoo Foundation does still exist, and the required paperwork to
reinstate our NFP status has been filed. For more information, you can
read Grant's post on the gentoo-nfp mailing list.
**

Any help will be appreciated?

-- 
wcw
-- 
gentoo-user@lists.gentoo.org mailing list



[gentoo-user] uvesafb problem

2008-01-15 Thread Chuanwen Wu
Hi, guys!

I want to have higher resolution in console. I used vesa-tng before
and now I have update the kernel to 2.6.23 and I guess I should use
uvesafb instead of vesa-tng.

I have followed the guide here
http://dev.gentoo.org/~spock/projects/uvesafb/, and
Here is the options I have chose in config file about the FB thing:

CONFIG_FB=y
CONFIG_FB_DDC=y
CONFIG_FB_CFB_FILLRECT=y
CONFIG_FB_CFB_COPYAREA=y
CONFIG_FB_CFB_IMAGEBLIT=y
CONFIG_FB_DEFERRED_IO=y
CONFIG_FB_MODE_HELPERS=y
CONFIG_FB_UVESA=y
CONFIG_FB_VESA=y
CONFIG_FB_INTEL=y
CONFIG_FB_INTEL_I2C=y

and in the menu.lst file, I append  video=uvesafb:1024x768 (PS: I
have tried video=uvesafb:1024x768-32 and some other similar
parameter, too)  to the kernel command line.
 But after I rebooted, the resolution was still very low, which I
guess was 800x640, and I couldn't see anything changed.

PS: My machine is Dell 1400 laptop and use x86_64 arch. I use
tuxonice-sources and I have also tried gentoo-source to test the
uvesafb.

Any help is appreciated!
-- 
wcw
-- 
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] uvesafb problem

2008-01-15 Thread Chuanwen Wu
Hi,

On Jan 15, 2008 7:25 PM,  [EMAIL PROTECTED] wrote:

 just use

 video=vesafb:1024x768
I tried, and it doesn't work.

 :) justin



 On Tue, 15 Jan 2008 16:44:39 +0800, Chuanwen Wu [EMAIL PROTECTED]
 wrote:

  Hi, guys!
 
  I want to have higher resolution in console. I used vesa-tng before
  and now I have update the kernel to 2.6.23 and I guess I should use
  uvesafb instead of vesa-tng.
 
  I have followed the guide here
  http://dev.gentoo.org/~spock/projects/uvesafb/, and
  Here is the options I have chose in config file about the FB thing:
 
  CONFIG_FB=y
  CONFIG_FB_DDC=y
  CONFIG_FB_CFB_FILLRECT=y
  CONFIG_FB_CFB_COPYAREA=y
  CONFIG_FB_CFB_IMAGEBLIT=y
  CONFIG_FB_DEFERRED_IO=y
  CONFIG_FB_MODE_HELPERS=y
  CONFIG_FB_UVESA=y
  CONFIG_FB_VESA=y
  CONFIG_FB_INTEL=y
  CONFIG_FB_INTEL_I2C=y
 
  and in the menu.lst file, I append  video=uvesafb:1024x768 (PS: I
  have tried video=uvesafb:1024x768-32 and some other similar
  parameter, too)  to the kernel command line.
   But after I rebooted, the resolution was still very low, which I
  guess was 800x640, and I couldn't see anything changed.
 
  PS: My machine is Dell 1400 laptop and use x86_64 arch. I use
  tuxonice-sources and I have also tried gentoo-source to test the
  uvesafb.
 
  Any help is appreciated!
  --
  wcw
  --
  gentoo-user@lists.gentoo.org mailing list

 --
 gentoo-user@lists.gentoo.org mailing list





-- 
wcw
-- 
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] uvesafb problem

2008-01-15 Thread Chuanwen Wu
On Jan 15, 2008 10:40 PM, Kevin [EMAIL PROTECTED] wrote:


 On Jan 15, 2008 8:31 AM, Chuanwen Wu [EMAIL PROTECTED] wrote:
  Hi,
 
 
  On Jan 15, 2008 9:52 PM, Kevin [EMAIL PROTECTED] wrote:
   Just making sure you didn't read his line incorrectly, but I think
 Justin
   was telling to go back to the VESA driver as opposed to the uvesa one.
 If
   you are set on uvesa did you try the line video=uvesafb:1024x768 or is
 that
   what you implied in the note about it not working.
  
  I mean Justin' s suggestion video=vesafb:1024x768 didn't work in my
 machine.
  And also, just as what I said in the first post that
  video=uvesafb:1024x768 didn't work, too.
 
 
 
   thanks and good luck
 

 The only difference in my kernel config and yours is that I have
 CONFIG_FB_CON_DECOR=Y which is located:
 - Device Drivers
  - Graphics support
- Console display driver support
  - Framebuffer Console support (FRAMEBUFFER_CONSOLE [=y])
Yeah, it works! I just added this option you suggest, and now I have
small characters in the console.

Thank you very much!

 Try enabling that with the video=uvesafb:1024x768 line.




-- 
wcw
-- 
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] uvesafb problem

2008-01-15 Thread Chuanwen Wu
Hi,
On Jan 15, 2008 9:52 PM, Kevin [EMAIL PROTECTED] wrote:
 Just making sure you didn't read his line incorrectly, but I think Justin
 was telling to go back to the VESA driver as opposed to the uvesa one.   If
 you are set on uvesa did you try the line video=uvesafb:1024x768 or is that
 what you implied in the note about it not working.

I mean Justin' s suggestion video=vesafb:1024x768 didn't work in my machine.
And also, just as what I said in the first post that
video=uvesafb:1024x768 didn't work, too.
 thanks and good luck



 On Jan 15, 2008 7:40 AM, Chuanwen Wu [EMAIL PROTECTED] wrote:
  Hi,
 
  On Jan 15, 2008 7:25 PM,  [EMAIL PROTECTED] wrote:
  
   just use
  
   video=vesafb:1024x768
  I tried, and it doesn't work.
  
   :) justin
  
  
  
   On Tue, 15 Jan 2008 16:44:39 +0800, Chuanwen Wu [EMAIL PROTECTED]
   wrote:
  
Hi, guys!
   
I want to have higher resolution in console. I used vesa-tng before
and now I have update the kernel to 2.6.23 and I guess I should use
uvesafb instead of vesa-tng.
   
I have followed the guide here
http://dev.gentoo.org/~spock/projects/uvesafb/, and
Here is the options I have chose in config file about the FB thing:
   
CONFIG_FB=y
CONFIG_FB_DDC=y
CONFIG_FB_CFB_FILLRECT=y
CONFIG_FB_CFB_COPYAREA=y
CONFIG_FB_CFB_IMAGEBLIT=y
CONFIG_FB_DEFERRED_IO=y
CONFIG_FB_MODE_HELPERS=y
CONFIG_FB_UVESA=y
CONFIG_FB_VESA=y
CONFIG_FB_INTEL=y
CONFIG_FB_INTEL_I2C=y
   
and in the menu.lst file, I append  video=uvesafb:1024x768 (PS: I
have tried video=uvesafb:1024x768-32 and some other similar
parameter, too)  to the kernel command line.
 But after I rebooted, the resolution was still very low, which I
guess was 800x640, and I couldn't see anything changed.
   
PS: My machine is Dell 1400 laptop and use x86_64 arch. I use
tuxonice-sources and I have also tried gentoo-source to test the
uvesafb.
   
Any help is appreciated!
--
wcw
--
gentoo-user@lists.gentoo.org mailing list
  
   --
   gentoo-user@lists.gentoo.org mailing list
  
  
 
 
 
  --
  wcw
  --
  gentoo-user@lists.gentoo.org mailing list
 
 





-- 
wcw
-- 
gentoo-user@lists.gentoo.org mailing list



[gentoo-user] Re: lxr and Mysql problem

2007-12-07 Thread Chuanwen Wu
So, no one ever used lxr?
Or maybe you can recommend other tools that can be used to view the
souce(usually the kernel source) to me?

Thanks!
On Dec 4, 2007 9:12 PM, Chuanwen Wu [EMAIL PROTECTED] wrote:
 Hi, guys!

 I want to use lxr to view the kernel source and have installed it with
 the guide in the file INSTALL in the lxr package .
 But when I do genxref, the error occure.

 I show a example below, in which I use a EMPTY file called
 helloworld.c in the a directory called helloworld. I try to
 genxref it and the output is:

 # ./genxref --url http://localhost/lxr/

 This is glimpseindex version 4.18.2, 2006.

 Indexing /usr/src/mysrc/helloworld ...

 Size of files being indexed = 72 B, Total #of files = 1

 Index-directory: /var/www/localhost/htdocs/lxr/src/.glimpse/helloworld
 Glimpse-files created here:
 -rw--- 1 root root 41 2007-12-04 21:03 .glimpse_filenames
 -rw--- 1 root root  4 2007-12-04 21:03 .glimpse_filenames_index
 -rw--- 1 root root  0 2007-12-04 21:03 .glimpse_filetimes
 -rw--- 1 root root121 2007-12-04 21:03 .glimpse_index
 -rw--- 1 root root116 2007-12-04 21:03 .glimpse_messages
 -rw--- 1 root root 22 2007-12-04 21:03 .glimpse_partitions
 -rw--- 1 root root125 2007-12-04 21:03 .glimpse_statistics
 -rw--- 1 root root 262144 2007-12-04 21:03 .glimpse_turbo
 *** / helloworld
 *** /helloworld.c helloworld
 --- /helloworld.c helloworld 1196773242-72
 DBD::mysql::st execute failed: You have an error in your SQL syntax;
 check the manual that corresponds to your MySQL server version for the
 right syntax to use near 'release = 'helloworld'' at line 1 at
 /usr/lib64/perl5/vendor_perl/5.8.8/LXR/Index/Mysql.pm line 209.
 DBD::mysql::st execute failed: You have an error in your SQL syntax;
 check the manual that corresponds to your MySQL server version for the
 right syntax to use near 'release) values ('18841', 'helloworld')' at
 line 1 at /usr/lib64/perl5/vendor_perl/5.8.8/LXR/Index/Mysql.pm line
 213.
 /helloworld.c was already indexed
 ### / helloworld
 ### /helloworld.c helloworld
 --- /helloworld.c helloworld 1196773242-72
 /helloworld.c was already referenced

 Then I opened firefox with the url http://localhost/lxr/source, but
 nothing in the browser.  And when I used http://localhost/lxr/, I
 could see the file in the lxr directory in my browser.

 Other information:
 $mysql -V
 mysql  Ver 14.12 Distrib 5.0.44, for pc-linux-gnu (x86_64) using readline 5.2

 And I use lxr-0.9.5 and dev-perl/DBD-mysql-4.00.5.

 Any help will be very appreciated!



 wcw




-- 
wcw
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Re: lxr and Mysql problem

2007-12-07 Thread Chuanwen Wu
here is some information about lxr:
# eix lxr
[I] www-apps/lxr
 Available versions:
(0.3.1) *0.3.1!m
(0.9.5) (~)0.9.5
{cvs freetext mysql postgres vhosts}
 Installed versions:  0.9.5(0.9.5)(02:48:51 PM 12/03/2007)(mysql
vhosts -cvs -freetext -postgres)
 Homepage:http://sourceforge.net/projects/lxr
 Description: general purpose source code indexer and
cross-referener with a web-based frontend


lxr somehow like the SourceInsight in Windows. It make you jump and
trace the routines and source files very easily.
For example, when you are reading such a routine:

int
test{
   
   f1();
   ...
   f2();

   ...
}

maybe you want to know what the funtion f1() or f2() does, then you
will just need to use the mouse to click on the f1() or f2()(or any
other SIMPLE ways) and it will jump to the definition of this fuction.


On Dec 7, 2007 5:07 PM, Randy Barlow [EMAIL PROTECTED] wrote:
 Chuanwen Wu wrote:
  So, no one ever used lxr?
  Or maybe you can recommend other tools that can be used to view the
  souce(usually the kernel source) to me?

 I'm not at all familiar with lxr, but most text editors can do syntax
 highlighting when you view source code.  I like vim from the console, or
 kdevelop for GUI.  Is it just a text editor you are looking for?

 --
 Randy Barlow
 http://electronsweatshop.com
 --
 [EMAIL PROTECTED] mailing list





-- 
wcw
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Re: lxr and Mysql problem

2007-12-07 Thread Chuanwen Wu
I have found global + vi or firefox :)

It's very easy to configure.

Oh, lxr is really the pain !

On Dec 7, 2007 5:36 PM, Chuanwen Wu [EMAIL PROTECTED] wrote:
 here is some information about lxr:
 # eix lxr
 [I] www-apps/lxr
  Available versions:
 (0.3.1) *0.3.1!m
 (0.9.5) (~)0.9.5
 {cvs freetext mysql postgres vhosts}
  Installed versions:  0.9.5(0.9.5)(02:48:51 PM 12/03/2007)(mysql
 vhosts -cvs -freetext -postgres)
  Homepage:http://sourceforge.net/projects/lxr
  Description: general purpose source code indexer and
 cross-referener with a web-based frontend


 lxr somehow like the SourceInsight in Windows. It make you jump and
 trace the routines and source files very easily.
 For example, when you are reading such a routine:

 int
 test{

f1();
...
f2();

...
 }

 maybe you want to know what the funtion f1() or f2() does, then you
 will just need to use the mouse to click on the f1() or f2()(or any
 other SIMPLE ways) and it will jump to the definition of this fuction.



 On Dec 7, 2007 5:07 PM, Randy Barlow [EMAIL PROTECTED] wrote:
  Chuanwen Wu wrote:
   So, no one ever used lxr?
   Or maybe you can recommend other tools that can be used to view the
   souce(usually the kernel source) to me?
 
  I'm not at all familiar with lxr, but most text editors can do syntax
  highlighting when you view source code.  I like vim from the console, or
  kdevelop for GUI.  Is it just a text editor you are looking for?
 
  --
  Randy Barlow
  http://electronsweatshop.com
  --
  [EMAIL PROTECTED] mailing list
 
 



 --
 wcw




-- 
wcw
-- 
[EMAIL PROTECTED] mailing list



[gentoo-user] lxr and Mysql problem

2007-12-04 Thread Chuanwen Wu
Hi, guys!

I want to use lxr to view the kernel source and have installed it with
the guide in the file INSTALL in the lxr package .
But when I do genxref, the error occure.

I show a example below, in which I use a EMPTY file called
helloworld.c in the a directory called helloworld. I try to
genxref it and the output is:

# ./genxref --url http://localhost/lxr/

This is glimpseindex version 4.18.2, 2006.

Indexing /usr/src/mysrc/helloworld ...

Size of files being indexed = 72 B, Total #of files = 1

Index-directory: /var/www/localhost/htdocs/lxr/src/.glimpse/helloworld
Glimpse-files created here:
-rw--- 1 root root 41 2007-12-04 21:03 .glimpse_filenames
-rw--- 1 root root  4 2007-12-04 21:03 .glimpse_filenames_index
-rw--- 1 root root  0 2007-12-04 21:03 .glimpse_filetimes
-rw--- 1 root root121 2007-12-04 21:03 .glimpse_index
-rw--- 1 root root116 2007-12-04 21:03 .glimpse_messages
-rw--- 1 root root 22 2007-12-04 21:03 .glimpse_partitions
-rw--- 1 root root125 2007-12-04 21:03 .glimpse_statistics
-rw--- 1 root root 262144 2007-12-04 21:03 .glimpse_turbo
*** / helloworld
*** /helloworld.c helloworld
--- /helloworld.c helloworld 1196773242-72
DBD::mysql::st execute failed: You have an error in your SQL syntax;
check the manual that corresponds to your MySQL server version for the
right syntax to use near 'release = 'helloworld'' at line 1 at
/usr/lib64/perl5/vendor_perl/5.8.8/LXR/Index/Mysql.pm line 209.
DBD::mysql::st execute failed: You have an error in your SQL syntax;
check the manual that corresponds to your MySQL server version for the
right syntax to use near 'release) values ('18841', 'helloworld')' at
line 1 at /usr/lib64/perl5/vendor_perl/5.8.8/LXR/Index/Mysql.pm line
213.
/helloworld.c was already indexed
### / helloworld
### /helloworld.c helloworld
--- /helloworld.c helloworld 1196773242-72
/helloworld.c was already referenced

Then I opened firefox with the url http://localhost/lxr/source, but
nothing in the browser.  And when I used http://localhost/lxr/, I
could see the file in the lxr directory in my browser.

Other information:
$mysql -V
mysql  Ver 14.12 Distrib 5.0.44, for pc-linux-gnu (x86_64) using readline 5.2

And I use lxr-0.9.5 and dev-perl/DBD-mysql-4.00.5.

Any help will be very appreciated!



wcw
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] virtualbox shared folder anyone? [SOLVED]

2007-12-02 Thread Chuanwen Wu
Thank you! I use this way to solve the same problem in the x86_64 platform.
I use virtualbox-1.5.2.
On Apr 23, 2007 10:46 PM, Helmut Jarausch [EMAIL PROTECTED] wrote:
 The following steps were successful (for me)

 echo app-emulation/virtualbox-bin additions dvitool  \
 /etc/portage/package.use
 emerge app-emulation/virtualbox-bin# here 1.3.8-r1

 create the virtual machine (WinXP in my case) as described
 and install (here) WinXP SP2 and power off (the VM) after the complete
 install.

 ### just examples ..v...vvv
 vboxmanage sharedfolder add WinXP -name linux -hostpath /MySharedFolder

 Then start virtualbox again,

 click on Details  CD/DVD-ROM
 there on Mount CD/DVD
 Some fiddling about ISO Image File leads to
 add
 /opt/VirtualBox/additions/VBoxGuestAdditions.iso
 Then click on ISO Image File

 Now boot the virtual machine.
 There you find VBoxGuestAdditions as an
 additional (CD) drive.

 Click on it to start installing the additional
 drivers from Virtualbox.

 Restart Windows and then

 execute  cmd
 and there
 ### for my example   v
 net use x: \\vboxsvr\linux

 and voila, it seems to work!

 Helmut Jarausch

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

 --
 [EMAIL PROTECTED] mailing list





-- 
wcw
-- 
[EMAIL PROTECTED] mailing list



[gentoo-user] how to detect the throughput in the lan?

2007-11-14 Thread Chuanwen Wu
Hi, guys!

I need to know the total throughput of the LAN in real-time, for
example, the total input and output of each node in the LAN.
I have used tcpdump. But as I know, it cannot be use to get the
statistics of the LAN.

Can't you recommend  some tools?

Thanks in advanced!

-- 
wcw
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Re: speakers have no sound but headphones have

2007-10-20 Thread Chuanwen Wu
On 10/19/07, »Q« [EMAIL PROTECTED] wrote:
 Dan Farrell [EMAIL PROTECTED] wrote:

  On Thu, 18 Oct 2007 14:04:59 -0400
  Willie Wong [EMAIL PROTECTED] wrote:
 
   Chuanwen: Personally I have never encountered a situation where on a
   laptop the volume control etc. is different between the attached
   speakers and headphones. I've always assumed (someone correct me if
   I am wrong) that the switching between headphones and the attached
   speakers is hardware and not software.
 
  This is true; the headphone jacks usually have an integrated
  disconnect switch for the internal laptop speakers, to be tripped
  when a plug is inserted.

 It's apparently no longer true, at least for newish Intel HDA
 chipsets.  Mine (SigmaTel STAC9872AK) would not switch off the internal
 speakers when the jack was plugged in, so sound would come from both

 the headphones and the speakers.  A recent patch to the driver fixed
 this.
So, which version of alsa-driver do you think can fixed this?
I have tried version 1.0.15-rc2, but that didn't work, I meant I even
can't use the headphones.
I use 1.0.14-rc3 now, which at least let my headphones work.


 Sorry this doesn't help the OP any.

 --
 [EMAIL PROTECTED] mailing list




-- 
wcw
z���(��j)b�   b�

[gentoo-user] speakers have no sound but headphones have

2007-10-18 Thread Chuanwen Wu
Hi,
I have a sound problem with my dell1400 laptop: I have no sound from
the speakers in the laptop but I can have sound from headphones after
I insert them.

When I used $alsamixer -V all, I got these informations:

Card: HDA Intel  │
Chip: SigmaTel STAC9228  │
View:  Playback  Capture [All]   │
Item: Master [dB gain=-33.75, -33.75]
Item: PCM [dB gain=-10.00, -10.00]
Item: Front [dB gain=-45.00, -47.25]
Item: Mic as Output
Item: IEC958
Item: ADCMux
Item: InMux [dB gain=30.00, 30.00]
  Item: InVol [dB gain=16.50, 16.50]

As you can see, Mic and IEC958's values are both 0.

I always think that headphones are equal with speakers, because  them
are both connected to the same thing in physics.
But now, why my headphones are aloud but my speakers are silent.
In Windows xp, both of them work very well. Headphones were after I
insert them and otherwise, the speakers loud .

How to fix this problem?
Thanks in advanced!
-- 
wcw
z���(��j)b�   b�

Re: [gentoo-user] speakers have no sound but headphones have

2007-10-18 Thread Chuanwen Wu
On 10/19/07, Benno Schulenberg [EMAIL PROTECTED] wrote:
 Chuanwen Wu wrote:
  I have a sound problem with my dell1400 laptop: I have no sound
  from the speakers in the laptop but I can have sound from
  headphones after I insert them.
 
  Card: HDA Intel
 │ Chip: SigmaTel STAC9228

 https://bugtrack.alsa-project.org/alsa-bug/view.php?id=3238
 https://bugtrack.alsa-project.org/alsa-bug/view.php?id=2923
 https://bugtrack.alsa-project.org/alsa-bug/view.php?id=2901

The network here is very slow and I can't connect with the links you gave above.
 You may want to look at other sigmatel/hda-intel issues to see what
 you need to report to get things moving.  Also first try using the
 very latest alsa-lib and alsa-driver packages.

 Benno
 --
 [EMAIL PROTECTED] mailing list




-- 
wcw


Re: [gentoo-user] speakers have no sound but headphones have

2007-10-18 Thread Chuanwen Wu
I am very sorry that brought you guys the inconvenience. I am very
surprise, too. Just as what I usually do, I opened the firefox,
logined my gmail account, then wrote and sent out the email which you
have received.

On 10/19/07, Mick [EMAIL PROTECTED] wrote:
 On Thursday 18 October 2007, Chuanwen Wu wrote:
  Hi,
  I have a sound problem with my dell1400 laptop: I have no sound from
  the speakers in the laptop but I can have sound from headphones after
  I insert them.
 
  When I used $alsamixer -V all, I got these informations:
 
  Card: HDA Intel
   │ Chip: SigmaTel STAC9228
  │ View:  Playback  Capture [All]
 │ Item: Master [dB gain=-33.75, -33.75]
  Item: PCM [dB gain=-10.00, -10.00]
  Item: Front [dB gain=-45.00, -47.25]
  Item: Mic as Output
  Item: IEC958
  Item: ADCMux
  Item: InMux [dB gain=30.00, 30.00]
Item: InVol [dB gain=16.50, 16.50]
 
  As you can see, Mic and IEC958's values are both 0.

 We probably can't see what you're describing.  Can you unmute one at a time or
 increase their volume to check if someting gives?
As you know, the output of alsamixer is in graphics mode, so  I felt
very uncomfortable when I described this problem and selected the
information from alsamixer. I appology for this.
Thanks goodness we have  amixer:

$ amixer
Simple mixer control 'Master',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 127
  Mono:
  Front Left: Playback 127 [100%] [0.00dB] [on]
  Front Right: Playback 127 [100%] [0.00dB] [on]
Simple mixer control 'PCM',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 255
  Mono:
  Front Left: Playback 255 [100%] [0.00dB]
  Front Right: Playback 255 [100%] [0.00dB]
Simple mixer control 'Front',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 127
  Mono:
  Front Left: Playback 127 [100%] [0.00dB] [on]
  Front Right: Playback 127 [100%] [0.00dB] [on]
Simple mixer control 'Mic as Output',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'IEC958',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'ADCMux',0
  Capabilities: cswitch
  Capture channels: Front Left - Front Right
  Front Left: Capture [on]
  Front Right: Capture [on]
Simple mixer control 'InMux',0
  Capabilities: cvolume
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 4
  Front Left: Capture 4 [100%] [40.00dB]
  Front Right: Capture 4 [100%] [40.00dB]
Simple mixer control 'InVol',0
  Capabilities: cvolume
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 14
  Front Left: Capture 14 [100%] [21.00dB]
  Front Right: Capture 14 [100%] [21.00dB]
Simple mixer control 'Input Source',0
  Capabilities: enum
  Items: 'Front Line'
  Item0: 'Front Line'

You can see above that, I have set the largest volume(100%) except the
Mic as Output and 'IEC958' and 'ADCMux', I am not very sure what
their functions are when controlling  my sound card.



  I always think that headphones are equal with speakers, because  them
  are both connected to the same thing in physics.
  But now, why my headphones are aloud but my speakers are silent.
  In Windows xp, both of them work very well. Headphones were after I
  insert them and otherwise, the speakers loud .

 I too thought that this is a hardware issue . . .
I also consider the switching  between headphone and speakers attached
as hardware. So I am also surprised when I found this problem.


I use the Alsa-driver-1.0.14-rc3, which is a unstable one. And the
weird thing is that *ONLY* this version's driver can drive my sound
card. I also tried the in-kernel(2.6.22-r2) one; the version 1.0.14,
which is the newest stable one that came out after 1.0.14-rc3, and
also the 1.0.15-rc2 one.
But none of them work.
 --
 Regards,
 Mick



Best regards,

wcw


Re: [gentoo-user] alsa problem

2007-10-15 Thread Chuanwen Wu
The problem is fixed now!
I tried the alsa-driver-1.0.14_rc3, which is used by the Redflag os,
and everything is fine, now.

It's very weird. Just as what I mentioned above,  the 1.0.14_rc3
version one is a unstable one.  I have tried both version 1.0.14,the
stable one that come out after 1.0.14_r3, and the  1.0.15_rc2 one, but
both of them can't drive my sound card. But now, the 1.0.14_rc3 fixed
it! It's a big surprise.
2007/10/14, Chuanwen Wu [EMAIL PROTECTED]:
 2007/10/14, Hans-Werner Hilse [EMAIL PROTECTED]:
  Hi,
 
  On Sun, 14 Oct 2007 15:25:12 +0800
  Chuanwen Wu [EMAIL PROTECTED] wrote:
 
 Yes,both my Windows XP and another linux os Redflag have sound. Is
 there anyway that I can use  the Redflag's modules to driver my
 gentoo?
   
Only by using its kernel, too. Then you would just copy the kernel (and
initrd, if needed, but this might be a bag of problems if the initrd
depends on stuff from the base system) from /boot and the according
module tree from /lib/modules.
   Oh, I just forgot that the Redflag is a i386 OS but the gentoo is
   amd64 OS.  So gentoo can't use the Redflag's modules and kernel(vice
   versa).
 
  Hm, I see. I think the different IRQs are not really worth mentioning,
  since they get automatically assigned. All that fooling around with
  different versions of ALSA didn't help much, so it boils down to
  - either it's a modified kernel what Redflag uses (I agree they use
in-kernel ALSA), or
  - it's really an AMD64 vs. i386 matter.
 
   When I do #modprobe snd_hda_intel(or #alsaconf), I can see the message
   below appending to the ouput of dmesg:
   ACPI: PCI Interrupt :00:1b.0[A] - GSI 21 (level, low) - IRQ 21
   PCI: Setting latency timer of device :00:1b.0 to 64
   stac92xx_auto_fill_dac_nids: No available DAC for pin 0x0
 
  I had a really deep look
  into /usr/src/linux/sound/pci/hda/patch_sigmatel.c, but nothing really
  rings a bell. I think this indicates the problem (since nothing will
  get routed correctly when it fails on the first pin, 0). But I don't
  think the problem is located in the function that prints this error. In
  any case, after printing that error, the initialization of the pin
  routing fails with an error. So it's definately a driver issue, not
  something about machine configuration.
 
  In any case, I think you should report to the alsa mailinglist. FWIW, I
  can't currently access www.alsa-project.org either. You can find the
  subscription interface here:
  https://lists.sourceforge.net/lists/listinfo/alsa-user
 
  I'm sorry that after all this there isn't really much success. One
 I am really appreciate for your patience and help. And I have learned
 some ways to detect and trace my os's status from you.
  could certainly do more debugging by comparing a 32bit vs a 64bit
  kernel with the exact same config otherwise. That might actually prove
  that there's something fishy.
 
 The 64bit os support is not very well at the moment. After I switch to
 64bit os, I have found some applications and driver did not support
 64bit os,like Eclipse.
 But thing will get better and better.
  -hwh
  --
  [EMAIL PROTECTED] mailing list
 
 


 --
 wcw



-- 
wcw
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] alsa problem

2007-10-14 Thread Chuanwen Wu
2007/10/13, Hans-Werner Hilse [EMAIL PROTECTED]:
 Hi,

 On Sat, 13 Oct 2007 22:23:35 +0800
 Chuanwen Wu [EMAIL PROTECTED] wrote:

  Yes,both my Windows XP and another linux os Redflag have sound. Is
  there anyway that I can use  the Redflag's modules to driver my
  gentoo?

 Only by using its kernel, too. Then you would just copy the kernel (and
 initrd, if needed, but this might be a bag of problems if the initrd
 depends on stuff from the base system) from /boot and the according
 module tree from /lib/modules.
Oh, I just forgot that the Redflag is a i386 OS but the gentoo is
amd64 OS.  So gentoo can't use the Redflag's modules and kernel(vice
versa).


 I think it would at least be interesting what /proc/asound/version is
 like on the redflag distro. Also it would be interesting if they use
 in-kernel ALSA or separate drivers and if the latter is the case, then
 they might provide source packages -- which potentially include patches
 that add support for your device.

Let 's have a look at the Redflag's alsa information:(all the
operations I did below were in the Redflag OS)
# cat /proc/asound/cards
 0 [Intel  ]: HDA-Intel - HDA Intel
  HDA Intel at 0xfe9fc000 irq 20
   ***in gentoo it is irq 21 here. **

# cat /proc/asound/devices
  0: [ 0]   : control
  1:: sequencer
 16: [ 0- 0]: digital audio playback
 17: [ 0- 1]: digital audio playback
 24: [ 0- 0]: digital audio capture
 33:: timer


# cat /proc/asound/version
Advanced Linux Sound Architecture Driver Version 1.0.14rc3.
Compiled on Jul 25 2007 for kernel 2.6.22.1-9 (SMP).

I notice that the alsa version is 1.0.14rc3 which is the unstable one
before 1.0.14. But I tried 1.0.14rc3, and the result is as similar as
when I use in-kernel alsa driver.

# grep  SND /boot/config-2.6.22.1-9
CONFIG_SND=m
CONFIG_SND_TIMER=m
CONFIG_SND_PCM=m
CONFIG_SND_HWDEP=m
CONFIG_SND_RAWMIDI=m
CONFIG_SND_SEQUENCER=m
CONFIG_SND_SEQ_DUMMY=m
CONFIG_SND_OSSEMUL=y
CONFIG_SND_MIXER_OSS=m
CONFIG_SND_PCM_OSS=m
CONFIG_SND_PCM_OSS_PLUGINS=y
CONFIG_SND_SEQUENCER_OSS=y
CONFIG_SND_RTCTIMER=m
CONFIG_SND_SEQ_RTCTIMER_DEFAULT=y
CONFIG_SND_DYNAMIC_MINORS=y
# CONFIG_SND_SUPPORT_OLD_API is not set
CONFIG_SND_VERBOSE_PROCFS=y
# CONFIG_SND_VERBOSE_PRINTK is not set
# CONFIG_SND_DEBUG is not set
CONFIG_SND_MPU401_UART=m
CONFIG_SND_OPL3_LIB=m
CONFIG_SND_OPL4_LIB=m
CONFIG_SND_VX_LIB=m
CONFIG_SND_AC97_CODEC=m
CONFIG_SND_DUMMY=m
CONFIG_SND_VIRMIDI=m
CONFIG_SND_MTPAV=m
CONFIG_SND_MTS64=m
# CONFIG_SND_SERIAL_U16550 is not set
CONFIG_SND_MPU401=m
CONFIG_SND_PORTMAN2X4=m
CONFIG_SND_CS4231_LIB=m
CONFIG_SND_ADLIB=m
# CONFIG_SND_AD1816A is not set
# CONFIG_SND_AD1848 is not set
# CONFIG_SND_ALS100 is not set
# CONFIG_SND_AZT2320 is not set
# CONFIG_SND_CMI8330 is not set
# CONFIG_SND_CS4231 is not set
# CONFIG_SND_CS4232 is not set
CONFIG_SND_CS4236=m
# CONFIG_SND_DT019X is not set
# CONFIG_SND_ES968 is not set
# CONFIG_SND_ES1688 is not set
CONFIG_SND_ES18XX=m
# CONFIG_SND_GUSCLASSIC is not set
# CONFIG_SND_GUSEXTREME is not set
# CONFIG_SND_GUSMAX is not set
# CONFIG_SND_INTERWAVE is not set
# CONFIG_SND_INTERWAVE_STB is not set
CONFIG_SND_OPL3SA2=m
# CONFIG_SND_OPTI92X_AD1848 is not set
# CONFIG_SND_OPTI92X_CS4231 is not set
# CONFIG_SND_OPTI93X is not set
CONFIG_SND_MIRO=m
# CONFIG_SND_SB8 is not set
CONFIG_SND_SB16=m
CONFIG_SND_SBAWE=m
# CONFIG_SND_SB16_CSP is not set
# CONFIG_SND_SGALAXY is not set
# CONFIG_SND_SSCAPE is not set
# CONFIG_SND_WAVEFRONT is not set
CONFIG_SND_AD1889=m
CONFIG_SND_ALS300=m
CONFIG_SND_ALS4000=m
CONFIG_SND_ALI5451=m
CONFIG_SND_ATIIXP=m
CONFIG_SND_ATIIXP_MODEM=m
CONFIG_SND_AU8810=m
CONFIG_SND_AU8820=m
CONFIG_SND_AU8830=m
CONFIG_SND_AZT3328=m
CONFIG_SND_BT87X=m
# CONFIG_SND_BT87X_OVERCLOCK is not set
CONFIG_SND_CA0106=m
CONFIG_SND_CMIPCI=m
CONFIG_SND_CS4281=m
CONFIG_SND_CS46XX=m
CONFIG_SND_CS46XX_NEW_DSP=y
CONFIG_SND_CS5535AUDIO=m
CONFIG_SND_DARLA20=m
CONFIG_SND_GINA20=m
CONFIG_SND_LAYLA20=m
CONFIG_SND_DARLA24=m
CONFIG_SND_GINA24=m
CONFIG_SND_LAYLA24=m
CONFIG_SND_MONA=m
CONFIG_SND_MIA=m
CONFIG_SND_ECHO3G=m
CONFIG_SND_INDIGO=m
CONFIG_SND_INDIGOIO=m
CONFIG_SND_INDIGODJ=m
CONFIG_SND_EMU10K1=m
CONFIG_SND_EMU10K1X=m
CONFIG_SND_ENS1370=m
CONFIG_SND_ENS1371=m
CONFIG_SND_ES1938=m
CONFIG_SND_ES1968=m
CONFIG_SND_FM801=m
CONFIG_SND_FM801_TEA575X_BOOL=y
CONFIG_SND_FM801_TEA575X=m
CONFIG_SND_HDA_INTEL=m
CONFIG_SND_HDSP=m
CONFIG_SND_HDSPM=m
CONFIG_SND_ICE1712=m
CONFIG_SND_ICE1724=m
CONFIG_SND_INTEL8X0=m
CONFIG_SND_INTEL8X0M=m
CONFIG_SND_KORG1212=m
CONFIG_SND_KORG1212_FIRMWARE_IN_KERNEL=y
CONFIG_SND_MAESTRO3=m
CONFIG_SND_MAESTRO3_FIRMWARE_IN_KERNEL=y
CONFIG_SND_MIXART=m
CONFIG_SND_NM256=m
CONFIG_SND_PCXHR=m
CONFIG_SND_RIPTIDE=m
CONFIG_SND_RME32=m
CONFIG_SND_RME96=m
CONFIG_SND_RME9652=m
CONFIG_SND_SONICVIBES=m
CONFIG_SND_TRIDENT=m
CONFIG_SND_VIA82XX=m
CONFIG_SND_VIA82XX_MODEM=m
CONFIG_SND_VX222=m
CONFIG_SND_YMFPCI=m
CONFIG_SND_YMFPCI_FIRMWARE_IN_KERNEL=y
CONFIG_SND_AC97_POWER_SAVE=y
CONFIG_SND_USB_AUDIO=m

Re: [gentoo-user] alsa problem

2007-10-14 Thread Chuanwen Wu
2007/10/14, Hans-Werner Hilse [EMAIL PROTECTED]:
 Hi,

 On Sun, 14 Oct 2007 15:25:12 +0800
 Chuanwen Wu [EMAIL PROTECTED] wrote:

Yes,both my Windows XP and another linux os Redflag have sound. Is
there anyway that I can use  the Redflag's modules to driver my
gentoo?
  
   Only by using its kernel, too. Then you would just copy the kernel (and
   initrd, if needed, but this might be a bag of problems if the initrd
   depends on stuff from the base system) from /boot and the according
   module tree from /lib/modules.
  Oh, I just forgot that the Redflag is a i386 OS but the gentoo is
  amd64 OS.  So gentoo can't use the Redflag's modules and kernel(vice
  versa).

 Hm, I see. I think the different IRQs are not really worth mentioning,
 since they get automatically assigned. All that fooling around with
 different versions of ALSA didn't help much, so it boils down to
 - either it's a modified kernel what Redflag uses (I agree they use
   in-kernel ALSA), or
 - it's really an AMD64 vs. i386 matter.

  When I do #modprobe snd_hda_intel(or #alsaconf), I can see the message
  below appending to the ouput of dmesg:
  ACPI: PCI Interrupt :00:1b.0[A] - GSI 21 (level, low) - IRQ 21
  PCI: Setting latency timer of device :00:1b.0 to 64
  stac92xx_auto_fill_dac_nids: No available DAC for pin 0x0

 I had a really deep look
 into /usr/src/linux/sound/pci/hda/patch_sigmatel.c, but nothing really
 rings a bell. I think this indicates the problem (since nothing will
 get routed correctly when it fails on the first pin, 0). But I don't
 think the problem is located in the function that prints this error. In
 any case, after printing that error, the initialization of the pin
 routing fails with an error. So it's definately a driver issue, not
 something about machine configuration.

 In any case, I think you should report to the alsa mailinglist. FWIW, I
 can't currently access www.alsa-project.org either. You can find the
 subscription interface here:
 https://lists.sourceforge.net/lists/listinfo/alsa-user

 I'm sorry that after all this there isn't really much success. One
I am really appreciate for your patience and help. And I have learned
some ways to detect and trace my os's status from you.
 could certainly do more debugging by comparing a 32bit vs a 64bit
 kernel with the exact same config otherwise. That might actually prove
 that there's something fishy.

The 64bit os support is not very well at the moment. After I switch to
64bit os, I have found some applications and driver did not support
64bit os,like Eclipse.
But thing will get better and better.
 -hwh
 --
 [EMAIL PROTECTED] mailing list




-- 
wcw
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] alsa problem

2007-10-13 Thread Chuanwen Wu
Thank you for your help!
2007/10/12, Hans-Werner Hilse [EMAIL PROTECTED]:
 Hi,

 On Fri, 12 Oct 2007 09:50:16 +0800
 Chuanwen Wu [EMAIL PROTECTED] wrote:

   No, /dev/dsp is OSS stuff. Aplay shouldn't use that. But it makes me
   wonder whether snd_pcm_oss is loaded?
  Yes,have loaded it:
  $ lsmod | grep snd_pcm_oss
  snd_pcm_oss39648  0
  snd_mixer_oss  14912  1 snd_pcm_oss
  snd_pcm73800  2 snd_pcm_oss,snd_hda_intel
  snd50216  6
  snd_seq,snd_pcm_oss,snd_mixer_oss,snd_hda_intel,snd_pcm,snd_timer

 Odd. /dev/dsp should be present under these circumstances. But the
 other things below explain that:

  I am sure I have re-run alsaconf and both the /etc/asound.state and
  /var/lib/alsa/asound.state 's content are:
   # cat /var/lib/alsa/asound.state
  state.Intel {
  control {
  }
  }

 Hm, so it seems there were problems with the mixer at that stage, too.
 That file should contain settings for the various controls.

  $ cat /proc/asound/cards
   0 [Intel  ]: HDA-Intel - HDA Intel
HDA Intel at 0xfe9fc000 irq 21

 So the kernel is interfacing it correctly, but only in parts:

   $ cat /proc/asound/devices
0: [ 0]   : control
1:: sequencer
   33:: timer
 
  Here is the output of strace aplay and I hope it dose not bother you
  and I also attach it as a annex.
  [...]
  open(/dev/snd/pcmC0D0p, O_RDWR|O_NONBLOCK) = -1 ENOENT (No such file
  or directory)

 The playback and capture devices are completely missing, and udev
 therefore didn't create /dev/snd/pcmC0D0p (PCM, card 0, device 0,
 playback channel). The only explanation I can suggest is
 broken/incomplete kernel/alsa-drivers support for your device. Does the
 machine have BIOS settings for sound? What about the audio related
 kernel log output?

Yes,both my Windows XP and another linux os Redflag have sound. Is
there anyway that I can use  the Redflag's modules to driver my
gentoo?

Where can I get the audio related kernel log output?

 In any case, you should probably use the separate alsa-driver from
 portage, preferably the newest (unstable in portage) version. There
 were many changes (some of them adding support for more devices for the
 hda driver) that are not yet in the kernel ALSA tree.

I have tried the version (~)1.0.15_rc2,which I heard from someone in
some webpages that it could drive my hda sound card,but it still can't
in my machine.

And the one of version , I think I can never emerge it:
 Emerging (1 of 2) media-sound/alsa-headers- to /
 * checking ebuild checksums ;-) ... [ ok ]
 * checking auxfile checksums ;-) ...[ ok ]
 * checking miscfile checksums ;-) ...   [ ok ]
 Unpacking source...
 * hg clone http://hg.alsa-project.org/alsa-kernel ...
real URL is http://hg.alsa-project.org/alsa-kernel/
requesting all changes
adding changesets

The network is so slow and this status has already keep couples of  hours.


 -hwh
 --
 [EMAIL PROTECTED] mailing list




-- 
wcw
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] alsa problem

2007-10-13 Thread Chuanwen Wu
2007/10/13, Walter Dnes [EMAIL PROTECTED]:
   I ran into a similar problem after an update.  audacious and mpg123
 which use ALSA, died; Realplayer and mpg321 get by with the OSS api on
 ALSA.  revdep-rebuild didn't find anything wrong.

   I tried various things without success.  What finally worked was the
 following...

 1) rebuild the kernel with sound support but no ALSA support at all

 2) reboot

 3) add the appropriate ALSA_CARDS line to /etc/make.conf, in your case
 ALSA_CARDS=hda-intel

 4) emerge alsa-driver (and it probably still won't work)

 5) emerge -C alsa-driver

 6) rebuild the kernel with sound support and ALSA support

 7) reboot

 8) run alsaconf

   After this sequence, my ALSA sound finally started working again.  I
 don't know what happened.  A wild guess is that make was trying to
 be efficient and kept some code from a previous version, that doesn't
 work with the current version.  It had to be totally removed in order
 to get make to build the new version of the code.

I admit that your situation is very weird. But I still don't think
that the old version will affect the new one.
 --
 Walter Dnes [EMAIL PROTECTED] In linux /sbin/init is Job #1
 Q. Mr. Ghandi, what do you think of Microsoft security?
 A. I think it would be a good idea.
 --
 [EMAIL PROTECTED] mailing list




-- 
wcw
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] alsa problem

2007-10-13 Thread Chuanwen Wu
2007/10/13, Hans-Werner Hilse [EMAIL PROTECTED]:
 Hi,

 On Fri, 12 Oct 2007 22:59:28 -0400 Walter Dnes
 [EMAIL PROTECTED] wrote:

After this sequence, my ALSA sound finally started working again.  I
  don't know what happened.  A wild guess is that make was trying to
  be efficient and kept some code from a previous version, that
  doesn't work with the current version.

 Pretty unlikely, make doesn't do these things. I'm more thinking of
 stale modules lingerin' around, but we will never know.

 In this thread's case, however, I had the impression that sound on this
 machine never worked at all?

It's my new Dell1400 laptop.
Sound never works on the Gentoo OS but  just as I mention in the above
post, it works in Windows and another distribution Redflag.

 -hwh
 --
 [EMAIL PROTECTED] mailing list




-- 
wcw
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] alsa problem

2007-10-11 Thread Chuanwen Wu
2007/10/11, Hans-Werner Hilse [EMAIL PROTECTED]:
 Hi,

 On Wed, 10 Oct 2007 11:04:11 +0800
 Chuanwen Wu [EMAIL PROTECTED] wrote:

  I just setup a gentoo in my dell1400 laptop,and until now,the sound
  problem is not solved yet.
 
  Here is the problem:
  $ aplay 01.mp3
  ALSA lib pcm_dmix.c:864:(snd_pcm_dmix_open) unable to open slave
  aplay: main:545: audio open error: No such file or directory

 This indicates that the dmix module (NOT kernel, but alsa-lib!) might
 be missing.

 I ran into some similar problems, I think they modified the way
 alsa-lib is configured and made it more fine-grained. Missing an
 ALSA_PCM_PLUGINS setting in my /etc/make.conf, I had no plugins at all.

 So I suggest to check your /etc/make.conf, and if not present and you
 want minimum hassle, append that line to /etc/make.conf:
 ---snip
 ALSA_PCM_PLUGINS=adpcm alaw copy dshare dsnoop extplug file hooks ladspa 
 lfloat linear meter mulaw multi null rate route share shm
 ---snip
 (works for me)
 then re-emerge alsa-lib.

Thanks for your tips!
I have tried, but the result is all the same.

Here is my ALSA_PCM_PLUGINS: (I have also tried your choose too)
ALSA_PCM_PLUGINS=adpcm alaw asym copy dmix dshare dsnoop empty
extplug file hooks
  iec958 ioplug ladspa lfloat linear meter mulaw multi null plug
  rate route share shm softvol

Here is my in-kernel alsa options:

M Advanced Linux Sound Architecture
 │ │
  │ │ M   Sequencer support
   │ │
  │ │   Sequencer dummy client
   │ │
  │ │ M   OSS Mixer API
   │ │
  │ │ M   OSS PCM (digital audio) API
   │ │
  │ │ [*] OSS PCM (digital audio) API
- Include plugin system │ │
  │ │ [ ]   OSS Sequencer API
   │ │
  │ │ M   RTC Timer support
   │ │
  │ │ [*] Use RTC as default sequencer
timer  │ │
  │ │ [ ]   Dynamic device file minor
numbers │
│
  │ │ [*]   Support old ALSA API
   │ │
  │ │ [*]   Verbose procfs contents


Here is my /etc/modules.d/alsa:
$ cat /etc/modules.d/alsa
alias char-major-116 snd
alias char-major-14 soundcore

alias /dev/mixer snd-mixer-oss
alias /dev/dsp snd-pcm-oss
alias /dev/midi snd-seq-oss
option snd cards_limit=1
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss
# Set this to the correct number of cards.

# --- BEGIN: Generated by ALSACONF, do not edit. ---
# --- ALSACONF version 1.0.14 ---
alias snd-card-0 snd-hda-intel
alias sound-slot-0 snd-hda-intel
# --- END: Generated by ALSACONF, do not edit. ---


I can't find the /dev/dsp :
# ls /dev/dsp
ls: cannot access /dev/dsp: No such file or directory

My os is a 64bit gentoo, so may it be the problem?

  And here is my hardware:
  [...]

 looks OK.

 -hwh
 --
 [EMAIL PROTECTED] mailing list




-- 
wcw


Re: [gentoo-user] alsa problem

2007-10-10 Thread Chuanwen Wu
2007/10/10, Randy Barlow [EMAIL PROTECTED]:
 Chuanwen Wu wrote:
  I also tried to emerge alsa-driver and didn't use the driver in the
  kernel,but the result was all the same.

 I don't know the module name for the HD, but did you add it to
 /etc/modules.autoload.d/kernel-2.6 and/or modprobe it first?

$ lsmod
Module  Size  Used by
snd_seq48224  0
snd_hda_intel 302688  0
snd_pcm73288  1 snd_hda_intel
snd_timer  19592  2 snd_seq,snd_pcm
snd44208  4 snd_seq,snd_hda_intel,snd_pcm,snd_timer
snd_page_alloc  8080  2 snd_hda_intel,snd_pcm

The one snd_hda_intel is the driver for HD.

I just can't see the problem except that the driver can't drive my audio card.

Is there any ways to solve this problme?
 --
 Randy Barlow
 http://electronsweatshop.com
 --
 [EMAIL PROTECTED] mailing list




-- 
wcw
-- 
[EMAIL PROTECTED] mailing list



[gentoo-user] Re: Can't boot from livecd

2007-10-09 Thread Chuanwen Wu
Finally, I found a ubuntu 64bit livecd to boot up and this time succeed.

Thanks, everyone!

2007/10/7, Chuanwen Wu [EMAIL PROTECTED]:
 Hi guys!

 I can't boot my dell1400 laptop from livecd.Here is output:

  Making tmpfd for /newroot
  Attempting to mount media:- /dev/sda
  Attempting to mount media:- /dev/sda1
  Attempting to mount media:- /dev/sda2
  Attempting to mount media:- /dev/sda3
  Attempting to mount media:- /dev/sda5
  Attempting to mount media:- /dev/sda6
  Attempting to mount media:- /dev/sda7
  Attempting to mount media:- /dev/sda8
  Attempting to mount media:- /dev/sda9
  Attempting to mount media:- /dev/hda
  No bootable medium found. Waiting for new devicds...
  Attempting to mount media:- /dev/sda
  Attempting to mount media:- /dev/sda1
  Attempting to mount media:- /dev/sda2
  Attempting to mount media:- /dev/sda3
  Attempting to mount media:- /dev/sda5
  Attempting to mount media:- /dev/sda6
  Attempting to mount media:- /dev/sda7
  Attempting to mount media:- /dev/sda8
  Attempting to mount media:- /dev/sda9
  Attempting to mount media:- /dev/hda
 !! Could not find CD to boot, something else needed!
  Loading keymaps
 snipped keymap stuff
  Keeping default keymap
  Determining root device...
 !! The root block device is unspecified or not detected
  Please specify a device to boot, or shell for a shell...
 boot() ::


 My dell1400's cpu is Intel Core 2 Duo 5470. I have tried the i688 and
 amd64 livecd both.The result is all the same.
 I think it could not find my livecd,like hda1.
 Any advice?
 Thanks in advanced.

 --
 wcw



-- 
wcw
-- 
[EMAIL PROTECTED] mailing list



[gentoo-user] alsa problem

2007-10-09 Thread Chuanwen Wu
I just setup a gentoo in my dell1400 laptop,and until now,the sound
problem is not solved yet.

Here is the problem:
$ aplay 01.mp3
ALSA lib pcm_dmix.c:864:(snd_pcm_dmix_open) unable to open slave
aplay: main:545: audio open error: No such file or directory

And here is my hardware:
# lspci | grep Audio
00:1b.0 Audio device: Intel Corporation HD Audio Controller (rev 02)

 I compiled the alsa driver as the modules:
M Intel HD Audio

And I can start my alsasound:
# /etc/init.d/alsasound start
 * Loading ALSA modules ...
 *   Loading: snd-card-0 ...  [ ok ]
 *   Loading: snd-seq ... [ ok ]
 * Restoring Mixer Levels ... [ ok ]

I can alsaconf,but not alsamixer:
$ alsamixer
No mixer elems found


I also tried to emerge alsa-driver and didn't use the driver in the
kernel,but the result was all the same.

Any advice?
Thanks in advanced!


-- 
wcw
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Can't boot from livecd

2007-10-07 Thread Chuanwen Wu
The chipset is ICH8.
So,is there anyway you see I can install gentoo on my machine?
I have install Red Flag.But it 's i686 but not x86_64,so I can't
chroot from the Red Flag to install Gentoo.

2007/10/7, Hex Star [EMAIL PROTECTED]:
 Hello, you probably have a recent chipset (blanking on name currently) which
 is recent such that support is not yet present in the linux kernel...



-- 
wcw
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Can't boot from livecd

2007-10-07 Thread Chuanwen Wu
2007/10/7, William Kenworthy [EMAIL PROTECTED]:
 Hi had the smae problem on a dell with this chipset.  Its not so much
 the chipset, but that the dell has a gap in the numbering of devices
 attached to it that the livecd cant deal with.

 The cure was to boot from a redhat 7 livecd and install from that.
redhat7 is 32bit  os, is is right?So I suppose you install a 32bit os
in a 64bit machine.

 Worked fine.  Also, dell has a legacy mode for the chip selectable in
 the bios - install has to be done in legacy mode, which can then be
 disabled when the new system is up and running on its own kernel.

But in my dell1400,I can't find any legacy mode?

 google will help a lot with this one

 BillK

  Chuanwen Wu wrote:
  The chipset is ICH8.
  So,is there anyway you see I can install gentoo on my machine?
  I have install Red Flag.But it 's i686 but not x86_64,so I can't
  chroot from the Red Flag to install Gentoo.
 
  2007/10/7, Hex Star [EMAIL PROTECTED]:
   Hello, you probably have a recent chipset (blanking on name currently) 
   which
   is recent such that support is not yet present in the linux kernel...
  
 
 
  --
  wcw
 --
 William Kenworthy [EMAIL PROTECTED]
 Home in Perth!
 --
 [EMAIL PROTECTED] mailing list




-- 
wcw
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Can't boot from livecd

2007-10-07 Thread Chuanwen Wu
2007/10/7, William Kenworthy [EMAIL PROTECTED]:
 On Sun, 2007-10-07 at 20:07 +0800, Chuanwen Wu wrote:
  2007/10/7, William Kenworthy [EMAIL PROTECTED]:
   Hi had the smae problem on a dell with this chipset.  Its not so much
   the chipset, but that the dell has a gap in the numbering of devices
   attached to it that the livecd cant deal with.
  
   The cure was to boot from a redhat 7 livecd and install from that.
  redhat7 is 32bit  os, is is right?So I suppose you install a 32bit os
  in a 64bit machine.
 
   Worked fine.  Also, dell has a legacy mode for the chip selectable in
   the bios - install has to be done in legacy mode, which can then be
   disabled when the new system is up and running on its own kernel.
  
  But in my dell1400,I can't find any legacy mode?
 
   google will help a lot with this one
  
   BillK
  

 yes - there are (were?) a few incompatibilities still with 64 bit os'es
 that dont exist with 32 bit.  Basicly, there still doesnt seem to be a
 compelling reason to go 64bit for a desktop at the moment.  Servers are
 a different matter.
I think a 64bit os in a 64bit machine  is faster than a 32bit os in
most conditions.Do you think so?

 I cant access the machine at the moment, so I cant get the bios links-
 its somewhere in the disk area.
Although I have checked the bios options  very *carefully*,I hope your link:).

 BillK


 --
 [EMAIL PROTECTED] mailing list




-- 
wcw
-- 
[EMAIL PROTECTED] mailing list



[gentoo-user] Can't boot from livecd

2007-10-06 Thread Chuanwen Wu
Hi guys!

I can't boot my dell1400 laptop from livecd.Here is output:

 Making tmpfd for /newroot
 Attempting to mount media:- /dev/sda
 Attempting to mount media:- /dev/sda1
 Attempting to mount media:- /dev/sda2
 Attempting to mount media:- /dev/sda3
 Attempting to mount media:- /dev/sda5
 Attempting to mount media:- /dev/sda6
 Attempting to mount media:- /dev/sda7
 Attempting to mount media:- /dev/sda8
 Attempting to mount media:- /dev/sda9
 Attempting to mount media:- /dev/hda
 No bootable medium found. Waiting for new devicds...
 Attempting to mount media:- /dev/sda
 Attempting to mount media:- /dev/sda1
 Attempting to mount media:- /dev/sda2
 Attempting to mount media:- /dev/sda3
 Attempting to mount media:- /dev/sda5
 Attempting to mount media:- /dev/sda6
 Attempting to mount media:- /dev/sda7
 Attempting to mount media:- /dev/sda8
 Attempting to mount media:- /dev/sda9
 Attempting to mount media:- /dev/hda
!! Could not find CD to boot, something else needed!
 Loading keymaps
snipped keymap stuff
 Keeping default keymap
 Determining root device...
!! The root block device is unspecified or not detected
 Please specify a device to boot, or shell for a shell...
boot() ::


My dell1400's cpu is Intel Core 2 Duo 5470. I have tried the i688 and
amd64 livecd both.The result is all the same.
I think it could not find my livecd,like hda1.
Any advice?
Thanks in advanced.

-- 
wcw
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Firefox and Synaptics mousepad

2007-08-16 Thread Chuanwen Wu
Please check /etc/X11/xorg.conf here:

# Mouse wheel mapping.  Default is to map vertical wheel to buttons 4  5,
# horizontal wheel to buttons 6  7.   Change if your mouse has more than
# 3 buttons and you need to map the wheel to different button ids to avoid
# conflicts.

Option ZAxisMapping   4 5

So just set this option to 4 5.

I hope it will help.

2007/8/17, Dan Cowsill [EMAIL PROTECTED]:
 I use an Acer laptop with a synaptics mouse pad.  Now, the mousepad
 scrolls left and right when you drag across the bottom portion of it.
 However, in firefox it controls the back and forward buttons.  This
 has the net effect of moving be back two or three pages if I slip.

 What I was wondering is if there is some sort of firefox setting I can
 change to disable that function?

 Thanks,

 --
 Dan Cowsill
 http://www.danthehat.net
 --
 [EMAIL PROTECTED] mailing list




-- 
wcw
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] tools to detect hardware

2007-08-09 Thread Chuanwen Wu
2007/8/8, Arturo 'Buanzo' Busleiman [EMAIL PROTECTED]:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA512

 Chuanwen Wu wrote:
  I use lspci,now.But lspci can't provide so much information as everest
  or cpu-z do.For example,the FSB,and the socket of the CPU and so on.

 For the CPU ONLY, you can get a bunch of information from /proc/cpuinfo:

 [EMAIL PROTECTED] ~ $ cat /proc/cpuinfo
 processor   : 0
 vendor_id   : AuthenticAMD
 cpu family  : 6
 model   : 10
 model name  : AMD Athlon(tm) XP 2600+
 stepping: 0
 cpu MHz : 1921.070
 cache size  : 512 KB
 fdiv_bug: no
 hlt_bug : no
 f00f_bug: no
 coma_bug: no
 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 mmx fxsr
 sse syscall mmxext 3dnowext 3dnow ts
 bogomips: 3843.55

But this file still doesn't tell you the information of the FSB or socket type.

 - --
 Arturo Buanzo Busleiman - Consultor Independiente en Seguridad Informatica
 SHOW DE FUTURABANDA - Sabado 18 de Agosto 2007 (Speed King, Capital Federal)
 Entradas anticipadas a traves de www.futurabanda.com.ar - Punk Rock Melodico


 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.7 (GNU/Linux)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

 iD8DBQFGubSVAlpOsGhXcE0RCqRdAJ97rjWSoPWnLEvHUtokT78JsdduZACfUwpU
 kIjl0U6Xj+WOs3+xDwsbO4U=
 =Cbrn
 -END PGP SIGNATURE-
 --
 [EMAIL PROTECTED] mailing list




-- 
wcw
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] tools to detect hardware

2007-08-09 Thread Chuanwen Wu
oh,the phpsysinfo seems need to install Apache first:

* Fatal error: Your configuration file sets the server type Apache
* Fatal error: but the corresponding package does not seem to be installed!
* Fatal error: Please emerge =net-www/apache-1.3 or correct your settings.
* Fatal error(s) - aborting



2007/8/8, Tim Allingham [EMAIL PROTECTED]:
 If you want something to give a simple listing similar to CPU-z, set up
 phpsysinfo


 On Wed, 2007-08-08 at 09:18 -0300, Arturo 'Buanzo' Busleiman wrote:
  -BEGIN PGP SIGNED MESSAGE-
  Hash: SHA512
 
  Chuanwen Wu wrote:
   I use lspci,now.But lspci can't provide so much information as everest
   or cpu-z do.For example,the FSB,and the socket of the CPU and so on.
 
  For the CPU ONLY, you can get a bunch of information from /proc/cpuinfo:
 
  [EMAIL PROTECTED] ~ $ cat /proc/cpuinfo
  processor   : 0
  vendor_id   : AuthenticAMD
  cpu family  : 6
  model   : 10
  model name  : AMD Athlon(tm) XP 2600+
  stepping: 0
  cpu MHz : 1921.070
  cache size  : 512 KB
  fdiv_bug: no
  hlt_bug : no
  f00f_bug: no
  coma_bug: no
  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 mmx fxsr
  sse syscall mmxext 3dnowext 3dnow ts
  bogomips: 3843.55
 
 
  - --
  Arturo Buanzo Busleiman - Consultor Independiente en Seguridad Informatica
  SHOW DE FUTURABANDA - Sabado 18 de Agosto 2007 (Speed King, Capital Federal)
  Entradas anticipadas a traves de www.futurabanda.com.ar - Punk Rock Melodico
 
 
  -BEGIN PGP SIGNATURE-
  Version: GnuPG v1.4.7 (GNU/Linux)
  Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
 
  iD8DBQFGubSVAlpOsGhXcE0RCqRdAJ97rjWSoPWnLEvHUtokT78JsdduZACfUwpU
  kIjl0U6Xj+WOs3+xDwsbO4U=
  =Cbrn
  -END PGP SIGNATURE-




-- 
wcw
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] tools to detect hardware

2007-08-09 Thread Chuanwen Wu
lshw is very detailed and it can even format the output to html or xml
 file.Just like:
lshw -html  my_html_file
This function is very good!It let you find the information more easily.

2007/8/8, W.Kenworthy [EMAIL PROTECTED]:
 lshw, along with lspci, lsusb and probably others.  Dont forget the
 verbose arguments to lspci and lsusb - they greatly expand the detail.
 Dont know why lshw isnt on the live cd's, its so useful!

 BillK

 On Wed, 2007-08-08 at 20:11 +0800, Chuanwen Wu wrote:
  Hi,guys!
  I need tools to detect the details of my hardware.
 
  Do you ever use everest or cpu-z do in Windows? which can provide
  almost all details you need of most hardware,including
  CPU,RAM,motherboard,video card,network ...
 
  I use lspci,now.But lspci can't provide so much information as everest
  or cpu-z do.For example,the FSB,and the socket of the CPU and so on.
 
  Thanks in advanced!
 
  --
  wcw
 --
 [EMAIL PROTECTED] mailing list




-- 
wcw
-- 
[EMAIL PROTECTED] mailing list



[gentoo-user] tools to detect hardware

2007-08-08 Thread Chuanwen Wu
Hi,guys!
I need tools to detect the details of my hardware.

Do you ever use everest or cpu-z do in Windows? which can provide
almost all details you need of most hardware,including
CPU,RAM,motherboard,video card,network ...

I use lspci,now.But lspci can't provide so much information as everest
or cpu-z do.For example,the FSB,and the socket of the CPU and so on.

Thanks in advanced!

-- 
wcw
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Flashplayer 9 working for anybody?

2007-08-07 Thread Chuanwen Wu
It's quite good on my machine too when i open videos in nytimes.com or
any other site.
I have the plugin Shockwave Flash 9.0 r31.
Maybe you should check the version of your  Shockwave Flash.

2007/8/3, Grant Edwards [EMAIL PROTECTED]:
 Flashplayer 9 doesn't seem to work for me.  I've tried it in
 both Opera and Firefox, but for most videos (e.g. nytimes.com)
 it just sits there with the spinning loading arrow.  Clicking
 play does nothing.

 --
 Grant Edwards   grante Yow! Hello.  I know
   at   the divorce rate among
visi.comunmarried Catholic Alaskan
females!!

 --
 [EMAIL PROTECTED] mailing list




-- 
wcw
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] How about dell 1501?

2007-08-01 Thread Chuanwen Wu
Thank you! That is exactly what I want.

2007/7/30, Arturo 'Buanzo' Busleiman [EMAIL PROTECTED]:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA512

 Chuanwen Wu wrote:
  Like what?Can you give some examples?

 I do not understand your question, but if you are asking me for more 
 information regarding the ATI
 drivers issues in linux, you can just search google, BUT, in general, you can 
 take a look here:

 http://digg.com/linux_unix/New_ATI_Linux_Drivers_Version_8_39_4 (see comments)
 http://www.phoronix.com/scan.php?page=articleitem=683num=1

 - --
 Arturo Buanzo Busleiman - Consultor Independiente en Seguridad Informatica
 SHOW DE FUTURABANDA - Sabado 18 de Agosto 2007 (Speed King, Capital Federal)
 Entradas anticipadas a traves de www.futurabanda.com.ar - Punk Rock Melodico


 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.7 (GNU/Linux)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

 iD8DBQFGrfYsAlpOsGhXcE0RCmhXAJ9eEF/4mK38PDpsbHXZNermKuKWYwCfb5WZ
 /92YyA8Tsos1akpKsi/TzAE=
 =Wdsq
 -END PGP SIGNATURE-
 --
 [EMAIL PROTECTED] mailing list




-- 
wcw
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] How about dell 1501?

2007-08-01 Thread Chuanwen Wu
It seems that I should give up the Dell 1501 since it has a ATI 1150
card and the support is so awful.
2007/7/30, Arturo 'Buanzo' Busleiman [EMAIL PROTECTED]:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA512

 Chuanwen Wu wrote:
  Like what?Can you give some examples?

 I do not understand your question, but if you are asking me for more 
 information regarding the ATI
 drivers issues in linux, you can just search google, BUT, in general, you can 
 take a look here:

 http://digg.com/linux_unix/New_ATI_Linux_Drivers_Version_8_39_4 (see comments)
 http://www.phoronix.com/scan.php?page=articleitem=683num=1

 - --
 Arturo Buanzo Busleiman - Consultor Independiente en Seguridad Informatica
 SHOW DE FUTURABANDA - Sabado 18 de Agosto 2007 (Speed King, Capital Federal)
 Entradas anticipadas a traves de www.futurabanda.com.ar - Punk Rock Melodico


 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.7 (GNU/Linux)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

 iD8DBQFGrfYsAlpOsGhXcE0RCmhXAJ9eEF/4mK38PDpsbHXZNermKuKWYwCfb5WZ
 /92YyA8Tsos1akpKsi/TzAE=
 =Wdsq
 -END PGP SIGNATURE-
 --
 [EMAIL PROTECTED] mailing list




-- 
wcw
-- 
[EMAIL PROTECTED] mailing list



[gentoo-user] How about dell 1501?

2007-07-30 Thread Chuanwen Wu
Hi,guys!
I want to buy dell1501 notebook.I never had my notebook before and I
am worried about this machine's driver support in linux especially
gentoo.Here is the details of this dell 1501:

CPU:   AMD Turion 64 X2 TL-56 (1.8GHz)
RAM:  1024MB  DDRII
video card:   ATI Radeon Xpress 1150
WLAN:802.11g(54Mbps)

I want to know whether linux has good drivers to support this
machine,especially the CPU and VIDEO CARD.

Thanks in advanced.

-- 
wcw
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] How about dell 1501?

2007-07-30 Thread Chuanwen Wu
2007/7/30, Arturo 'Buanzo' Busleiman [EMAIL PROTECTED]:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA512

 Chuanwen Wu wrote:
  I want to know whether linux has good drivers to support this
  machine,especially the CPU and VIDEO CARD.

 I generally avoid ATI whenever possible, the linux drivers are quite 
 pathetic. This might change in
Like what?Can you give some examples?

 the near future now that Dell itself is asking ATI to go open source or 
 provide much better drivers.

 - --
 Arturo Buanzo Busleiman - Consultor Independiente en Seguridad Informatica
 SHOW DE FUTURABANDA - Sabado 18 de Agosto 2007 (Speed King, Capital Federal)
 Entradas anticipadas a traves de www.futurabanda.com.ar - Punk Rock Melodico


 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.7 (GNU/Linux)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

 iD8DBQFGrenIAlpOsGhXcE0RCp1AAJwJiAUSm2LH+cUzEHuKeEJm1L5BgQCePaeh
 rM/7uVjyWS7tbTuIK8wXE14=
 =MCBZ
 -END PGP SIGNATURE-
 --
 [EMAIL PROTECTED] mailing list




-- 
wcw
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] what games can I play on my 845G video card?

2007-05-20 Thread Chuanwen Wu

2007/5/20, Dale [EMAIL PROTECTED]:


 Dan Farrell wrote:
 On Sun, 20 May 2007 10:29:12 +0800
Chuanwen Wu [EMAIL PROTECTED] wrote:



 direct rendering: No

 there it is, third line.
Hey, looks like I have the same problem! Perhaps we can figure it out
together.
| 00:02.0 VGA compatible controller: Intel Corporation
| 82845G/GL[Brookdale-G]/GE Chipset Integrated Graphics Device (rev 03)
| direct rendering: No


 Well, I'm a Nvidia person myself but I did a little nosing around for ya.
Maybe this will help:  x11-drivers/xf86-video-i810

 Also, don't forget to set VIDEO_CARDS=i810 which may pull in the package
above as a dependancy, I think.

 And some neat info on the kernel config:

http://forums.gentoo.org/viewtopic-t-557149-highlight-i810+driver.html

 Hope some of that helps.

 Dale

 :-)  :-)  :-)  :-)



Thank you for your advice! I have use xf86-i810 driver and  now my
kernel config is the same as what you showed in the link.But still not
work.

$ glxinfo | grep rendering
direct rendering: No

And I open the game neverputt,it's still so slow.

 --
www.myspace.com/-remove-me-dalek1967

Copy n paste then remove the -remove-me- part.




--
wcw
--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] what games can I play on my 845G video card?

2007-05-20 Thread Chuanwen Wu

2007/5/20, Dan Farrell [EMAIL PROTECTED]:

On Sat, 19 May 2007 23:40:27 -0500
Dan Farrell [EMAIL PROTECTED] wrote:

 On Sun, 20 May 2007 10:29:12 +0800
 Chuanwen Wu [EMAIL PROTECTED] wrote:

  direct rendering: No

 there it is, third line.
 Hey, looks like I have the same problem!  Perhaps we can figure it out
 together.

The kernel configuration (at least menuconfig, which I use) has

| Device Drivers  ---  Character devices  ---
| * Direct Rendering Manager
|   MIntel 830M, 845G, 852GM, 855GM, 865G
| M   i830 driver
| M   i915 driver



Thank you!This work for me too.Now I only choose i915 and compile as module.
It works much well now!


If you can't tell for formatting, i[0-9]{3} are in the category `Intel
830M...  I had originally compiled them in, and you can only include
one or the other in the kernel.  I had chosen the i830. It was the wrong
choice -- an easy mistake, considering both list the 845G as supported
and the 830 happens to be first.
I recommend, if you haven't yet, compiling the kernel with the
Intel drm drivers as modules.  X will load the right one.  In
retrospect, the kernel help messege told me how.
For what it's worth, you'll also have to have in xorg.conf:

| Section Module
| Load  glx
|Load  dri
|   ...
| EndSection
|
| Section DRI
|   Mode0666
| EndSection

And now the third line of glxinfo should show 'Yes'
| [EMAIL PROTECTED] ~ $ glxinfo | grep direct
| direct rendering: Yes
and your glxgears will be nice and smooth, and, in my case, 67%
faster.

Good luck.


--
[EMAIL PROTECTED] mailing list





--
wcw
--
[EMAIL PROTECTED] mailing list



[gentoo-user] what games can I play on my 845G video card?

2007-05-19 Thread Chuanwen Wu

Hi,guys!
I want to play games on my machine.Here is the information of my video
card in lspci:

VGA compatible controller: Intel Corporation 82845G/GL[Brookdale-G]/GE
Chipset Integrated Graphics Device (rev 03)

I have tried to play some games,like neverputt,which is so SLOW.The
corresponding time is long and the cpu usage is always 100%.

Can you recommend some games that maybe I can play on my machine smoothly ?
And maybe you can tell me how to configurate my xorg.conf or anything
else to optimize my machine when I play games.

Thanks in advanced!
--
wcw
--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] what games can I play on my 845G video card?

2007-05-19 Thread Chuanwen Wu

2007/5/19, Dan Farrell [EMAIL PROTECTED]:

On Sat, 19 May 2007 18:40:33 +0800
Chuanwen Wu [EMAIL PROTECTED] wrote:

 Hi,guys!
 I want to play games on my machine.Here is the information of my video
 card in lspci:

 VGA compatible controller: Intel Corporation 82845G/GL[Brookdale-G]/GE
 Chipset Integrated Graphics Device (rev 03)

 I have tried to play some games,like neverputt,which is so SLOW.The
 corresponding time is long and the cpu usage is always 100%.

 Can you recommend some games that maybe I can play on my machine
 smoothly ? And maybe you can tell me how to configurate my xorg.conf
 or anything else to optimize my machine when I play games.

 Thanks in advanced!
Are you hardware accellerated?  Check with glxinfo.  I bet you can play
more than you think.


Here is the output of glxinfo:

$ glxinfo
name of display: :0.0
display: :0  screen: 0
direct rendering: No
server glx vendor string: SGI
server glx version string: 1.2
server glx extensions:
   GLX_ARB_multisample, GLX_EXT_visual_info, GLX_EXT_visual_rating,
   GLX_EXT_import_context, GLX_EXT_texture_from_pixmap, GLX_OML_swap_method,
   GLX_SGI_make_current_read, GLX_SGIS_multisample, GLX_SGIX_hyperpipe,
   GLX_SGIX_swap_barrier, GLX_SGIX_fbconfig, GLX_MESA_copy_sub_buffer
client glx vendor string: SGI
client glx version string: 1.4
client glx extensions:
   GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_import_context,
   GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_MESA_allocate_memory,
   GLX_MESA_copy_sub_buffer, GLX_MESA_swap_control,
   GLX_MESA_swap_frame_usage, GLX_OML_swap_method, GLX_OML_sync_control,
   GLX_SGI_make_current_read, GLX_SGI_swap_control, GLX_SGI_video_sync,
   GLX_SGIS_multisample, GLX_SGIX_fbconfig, GLX_SGIX_pbuffer,
   GLX_SGIX_visual_select_group, GLX_EXT_texture_from_pixmap
GLX version: 1.2
GLX extensions:
   GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_import_context,
   GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_MESA_copy_sub_buffer,
   GLX_OML_swap_method, GLX_SGI_make_current_read, GLX_SGIS_multisample,
   GLX_SGIX_fbconfig, GLX_EXT_texture_from_pixmap
OpenGL vendor string: Mesa project: www.mesa3d.org
OpenGL renderer string: Mesa GLX Indirect
OpenGL version string: 1.4 (1.5 Mesa 6.5.2)
OpenGL extensions:
   GL_ARB_depth_texture, GL_ARB_draw_buffers, GL_ARB_fragment_program,
   GL_ARB_imaging, GL_ARB_multisample, GL_ARB_multitexture,
   GL_ARB_occlusion_query, GL_ARB_point_parameters, GL_ARB_point_sprite,
   GL_ARB_shadow, GL_ARB_shadow_ambient, GL_ARB_texture_border_clamp,
   GL_ARB_texture_compression, GL_ARB_texture_cube_map,
   GL_ARB_texture_env_add, GL_ARB_texture_env_combine,
   GL_ARB_texture_env_crossbar, GL_ARB_texture_env_dot3,
   GL_ARB_texture_mirrored_repeat, GL_ARB_texture_non_power_of_two,
   GL_ARB_texture_rectangle, GL_ARB_transpose_matrix, GL_ARB_vertex_program,
   GL_ARB_window_pos, GL_EXT_abgr, GL_EXT_bgra, GL_EXT_blend_color,
   GL_EXT_blend_equation_separate, GL_EXT_blend_func_separate,
   GL_EXT_blend_logic_op, GL_EXT_blend_minmax, GL_EXT_blend_subtract,
   GL_EXT_clip_volume_hint, GL_EXT_copy_texture, GL_EXT_draw_range_elements,
   GL_EXT_fog_coord, GL_EXT_framebuffer_object, GL_EXT_multi_draw_arrays,
   GL_EXT_packed_pixels, GL_EXT_paletted_texture, GL_EXT_point_parameters,
   GL_EXT_polygon_offset, GL_EXT_rescale_normal, GL_EXT_secondary_color,
   GL_EXT_separate_specular_color, GL_EXT_shadow_funcs,
   GL_EXT_shared_texture_palette, GL_EXT_stencil_wrap, GL_EXT_subtexture,
   GL_EXT_texture, GL_EXT_texture3D, GL_EXT_texture_edge_clamp,
   GL_EXT_texture_env_add, GL_EXT_texture_env_combine,
   GL_EXT_texture_env_dot3, GL_EXT_texture_lod_bias,
   GL_EXT_texture_mirror_clamp, GL_EXT_texture_object,
   GL_EXT_texture_rectangle, GL_EXT_vertex_array, GL_APPLE_packed_pixels,
   GL_ATI_draw_buffers, GL_ATI_texture_env_combine3,
   GL_ATI_texture_mirror_once, GL_ATIX_texture_env_combine3,
   GL_IBM_texture_mirrored_repeat, GL_INGR_blend_func_separate,
   GL_MESA_pack_invert, GL_MESA_ycbcr_texture, GL_NV_blend_square,
   GL_NV_fragment_program, GL_NV_light_max_exponent, GL_NV_point_sprite,
   GL_NV_texgen_reflection, GL_NV_texture_rectangle, GL_NV_vertex_program,
   GL_NV_vertex_program1_1, GL_SGI_color_matrix, GL_SGI_color_table,
   GL_SGIS_generate_mipmap, GL_SGIS_texture_border_clamp,
   GL_SGIS_texture_edge_clamp, GL_SGIS_texture_lod, GL_SGIX_depth_texture,
   GL_SGIX_shadow, GL_SGIX_shadow_ambient, GL_SUN_multi_draw_arrays

  visual  x  bf lv rg d st colorbuffer ax dp st accumbuffer  ms  cav
id dep cl sp sz l  ci b ro  r  g  b  a bf th cl  r  g  b  a ns b eat
--
0x23 24 tc  0 24  0 r  y  .  8  8  8  0  0 16  0  0  0  0  0  0 0 None
0x24 24 tc  0 24  0 r  y  .  8  8  8  0  0 16  8 16 16 16  0  0 0 None
0x25 24 tc  0 32  0 r  y  .  8  8  8  8  0 16  8 16 16 16 16  0 0 None
0x26 24 tc  0 32  0 r  .  .  8  8  8  8  0 16  8 16 16 16 16  0 0 None
0x27 24 dc  0 24  0 r  y  .  8  8  8  0  0 16  0  0  0

Re: [gentoo-user] iptables configuration problem

2007-05-14 Thread Chuanwen Wu

2007/5/14, Norberto Bensa [EMAIL PROTECTED]:

Chuanwen Wu wrote:
 I have tried set all the gw in my subnet to 192.168.1.254 or 192.168.1.1.
 Is't all right?

I don't know, it depends on what's your gw's IP is.

Let's say you have this setup:


GW: 192.168.1.1

Other PCs are: 192.168.1.2... 192.168.1.3... and so on.


On the GW you need:

echo 1  /proc/sys/net/ipv4/ip_forward

iptables -t nat -A POSTROUTING -o ethX -j MASQUERADE
(note: change ethX by the NIC your internet connection is on. If your
cablemodem/adsl/whatever is on eth3 -for example- change ethX to eth3)


On the others PC you need to set GW to 192.168.1.1


I hope this helps.

Best regards,
Norberto


Thank you!I think i have done what you meant.
Here is the information:

/etc/conf.d/net in the server
config_eth0=( 202.114.10.134 netmask 255.255.255.0 brd 202.114.10.255 )
routes_eth0=( default gw 202.114.10.129 )

config_eth1=( 192.168.1.63 netmask 255.255.255.0 brd 192.168.1.255 )
routes_eth1=( default gw 192.168.1.1 )


/etc/conf.d/net in one PC
config_eth0=( 192.168.1.35 netmask 255.255.255.0 brd 192.168.1.255 )
routes_eth0=( default gw 192.168.1.1 )

--
wcw
--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] iptables configuration problem

2007-05-14 Thread Chuanwen Wu

Thank Norberto and Dan Farrell!I think i had a misunderstand and made
some mistakes.I hope I have correct it now.

/etc/conf.d/net in the server
config_eth0=( 202.114.10.134 netmask 255.255.255.0 brd 202.114.10.255 )
routes_eth0=( default gw 202.114.10.129 )

config_eth1=( 192.168.1.1 netmask 255.255.255.0 brd 192.168.1.255 )

/etc/conf.d/net in a PC
config_eth0=( 192.168.1.35 netmask 255.255.255.0 brd 192.168.1.255 )
routes_eth0=( default gw 192.168.1.1 )

2007/5/15, Dan Farrell [EMAIL PROTECTED]:

Greetings all.  Hope the weather in bejing is pleasant, Mr Wu.

On Mon, 14 May 2007 11:58:34 -0300 (ART)
Norberto Bensa [EMAIL PROTECTED] wrote:

 On Mon, May 14, 2007 8:23 am, Chuanwen Wu wrote:
  Thank you!I think i have done what you meant.
  Here is the information:
 
 
  /etc/conf.d/net in the server
  config_eth0=( 202.114.10.134 netmask 255.255.255.0 brd
  202.114.10.255 ) routes_eth0=( default gw 202.114.10.129 )

 OK

 
  config_eth1=( 192.168.1.63 netmask 255.255.255.0 brd
  192.168.1.255 ) routes_eth1=( default gw 192.168.1.1 )

 You don't need a route here.
More exactly, a route to the subnet 192.168.1.0/24 will automatically
be created through eth1.  A _gateway_ in this case is not necessary
because eth1 lives on that subnet.

  /etc/conf.d/net in one PC
  config_eth0=( 192.168.1.35 netmask 255.255.255.0 brd
  192.168.1.255 ) routes_eth0=( default gw 192.168.1.1 )

 No. GW should be 192.168.1.63, which is the IP address of your
 gateway.
 HTH,
 Norberto

First, the firewall configuration.  Your first message said:
 The eth0 here has the real ip,and the eth1 have a subnet
 ip:192.168.1.21.
But here you show that you set it to .63, as Norberto pointed out.  I
assume that was just a typographical error in the first email. Moving
on, the default route for the firewall is probably to the outside
world, and if you can ping google.com, it works.

Second, the client configuration.  The route for the subnet it's on
(192.168.1/24) is automatically created, as before.  The default route
is the IP of the firewall/gateway it's behind, namely 192.168.1.63 as
Norberto said.  The machine that's forwarding packets to the internet
for these hosts now provides the route to the outside world for these
hosts.

Third, you must tell your client PCs nameservers, so that they can
resolve domain names.  If you fail to do so, even though a ping of
google.com, for example, fails, a ping of its ip address
(64.233.167.99, in my case) will work.


All my PCs have the same /etc/resove.conf file with the server.And now
the PC can't ping through 66.249.89.99(of course,the server can).



Fourth, you must check your firewall (that is, iptables) configuration
to be sure your iptables all refer to the correct subnet.
 iptables --table nat -A POSTROUTING -s 192.168.8.0/24 -j MASQUERADE
that wasn't right -- obviously the subnet should be your own.


I have already corrected it to iptables --table nat -A POSTROUTING -s
192.168.1.0/24 -j MASQUERADE from the first time.



Since the firewall you're building knows all the information the hosts
need to know (subnet information, routes, etc) you may wish to set up a
rudimentary DHCP server on it, so that additional hosts can be added
without configuration by the user.  You may also wish to  impliment a
caching, recursive nameserver for enhanced efficiency.  DNSMasq can do
both.

Thanks for your advice!

--
[EMAIL PROTECTED] mailing list



When a PC ping 66.249.89.99,I got these information from the server:

# tcpdump -n -i eth1 net 192.168.1.0/24 and port not 22 and not arp
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth1, link-type EN10MB (Ethernet), capture size 96 bytes
10:01:08.214160 IP 192.168.1.35  66.249.89.99: ICMP echo request, id
35391, seq 599, length 64
10:01:09.214014 IP 192.168.1.35  66.249.89.99: ICMP echo request, id
35391, seq 600, length 64
10:01:10.213899 IP 192.168.1.35  66.249.89.99: ICMP echo request, id
35391, seq 601, length 64
10:01:11.213792 IP 192.168.1.35  66.249.89.99: ICMP echo request, id
35391, seq 602, length 64
10:01:12.213676 IP 192.168.1.35  66.249.89.99: ICMP echo request, id
35391, seq 603, length 64

5 packets captured
5 packets received by filter
0 packets dropped by kernel


And

# tcpdump -n -i eth0 net 202.114.10.134 and port not 22
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), capture size 96 bytes


Does it mean that eth1(the interface in my subnet) receive the request
but don't post forward it?
--
wcw
--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] iptables configuration problem

2007-05-14 Thread Chuanwen Wu

2007/5/15, Dan Farrell [EMAIL PROTECTED]:

On Tue, 15 May 2007 10:35:38 +0800
Chuanwen Wu [EMAIL PROTECTED] wrote:

 Does it mean that eth1(the interface in my subnet) receive the request
 but don't post forward it?

Perhaps you should attach the output of iptables -t nat -L -v;
iptables -L -v; so I can see the rules... while you're at it,

# iptables -L -v
Chain INPUT (policy ACCEPT 24414 packets, 3853K bytes)
pkts bytes target prot opt in out source
destination

Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source
destination

Chain OUTPUT (policy ACCEPT 33323 packets, 7123K bytes)
pkts bytes target prot opt in out source
destination



# iptables -L -v -t nat
Chain PREROUTING (policy ACCEPT 7546 packets, 1103K bytes)
pkts bytes target prot opt in out source
destination

Chain POSTROUTING (policy ACCEPT 340 packets, 28034 bytes)
pkts bytes target prot opt in out source
destination
   0 0 MASQUERADE  all  --  anyany 192.168.1.0/24
anywhere

Chain OUTPUT (policy ACCEPT 350 packets, 28746 bytes)
pkts bytes target prot opt in out source
destination



edit /etc/sysctl.conf so that forwarding is enabled every time you
reboot, and make sure it's still enabled now.


Oh!God!My must forget to enabled forwarding after last night!
Now,the PCs in the subnet can connect internal!

By the way,do you mean to change   #net.ipv4.ip_forward = 0(default
in /etc/sysctl.conf) to net.ipv4.ip_forward = 1?

--
[EMAIL PROTECTED] mailing list





--
wcw
--
[EMAIL PROTECTED] mailing list



[gentoo-user] iptables configuration problem

2007-05-13 Thread Chuanwen Wu

Hi,guys!
I use iptables to let the PCs in the subnet to connect the internet outside.

And i write a simple script,but it doesn't work:

#!/bin/sh
iptables -F
#Define packets from Internet server to Intranet
iptables -A FORWARD -d 198.168.1.0/24 -i eth0 -j ACCEPT
#Define packets from Intranet to Internet
iptables -A FORWARD -s 198.168.1.0/24 -i eth1 -j ACCEPT


Here is the result of iptables -L:

# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source   destination

Chain FORWARD (policy DROP)
target prot opt source   destination
ACCEPT all  --  anywhere 198.168.1.0/24
ACCEPT all  --  198.168.1.0/24   anywhere

Chain OUTPUT (policy ACCEPT)
target prot opt source   destination


The eth0 here has the real ip,and the eth1 have a subnet ip:192.168.1.21.
How to fix this problem?All I need now is just to let my office
machine to use the internet!
Thanks in advanced!!
--
wcw
--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] iptables configuration problem

2007-05-13 Thread Chuanwen Wu

2007/5/13, Fabio A Correa [EMAIL PROTECTED]:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hello Wu,

Instead of the commands you posted, you should use

echo 1  /proc/sys/net/ipv4/ip_forward
iptables --table nat -A POSTROUTING -s 192.168.8.0/24 -j MASQUERADE


I have tried.But still not work.
Here is the information after execute your advice:
-
[EMAIL PROTECTED] ~]# echo 1  /proc/sys/net/ipv4/ip_forward
[EMAIL PROTECTED] ~]# iptables --table nat -A POSTROUTING -s
192.168.1.0/24 -j MASQUERADE
[EMAIL PROTECTED] ~]# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source   destination

Chain FORWARD (policy ACCEPT)
target prot opt source   destination

Chain OUTPUT (policy ACCEPT)
target prot opt source   destination
[EMAIL PROTECTED] ~]# iptables -L -t nat
Chain PREROUTING (policy ACCEPT)
target prot opt source   destination

Chain POSTROUTING (policy ACCEPT)
target prot opt source   destination
MASQUERADE  all  --  192.168.1.0/24   anywhere

Chain OUTPUT (policy ACCEPT)
target prot opt source   destination

--
Then in my other PCs,I still can't ping the website outside.
Why?



Long explanation:

The first command enables the kernel to _forward_ packets from eth0 to eth1 and 
vice versa. To
do the actual forwarding, the second command is used:

- --table nat : Network address translation table.
- -A POSTROUTING for altering packets as they are about to go out, after it is 
determined that
they are to be forwarded by means of the first instruction.
- -j MASQUERADE Masquerade the addresses of computer in the subnet with the 
address of the routing
computer.

The kernel takes care of the subtle details on masquerading.

I hope this helps!!!

- --
Fabio A. Correa D.

Physics Dept, Universidad Nacional, Bogota, Colombia
[EMAIL PROTECTED]
[EMAIL PROTECTED] [EMAIL PROTECTED]
My webpage and OpenPGP key at http://facorread.150m.com
[EMAIL PROTECTED] is not working anymore!!!
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGRyjPYOZCB4zf2uQRAp2eAJwIYrXAQqldgZjRN0u+uDOW8t/aTgCeOQOb
RTmVGHOHQQWUzVxkZomHhHo=
=xvIZ
-END PGP SIGNATURE-
--
[EMAIL PROTECTED] mailing list



Thank you for your details!!!

--
wcw
--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] the font in xfce change after updating

2007-04-30 Thread Chuanwen Wu

2007/4/30, Benno Schulenberg [EMAIL PROTECTED]:

Chuanwen Wu wrote:
  Sat Apr 28 16:34:59 2007  xfce-base/xfce4-4.4.1

Hmm, it looks like you're running unstable xfce.  But if you can't
handle the problems this might give, then you shouldn't be using
unstable.

Try commenting out all xfce lines in /etc/portage/package.keywords,
re-update your system and see if that solves the problem.  If so,
then figure out which of the xfce updates causes the problem.  Also
check https://bugs.gentoo.org to see whether the problem has
already been reported.

Benno
--
[EMAIL PROTECTED] mailing list



Now I degrade xfce to 4.4.0 and everything is OK! I didn't change anything else.

And when I do etc-update again,I noticed that these files need to update:

/etc/xdg/xfce4/panel/launcher-10.rc
/etc/xdg/xfce4/panel/launcher-8.rc
/etc/xdg/xfce4/panel/panels.xml
/etc/xdg/xfce4/panel/launcher-7.rc
/etc/xdg/xfce4/panel/launcher-9.rc
/etc/xdg/xfce4/panel/systray-4.rc
/etc/xdg/xfce4/xinitrc
/etc/xdg/autostart/xfce4-tips-autostart.desktop

I think maybe one of them causes the fonts problem...

Anyway,the problem is fixed!

Thank you all!
--
wcw
--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Re: the font in xfce change after updating

2007-04-29 Thread Chuanwen Wu

2007/4/29, Philip Webb [EMAIL PROTECTED]:

070429 Chuanwen Wu wrote:
 After emerge -uDN world,
 the font in xfce4 is out of the control of my .fonts.conf.
 The english characters are unclear, as you can see in annex e.png.
 Chinese characters are even more worse as you can see in annex c.png

They look ok to me :

  http://www.chass.utoronto.ca/~purslow/c1.png
  http://www.chass.utoronto.ca/~purslow/c2.png

c1 is how it looks as you sent it to the list;
c2 is magnified by Gqview, so the edges of chars are uneven.

Do you mean that the size is too small ?


I don't think so.Even I large the size of the font,the character is still ugly.


If so, then perhaps someone else can help you fix your  .fonts.conf .

--
,,
SUPPORT ___//___,  Philip Webb : [EMAIL PROTECTED]
ELECTRIC   /] [] [] [] [] []|  Centre for Urban  Community Studies
TRANSIT`-O--O---'  University of Toronto
--
[EMAIL PROTECTED] mailing list





--
wcw
--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Re: the font in xfce change after updating

2007-04-29 Thread Chuanwen Wu

2007/4/29, Benno Schulenberg [EMAIL PROTECTED]:

Chuanwen Wu wrote:
 The font is out of the control of my .fonts.conf.  The english
 characters are unclear as you can see in annex e.png.

You mean there is too much anti-aliasing?

 And the
 Chinese characters are even more worse as you can see in annex
 c.png

You mean there is no anti-aliasing at all?  That is what
your .fonts.conf specifies, however.

Try this as your .fonts.conf file, and if it's better, copy the
relevant stuff to your original .fonts.conf.

?xml version=1.0?
!DOCTYPE fontconfig SYSTEM fonts.dtd
fontconfig
 match target=font 
  edit mode=assign name=hinting 
   booltrue/bool
  /edit
 /match
 match target=font 
  edit mode=assign name=hintstyle 
   consthintmedium/const
  /edit
 /match
 dir~/.fonts/dir
 match target=font 
  edit mode=assign name=rgba 
   constnone/const
  /edit
 /match
 match target=font 
  edit mode=assign name=antialias 
   booltrue/bool
  /edit
 /match
/fontconfig


Thanks for your fonts.conf. But it's not OK yet.
I still guess that the .fonts.conf didn't work in xfce4 .Because when
I switch to  gnome,everything is GOOD,with the same fonts.conf file.
I even create another user to test,but the result is all the
same:gnome is OK but not xfce4,with the same fonts.conf file.



--
[EMAIL PROTECTED] mailing list





--
wcw
--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] the font in xfce change after updating

2007-04-29 Thread Chuanwen Wu

2007/4/29, Benno Schulenberg [EMAIL PROTECTED]:

Chuanwen Wu wrote:
 After emerge -uDN world,

Not very informative. More useful information you could have
provided with the output of  'genlop --list --date 2 days ago'.



Here is the output:

# genlop --list --date 2 days ago
* dev-java/swt

Sat Apr 28 08:58:48 2007  dev-java/swt-3.2-r2
Sat Apr 28 10:24:40 2007  net-ftp/lftp-3.5.10
Sat Apr 28 11:40:54 2007  dev-util/pkgconfig-0.21-r1
Sat Apr 28 11:42:14 2007  media-libs/audiofile-0.2.6-r3
Sat Apr 28 11:42:30 2007  sys-apps/debianutils-2.17.5
Sat Apr 28 11:47:25 2007  dev-libs/gmp-4.2.1-r1
Sat Apr 28 11:47:35 2007  media-sound/alsa-headers-1.0.14_rc2
Sat Apr 28 11:47:58 2007  sys-libs/timezone-data-2007d
Sat Apr 28 11:48:07 2007  sys-libs/libutempter-1.1.5
Sat Apr 28 11:51:02 2007  app-portage/eix-0.9.1
Sat Apr 28 11:53:59 2007  sys-apps/busybox-1.4.2
Sat Apr 28 11:54:31 2007  sys-devel/patch-2.5.9-r1
Sat Apr 28 11:54:36 2007  sys-apps/hdparm-6.9-r1
Sat Apr 28 11:54:40 2007  dev-java/java-config-wrapper-0.13
Sat Apr 28 11:57:25 2007  dev-libs/mpfr-2.2.1_p5
Sat Apr 28 11:58:27 2007  net-misc/rsync-2.6.9-r2
Sat Apr 28 12:00:06 2007  media-libs/freetype-2.1.10-r3
Sat Apr 28 12:01:21 2007  media-libs/libpng-1.2.16
Sat Apr 28 12:09:19 2007  sys-libs/ncurses-5.6
Sat Apr 28 12:09:57 2007  dev-util/dialog-1.1.20070227
Sat Apr 28 12:10:27 2007  sys-apps/man-1.6e-r3
Sat Apr 28 12:10:58 2007  sys-apps/man-pages-2.44
Sat Apr 28 12:12:27 2007  net-misc/curl-7.15.1-r1
Sat Apr 28 12:13:12 2007  sys-devel/m4-1.4.9
Sat Apr 28 12:13:42 2007  dev-libs/libgpg-error-1.5
Sat Apr 28 12:14:22 2007  sys-devel/flex-2.5.33-r2
Sat Apr 28 12:15:12 2007  xfce-base/libxfce4util-4.4.1
Sat Apr 28 12:16:13 2007  sys-libs/readline-5.2_p2
Sat Apr 28 12:16:28 2007  sys-apps/baselayout-1.12.9-r2
Sat Apr 28 12:17:14 2007  sys-apps/module-init-tools-3.2.2-r3
Sat Apr 28 12:21:27 2007  sys-kernel/gentoo-sources-2.6.20-r7
Sat Apr 28 12:21:44 2007  dev-java/java-config-2.0.31-r5
Sat Apr 28 14:22:15 2007  sys-apps/file-4.20-r1
Sat Apr 28 14:22:27 2007  dev-python/dnspython-1.3.5
Sat Apr 28 14:24:10 2007  dev-libs/libxslt-1.1.20
Sat Apr 28 14:25:20 2007  sys-apps/util-linux-2.12r-r6
Sat Apr 28 14:25:42 2007  dev-perl/Net-SSLeay-1.30
Sat Apr 28 14:26:05 2007  dev-perl/DBI-1.54
Sat Apr 28 14:26:47 2007  xfce-extra/xfce4-icon-theme-4.4.1
Sat Apr 28 14:27:04 2007  app-portage/layman-1.0.10
Sat Apr 28 14:29:08 2007  app-admin/webmin-1.340
Sat Apr 28 14:32:15 2007  media-libs/alsa-lib-1.0.14_rc2
Sat Apr 28 14:54:18 2007  dev-db/mysql-5.0.38
Sat Apr 28 14:54:31 2007  x11-proto/inputproto-1.4.1
Sat Apr 28 14:54:43 2007  x11-proto/randrproto-1.2.1
Sat Apr 28 14:55:49 2007  media-libs/libsamplerate-0.1.2-r1
Sat Apr 28 14:56:03 2007  x11-proto/damageproto-1.1.0
Sat Apr 28 14:58:41 2007  x11-libs/libXfont-1.2.7-r1
Sat Apr 28 14:59:40 2007  media-libs/libdvdcss-1.2.9-r1
Sat Apr 28 14:59:59 2007  sys-process/vixie-cron-4.1-r10
Sat Apr 28 15:00:19 2007  dev-util/ccache-2.4-r7
Sat Apr 28 15:08:58 2007  x11-libs/libX11-1.1.1-r1
Sat Apr 28 15:09:51 2007  media-sound/alsa-utils-1.0.14_rc2-r3
Sat Apr 28 15:10:24 2007  x11-libs/libXfixes-4.0.3
Sat Apr 28 15:11:22 2007  x11-libs/libXi-1.1.0
Sat Apr 28 15:11:58 2007  x11-libs/libXrandr-1.2.1
Sat Apr 28 15:13:58 2007  sys-apps/dbus-1.0.2-r2
Sat Apr 28 15:15:47 2007  media-libs/imlib2-1.3.0
Sat Apr 28 15:29:49 2007  media-gfx/imagemagick-6.3.3
Sat Apr 28 15:30:16 2007  x11-libs/libXdamage-1.1.1
Sat Apr 28 15:30:44 2007  x11-libs/libXcomposite-0.3.1
Sat Apr 28 15:36:09 2007  media-video/ffmpeg-0.4.9_p20070330
Sat Apr 28 15:37:05 2007  dev-java/sun-jdk-1.5.0.11
Sat Apr 28 15:39:50 2007  x11-libs/cairo-1.4.4
Sat Apr 28 15:41:48 2007  media-libs/libsdl-1.2.11-r2
Sat Apr 28 15:42:48 2007  media-libs/freeglut-2.4.0-r1
Sat Apr 28 16:03:56 2007  x11-base/xorg-server-1.1.1-r5
Sat Apr 28 16:06:16 2007  xfce-base/libxfcegui4-4.4.1
Sat Apr 28 16:06:53 2007  xfce-base/libxfce4mcs-4.4.1
Sat Apr 28 16:08:10 2007  media-libs/ftgl-2.1.2-r1
Sat Apr 28 16:09:02 2007  media-libs/sdl-mixer-1.2.7
Sat Apr 28 16:09:46 2007  xfce-base/xfce-mcs-manager-4.4.1
Sat Apr 28 16:10:12 2007  xfce-extra/xfce4-appfinder-4.4.1
Sat Apr 28 16:12:02 2007  media-libs/libprojectm-0.99-r1
Sat Apr 28 16:12:29 2007  dev-libs/libmcs-0.4.1
Sat Apr 28 16:12:53 2007  xfce-extra/xfce4-taskmanager-0.3.2-r1
Sat Apr 28 16:14:13 2007  xfce-base/xfce-utils-4.4.1-r1
Sat Apr 28 16:16:43 2007  xfce-base/xfwm4-4.4.1
Sat Apr 28 16:18:05 2007  xfce-base/xfce-mcs-plugins-4.4.1
Sat Apr 28 16:20:11 2007  media-sound/audacious-1.3.2
Sat Apr 28 16:22:23 2007  xfce-extra/xfwm4-themes-4.4.1
Sat Apr 28 16:23:48 2007  xfce-base/xfprint-4.4.1
Sat Apr 28 16:25:45 2007

[gentoo-user] the font in xfce change after updating

2007-04-28 Thread Chuanwen Wu

Hi,guys!

After emerge -uDN world,the font in xfce4 becomes weird. I am sure
the file .fonts.conf is not changed and when I use gnome,everything
is Ok!
I guess maybe because when I etc-update,I change some files.But I
don't know which files.

Anyone know how to fix it?

Thanks in advanced!

--
wcw
--
[EMAIL PROTECTED] mailing list



  1   2   >