[CentOS] http request, which command is good for testing

2010-12-06 Thread adrian kok
Hi all

I just know there are curl / lwp-request, lynx and elinks

Which command is good for http testing?

Thank you


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] ls this bandwidth package availblale in Centos

2010-09-30 Thread adrian kok
Hi

ls the if top package availblale in Centos?

http://www.ex-parrot.com/~pdw/iftop/

Thank you


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] help about rsync remote port and mail

2010-09-09 Thread adrian kok
Hi all

How can I define the rsync remote port?

and any existing script to send out mail after completing rsync

Thank you


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] need help about top command and this deb ug message

2010-08-11 Thread adrian kok
Hi all

When I run top command, it suddenly shows one message and few second shows 
another one


debug2: channel 0: window 31129 sent adjust 34407

What is this?

Thank you




___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] need help about top command and this deb ug message

2010-08-11 Thread adrian kok
Yes, I connect the host via ssh and run top

Why it happens in this host only?

ls it the problem?

Thank you

--- On Wed, 8/11/10, Alexander Dalloz ad+li...@uni-x.org wrote:

 From: Alexander Dalloz ad+li...@uni-x.org
 Subject: Re: [CentOS] need help about top command and this deb ug message
 To: CentOS mailing list centos@centos.org
 Date: Wednesday, August 11, 2010, 7:57 PM
  Hi all
 
  When I run top command, it suddenly shows one message
 and few second shows
  another one
 
 
  debug2: channel 0: window 31129 sent adjust 34407
 
  What is this?
 
  Thank you
 
 You are connected to the host you run top on using an SSH
 login with an
 increased verbosity level?
 
 Alexander
 
 
 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos
 


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] bash shell in xwin

2010-07-27 Thread adrian kok
Hi

I type the password in bash shell. but it can be displayed what I typed

why?

Thank you


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] need help: about remove space

2010-04-30 Thread adrian kok
Hi all

I have big file as below 
and would like to know how many line eg: wc -l file
but can't figure out how to know

If I type wc -l file, I only get the 1023 but it includes the space 
When I use cat file | tr -d \r \n. it gives me adrian alice..
I need it as fileB and then wc -l fileB.

Thank you so much

file


adrian

alice


Patrick



file B
==

adrian
alice
Patrick 



___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] generate certiciate help

2010-03-25 Thread adrian kok
Hi

I try to use cd /etc/pki/tls/certs; make sendmail.pem or cd 
/usr/share/ssl/certs; make sendmail.pem
to make certificate 

but I don't have this path /usr/share/ssl/

I check I have openssl rpm installed

How can I do it?

Thank you




Send instant messages to your online friends http://uk.messenger.yahoo.com 
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] directory and file permission help

2010-02-05 Thread adrian kok
Hi 

I move a zip file from window to linux

but all permission of folder and files are kept in 700 

How can I change it one time? I don't need to change directory under directory 
to change as

folder as 755
and 
files as 644

Thank you for your help

Send instant messages to your online friends http://uk.messenger.yahoo.com 
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] pls help about changing network card but assign to another ethx

2010-02-04 Thread adrian kok
Hi 

I change eth1 from realtek to dlink but the centos is showing eth2 instead of 
eth1

In another version of linux, I can change 70-persistent-net.rules but

I check /etc/udev/rules.d/70-persistent-net.rules but it doesn't  have the file 
70-persistent-net.rules

please help 

Thank you

Send instant messages to your online friends http://uk.messenger.yahoo.com 
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] CentOS Directory Server 8.0

2010-01-30 Thread adrian kok
Hi

What is the different between Centos 5.4 and CentOS Directory Server 8.0?

How can I download this CentOS Directory Server 8.0?

Thank you



Send instant messages to your online friends http://uk.messenger.yahoo.com 
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] movie software

2010-01-25 Thread adrian kok
Hi

Any open source software can open quick time?

and can covert from quick to other movie also?

Thank you

