Re: [gentoo-user] [OT] bash script error

2011-05-09 Thread Xi Shen
yes, you are right.

+ curl_opts='-x '\'''\'''

the -x '' expands to too many quotes. I tried to replace the
double-quotes to single-quotes, but still not working.

any idea how to fix this?


On Mon, May 9, 2011 at 2:43 PM, Nils Andresen n...@nils-andresen.de wrote:
 Hi,
 have you tried /bin/bash -x your.script.sh - see what get's expanded ?

 Nils

 2011/5/9 Xi Shen davidshe...@googlemail.com

 I guess there's something wrong with the argument expansion. Just do
 not know how to fix it. Please help.





-- 
Best Regards,
Xi Shen (David)

http://twitter.com/davidshen84/



Re: [gentoo-user] [OT] bash script error

2011-05-09 Thread Xi Shen
yes, i use the '-x' option, and i can see the expansion now. and i
found there are too many quotes.

i tried curl_opts=-x , does not work.


On Mon, May 9, 2011 at 3:52 PM, Kfir Lavi lavi.k...@gmail.com wrote:


 On Mon, May 9, 2011 at 9:43 AM, Nils Andresen n...@nils-andresen.de wrote:

 Hi,
 have you tried /bin/bash -x your.script.sh - see what get's expanded ?

 Nils

 2011/5/9 Xi Shen davidshe...@googlemail.com

 I guess there's something wrong with the argument expansion. Just do
 not know how to fix it. Please help.

 You need to change:
 - curl_opts=-x ''
 + curl_opts=-x 

 Run your program with bash -x as Nils said, and you will see the expansion.

 Kfir




-- 
Best Regards,
Xi Shen (David)

http://twitter.com/davidshen84/



Re: [gentoo-user] [OT] bash script error

2011-05-09 Thread Xi Shen
if i use -x '', or -x , it expands to -x. the quotes are removed as
they are empty.

if i use -x \'\', the expanded quotes are quoted again...resulting too
many quotes

it is driving me crazy o_O! please help.


On Mon, May 9, 2011 at 4:14 PM, Xi Shen davidshe...@googlemail.com wrote:
 yes, i use the '-x' option, and i can see the expansion now. and i
 found there are too many quotes.

 i tried curl_opts=-x , does not work.


 On Mon, May 9, 2011 at 3:52 PM, Kfir Lavi lavi.k...@gmail.com wrote:


 On Mon, May 9, 2011 at 9:43 AM, Nils Andresen n...@nils-andresen.de wrote:

 Hi,
 have you tried /bin/bash -x your.script.sh - see what get's expanded ?

 Nils

 2011/5/9 Xi Shen davidshe...@googlemail.com

 I guess there's something wrong with the argument expansion. Just do
 not know how to fix it. Please help.

 You need to change:
 - curl_opts=-x ''
 + curl_opts=-x 

 Run your program with bash -x as Nils said, and you will see the expansion.

 Kfir




 --
 Best Regards,
 Xi Shen (David)

 http://twitter.com/davidshen84/




-- 
Best Regards,
Xi Shen (David)

http://twitter.com/davidshen84/



Re: [gentoo-user] [OT] bash script error

2011-05-09 Thread Xi Shen
i tried that already. not working. i will try the stackoverflow.com. thanks


On Mon, May 9, 2011 at 4:31 PM, Pandu Poluan pa...@poluan.info wrote:
 (Again, sorry for top-posting)

 BTW, there are lots of bash gurus in stackovervlow.com. My handle
 there is 'pepoluan'.

 Rgds,


 On 2011-05-09, Xi Shen davidshe...@googlemail.com wrote:
 It is not specific to Gentoo. But do not know where to search or post it :)

 My script looks like:

 url=http://mypage;
 curl_opts=-x ''
 curl $url -d \mydata\ $curl_opts

 If I execute it, I got an error from curl, saying it cannot resolve
 the proxy ''.

 But If I modify the script to:

 url=http://mypage;
 curl $url -d \mydata\ -x ''

 It works fine.

 I guess there's something wrong with the argument expansion. Just do
 not know how to fix it. Please help.


 --
 Best Regards,
 Xi Shen (David)

 http://twitter.com/davidshen84/




 --
 --
 Pandu E Poluan - IT Optimizer
 My website: http://pandu.poluan.info/





-- 
Best Regards,
Xi Shen (David)

http://twitter.com/davidshen84/



Re: [gentoo-user] php-cgi must be run as root?

2011-05-08 Thread Xi Shen
yeah, you are right. thanks :)


On Sat, May 7, 2011 at 12:59 AM, Kfir Lavi lavi.k...@gmail.com wrote:


 On Fri, May 6, 2011 at 1:46 PM, Andrea Conti a...@alyf.net wrote:

  The access permission to
  /usr/lib64/php5.3/bin/php-cgi is 755, so I think everyone can execute
  it. Then, what is the problem?

 Most probably, the nginx user cannot access the .php file you're trying
 to execute, either because of its permissions or because it cannot
 traverse one of its parent directories.

 andrea

 So in short you need to use
 chmod -R...
 chown -R...

 Kfir




-- 
Best Regards,
Xi Shen (David)

http://twitter.com/davidshen84/



[gentoo-user] [OT] bash script error

2011-05-08 Thread Xi Shen
It is not specific to Gentoo. But do not know where to search or post it :)

My script looks like:

url=http://mypage;
curl_opts=-x ''
curl $url -d \mydata\ $curl_opts

If I execute it, I got an error from curl, saying it cannot resolve
the proxy ''.

But If I modify the script to:

url=http://mypage;
curl $url -d \mydata\ -x ''

It works fine.

I guess there's something wrong with the argument expansion. Just do
not know how to fix it. Please help.


-- 
Best Regards,
Xi Shen (David)

http://twitter.com/davidshen84/



[gentoo-user] how to emerge a package for python2.5 while python2.7 is default?

2011-05-06 Thread Xi Shen
Hi,

My system is Gentoo 64bit, up to date. I want to use GAE, but it
supports python2.5 only. So I emerged python2.5, but I am unable to
emerge packages for python2.5.

E.g. I emerged dev-python/oauth, but it is installed to
/usr/lib64/python2.7, but not python2.5.

I think using eselect to change python version will not work, because
the emerge has already upgraded to python2.7.


-- 
Best Regards,
Xi Shen (David)

http://twitter.com/davidshen84/



Re: [gentoo-user] how to emerge a package for python2.5 while python2.7 is default?

2011-05-06 Thread Xi Shen
yes, USE_PYTHON. thank you!


On Fri, May 6, 2011 at 5:52 PM, Evgeny Bushkov z...@dotcomltd.ru wrote:
 On 06.05.2011 13:28, Xi Shen wrote:
 Hi,

 My system is Gentoo 64bit, up to date. I want to use GAE, but it
 supports python2.5 only. So I emerged python2.5, but I am unable to
 emerge packages for python2.5.

 E.g. I emerged dev-python/oauth, but it is installed to
 /usr/lib64/python2.7, but not python2.5.

 I think using eselect to change python version will not work, because
 the emerge has already upgraded to python2.7.


 Try to add USE_PYTHON=2.5 2.7 to your make.conf. After that rebuild
 your package. USE_PYTHON says you want both 2.5 and 2.7 python modules
 built and installed.

 Best regards,
 Bushkov E.





-- 
Best Regards,
Xi Shen (David)

http://twitter.com/davidshen84/



[gentoo-user] php-cgi must be run as root?

2011-05-06 Thread Xi Shen
Hi,

My system is Gentoo 64bit, up to date. I want to use Nginx+FastCgi+PHP
to build my web site. But I found if I start the php-cgi, through the
spawn-fcgi tool, as nginx:nginx, I got No input file specified.
message on in my browser. If I spawn the process as root:root,
everything works fine. The access permission to
/usr/lib64/php5.3/bin/php-cgi is 755, so I think everyone can execute
it. Then, what is the problem?


-- 
Best Regards,
Xi Shen (David)

http://twitter.com/davidshen84/



Re: [gentoo-user] Circular blockage

2011-03-28 Thread Xi Shen
try unmerge 'ssmtp' first, then update world, then emerge ssmtp if necessary.


On Tue, Mar 29, 2011 at 6:16 AM, Peter Humphrey
pe...@humphrey.ukfsn.org wrote:
 How do I get out of this?

 $ emerge -uptDN world

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

 Calculating dependencies ... done!
 [nomerge      ] app-admin/sudo-1.7.4_p5
 [nomerge      ]  virtual/mta-0
 [ebuild  N    ]   mail-mta/ssmtp-2.62-r8  USE=ipv6 ssl -maxsysuid (-md5sum)
 [ebuild  N    ]  virtual/mta-0
 [nomerge      ] kde-base/kde-meta-4.4.5
 [nomerge      ]  kde-base/kdemultimedia-meta-4.4.5
 [nomerge      ]   kde-base/dragonplayer-4.4.5
 [nomerge      ]    media-libs/xine-lib-1.1.19
 [nomerge      ]     media-libs/libmng-1.0.10
 [ebuild   R   ]      virtual/jpeg-0  USE=-static-libs%
 [blocks B     ] mail-mta/ssmtp (virtual/mta is blocking mail-mta/ssmtp-2.62-
 r8)

  * Error: The above package list contains packages which cannot be
  * installed at the same time on the same system.

  (virtual/mta-0, ebuild scheduled for merge) pulled in by
    =virtual/mta-0 required by (dev-lang/php-5.3.5, installed)
    virtual/mta required by (app-crypt/gnupg-2.0.17, installed)
    virtual/mta required by (dev-lang/php-5.3.5, installed)
    (and 7 more)

 How do I even interpret it? Why is virtual/mta required suddenly? And why does
 ssmtp conflict with it?

 --
 Rgds
 Peter





-- 
Best Regards,
Xi Shen (David)

http://twitter.com/davidshen84/



Re: [gentoo-user] files disappearing using samba

2010-11-30 Thread Xi Shen
i think i had a similar issue like this one. i setup one of my linux
dictionary as a samba folder, in which i have some files which names
are in Chinese. my problem is some of the files cannot be seen when
connecting to that samba dictionary from linux, bu i can see all of
them if i connect to that folder from windows.

i think the problem is more like a file name encoding issue. but i did
not find a way to solve it either :(


On Tue, Nov 30, 2010 at 9:23 AM,  cov...@ccs.covici.com wrote:
 Hi.  I have what seems to me a strange problem using samba.  The version
 is 3.5.6.  Now what is happening is that in certain directories if I try
 to look at those directories using that other operating system, and I am
 coming in as root, all the files are not seen.  I know they are there,
 but Samba seems to ignore them -- I can ssh in and get them, but no
 Samba.

 Anyone seen this and what can I do about it?

 Thanks in advance for any suggestions.

 --
 Your life is like a penny.  You're going to lose it.  The question is:
 How do
 you spend it?

         John Covici
         cov...@ccs.covici.com





-- 
Best Regards,
Xi Shen (David)

http://twitter.com/davidshen84/



Re: [gentoo-user] Re: Cannot open root device sda3 or unknown-block (0,0)

2010-11-17 Thread Xi Shen
You better try the liveCD or liveDVD. They have more drivers, better
chance to hit.


Regards,
David Shen

On Nov 17, 2010, at 17:25, Joseph syscon...@gmail.com wrote:

 On 11/17/10 16:37, walt wrote:
 [snip]
 OK I've tried as you suggested, http://www.sysresccd.org/ and it works OK.
 When I boot I have network eth0 and it loads driver forcedeth

 I've compiled the same driver into my current kernel but there is no eth0

 Does dmesg say anything about forcedeth or eth* ?

 It doesn't have a chance, the minimal ISO CD hangs up right after detecting 
 the keyboard. If I boot kernel option gentoo debug *
 it prints:

 /bin/sh: can't access tty: job control turned off

 --
 Joseph




Re: [gentoo-user] How to get hid2hci command

2010-09-19 Thread Xi Shen
maybe you need the old-daemons use flag?


On Fri, Sep 17, 2010 at 10:34 AM, Kyle Bader kyle.ba...@gmail.com wrote:
 net-wireless/bluez maybe?

 Kyle

 On Sep 16, 2010 1:01 PM, Hung Dang hungp...@gmail.com wrote:

 Hi all,

 I need to use hid2hci for my bluetooth keyboad. However, I could not figure
 out how to get the hid2hci command.
 Any suggestion would be appreciate?

 Thanks in advance
 Hung




-- 
Best Regards,
Xi Shen (David)

http://twitter.com/davidshen84/



[gentoo-user] open-iscsi-2.0.871.3 compile fail on 2.6.32-openvz-budarin.1 kernel

2010-08-21 Thread Xi Shen
hi,

i got this error while trying to emerge the open-iscis-2.0.871.3:

be2iscsi.o transport.o iscsid.o
iscsi_sysfs.o: In function `iscsi_sysfs_get_blockdev_from_lun':
iscsi_sysfs.c:(.text+0xe71): undefined reference to `S_ISLNK'
iscsi_sysfs.c:(.text+0xed3): undefined reference to `S_ISDIR'
iscsi_sysfs.o: In function `iscsi_sysfs_get_sid_from_path':
iscsi_sysfs.c:(.text+0x16ed): undefined reference to `S_ISDIR'
iscsi_sysfs.c:(.text+0x17bd): undefined reference to `S_ISLNK'
collect2: ld returned 1 exit status
make[1]: *** [iscsid] Error 1
make[1]: *** Waiting for unfinished jobs
make[1]: Leaving directory
`/var/tmp/portage/sys-block/open-iscsi-2.0.871.3/work/open-iscsi-2.0.871.3/usr'
make: *** [user] Error 2


below is my emerge --info:

Portage 2.1.8.3 (default/linux/amd64/10.0, gcc-4.4.4, glibc-2.12.1-r1,
2.6.32-openvz-budarin.1 x86_64)
=
System uname: 
linux-2.6.32-openvz-budarin.1-x86_64-intel-r-_core-tm-2_cpu_44...@_2.00ghz-with-gentoo-2.0.1
Timestamp of tree: Fri, 20 Aug 2010 19:45:02 +
app-shells/bash: 4.1_p7
dev-java/java-config: 2.1.11
dev-lang/python: 2.6.5-r3, 3.1.2-r4
sys-apps/baselayout: 2.0.1
sys-apps/openrc: 0.6.2
sys-apps/sandbox:2.3-r1
sys-devel/autoconf:  2.65-r1
sys-devel/automake:  1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:   4.4.4-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:  3.81-r2
virtual/os-headers:  2.6.34
ACCEPT_KEYWORDS=amd64 ~amd64
ACCEPT_LICENSE=* -...@eula PUEL
CBUILD=x86_64-pc-linux-gnu
CFLAGS=-march=nocona -O2 -pipe
CHOST=x86_64-pc-linux-gnu
CONFIG_PROTECT=/etc
CONFIG_PROTECT_MASK=/etc/ca-certificates.conf /etc/env.d
/etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf
/etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d
/etc/terminfo
CXXFLAGS=-O2 -pipe
DISTDIR=/usr/portage/distfiles
FEATURES=assume-digests distlocks fixpackages news parallel-fetch
protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans
userfetch
GENTOO_MIRRORS= http://mirrors.163.com/gentoo/ http://mirrors.sohu.com/gentoo/;
LDFLAGS=-Wl,-O1 -Wl,--as-needed
LINGUAS=zh_CN
MAKEOPTS=-j2
PKGDIR=/usr/portage/packages
PORTAGE_CONFIGROOT=/
PORTAGE_RSYNC_OPTS=--recursive --links --safe-links --perms --times
--compress --force --whole-file --delete --stats --timeout=180
--exclude=/distfiles --exclude=/local --exclude=/packages
PORTAGE_TMPDIR=/var/tmp
PORTDIR=/usr/portage
PORTDIR_OVERLAY=/var/lib/layman/dotnet /usr/local/portage
SYNC=rsync://mirrors.xmu.edu.cn/gentoo-portage
USE=acl amd64 bash-completion berkdb bzip2 cli cracklib crypt cxx dri
dvdr fortran gdbm gpm iconv imagemagick ipv6 java java6 jpeg jpeg2k
mmx modules mono mudflap multilib ncurses nls nptl nptlonly openmp pam
pcre perl postgres pppd python readline reflection samba session spl
sqlite sqlite3 sse sse2 ssl sysfs tcpd unicode usb vim-syntax xorg
zlib ALSA_CARDS=ali5451 als4000 atiixp atiixp-modem bt87x ca0106
cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0
intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci
ALSA_PCM_PLUGINS=adpcm alaw asym copy dmix dshare dsnoop empty
extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul
mulaw multi null plug rate route share shm softvol
APACHE2_MODULES=actions alias auth_basic authn_alias authn_anon
authn_dbm authn_default authn_file authz_dbm authz_default
authz_groupfile authz_host authz_owner authz_user autoindex cache cgi
cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter
file_cache filter headers include info log_config logio mem_cache mime
mime_magic negotiation rewrite setenvif speling status unique_id
userdir usertrack vhost_alias ELIBC=glibc INPUT_DEVICES=keyboard
mouse evdev KERNEL=linux LCD_DEVICES=bayrad cfontz cfontz633 glk
hd44780 lb216 lcdm001 mtxorb ncurses text LINGUAS=zh_CN
RUBY_TARGETS=ruby18 USERLAND=GNU VIDEO_CARDS=fbdev glint intel
mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa via
vmware voodoo XTABLES_ADDONS=quota2 psd pknock lscan length2
ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq
steal rawnat logmark ipmark dhcpmac delude chaos account
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK,
LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS,
PORTAGE_RSYNC_EXTRA_OPTS


-- 
Best Regards,
Xi Shen (David)

http://twitter.com/davidshen84/



[gentoo-user] the host system hangs when create openvz CT

2010-08-17 Thread Xi Shen
hi,

my system gentoo amd64, and i am trying to start another gentoo
instance in openvz. after i started the vz, i ran vzctl create 101
--ostemplate gentoo-amd64-20100617 and got below error:

Creating container private area (gentoo-amd64-20100617)
/usr/lib64/vzctl/scripts/vps-create: line 31:  2205 Killed
 tar
-C $VE_PRVT ${TAR_OPT} ${OPT} -xf
$PRIVATE_TEMPLATE
vps-create ERROR: Error in tar --numeric-owner -z -xf
/vz/template/cache/gentoo-
 amd64-20100617.tar.gz
Received signal:  9 in /usr/sbin/vzquota
Killed


and if i ran the same command again, my ssh hangs. i guess the
'vzquota' has something to do with it, but i do not know how...


-- 
Best Regards,
Xi Shen (David)

http://twitter.com/davidshen84/



[gentoo-user] bluetooth device bd address is 11:11:11:11:11:11

2010-08-09 Thread Xi Shen
hi,

i have a usb bluetooth device, after i plug it into the usb slot and
ran hciconfig, it shows the bd address is 11:11:11:11:11:11. is it
correct? or maybe the driver is not loaded correctly?


-- 
Best Regards,
Xi Shen (David)

http://twitter.com/davidshen84/



[gentoo-user] eth0 cannot start up

2010-08-06 Thread Xi Shen
hi,

after a sudden power cut off, my gentoo system cannot connect to the
network any more...

the system can be started, but when starting dhcp, it reports Cannot
assign requested address. if tried ifconfig eth0 up, it reports the
same error. using dmesg|grep eth0 and dmesg|grep network, it shows the
system has detected my network card.

any idea what is the cause of the problem?


-- 
Best Regards,
Xi Shen (David)

http://twitter.com/davidshen84/



Re: [gentoo-user] eth0 cannot start up

2010-08-06 Thread Xi Shen
i reboot the system, fresh start with livcd. all reports the same error. :(

i noticed that the hardware address is 3a:3a:2d:6c:3a:3a, which is
obviously an invalid one. i guess it is a hardware failure...


On Fri, Aug 6, 2010 at 8:14 PM, Mick michaelkintz...@gmail.com wrote:
 Run dhcpcd -k and check that dhcpcd does not leave any locks behind.

 Then run dhcpcd -d eth0 and see what's reported by it.

 On 6 August 2010 12:57, Xi Shen davidshe...@googlemail.com wrote:
 hi,

 after a sudden power cut off, my gentoo system cannot connect to the
 network any more...

 the system can be started, but when starting dhcp, it reports Cannot
 assign requested address. if tried ifconfig eth0 up, it reports the
 same error. using dmesg|grep eth0 and dmesg|grep network, it shows the
 system has detected my network card.

 any idea what is the cause of the problem?


 --
 Best Regards,
 Xi Shen (David)

 http://twitter.com/davidshen84/





 --
 Regards,
 Mick





-- 
Best Regards,
Xi Shen (David)

http://twitter.com/davidshen84/



Re: [gentoo-user] eth0 cannot start up

2010-08-06 Thread Xi Shen
normally, the latest livecd boot up the system, and everything works.
if the livecd boot up and something is not working, i guess it must be
a hardware issue.

BTW, ifconfig -a does show my eth0 NIC, but ifconfig eth0 up cannot
start my NIC.


On Sat, Aug 7, 2010 at 12:01 AM, Mick michaelkintz...@gmail.com wrote:
 On 6 August 2010 13:45, Xi Shen davidshe...@googlemail.com wrote:
 i reboot the system, fresh start with livcd. all reports the same error. :(

 i noticed that the hardware address is 3a:3a:2d:6c:3a:3a, which is
 obviously an invalid one. i guess it is a hardware failure...

 Hmm ... if ifconfig -a does not show your device then this merits
 further investigation.

 Does the LiveCD have the requisite driver for your eth0?

 In your normal OS the permanent udev rules could have messed up the
 order of your devices (assuming that you have more than one network
 interface) so that eth1 is now eth0.

 However, I am not sure that the LiveCD would show the same problem as
 it would run its own udev daemon.  Either way, ifconfig -a should show
 all your interfaces and MAC numbers (as long as there is the
 appropriate driver in the kernel).

 If it is a hardware failure it may be worth trying to reseat the card
 if separate to the MoBo, or disable/enable in the BIOS to reset it.
 --
 Regards,
 Mick





-- 
Best Regards,
Xi Shen (David)

http://twitter.com/davidshen84/



Re: [gentoo-user] eth0 cannot start up

2010-08-06 Thread Xi Shen
my NIC magically recovered :) i did nothing. i just wake up today, and
turn my computer on, and it is as good as new.


On Sat, Aug 7, 2010 at 12:00 PM, William Kenworthy bi...@iinet.net.au wrote:
 try mii-tool if its compatible with the card

 sys-apps/net-tools-1.60_p20090728014017-r1 (/sbin/mii-tool)

 Add more -v to its command line and you get more info including a ROM
 readout.

 BillK


 On Sat, 2010-08-07 at 10:17 +0800, Xi Shen wrote:
 normally, the latest livecd boot up the system, and everything works.
 if the livecd boot up and something is not working, i guess it must be
 a hardware issue.

 BTW, ifconfig -a does show my eth0 NIC, but ifconfig eth0 up cannot
 start my NIC.


 On Sat, Aug 7, 2010 at 12:01 AM, Mick michaelkintz...@gmail.com wrote:
  On 6 August 2010 13:45, Xi Shen davidshe...@googlemail.com wrote:
  i reboot the system, fresh start with livcd. all reports the same error. 
  :(
 
  i noticed that the hardware address is 3a:3a:2d:6c:3a:3a, which is
  obviously an invalid one. i guess it is a hardware failure...
 
  Hmm ... if ifconfig -a does not show your device then this merits
  further investigation.
 
  Does the LiveCD have the requisite driver for your eth0?
 
  In your normal OS the permanent udev rules could have messed up the
  order of your devices (assuming that you have more than one network
  interface) so that eth1 is now eth0.
 
  However, I am not sure that the LiveCD would show the same problem as
  it would run its own udev daemon.  Either way, ifconfig -a should show
  all your interfaces and MAC numbers (as long as there is the
  appropriate driver in the kernel).
 
  If it is a hardware failure it may be worth trying to reseat the card
  if separate to the MoBo, or disable/enable in the BIOS to reset it.
  --
  Regards,
  Mick
 
 




 --
 William Kenworthy bi...@iinet.net.au
 Home in Perth!






-- 
Best Regards,
Xi Shen (David)

http://twitter.com/davidshen84/



[gentoo-user] lm_sensors show 2 different temp. for my CPU

2010-08-04 Thread Xi Shen
hi,

after i setup lm_sensors on my gentoo amd64, i ran sensors, and got
the below output

coretemp-isa-
Adapter: ISA adapter
Core 0:  +61.0 C  (high = +74.0 C, crit = +100.0 C)

coretemp-isa-0001
Adapter: ISA adapter
Core 1:  +61.0 C  (high = +74.0 C, crit = +100.0 C)

atk0110-acpi-0
Adapter: ACPI interface
Vcore Voltage: +1.14 V  (min =  +1.45 V, max =  +1.75 V)
 +3.3 Voltage: +3.23 V  (min =  +3.00 V, max =  +3.60 V)
 +5.0 Voltage: +4.84 V  (min =  +4.50 V, max =  +5.50 V)
+12.0 Voltage:+11.90 V  (min = +11.20 V, max = +13.20 V)
CPU FAN Speed:2556 RPM  (min =0 RPM)
CHASSIS FAN Speed:   0 RPM  (min =0 RPM)
POWER FAN Speed: 0 RPM  (min =0 RPM)
CPU Temperature:   +49.0 C  (high = +90.0 C, crit = +125.0 C)
MB Temperature:+41.0 C  (high = +30.0 C, crit = +90.0 C)


at the top are my CPU temp. of the 2 cores, usually they should be the
same. but at the bottom, there's another value, which is 49 in this
instance. which one is the correct value? why they are different?


-- 
Best Regards,
Xi Shen (David)

http://twitter.com/davidshen84/



[gentoo-user] bashcomp cannot work well with rsync

2010-08-04 Thread Xi Shen
hi,

after i enabled bash completion for rsync, i got this error when type
TAB to auto complete the file name

bash: _known_hosts_real: command not found


it used to work very well. do i missed something?

P.S. my system is gentoo amd64, 2.6.32-openvz-budarin.1 #2 SMP;
rsync-3.0.7; gentoo-bashcomp-20100613


-- 
Best Regards,
Xi Shen (David)

http://twitter.com/davidshen84/



Re: [gentoo-user] bashcomp cannot work well with rsync

2010-08-04 Thread Xi Shen
i always start a new session after i enable/disable an bash completion
plug-in. it looks like the same issue, but the resolution does not
work for me.

actually, the bashcomp issue only occurs when using rsync. other auto
completion works fine.


On Wed, Aug 4, 2010 at 8:27 PM, Alex Schuster wo...@wonkology.org wrote:
 Xi Shen writes:

 after i enabled bash completion for rsync, i got this error when type
 TAB to auto complete the file name

 bash: _known_hosts_real: command not found


 it used to work very well. do i missed something?

 Maybe googling :)  Does this help? http://bugs.gentoo.org/301632

        Wonko





-- 
Best Regards,
Xi Shen (David)

http://twitter.com/davidshen84/



Re: [gentoo-user] Re: lm_sensors show 2 different temp. for my CPU

2010-08-04 Thread Xi Shen
thanks to both of you. :)


On Wed, Aug 4, 2010 at 11:22 PM, Nikos Chantziaras rea...@arcor.de wrote:
 On 08/04/2010 02:14 PM, Xi Shen wrote:

 hi,

 after i setup lm_sensors on my gentoo amd64, i ran sensors, and got
 the below output

 coretemp-isa-
 Adapter: ISA adapter
 Core 0:      +61.0 C  (high = +74.0 C, crit = +100.0 C)

 coretemp-isa-0001
 Adapter: ISA adapter
 Core 1:      +61.0 C  (high = +74.0 C, crit = +100.0 C)

 This is the sensor inside the CPU.  The kernel doesn't know how to interpret
 this value on non-mobile CPUs, and it's usually off by 10C to 15C on desktop
 CPUs.


 CPU Temperature:   +49.0 C  (high = +90.0 C, crit = +125.0 C)

 This is the sensor on your motherboard that resides directly under the CPU.
  This an accurate temp and the kernel knows exactly how to interpret the
 values.






-- 
Best Regards,
Xi Shen (David)

http://twitter.com/davidshen84/



[gentoo-user] ACPI conflict while loading it87 module

2010-08-01 Thread Xi Shen
hi,


my kernel is 2.6.32-openvz-budarin.1. i emerged the lm_sensors, and
the sensor-dectet tool says i have the it87 sensor. i compiled the
it87 hardware driver as module, and when i try to load it, i got the
following error:

Aug  1 16:56:03 david-gentoo kernel: [  715.671596] it87: Found
IT8712F chip at 0x290, revision 7
Aug  1 16:56:03 david-gentoo kernel: [  715.671609] it87: in3 is VCC (+5V)
Aug  1 16:56:03 david-gentoo kernel: [  715.671612] it87: in7 is VCCH
(+5V Stand-By)
Aug  1 16:56:03 david-gentoo kernel: [  715.671663] ACPI: I/O resource
it87 [0x295-0x296] conflicts with ACPI region HWRE [0x295-0x296]
Aug  1 16:56:03 david-gentoo kernel: [  715.671669] ACPI: If an ACPI
driver is available for this device, you should use it instead of the
native driver

how to fix this problem?


-- 
Best Regards,
Xi Shen (David)

http://twitter.com/davidshen84/



Re: [gentoo-user] ACPI conflict while loading it87 module

2010-08-01 Thread Xi Shen
thanks a lot. i am using asus mb, and asus_atk0110 works for me too. :)


On Sun, Aug 1, 2010 at 7:52 PM, pk pete...@coolmail.se wrote:
 On 2010-08-01 11:01, Xi Shen wrote:

 Aug  1 16:56:03 david-gentoo kernel: [  715.671669] ACPI: If an ACPI
 driver is available for this device, you should use it instead of the
 native driver

 how to fix this problem?

 Use the ACPI module (appropriate for your motherboard) instead of the
 it87 module. For example my motherboard (asus P5E64WS) uses the atk0110
 (acpi) module... you find it under these conditions (make menuconfig):

 Depends on: HWMON [=y]  ACPI [=y]  X86 [=y]  EXPERIMENTAL[=y]
 Location:
  - Device Drivers
        - Hardware Monitoring support (HWMON [=y])

 Best regards

 Peter K





-- 
Best Regards,
Xi Shen (David)

http://twitter.com/davidshen84/



[gentoo-user] my /etc/conf.d/clock file is missing

2010-07-28 Thread Xi Shen
hi,

i just installed a new gentoo amd64 system, and i cannot find the
/etc/conf.d/clock file. do i miss some package? i cannot remember
there's a package to install the /etc/conf.d/clock file.


-- 
Best Regards,
Xi Shen (David)

http://twitter.com/davidshen84/



Re: [gentoo-user] my /etc/conf.d/clock file is missing

2010-07-28 Thread Xi Shen
sorry. it is renamed to /etc/conf.d/hwclock...my bad :P


On Wed, Jul 28, 2010 at 8:57 PM, Xi Shen davidshe...@googlemail.com wrote:
 hi,

 i just installed a new gentoo amd64 system, and i cannot find the
 /etc/conf.d/clock file. do i miss some package? i cannot remember
 there's a package to install the /etc/conf.d/clock file.


 --
 Best Regards,
 Xi Shen (David)

 http://twitter.com/davidshen84/




-- 
Best Regards,
Xi Shen (David)

http://twitter.com/davidshen84/



[gentoo-user] openvz kernel and ext4

2010-07-15 Thread Xi Shen
hi,

i emerged the openvz kernel, and compiled the kernel with ext4dev/ext4
file system support. but when i tried to boot my system, i got a
kernel panic. it says cannot mount my ext4 root, because it is not
marked ok to use with test code.

my root is at a ext4 file system, and i think the ext4dev/ext4 kernel
compile option would allow me to use both ext4 and ext4dev features,
am i wrong?

i do not want to use ext4dev on my root, neither do i want to
downgrade to ext3. is there a way to fix this?


-- 
Best Regards,
Xi Shen (David)

http://twitter.com/davidshen84/



Re: [gentoo-user] emerge is not switching mirror when one is down

2010-07-15 Thread Xi Shen
it says

GENTOO_MIRRORS=http://mirrors.sohu.com/gentoo/ http://mirrors.163.com/gentoo/;

i guess it means ok, right?


On Thu, Jul 15, 2010 at 6:26 AM, Jake Moe jakesaddr...@gmail.com wrote:
 On 15/07/10 02:16, Xi Shen wrote:
 hi,

 i have multiple mirrors configured in GENTOO_MIRRORS, /etc/make.conf.
 i noticed that if the 1st mirror is down, emerge will continuously try
 the 1st mirror. i remember it should switch to the 2nd server after
 the try failed 3 times. how can i configure it to switch mirrors
 automatically?

 What does emerge --info | grep GENTOO_MIRRORS tell you?

 Jake Moe





-- 
Best Regards,
Xi Shen (David)

http://twitter.com/davidshen84/



Re: [gentoo-user] openvz kernel and ext4

2010-07-15 Thread Xi Shen
sure, i do not need ext4dev, i want to use ext4 only. but i did not
find a compile option for ext4, i only find a option for ext4dev/ext4.

the openvz i emerged is 2.6.27.6.1, which is the latest stable
version. is it too old? should i try newer unstable version?


On Thu, Jul 15, 2010 at 7:40 PM, Albert Hopkins mar...@letterboxes.org wrote:
 On Thu, 2010-07-15 at 19:34 +0800, Xi Shen wrote:
 i emerged the openvz kernel, and compiled the kernel with ext4dev/ext4
 file system support. but when i tried to boot my system, i got a
 kernel panic. it says cannot mount my ext4 root, because it is not
 marked ok to use with test code.

 my root is at a ext4 file system, and i think the ext4dev/ext4 kernel
 compile option would allow me to use both ext4 and ext4dev features,
 am i wrong?

 i do not want to use ext4dev on my root, neither do i want to
 downgrade to ext3. is there a way to fix this?

 You don't need ext4dev.  ext4dev is old and, unless you've used it
 before, there's no need to use it today.  I'm guessing that's giving you
 that error (that's an old error).  It's easy to fix though (do a Google
 search for the error).  But it should not even occur if you've never
 used ext4dev, IIRC.

 -a







-- 
Best Regards,
Xi Shen (David)

http://twitter.com/davidshen84/



Re: [gentoo-user] emerge is not switching mirror when one is down

2010-07-15 Thread Xi Shen
manually. according to 'man make.conf', the GENTOO_MIRRORS is a list
URLs, separated by space. i think my value is correct.


On Thu, Jul 15, 2010 at 7:47 PM, András Csányi sayusi.a...@gmail.com wrote:
 On 14 July 2010 18:16, Xi Shen davidshe...@googlemail.com wrote:
 hi,

 i have multiple mirrors configured in GENTOO_MIRRORS, /etc/make.conf.
 i noticed that if the 1st mirror is down, emerge will continuously try
 the 1st mirror. i remember it should switch to the 2nd server after
 the try failed 3 times. how can i configure it to switch mirrors
 automatically?

 Which way did you make the list? Mirrorselect or manually?
 Have you tried with mirrorselect?

 --
 - -
 --  Csanyi Andras  -- http://sayusi.hu -- Sayusi Ando
 --  Bízzál Istenben és tartsd szárazon a puskaport!.-- Cromwell





-- 
Best Regards,
Xi Shen (David)

http://twitter.com/davidshen84/



Re: [gentoo-user] emerge is not switching mirror when one is down

2010-07-15 Thread Xi Shen
i tried the mirrorselect, and the generated GENTOO_MIRRORS is as follow:

GENTOO_MIRRORS=http://gentoo.localhost.net.ar/
ftp://mirrors.localhost.net.ar/pub/mirrors/gentoo/;

and this is my original value:
GENTOO_MIRRORS=http://mirrors.sohu.com/gentoo/ http://mirrors.163.com/gentoo/;

what's the difference? except the url...


On Thu, Jul 15, 2010 at 8:31 PM, Alan McKinnon alan.mckin...@gmail.com wrote:
 On Thursday 15 July 2010 13:41:11 Xi Shen wrote:
 it says


 GENTOO_MIRRORS=http://mirrors.sohu.com/gentoo/http://mirrors.163.com/gentoo/;

 i guess it means ok, right?

 On Thu, Jul 15, 2010 at 6:26 AM, Jake Moe jakesaddr...@gmail.com wrote:
  On 15/07/10 02:16, Xi Shen wrote:
  hi,
 
  i have multiple mirrors configured in GENTOO_MIRRORS, /etc/make.conf.
  i noticed that if the 1st mirror is down, emerge will continuously try
  the 1st mirror. i remember it should switch to the 2nd server after
  the try failed 3 times. how can i configure it to switch mirrors
  automatically?
 
  What does emerge --info | grep GENTOO_MIRRORS tell you?
 
  Jake Moe

 Nope, it's wrong.

 That is 1 URL, I doubt it will be valid


 --
 alan dot mckinnon at gmail dot com





-- 
Best Regards,
Xi Shen (David)

http://twitter.com/davidshen84/



Re: [gentoo-user] openvz kernel and ext4

2010-07-15 Thread Xi Shen
from http://gentoo-portage.com/sys-kernel/openvz-sources, i see that
openvz-sources-2.6.27.6.1 is already the latest stable version, and
the other 2 newer versions are hard masked.

does anybody know how stable these masked version are?


On Fri, Jul 16, 2010 at 12:48 AM, Kyle Bader kyle.ba...@gmail.com wrote:
 Ext4 was very new around 2.6.27,. The kenel is likely refusing to
 mount the filesystem because the kernel driver is experimental (old)
 and the filesystem was created when a different kernel was loaded (non
 experimental ext4).  Using the old driver could compromise the
 integrity so the kernel refuses.  You might have better luck with a
 more recent kernel.

 On 7/15/10, Xi Shen davidshe...@googlemail.com wrote:
 sure, i do not need ext4dev, i want to use ext4 only. but i did not
 find a compile option for ext4, i only find a option for ext4dev/ext4.

 the openvz i emerged is 2.6.27.6.1, which is the latest stable
 version. is it too old? should i try newer unstable version?


 On Thu, Jul 15, 2010 at 7:40 PM, Albert Hopkins mar...@letterboxes.org
 wrote:
 On Thu, 2010-07-15 at 19:34 +0800, Xi Shen wrote:
 i emerged the openvz kernel, and compiled the kernel with ext4dev/ext4
 file system support. but when i tried to boot my system, i got a
 kernel panic. it says cannot mount my ext4 root, because it is not
 marked ok to use with test code.

 my root is at a ext4 file system, and i think the ext4dev/ext4 kernel
 compile option would allow me to use both ext4 and ext4dev features,
 am i wrong?

 i do not want to use ext4dev on my root, neither do i want to
 downgrade to ext3. is there a way to fix this?

 You don't need ext4dev.  ext4dev is old and, unless you've used it
 before, there's no need to use it today.  I'm guessing that's giving you
 that error (that's an old error).  It's easy to fix though (do a Google
 search for the error).  But it should not even occur if you've never
 used ext4dev, IIRC.

 -a







 --
 Best Regards,
 Xi Shen (David)

 http://twitter.com/davidshen84/



 --
 Sent from my mobile device


 Kyle





-- 
Best Regards,
Xi Shen (David)

http://twitter.com/davidshen84/



[gentoo-user] emerge is not switching mirror when one is down

2010-07-14 Thread Xi Shen
hi,

i have multiple mirrors configured in GENTOO_MIRRORS, /etc/make.conf.
i noticed that if the 1st mirror is down, emerge will continuously try
the 1st mirror. i remember it should switch to the 2nd server after
the try failed 3 times. how can i configure it to switch mirrors
automatically?


-- 
Best Regards,
Xi Shen (David)

http://twitter.com/davidshen84/



[gentoo-user] libpng12 is missing

2010-05-09 Thread Xi Shen
hi,

my system is gentoo amd64, kde 4.3. i just updated my portage, and
updated the world. then i ran revdep-rebuild, and i got a error when
building notification-daemon-0.4.0-r1. the error found in the build
log is: cannot find -lpng12

i have both libpng-1.2.43-r1 and libpng-1.4.2 installed, but i do not
have libpng12.a in my /usr/lib64 directory. and 'pkg-config libpng
--libs' only show '-lpng14'.

i guess these 2 versions do not work well with each other. how can i fix this?

P.S. i have 'png' in my USE flags.


-- 
Best Regards,
David Shen

http://twitter.com/davidshen84/



Re: [gentoo-user] Re: libpng12 is missing

2010-05-09 Thread Xi Shen
On Sun, May 9, 2010 at 9:32 PM, walt w41...@gmail.com wrote:
 On 05/09/2010 05:10 AM, Xi Shen wrote:

 hi,

 my system is gentoo amd64, kde 4.3. i just updated my portage, and
 updated the world. then i ran revdep-rebuild, and i got a error when
 building notification-daemon-0.4.0-r1. the error found in the build
 log is: cannot find -lpng12

 i have both libpng-1.2.43-r1 and libpng-1.4.2 installed, but i do not
 have libpng12.a in my /usr/lib64 directory. and 'pkg-config libpng
 --libs' only show '-lpng14'.

 Are you sure you still have version 1.2.43 installed?  I'm going thru
 the same thing now on x86 and libpng-1.2 was deleted during the update.
 I now have only 1.4.2 remaining.


yes, upgrade removed 1.2.43. but after i saw that error, i emerged
1.2.43 manually, hoping it could fix this error, but not...

i do not understand why linpng12 is not build even after i emerged
1.2.43...do i need to use some special emerging   technique?


 Revdep-rebuild has been enumerating broken files for twenty minutes and
 is still going.  I've never seen breakage this bad before.  This machine
 is going to be useless for the next 24 hours or so until all the packages
 are rebuilt.






-- 
Best Regards,
David Shen

http://twitter.com/davidshen84/



[gentoo-user] konsole refresh laggardly

2010-05-02 Thread Xi Shen
hi,

my system is gentoo amd64, kd 4.3, compiz. i just updated the world.
in konsole, no matter if the system is busy or not, the screen do not
refresh sometimes. i will have to move the window, or select some
content in the konsole to force it refresh.

my graphic card is nvidia. i did not have this problem before.


-- 
Best Regards,
David Shen

http://twitter.com/davidshen84/



Re: [gentoo-user] konsole refresh laggardly

2010-05-02 Thread Xi Shen
On Sun, May 2, 2010 at 6:35 PM, Volker Armin Hemmann
volkerar...@googlemail.com wrote:
 don't use compiz.



i know that is the last option. but, since i did not have this issue
before, even with compiz enabled, i think there should be some way to
fix it.


-- 
Best Regards,
David Shen

http://twitter.com/davidshen84/



Re: [gentoo-user] modules.audoload.d is not autoloaded

2010-04-24 Thread Xi Shen
On Fri, Apr 23, 2010 at 2:50 PM, Steffen Loos fe...@gmx.net wrote:
 I'm not shure if you're running baselayout-2: The place for configuration of
 autoload modules has changed to /etc/conf.d/modules.
 See http://www.gentoo.org/doc/en/openrc-migration.xml for explanations in
 more detail.

 regards,
 Steffen



yes, i am using baselayout-2. thanks for pointing out this. it works now.


-- 
Best Regards,
David Shen

http://twitter.com/davidshen84/



[gentoo-user] modules.audoload.d is not autoloaded

2010-04-22 Thread Xi Shen
hi,

i have some modules putted in /etc/modules.autoload.d/kernel-2.6, and
my kernel is 2.6.32-gentoo-r7. but after system started up, i found
those modules are not loaded. running 'rc-update show', i can see the
'modules' is in 'boot' runlevel. if i load those modules manually,
they can be loaded normally. what's wrong with autoload?


-- 
Best Regards,
David Shen

http://twitter.com/davidshen84/



Re: [gentoo-user] i cannot browser if the system is up too long

2010-04-19 Thread Xi Shen
i met this issue today, and i have tried all your suggestions, restart
router, log off, restart my network interface. but none of this work.
i still cannot get http connections to work until i restarted my
system.


-- 
Best Regards,
David Shen

http://twitter.com/davidshen84/



Re: [gentoo-user] i cannot browser if the system is up too long

2010-04-18 Thread Xi Shen
thanks for your suggestion. i will try it.


-- 
Best Regards,
David Shen

http://twitter.com/davidshen84/



[gentoo-user] how to get microphone work in gentoo?

2010-04-17 Thread Xi Shen
hi,

i searched for a while and found out microphone does not work in linux
for most people...

despite of this, i still post here, and hope someone could help me.

my system is thinkpad t61, intel HD audio, gentoo amd64, i have ALSA
and intel audio driver compiled in my kernel.


-- 
Best Regards,
David Shen

http://twitter.com/davidshen84/



Re: [gentoo-user] how to get microphone work in gentoo?

2010-04-17 Thread Xi Shen
On Sat, Apr 17, 2010 at 9:54 PM, Mark Knecht markkne...@gmail.com wrote:
  Intel HDA here. Mic input on my works fine.

 1) Make sure mic volume is up and mix is not muted.

 2) Compile Alsa as modular. Almost always works better and is
 recommended modular by Alsa developers over the years.

 The one thing that hasn't worked for me so far is passing the mic
 input up to to VMWare's sound card. Audio works fine - I can hear
 Windows apps - but Windows apps don't receive my mic.


thanks man, Thomas from gentoo-china helped me solve this problem. the
problem is that i did not enable the 'CAPTURE' function of my record
device. the record device should be set list this in the alsamixer

https://mail.google.com/mail/?ui=2ik=c262ed02b8view=attth=1280bfbaf4fe4fbdattid=0.1disp=inlinerealattid=f_g84gy3tr1zw

use 'SPACE' to toggle the capture.


-- 
Best Regards,
David Shen

http://twitter.com/davidshen84/



[gentoo-user] win7x64 in kvm does not have sound

2010-04-17 Thread Xi Shen
hi,

i use kvm -soundhw ac97 ... to start my win7 guest, and i see a
'Multimedia Audio Device' in my device manager. but i cannot manage to
get a driver for it. according to kvm -soundhw ?, the ac97 sound card
is a intel ac97 audio device. but windows cannot find a driver for it,
neither can i find a driver for it on google...


-- 
Best Regards,
David Shen

http://twitter.com/davidshen84/



[gentoo-user] i cannot browser if the system is up too long

2010-04-15 Thread Xi Shen
hi,

if you system is up for many days, sometimes i will not be able to
browser web site. but the BT download still works. i can also ping the
web site. i really have no idea how to troubleshoot this. even 'curl'
cannot get the web page. it feels like all tcp connections are
blocked.

my system is gentoo amd64, kde 4.4.


-- 
Best Regards,
David Shen

http://twitter.com/davidshen84/



[gentoo-user] cpufreqd cannot start

2010-04-15 Thread Xi Shen
hi,

i used to be able to start the cpufreqd service. but recently, it
fails to start. and the error message is:

 * Caching service dependencies ...
[ ok ]
 * cpufreqd requires the kernel to be configured with CONFIG_CPU_FREQ
 * Make sure that the appropiate kernel drivers for your CPU are
 * built-in or loaded.
 * ERROR: cpufreqd failed to start


i ran zcat /proc/config.gz | grep -i cpu_freq, the return is:

CONFIG_CPU_FREQ=y
CONFIG_CPU_FREQ_TABLE=m
# CONFIG_CPU_FREQ_DEBUG is not set
# CONFIG_CPU_FREQ_STAT is not set
CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE=y
# CONFIG_CPU_FREQ_DEFAULT_GOV_POWERSAVE is not set
# CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE is not set
# CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND is not set
# CONFIG_CPU_FREQ_DEFAULT_GOV_CONSERVATIVE is not set
CONFIG_CPU_FREQ_GOV_PERFORMANCE=y
CONFIG_CPU_FREQ_GOV_POWERSAVE=m
CONFIG_CPU_FREQ_GOV_USERSPACE=y
CONFIG_CPU_FREQ_GOV_ONDEMAND=m
CONFIG_CPU_FREQ_GOV_CONSERVATIVE=m


which means i have cpu freq compiled in my kernel. what else would
cause cpufreqd cannot start?


-- 
Best Regards,
David Shen

http://twitter.com/davidshen84/



Re: [gentoo-user] i cannot browser if the system is up too long

2010-04-15 Thread Xi Shen
On Thu, Apr 15, 2010 at 8:43 PM, Kevin O'Gorman kogor...@gmail.com wrote:
 I get something like this, but just logging off and on again seems to fix
 it.  For me, anyway.
   it's 2x Xeon, Kde 4


any idea what is the cause? this is really a annoying bug.


-- 
Best Regards,
David Shen

http://twitter.com/davidshen84/



Re: [gentoo-user] i cannot browser if the system is up too long

2010-04-15 Thread Xi Shen
On Fri, Apr 16, 2010 at 2:55 AM, Stroller
strol...@stellar.eclipse.co.uk wrote:

 How are you connecting to the net?


yes, i connect to the net through a router. and i share the router
with my roommates.

 Are you sure this isn't the router? Have you tried switching it off and back
 on again? (seriously)


i do not think so. if it is the router has the problem, all people
using that router will suffer the same problem. but it is only me have
this problem.

 There is a tendency in BitTorrent to fill up the NAT tables of routers with
 insufficient RAM. I cannot explain why this would appear not to affect ping.


my BT client use a fix port to connect to the net, and i guess it
cannot configure the NAT table of the router.


-- 
Best Regards,
David Shen

http://twitter.com/davidshen84/



Re: [gentoo-user] vde_switch cannot create tap

2010-04-14 Thread Xi Shen
On Wed, Apr 14, 2010 at 9:36 PM, Albert W. Hopkins
mar...@letterboxes.org wrote:
 I read this document, and it seems to be doing basically what you get
 with libvirt, except libvirt does all that for you (but uses brctl
 instead of vde (I'm not sure what the differences are)).

 Anyway it seems like libvirt may be another alternative for you.  It
 takes care of the bridging/dnsmasq/masquerading stuff for you and also
 has some nice management features (and a gui).


bridge allow your vm to connect to the internet directly. the vm will
connect to the dhcp server as your host machine do.

vde creates a vlan on your host, and your vms connect to that vlan.
and your host machine will act like a gateway to your vm.

people say vde is easier to config if you have many vms. i actually
never tried bridge. maybe i should try it some time.


-- 
Best Regards,
David Shen

http://twitter.com/davidshen84/



Re: [gentoo-user] vde_switch cannot create tap

2010-04-14 Thread Xi Shen
BTW, the issue i had have been resolved. the document did not mention
that i should add '-d' option to let the vde_switch run in daemon
mode.


-- 
Best Regards,
David Shen

http://twitter.com/davidshen84/



[gentoo-user] vde_switch cannot create tap

2010-04-13 Thread Xi Shen
hi,

i followed the instructions on
http://en.gentoo-wiki.com/wiki/KVM_with_VDE to configure my system.
the kvm and tun modules loaded fine. but when i run vde_switch
--numports 4 --hub --mod 777 --group users --tap tap0, it will not
return until i press ctrl+d, and after that, the tap0 interface is not
created. there's no error messages.

how can i fix this?


-- 
Best Regards,
David Shen

http://twitter.com/davidshen84/



[gentoo-user] no javac on gentoo amd64?

2010-04-03 Thread Xi Shen
hi,

my system is gentoo amd 64. java-config -L show i have two VMs on my system:

The following VMs are available for generation-2:
1)  IcedTea6-bin 1.7.1 [icedtea6-bin]
*)  Sun JRE 1.6.0.18 [sun-jre-bin-1.6]

but when i ran javac, it says:

* javac is not available for sun-jre-bin-1.6 on x86_64
* IMPORTANT: some Java tools are not available on some VMs on some architectures

we do not have javac on amd64 system? how to fix this?
i did not find much use information on http://www.gentoo.org/doc/en/java.xml


-- 
Best Regards,
David Shen

http://twitter.com/davidshen84/



[gentoo-user] phonon reports my audio device is not available

2010-03-30 Thread Xi Shen
hi,

after an update, when i enter kde, i got a notification that my audio
device is not available. but i can use smplayer/amarok to play mp3,
and i can here sound. how to fix that notification issue?

my system is gentoo amd64, kde 4.4, thinkpad, intel hda


-- 
Best Regards,
David Shen

http://twitter.com/davidshen84/



Re: [gentoo-user] phonon reports my audio device is not available

2010-03-30 Thread Xi Shen
On Tue, Mar 30, 2010 at 8:07 PM, Bartosz Szatkowski bulis...@linux.com wrote:
 You can check if You have alsasound in your boot rc ... Iam not quite
 sure if its necessary to be in boot (maybe default would do) but i have
 boot and its working quite good :)


i figured it out. i changed my kde splash theme, then i got this
notification. i changed my theme back to default, and the notification
disappeared.

now, my question is what's wrong with that splash theme...


-- 
Best Regards,
David Shen

http://twitter.com/davidshen84/



[gentoo-user] postgresql 8.2.14 cannot stop

2010-03-30 Thread Xi Shen
hi,

my system is gentoo amd64, postgresql 8.2.14. the postgresql service
can start without any error; but when i try to stop it, it reports
failure. the process of postgresql are actually terminated. if i try
to stop the service again, i got

start-stop-daemon: fopen `/var/lib/postgresql/data/postmaster.pid':
No such file or direc

i will have to use zap to reset the service status. how to fix this?


-- 
Best Regards,
David Shen

http://twitter.com/davidshen84/



Re: [gentoo-user] postgresql 8.2.14 cannot stop

2010-03-30 Thread Xi Shen
On Wed, Mar 31, 2010 at 6:58 AM, Michael Higgins li...@evolone.org wrote:

 There are new start stop scripts for gentoo that work at
 http://bugs.gentoo.org/show_bug.cgi?id=311047


thanks. i think the new scripts can help me.


-- 
Best Regards,
David Shen

http://twitter.com/davidshen84/



Re: [gentoo-user] xlsfonts shows only a few fonts

2010-03-29 Thread Xi Shen
thanks guys, i solved my problem.

i ask this question because my emacs cannot displays chinese, a
there's no font for me to set. that is because i did not have the
'xft' feature enabled for my emacs. i recompiled emacs with 'xft' use
flag, and my emacs works fine for me. ;)


-- 
Best Regards,
David Shen

http://twitter.com/davidshen84/



[gentoo-user] xlsfonts shows only a few fonts

2010-03-28 Thread Xi Shen
hi,

i have a lot fonts installed in /usr/share/fonts. and i even have all
the fonts from m$ win7. but when i ran xlsfonts, i got only a few
fonts listed. like this:

-misc-fixed-medium-r-semicondensed--0-0-75-75-c-0-iso8859-1
-misc-fixed-medium-r-semicondensed--13-100-100-100-c-60-iso8859-1
-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso8859-1
6x13
cursor
fixed

i need more fonts, so i can setup emacs to display chinese. but
there's no chinese font listed.


-- 
Best Regards,
David Shen

http://twitter.com/davidshen84/



Re: [gentoo-user] Re: xlsfonts shows only a few fonts

2010-03-28 Thread Xi Shen
On Mon, Mar 29, 2010 at 1:31 AM, walt w41...@gmail.com wrote:
 Have you added all of the font directories to your xorg.conf?

 Section Files
    ModulePath      /usr/lib/xorg/modules
    FontPath        /usr/share/fonts/corefonts/
...
    FontPath        /usr/share/fonts/Type1/
    FontPath        /usr/share/fonts/100dpi/
    FontPath        /usr/share/fonts/75dpi/
 EndSection



sure, i have all my fonts listed.


-- 
Best Regards,
David Shen

http://twitter.com/davidshen84/



Re: [gentoo-user] xlsfonts shows only a few fonts

2010-03-28 Thread Xi Shen
On Mon, Mar 29, 2010 at 4:56 AM, Paul Hartman
paul.hartman+gen...@gmail.com wrote:
 I believe XFS is deprecated and has been removed from Gentoo recently
 (at least in ~unstable). See the comments in this bug for info  maybe
 something to help:

 http://bugs.gentoo.org/show_bug.cgi?id=293177



if XFS is deprecated, what is the replacement? how can i get the fonts
working in emacs?


-- 
Best Regards,
David Shen

http://twitter.com/davidshen84/



Re: [gentoo-user] Re: unknown media type error when updating

2010-03-28 Thread Xi Shen
On Sun, Mar 28, 2010 at 12:27 PM, Nikos Chantziaras rea...@arcor.de wrote:
 I guess they're not really expected to be unknown, but they're harmless as
 long as you don't get disappearing icons.  If you do, then this is for you:

 http://bugs.gentoo.org/show_bug.cgi?id=288312

 This came up quite a while back on the mailing list, and IIRC, the
 solution was that there is no solution :P


great, i have not seen any broken icons yet. guess i can ignore them.


-- 
Best Regards,
David Shen

http://twitter.com/davidshen84/



[gentoo-user] unknown media type error when updating

2010-03-27 Thread Xi Shen
hi,

i noticed the following error messages when i was updating my system.

* Updating shared mime info database ...
Unknown media type in type 'all/all'

Unknown media type in type 'all/allfiles'

Unknown media type in type 'uri/mms'

Unknown media type in type 'uri/mmst'

Unknown media type in type 'uri/mmsu'

Unknown media type in type 'uri/pnm'

Unknown media type in type 'uri/rtspt'

Unknown media type in type 'uri/rtspu'

Unknown media type in type 'fonts/package'

Unknown media type in type 'interface/x-winamp-skin'


how to fix this?


-- 
Best Regards,
David Shen

http://twitter.com/davidshen84/



[gentoo-user] 32bit version of libgdk_pixbuf_xlib-2.0.so.0 is mission

2010-03-27 Thread Xi Shen
hi,

i want to use the binary version of adobe reader. it only has 32bit
version, so it depends on a 32bit version of
libgdk_pixbuf_xlib-2.0.so.0. but on my system i can only find one
libgdk_pixbuf_xlib-2.0.so.0 in the /usr/lib64 directory.

i was able to use the adobe reader, but after a update it no longer
works. i cannot remember what i changed.


-- 
Best Regards,
David Shen

http://twitter.com/davidshen84/



Re: [gentoo-user] Re: unknown media type error when updating

2010-03-27 Thread Xi Shen
so...there are expected to be unknown? haha...that is interesting.

anyway, thanks. :)


-- 
Best Regards,
David Shen

http://twitter.com/davidshen84/



[gentoo-user][kde4] system tray can only put into a panel?

2010-03-26 Thread Xi Shen
hi,

i am trying to reorganized the layout of the kde widgets to make the
desktop looks more personalized. i found the panel is pretty useless,
so i removed it; but i need the system tray, because some applications
only put a icon into it. after i put the system tray widget onto the
desktop, i found some icons cannot be displayed, but they are
displayed fine when the tray in put into a panel.

is this a bug on kde? is there a fix for this?

-- 
Best Regards,
David Shen

http://twitter.com/davidshen84/



[gentoo-user] f-spot depends on mono?

2010-03-25 Thread Xi Shen
hi,

when i try to emerge f-spot, i found that it pull in dev-lang/mon, and
all its dependencies. why f-spot needs mono? since when mono becomes
stable, and is used in real linux application?


-- 
Best Regards,
David Shen

http://twitter.com/davidshen84/



Re: [gentoo-user] f-spot depends on mono?

2010-03-25 Thread Xi Shen
On Thu, Mar 25, 2010 at 6:37 PM, Jacob Todd jaketodd...@gmail.com wrote:
 F-spot is written in mono.

oh...what a hell of mistake i made.

so, what do people do to manage photos on gnome? i do not like this mono one.


-- 
Best Regards,
David Shen

http://twitter.com/davidshen84/



[gentoo-user] do we have gst-plugins-really-bad or equivalent?

2010-03-25 Thread Xi Shen
hi,

i have some .m4a files. and i want to play them in rhythmbox. when i
import them into rhythmbox, it says it needs plugin to play mpeg-4 acc
file. i searched the network, and people from ubuntu says a
gstreamer0.10-plugins-really-bad package would do. but i cannot find
this 'really bad' one on gentoo. i have already emerged
gst-plugins-bad, but i still cannot play these file.


-- 
Best Regards,
David Shen

http://twitter.com/davidshen84/



Re: [gentoo-user] f-spot depends on mono?

2010-03-25 Thread Xi Shen
On Fri, Mar 26, 2010 at 5:54 AM, Paul Hartman
paul.hartman+gen...@gmail.com wrote:
 DigiKam is great (if you don't mind KDE libs in your system).


yeah, digikam is great. i tried it on kde. but i am using gnome, and i
want to keep my system compact.


-- 
Best Regards,
David Shen

http://twitter.com/davidshen84/



Re: [gentoo-user] f-spot depends on mono?

2010-03-25 Thread Xi Shen
On Fri, Mar 26, 2010 at 7:51 AM, Neil Bothwick n...@digimed.co.uk wrote:
 On Fri, 26 Mar 2010 07:37:04 +0800, Xi Shen wrote:

 yeah, digikam is great. i tried it on kde. but i am using gnome, and i
 want to keep my system compact.

 Then why are you using GNOME?




so, you mean kde is more compact than gnome? but i found it took me
much longer time to build kde than to build gnome.

actually, i were using kde for a while, and just want to switch to
gnome to see how the system works. anyway, many other linux distros
use gnome as the standard desktop, i think there's a reason.


-- 
Best Regards,
David Shen

http://twitter.com/davidshen84/



[gentoo-user] firefox 3.6 cannot open folder from the d/l dialog box

2010-03-23 Thread Xi Shen
hi,

my system is gentoo amd64, kde 4.4, ff 3.6. after i finished d/l a
file i want to open the folder where the file is saved. but when i do
so, firefox says it cannot find an application to open that link. i am
not trying to open/launch it.

how can i fix this?


-- 
Best Regards,
David Shen

http://twitter.com/davidshen84/



[gentoo-user] wine cannot compile with jpeg flag

2010-03-15 Thread Xi Shen
hi,

i have enabled 'jpeg' flag in my /etc/make.conf, but i still cannot
compile wine with jpeg support, and i really need this feature.

the output of emerge -pv wine shows '(-jpeg)'. i think it is masked by
profile. i then created '/etc/portage/profile/package.use.force', and
putted 'app-emulation/wine jpeg' in it, but i still cannot compile
wine with jpeg support.

please help.


-- 
Best Regards,
David Shen

http://twitter.com/davidshen84/



Re: [gentoo-user] wine cannot compile with jpeg flag

2010-03-15 Thread Xi Shen
On Mon, Mar 15, 2010 at 11:35 PM, Arttu V. arttu...@gmail.com wrote:
 Create /etc/portage/profile/package.use.mask and type in
 'app-emulation/wine -jpeg' (note the minus) to locally unmask the jpeg
 flag for wine.

 I don't know how good idea that is, though, as
 /usr/portage/profiles/arch/amd64/package.use.mask has the following
 for wine (maybe you'd better check the relevant bugs noted for jpeg
 first?):

 # Samuli Suominen ssuomi...@gentoo.org (02 Feb 2009)
 # esd, bug 301824
 # mp3, bug 283860, 299490
 # jpeg, bug 283089, 303255, 299149
 # capi, 292938
 # ghoto2, 286563
 # scanner, 299505
 # hal, 299149
 app-emulation/wine capi esd gphoto2 hal jpeg mp3 scanner


thanks a lot :) it is compiling now


-- 
Best Regards,
David Shen

http://twitter.com/davidshen84/



Re: [gentoo-user] how can i get multiple chromium window on kde 4.4?

2010-03-12 Thread Xi Shen
thanks. i figured out have to start 2 chromium window :)

the way 'alt+f2' start a new application is not quite intuitive.


-- 
Best Regards,
David Shen

http://twitter.com/davidshen84/



[gentoo-user] how can i get multiple chromium window on kde 4.4?

2010-03-11 Thread Xi Shen
hi,

i can only start one chromium window. if i try to drag one tab off the
main window, i got the follow error message:

The program 'chrome' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadWindow (invalid Window parameter)'.


looks like this feature is not complete yet...do we have other way to
do this? having too many tabs in one window is terrible.


-- 
Best Regards,
David Shen

http://twitter.com/davidshen84/



Re: [gentoo-user] Re: [OT] gentoo on lenovo ideapad s10-3t tablet

2010-03-10 Thread Xi Shen
On Wed, Mar 10, 2010 at 5:23 PM, Neil Bothwick n...@digimed.co.uk wrote:
 On Wed, 10 Mar 2010 03:58:48 -0500, Willie Wong wrote:

  One thing i would worry is that how long will the atom cpu take to
  compile my whole gentoo ~amd64 + kde4.4 system?

 atom is not amd64.

 Some are. My Acer nettop has a 64 bit Atom, the 230 I think.


yes, later atom models supports intel's emt64, so you can compile
x86_64 system on it.



 --
 Neil Bothwick

 Confucius says He who posts with broken addresses gets no replies..




-- 
Best Regards,
David Shen

http://twitter.com/davidshen84/



Re: [gentoo-user] normal user do not have access to usb, and many other things

2010-03-10 Thread Xi Shen
On Wed, Mar 10, 2010 at 5:05 PM, Willie Wong ww...@math.princeton.edu wrote:
 I am rather curious what application you are using to get battery
 information that requires it being root.

 /proc/acpi/battery/BAT0/state is 0444 on my netbook/laptop since
 forever. I just use a bash function to parse it and display it on my
 ${PS1}.


my laptop is thinkpad t61, and i do not have /proc/acpi/battery/BATO/state... :(

now i have a damn wired good news. all the problems i talked about are
gone. :) i can access my usb disk, i can see the battery info.

yesterday, after i have joined those groups, i did not restart my
system. i just exit X, and log off, then log on, and i did not able to
access those resources. but today, after a cold start up, all the
problems are fixed without touching any configuration.

i think this is just a group and permission issue.


-- 
Best Regards,
David Shen

http://twitter.com/davidshen84/



Re: [gentoo-user] normal user do not have access to usb, and many other things

2010-03-10 Thread Xi Shen
On Wed, Mar 10, 2010 at 7:40 PM, Neil Bothwick n...@digimed.co.uk wrote:
 On Wed, 10 Mar 2010 19:28:26 +0800, Xi Shen wrote:

 i think this is just a group and permission issue.

 Logging out of and back into X should be enough for any group changes to
 take effect. I wonder if it could have been a module loading problem.



you said the group changes should take effect after i logged off. if
it is a module loading problem, i should be able to load those modules
and should be able use the resources yesterday.

i am now the member of the following group: disk wheel audio cdrom
video usb users plugdev, and i have restart my laptop again, and i
still have access to usb and battery info.


-- 
Best Regards,
David Shen

http://twitter.com/davidshen84/



Re: [gentoo-user] power management cannot change LCD brightness

2010-03-10 Thread Xi Shen
On Wed, Mar 10, 2010 at 4:32 PM, Damian damian.o...@gmail.com wrote:

 I don't know if you have an nvidia card. I had the same problem: I was
 only able to change the brightness from a text console. I solved the
 problem by installing nvclock (now I no longer need sunglases).

 I hope that helps.



thanks, i solved this problem without emerging the nvclock package. i
guess it is a group and permission issue. i have my accounts joined
these groups: disk wheel audio cdrom video usb users plugdev, and i
can change the lcd brightness with the kde widget.


-- 
Best Regards,
David Shen

http://twitter.com/davidshen84/



[gentoo-user] power management - no consolekit runtime support

2010-03-10 Thread Xi Shen
hi,

my system is gentoo ~amd64, kde 4.4. in the system settings/power
management/capabilities, it says 'consolekit was not found active on
your pc'. but i do have consolekit started before i start X. how to
fix this?


-- 
Best Regards,
David Shen

http://twitter.com/davidshen84/



Re: [gentoo-user] power management cannot change LCD brightness

2010-03-10 Thread Xi Shen
On Wed, Mar 10, 2010 at 8:10 PM, Xi Shen davidshe...@googlemail.com wrote:
 thanks, i solved this problem without emerging the nvclock package. i
 guess it is a group and permission issue. i have my accounts joined
 these groups: disk wheel audio cdrom video usb users plugdev, and i
 can change the lcd brightness with the kde widget.



i further identified the cause, and it is the 'plugdev' group. if the
user (include root) is not a member of this group, you will not be
able to use the kde widget to change the brightness of the lcd. an
even wired issue i found is that, after you joined in the group, you
will have to restart the system. log off and log on takes no effect.


-- 
Best Regards,
David Shen

http://twitter.com/davidshen84/



[gentoo-user] normal user do not have access to usb, and many other things

2010-03-09 Thread Xi Shen
hi,

i usually use my linux system with root account. i think it is not
good, so i created a normal user account for myself. but i found that
i cannot access many system resources, like usb disk, battery
informatiion, etc.

i am already in these groups: disk,wheel,audio,video,usb,haldaemon,plugdev.

now, i cannot get notification when i plug a new usb device. my
battery gadget says battery information is not available.

all there stuffs works fine if i log in with root account.


-- 
Best Regards,
David Shen

http://twitter.com/davidshen84/



Re: [gentoo-user] normal user do not have access to usb, and many other things

2010-03-09 Thread Xi Shen
On Tue, Mar 9, 2010 at 8:48 PM, Mick michaelkintz...@gmail.com wrote:
 Yes, that's how it *should* work, but it evidently isn't.  Maybe
 someone else more experienced in KDE can explain what happened and why
 the particular functions are now not available to plain users, or if
 you have another machine which has been running properly you could
 compare and contrast access rights between the two systems.

 Meanwhile, just as a test, you may want to logout of X, move the
 /root/.kde4 folder and /home/user/.kde4 somewhere else, then restart
 X as a plain user and see if these functions are working properly now.
  If not then I suspect the problem is not with these user specific
 configuration files but with the system KDE or X files.

 HTH.
 --
 Regards,
 Mick




i tried your idea, no doubt, it does not work. hope someone with more
system admin knowledge could help me :)


-- 
Best Regards,
David Shen

http://twitter.com/davidshen84/



Re: [gentoo-user] normal user do not have access to usb, and many other things

2010-03-09 Thread Xi Shen
On Tue, Mar 9, 2010 at 7:24 PM, Mick michaelkintz...@gmail.com wrote:

 You only have yourself to blame I'm afraid ...

 When you login to xorg using a root account some configuration files
 become owned by root.  A normal user can no longer access them.  Most
 desktops should be clever enough to allow users to create their own
 configuration files in their home directory - but I am not sure how
 you have yours set up.


if kde created configuration file when i log in as root, it should
only create the configuration files for my root, and should not affect
other users. so i guess those issues are not specific to kde, and my
account do not have access to those resources any way...


-- 
Best Regards,
David Shen

http://twitter.com/davidshen84/



Re: [gentoo-user] normal user do not have access to usb, and many other things

2010-03-09 Thread Xi Shen
On Wed, Mar 10, 2010 at 12:41 AM, Paul Hartman
paul.hartman+gen...@gmail.com wrote:
 Depending on your specific USB device you may need to edit UDEV rules
 to set proper permissions on the device node. For example I had to do
 that for normal users to read my digital camera.



i kanda thought about that for the usb stuff. but i have not resolve
it. may be i also need the pmout package to allow me to mount the usb
disk?

the big problem now is the battery information. i really have no idea
where to look for it. it is really dangerous to us a laptop without
knowing when the battery will die.


-- 
Best Regards,
David Shen

http://twitter.com/davidshen84/



Re: [gentoo-user] power management cannot change LCD brightness

2010-03-09 Thread Xi Shen
On Fri, Mar 5, 2010 at 4:33 PM,  roun...@hotmail.ru wrote:

 Hi,

 Whats the name of the tool and what use flags are set?
 It's most likely that you are going to need to re-emerge it, or some
 component that it depends upon if it is part of gnome or kde, etc.


i have acpi, hal, apm, pmu, nvidia, lm_sensors, etc. putted in the
make.conf. i think those use flags will apply to all apps. but i
really do not know which one to re-emerge.

 I use a little script with wmbutton along with some menu entries on
 blackboxwm.  Works nice.


i am using kde, BTW


-- 
Best Regards,
David Shen

http://twitter.com/davidshen84/



[gentoo-user] Re: [OT] gentoo on lenovo ideapad s10-3t tablet

2010-03-09 Thread Xi Shen
sorry for bringing this old topic on again. after i made the original
post, i realized that this product was not on the market yet :)

now, it is on the market, and i have seen some ubuntu guys playing
with it and figured out how to make all the devices work on ubuntu. i
want to know if any gentoo guy have tried it.

one thing i would worry is that how long will the atom cpu take to
compile my whole gentoo ~amd64 + kde4.4 system?


-- 
Best Regards,
David Shen

http://twitter.com/davidshen84/



Re: [gentoo-user] how to add custom compilation options?

2010-03-04 Thread Xi Shen
On Thu, Mar 4, 2010 at 5:14 PM, Neil Bothwick n...@digimed.co.uk wrote:
 This is C++ software, you need to add it to CXXFLAGS.


 --
 Neil Bothwick

 You can't teach a new mouse old clicks.


yes, i figured it out. thanks.


-- 
Best Regards,
David Shen

http://twitter.com/davidshen84/



Re: [gentoo-user] power management cannot change LCD brightness

2010-03-04 Thread Xi Shen
On Tue, Mar 2, 2010 at 5:58 PM, Xi Shen davidshe...@googlemail.com wrote:
 On Sun, Feb 28, 2010 at 9:32 PM,  roun...@hotmail.ru wrote:
 Hi,
 fisrt see if proc and your kernel has it right, do:
  cat  /proc/acpi/video/GFX0/DD02/brightness

echo 20 /proc/acpi/video/VID1/LCD0/brightness can change the
brightness of my lcd. but dragging the power management tool still
cannot work.


-- 
Best Regards,
David Shen

http://twitter.com/davidshen84/



Re: [gentoo-user] do we have a write-redirect snapshot system on linux?

2010-03-03 Thread Xi Shen
On Wed, Mar 3, 2010 at 4:57 PM, Helmut Jarausch
jarau...@igpm.rwth-aachen.de wrote:
 If I remember right, this can be achieved with aufs2 .

 Helmut.


it is a file system with branching feature. the behavior should looks
like snapshot, but it is on file system level. i am trying to look up
on on the block device level, like the lvm2. anyway, i will give a
try.

thanks


-- 
Best Regards,
David Shen

http://twitter.com/davidshen84/



[gentoo-user] nepomuk 4.4 is emerged with kde 4.3

2010-03-03 Thread Xi Shen
hi,

my system is gentoo amd64, kde 4.3. and i found nepomuk, along with
some other packages, are using 4.4 version. is it correct?

also, i have a problem with nepomuk. whenever i start X, it pops up
Nepomuk was not able to find the configured database backend
'sesame2'. Existing data can thus not be. the message is truncated,
and i have no way to read them all. how can i fix this?


-- 
Best Regards,
David Shen

http://twitter.com/davidshen84/



Re: [gentoo-user] nepomuk 4.4 is emerged with kde 4.3

2010-03-03 Thread Xi Shen
On Thu, Mar 4, 2010 at 8:41 AM, Alan McKinnon alan.mckin...@gmail.com wrote:
 On Thursday 04 March 2010 02:27:40 Xi Shen wrote:
 hi,

 my system is gentoo amd64, kde 4.3. and i found nepomuk, along with
 some other packages, are using 4.4 version. is it correct?

 No.

 Nepomuk is slotted like KDE. I suspect you are running a stable system and
 have added nepomuk to packages.keywords and it is now pulling in latest
 ~arch nepomuk


oh, i guess it all my fault. i tried to emerge kde 4.4 once, but
failed. i did not have time to resolve the error. so i rolled back to
kde 4.3, and did a simple emerge -uvND world. i think this did not
help me roll back the packages that were updated when i was trying to
emerge kde 4.4.

how should i roll back those miss updated packages back to 4.3? or can
someone tell me if kde 4.4 is pretty stable to use for desktop?


-- 
Best Regards,
David Shen

http://twitter.com/davidshen84/



[gentoo-user] how to add custom compilation options?

2010-03-03 Thread Xi Shen
hi,

i want to emerge the crypto++ package with the
-DCRYPTOPP_DISABLE_ASM option. i tried to add it into the CFLAGS
variable, but it did not work. please tell me how to do this.


-- 
Best Regards,
David Shen

http://twitter.com/davidshen84/



Re: [gentoo-user] power management cannot change LCD brightness

2010-03-02 Thread Xi Shen
On Sun, Feb 28, 2010 at 9:32 PM,  roun...@hotmail.ru wrote:
 Hi,
 fisrt see if proc and your kernel has it right, do:
  cat  /proc/acpi/video/GFX0/DD02/brightness

i found a similar file at /proc/acpi/video/VID1/LCD0/brightness. i
think they are the same :)


 should give something like

 levels:  13 25 38 50 63 75 88 100
 current: 13

 if that works, check permissions on the file and try to echo a level
 number to it..

 echo 13  /proc/acpi/video/GFX0/DD02/brightness

 it it changes then its down to the app, check the use flags of the app,
 and see whats missing.


what use flag should i check? i have acpi already, and just have apm,
pmu, nvidia, lm_sensors added. i guess this should be everything.

 good luck


 --
 Regards,
 Roundyz





-- 
Best Regards,
David Shen

http://twitter.com/davidshen84/



[gentoo-user] do we have a write-redirect snapshot system on linux?

2010-03-02 Thread Xi Shen
hi,

both lvm2 and zfs are copy-on-write snapshot system. do we have a
write-redirect snapshot system on linux?


-- 
Best Regards,
David Shen

http://twitter.com/davidshen84/



[gentoo-user] power management cannot change LCD brightness

2010-02-27 Thread Xi Shen
hi,

my system is gentoo amd64, kde 4.3. my laptop is thinkpad t61. after
some configure in the kernel, and reboot with the new kernel, i can
use the Fn+Home, and Fn+End to change the brightness of my lcd. but
when i tried to change the lcd brightness by dragging the handle on
the 'power management' tool, nothing happens. what else should i
configure?


-- 
Best Regards,
David Shen

http://twitter.com/davidshen84/



Re: [gentoo-user] how to emerge mldonkey?

2010-02-22 Thread Xi Shen

 what should i do? i never got questioned when emerging something.

 emerge dev-lang/ocaml


i already have dev-lang/ocaml-3.11.1 emerged. should i downgrade it to
a lower version?


-- 
Best Regards,
David Shen

http://twitter.com/davidshen84/



[gentoo-user] Re: how to emerge mldonkey?

2010-02-22 Thread Xi Shen
ok. problem solved. i downgraded the dev-lang/ocaml to 3.10.2, then
run ocaml-rebuild.sh.


-- 
Best Regards,
David Shen

http://twitter.com/davidshen84/



  1   2   3   >