Public domain
cp /usr/share/zoneinfo/Asia/Tehran /etc/localtime
# vi /etc/rc.conf
ntpdate_enable="YES"
ntpdate_flags="-s -b -p 8 0.pool.ntp.org 1.pool.ntp.org 2.pool.ntp.org"
# ntpdate -s -b -p 8 0.pool.ntp.org 1.pool.ntp.org 2.pool.ntp.org
# vi /etc/ntp.conf
server 0.pool.ntp.org
restrict 0.pool.ntp.org
server 1.pool.ntp.org
restrict 1.pool.ntp.org
server 2.pool.ntp.org
restrict 2.pool.ntp.org
server 127.127.1.0
fudge 127.127.1.0 stratum 10
restrict default noquery nomodify
restrict 127.0.0.1
multicastclient
broadcastdelay 0.008
driftfile /var/db/ntp.drift
# vi /etc/rc.conf
ntpd_enable="YES"
ntpd_flags="-p /var/run/ntpd.pid"
# /etc/rc.d/ntpd start
# ntpq -p
BY: Pejman Moghadam
TAG: ntp
DATE: 2008-06-07 17:21:09