Send instant messages to your online friends http://uk.messenger.yahoo.com 
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] mail program question

2010-01-22 Thread adrian kok
Hi

ls postfi same as sendmail / exim ?

any mail program better to configure/manage

Thank you so much

Send instant messages to your online friends http://uk.messenger.yahoo.com 
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] tar exclude command

2010-01-07 Thread adrian kok
Hi 

I have problem in tar command

Can you help?

tar -cv --exclude /var/named/chroot/proc/* -zf backup.tar.gz /var/named 

/var/named/chroot/proc/net/route
/var/named/chroot/proc/net/udp
/var/named/chroot/proc/net/tcp
tar: Error exit delayed from previous errors

Thank you

Send instant messages to your online friends http://uk.messenger.yahoo.com 
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] don't understand this command

2009-12-18 Thread adrian kok
Hi

I mistype this shell#/rm a.tar.gz

it works but it won't confirm and the file is remove

why?

Thank you

Send instant messages to your online friends http://uk.messenger.yahoo.com 
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] chroot question - can you help?

2009-11-07 Thread adrian kok
Hi 


I install new linux in sda and try to recover the boot partition in sdb

I mount it /dev/sdb1 /bootpartion

but I can't chroot into it and grub-install

Can you help

[r...@host ~]# chroot /bootpartion

chroot: cannot run command `/bin/bash': No such file or directory

Send instant messages to your online friends http://uk.messenger.yahoo.com 
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] bind question, please help

2009-10-07 Thread adrian kok
Hi 

I don't know how to let the dns as zone and also enquriy in local network
please help

if this. the outside and inside can use this server to enquiry zone, but can't 
enquriy non zone. but how can I let it enquiry non zone restrict in local 
network.

Thank you

allow-query { any; };
recursion no;



Send instant messages to your online friends http://uk.messenger.yahoo.com 
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] bind question, please help

2009-10-07 Thread adrian kok
in my understanding:


1/ this allow internal network can query zone and outside
allow-query { localhost; internal-network; };
recursion yes;


2/ this allow internal network can query zone but not outside

   allow-query { localhost; internal-network; };
recursion no;

i would like this dns as let outside query zone and allow internal network to 
equiry zone and outside.
how can i do it?

Thank you








--- On Thu, 10/8/09, Joseph L. Casale jcas...@activenetwerx.com wrote:

 From: Joseph L. Casale jcas...@activenetwerx.com
 Subject: Re: [CentOS] bind question, please help
 To: 'CentOS mailing list' centos@centos.org
 Date: Thursday, October 8, 2009, 3:54 AM
 I don't know how to let the dns
 as zone and also enquriy in local network
 please help
 
 if this. the outside and inside can use this server to
 enquiry zone, but can't enquriy non zone. but how can I let
 it enquiry non zone restrict in local network.
 
 I am not following you well here, but I am guessing you
 have the following issue:
 If you match a view and get denied, even though a
 proceeding view may allow/contain
 what you want, such as a zone or the allowance of
 recursion, the deny/non-existence
 in an initial view will tank the lookup.
 
 Always catches me initially:)
 
 jlc
 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos
 

Send instant messages to your online friends http://uk.messenger.yahoo.com 
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] any softwares can capture port traffic in graph

2009-02-27 Thread adrian kok

Hi

Any softwares can capture traffic in graph?

eg: port 80

Thank you 

Send instant messages to your online friends http://uk.messenger.yahoo.com 
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] any softwares can capture port traffic in graph

2009-02-27 Thread adrian kok

Hi Les

You are right

That I would like to get more info about it

Could you send more info eg: website how to configure

Thank you

--- Les Mikesell lesmikes...@gmail.com wrote:

 Fajar Priyanto wrote:
  On Fri, Feb 27, 2009 at 9:03 PM, adrian kok
 adriankok2...@yahoo.com.hk wrote:
  Any softwares can capture traffic in graph?
 
  eg: port 80
 
  
  MRTG, Cacti, Zabbix, Zenoss, Webalizer, Awstats,
 etc.
 
 The snmp based tools won't separate usage by port. 
 Port 80 is a special 
 case since you may be able to parse usage from web
 logs and even get 
 virtual host details.  For generic usage-by-port you
 need something like 
 ntop that acts as a sniffer and can summarize in
 various ways.
 
 -- 
Les Mikesell
 lesmikes...@gmail.com
 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos
 


Send instant messages to your online friends http://uk.messenger.yahoo.com 
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] DNS

2009-01-27 Thread adrian kok
Hi all

I am setting dns and trying to ping my domain
the 1st reply is ok and solve the ip address

but 2nd line to end, it reponses to my upstream info
instead of www.mydomain.com

What wrong of my dns?

Thank you

linux ~ # ping www.mydomain.com
PING www.mydomain.com (171.203.20.173) 56(84) bytes of
data.
64 bytes from 171203020173.upstream.com
(171.203.20.173): icmp_seq=1 ttl=43 time=291 ms
64 bytes from 171203020173.upstream.com
(171.203.20.173): icmp_seq=2 ttl=43 time=290 ms


Send instant messages to your online friends http://uk.messenger.yahoo.com 
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] DNS

2009-01-27 Thread adrian kok
Sorry. I use fake name

host command can return right ip address

My question is

I am curious why the 2nd line is 

171203020173.upstream.com instead of www.mydomain.com
?

It should be. right?

64 bytes from www.mydomain.com (171.203.20.173):
icmp_seq=1 ttl=43 time=291 ms

Thank you

--- Ralph Angenendt ra+cen...@br-online.de wrote:

 adrian kok wrote:
  linux ~ # ping www.mydomain.com
  PING www.mydomain.com (171.203.20.173) 56(84)
 bytes of
  data.
  64 bytes from 171203020173.upstream.com
  (171.203.20.173): icmp_seq=1 ttl=43 time=291 ms
  64 bytes from 171203020173.upstream.com
  (171.203.20.173): icmp_seq=2 ttl=43 time=290 ms
 
 Something is severly broken on your side:
 
 [angen...@shutdown ~]$host www.mydomain.com
 www.mydomain.com is an alias for
 www.mydomain.com.akadns.net.
 www.mydomain.com.akadns.net has address
 66.150.120.131
 www.mydomain.com.akadns.net has address
 216.34.94.184
 [angen...@shutdown ~]$
 
 Ralph
  ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos
 


Send instant messages to your online friends http://uk.messenger.yahoo.com 
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] proftpd question

2009-01-07 Thread adrian kok
Hi

I am using proftpd in 5.2

When I change the user from /home/userA to /ftp/userA
in this file /etc/passwd

eg:
userA:x:502:502::/ftp/userA:/bin/bash

After change this passwd file, I can't logon as ftp

but ssh is fine

Can you help?

Thank you



Send instant messages to your online friends http://uk.messenger.yahoo.com 
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] network interface

2008-12-24 Thread adrian kok
it is up now

why it shows RTNETLINK answers: File exists

# ifup eth0:2 up
RTNETLINK answers: File exists
RTNETLINK answers: File exists

Thank you


--- Robert Moskowitz r...@htt-consult.com wrote:

 adrian kok wrote:
  Hi all
 
  How can I bring up eth0:2 only
 
  ifconfig eth0:2 up is not working

 
 have you tried ifup eth0:2 ?
 
  I have to use service network restart
 
  But it restarts all network interfaces that I
 don't
  want
 
  Thank you
 
 
  Send instant messages to your online friends
 http://uk.messenger.yahoo.com 
  ___
  CentOS mailing list
  CentOS@centos.org
  http://lists.centos.org/mailman/listinfo/centos
 

 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos
 


Send instant messages to your online friends http://uk.messenger.yahoo.com 
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] need help to play video

2008-12-24 Thread adrian kok
Hi 

I click the DVD amd there is an error 

The playback of this movie requires a MPEG-2 System
Stream demuxer plugin which is not installed.

Which rpm I can install to play the video?

Thank you

Send instant messages to your online friends http://uk.messenger.yahoo.com 
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] network interface

2008-12-23 Thread adrian kok
Hi all

How can I bring up eth0:2 only

ifconfig eth0:2 up is not working

I have to use service network restart

But it restarts all network interfaces that I don't
want

Thank you


Send instant messages to your online friends http://uk.messenger.yahoo.com 
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] any ima ge software suggestion

2008-11-21 Thread adrian kok
Hi 

I am trying to clone harddrive

eg: centos, freebsd, openbsd.

any ima ge software suggestion for different os

Thank you

Send instant messages to your online friends http://uk.messenger.yahoo.com 
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] program can check memory in application?

2008-11-05 Thread adrian kok
Hi

Any program can check the application is using how
much memory?

Thank you

Send instant messages to your online friends http://uk.messenger.yahoo.com 
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] snmp question v3

2008-10-17 Thread adrian kok
Hi

Do you know whether snmpwalk can work in v3?

if not, how can I get the snmp v3 info

Thank you

Send instant messages to your online friends http://uk.messenger.yahoo.com 
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] script help

2007-11-02 Thread adrian kok
I run it but it has error. 

sed 's/^dir-192\.168/dir-10\.0/'`
sed: read error on dir-192.168.0.31: Is a directory



--- Toby Bluhm [EMAIL PROTECTED] wrote:

 Toby Bluhm wrote:
  adrian kok wrote:
  Hi Phil
 
  thank you
 
  But I have several hundred those pattern
 directories!
 
  I did think to cat those directories in a file
  olddir
 
  eg:
 
  dir-192.168.30.0   dir-192.168.30.144
 dir-192.168.30.184
  
 
  and sed 's/dir-192.168/dir-10.0/g' olddir 
 newdir
 
  but i don't know how to move
  rename the directories in olddir to newdir
 
  Thank you again
 
 

 
  Assuming dir-192.168*  are all in one directory
 level, cd to that dir:
 
  for olddir in `ls -1 | grep dir-192.168`
  do
  newdir=`echo $olddir | sed
 's/^dir-192.168/dir-10.0/'`
  mv $olddir $newdir
  done
 
 
 
  That sed line should be: 
 's/^dir-192\.168/dir-10\.0/'`
 
 
 -- 
 Toby Bluhm
 Midwest Instruments Inc.
 30825 Aurora Road Suite 100
 Solon Ohio 44139
 440-424-2240
 
 
 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos
 


Send instant messages to your online friends http://uk.messenger.yahoo.com 
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] script help

2007-11-01 Thread adrian kok
Hi Phil

thank you

But I have several hundred those pattern directories!

I did think to cat those directories in a file
olddir

eg:

dir-192.168.30.0   
dir-192.168.30.144 
dir-192.168.30.184


and sed 's/dir-192.168/dir-10.0/g' olddir  newdir

but i don't know how to move 

rename the directories in olddir to newdir

Thank you again



--- Phil Schaffner [EMAIL PROTECTED]
wrote:

 On Fri, 2007-11-02 at 02:22 +0800, adrian kok wrote:
  Hi all 
  
  how can I have script to rename the following
  directory pattern from
  
   
  
  from 
  
  dir-192.168.30.0   
  dir-192.168.30.144 
  dir-192.168.30.184
  
  
  To:
  
  
  dir-10.0.30.0   
  dir-10.0.30.144 
  dir-10.0.30.184
 
 If you are just renaming directories, or files, and
 not files in
 directories, the following should work:
 
 for i in 0 144 184 ; do mv dir-192.168.30.$i
 dir-10.0.30.$i ; done
 
 Or in a bit prettier form:
 
 for i in 0 144 184
 do
   mv dir-192.168.30.$i dir-10.0.30.$i
 done
 
 
 Phil
 
 
 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos
 


Send instant messages to your online friends http://uk.messenger.yahoo.com 
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos