It is a bit difficult than linux OS.
edit your root login profile
# vi /root/.profile
PATH=/usr/bin:/usr/sbin:/usr/local/sbin:/usr/local/bin:/usr/ccs/bin:/usr/ucb/bin:/usr/sfw/bin
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib:/usr/sfw/lib
export PATH LD_LIBRARY_PATH
PS1="\u@\H# "
change root user shell to /usr/bin/bash
# passwd -s /usr/bin/bash root
download libpcap & tcpdump
configure and make libpcap;
./configure && gmake && gmake install
then tcpdump
./configure && gmake && gmake install
don't suggest you to run downloaded binary code directly.
阅读(2512) | 评论(0) | 转发(0) |