How to view TCP advertised window by using tcpdump?

2008-09-04 Thread EdwardKing
I use TCP client to connect daytimesesrver which port is 13,I want to know how to use tcpdump to view TCP advertised window? Where is the TCP advertised window in the tcpdump result? Thanks --

tcpdump question

2008-08-29 Thread EdwardKing
There is a server and a clinet,the use TCP and port is ,server and client is the same machine. I use following step: 1.client send a hello to server 2.server return a hello to client 3.stop client 4.stop server I use tcpdump to watch tcp package,result is follows: 15:47:15.875447 IP (tos

Where is wrong with tcpdump?

2008-08-28 Thread EdwardKing
I want to watch ip:172.0.10.2 port:19 TCP information,so I use following command: #tcpdump tcp port 19 host 172.0.10.2 tcpdump: syntax error Why? How to do it? Thanks -- Confidentiality Notice: The

Why tcpdump don't work?

2008-08-28 Thread EdwardKing
I have a server and a client,they use TCP to communication.For example,when client send a message to server,the server return the same message to client,then client show it.When client or server shutdown,it will send FIN.So I want to use tcpdump to watch it. The server and client in the same

How to set TCP parameter?

2008-08-19 Thread EdwardKing
How to set TCP parameters,such as tcp_time_wait_interval? Thanks -- Confidentiality Notice: The information contained in this e-mail and any accompanying attachment(s) is intended only for the use of the

Re: How to set TCP parameter?

2008-08-19 Thread EdwardKing
Yes,I want to modify spent in the TIME_WAIT state? How to realize it? I use sysctl to view TCP parameter,but it failed $sysctl TCP_TIME_WAIT_INTERVAL sysctl: unknown oid 'TCP_TIME_WAIT_INTERVAL' Where is wrong? - Original Message - From: Patrick Mahan [EMAIL PROTECTED] To: EdwardKing

PGP export question

2008-08-14 Thread EdwardKing
I use gpg 1.4.9, $gpg --list-keys /home/edward/.gnupg/pubring.gpg then I want to export pubkey, $gpg -armor --export keyID pubkey.asc gpg:WARNING: nothing exported This content of pubkey.asc is empty,why I can't export the pubkey? Thanks

Re: How to visit U disk?

2008-08-13 Thread EdwardKing
- From: Polytropon [EMAIL PROTECTED] To: EdwardKing [EMAIL PROTECTED] Cc: FreeBSD freebsd-questions@freebsd.org Sent: Wednesday, August 13, 2008 6:34 PM Subject: Re: How to visit U disk? On Tue, 12 Aug 2008 08:53:18 +0800, EdwardKing [EMAIL PROTECTED] wrote: I want to use U disk which format is FAT32

SSH question

2008-08-13 Thread EdwardKing
I use SSH to remote FreeBSD $ssh [EMAIL PROTECTED] password: Then I SSh to suspend client in that remote machine: $~ /home/tom: Permission denied Permission denied? Why? How to do that? --

How to start File Manager?

2008-08-12 Thread EdwardKing
I use FreeBSD7.0, I start graphics screen #startx Then I find one login window,two xterm windows and one clock window. I want to know whether BSD has File Manager window,such as Unix CDE? If has,how to start File Manager? Which command can I use? Thanks

How to visit U disk?

2008-08-12 Thread EdwardKing
I want to use U disk which format is FAT32,I don't know how to visit U disk,my dev directory is follows: #cd /dev #ls ... usb usb0 usb1 ... How to do it? Thanks in advance -- Confidentiality Notice: The

How to compile a c file into out file?

2008-07-24 Thread EdwardKing
I compile a c file,like follows: $gcc other1.obj other2.obj myfile.c Then it create a a.out file.my question is how to create a file named myfile.out instead of name a.out? -- Confidentiality Notice:

Re: How to change process status?

2008-07-22 Thread EdwardKing
I use FreeBSD7.0 $./a.out $ There is show nothing,like such as [1] 27537 Why? - Original Message - From: Fernando ApesteguĂ­a [EMAIL PROTECTED] To: EdwardKing [EMAIL PROTECTED] Cc: FreeBSD freebsd-questions@freebsd.org Sent: Monday, July 21, 2008 2:32 PM Subject: Re: How to change

How to change process status?

2008-07-21 Thread EdwardKing
I make a process running in background,like follows: $./a.out I want to know how to change a.out from backgound to foreground and how to stop it? Thanks -- Confidentiality Notice: The information

How to delete mail letter

2008-07-13 Thread EdwardKing
I use mail command to read mail and quit mail,like follows: $mail ?1 ?q Save 1 message in mbox Then I use mail command again $mail No mail for edward How to delete my letter in mbox which have read? Thanks

inetd[860]: ssh/tcp: bind: Address already in use

2008-07-11 Thread EdwardKing
I use FreeBSD7.0,I find some time it raise following information: inetd[860]: ssh/tcp: bind: Address already in use I look up my /etc/rc.conf file,it contains: inetd_enable=YES sshd_enable=YES /etc/inetd.conf file contains: sshstream tcpnowait root /usr/sbin/sshd sshd -i -4 #ssh

Re: mail not work

2008-07-11 Thread EdwardKing
* Did you do anything to enable Sendmail (the default mail transfer agent)? It's enabled by default on localhost. How to make FreeBSD mail to work? - Original Message - From: Giorgos Keramidas [EMAIL PROTECTED] To: EdwardKing [EMAIL PROTECTED] Cc: freebsd-questions@freebsd.org

Why can't ping

2008-07-10 Thread EdwardKing
I configure ed0 when I install FreeBSD7.0,like follows: Host:test.example.com Domain:test.com IPv4 GateWay: 172.18.0.1 Name server: 172.18.0.250 IPv4 Address: 172.18.0.19 Netmask:255.255.255.0 Then I Ping itself,like follows: #ping 172.18.0.19 Then result is failure: ping: sendto: No

how to set vi line number?

2008-07-10 Thread EdwardKing
my first question is whether vi can show line number,such as 1: 2: 3:? my second question is whether vi support c syntax,such as show #include with other different color? How to modify to realize above function? thanks

mail not work

2008-07-10 Thread EdwardKing
I use mailx command,such as Tom to Kate,I like following command: $mail Kate Subject:Hello Hello world (press Ctrl+D) EOT Then I use user Kate to login,and check mail, $mail No mail for Kate Why I can't receive letter? where is wrong? Thanks

Re: mail not work

2008-07-10 Thread EdwardKing
* Do you have a local user whose login name is `Kate'? I have a local user whose login name is `Kate' * Did you do anything to enable Sendmail (the default mail transfer agent)? How to enable Sendmail? * What does the `/var/log/maillog' file contain? I have maillog,its contains is follows,

locate:database too small

2008-07-10 Thread EdwardKing
I use locate command,like follows: $locate mail locate:database too small: /var/db/locate.database I know it need to update from document: /usr/libexec/locate.updatedb ,but I don't know how to execute above command,I am a newer to Unix,how to do it? Thanks