On Sep 30, 2007, at 12:48 AM, Bruce Cran wrote:
Brian A. Seklecki wrote:
To set time:
$ sudo /usr/sbin/ntpdate pool.ntp.org
29 Sep 23:48:31 ntpdate[9404]: adjust time server 66.250.45.2 offset
0.001289 sec
ntpdate is deprecated, you should use "ntpd -q" instead if you want
ntpd to set the time once then exit. From ntpdate(8):
Note: The functionality of this program is now available in the ntpd(8)
program. See the -q command line option in the ntpd(8) page.
After a
suitable period of mourning, the ntpdate utility is to be retired
from
this distribution.
Also, ntpd wil refuse to update the time if the delta is more than
1000s by default, but you can use the -g option to override this. To
set the date to within a reasonable delta, use something like "date
200709282027". If you want to set the time more accurately using NTP,
edit /etc/ntp.conf and add "server pool.ntp.org" to it. Save it then
run "ntpd -q". If you need to configure the time zone, an easy way to
do this is to run sysinstall and select "Configuration --> Time Zone".
To date info about your timezone settings:
$ zdump /etc/localtime /etc/localtime Sat Sep 29 23:49:19 2007 EDT
Options:
$ ls /usr/shaoneinfo/ | egrep -v "^d"
total 78
-rw-r--r-- 1 root wheel 755 Aug 22 11:11 CET
-rw-r--r-- 1 root wheel 837 Aug 22 11:11 CST6CDT
-rw-r--r-- 1 root wheel 679 Aug 22 11:11 EET
-rw-r--r-- 1 root wheel 56 Aug 22 11:11 EST
-rw-r--r-- 1 root wheel 837 Aug 22 11:11 EST5EDT
[...]
To set timezone:
$ ln -s /share/zoneinfo/$WHATEVER /etc/localtime
For you probably PST8PDT.
For your best NTP experience, use OpenNTP from
ports: /usr/ports/net/openntpd/
~BAS
On Sat, 2007-09-29 at 20:33 -0700, jekillen wrote:
Thanks, more very helpful info;
Jeff K
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"