時間合わせで有名ものは
桜時計ですが、もちろん
UNIXの世界でもNTPは使えます。Vine Linuxにはxntpが入っているようです。
まずは、uid=0の状態で
とすると、大きくずれた時間があわされます。あとは/etc/ntp.conf を編集してntpd(或いはxntpd)を走らせます。
# 試行サービス
server 210.173.160.27 # ntp1.jst.mfeed.ad.jp
server 210.173.160.57 # ntp2.jst.mfeed.ad.jp
server 210.173.160.87 # ntp3.jst.mfeed.ad.jp
# ECCで使われているようだ。
server 130.69.251.23 # ntp.nc.u-tokyo.ac.jp
server 133.31.30.8 # sutns.sut.ac.jp
server 133.40.41.175 # gpsntp.miz.nao.ac.jp
# digすればわかるが、ここのを使う時はちょっと注意すべき点がある
# 以下は複数並べるべきだが、restrictが...
# server ntp.ring.gr.jp
restrict 210.173.160.27
restrict 210.173.160.57
restrict 210.173.160.87
restrict 130.69.251.23
restrict 133.31.30.8
restrict 133.40.41.175
#restrict ntp.ring.gr.jp
# NAT内のクライアント
restrict 192.168.1.0 mask 255.255.255.0 notrust nomodify notrap
restrict 127.0.0.1
fudge 127.127.1.0 stratum 5
server 127.127.1.0
driftfile /etc/ntp.drift
logfile /var/log/ntp.log
福岡大学のNTPServerを使うのはもうやめましょう。 Trafficの増大がすごいそうです。最近は、ntp.ring.gr.jp でもサービスしているので、これを使うのもよいでしょう。 上の例では複数を示しましたが、実際は一つで十分のことが多いです。 また、クライアントそれぞれで上位のServerを指すようなことは止めましょう。
Rule of Open-Source Programming #8:
Open-Source is not a panacea.
-- Shlomi Fish
-- "Rules of Open Source Programming"
So we did version 2.0. This was an attempt to add some of the most obviously
needed features. While David worked on version 2.0 we honestly didn't think it
was worth that much effort, so he tended to do things in what you might call
an "expedient" fashion rather than, say, an "elegant" fashion. Certain, ahem,
design issues in the original code were allowed to fester. There were two
complete sets of nearly identical code for drawing the main bug-editing page.
SQL statements were scattered throughout the HTML hither and yon, to and fro,
pho and ton. Our HTML was creaky and designed for those ancient browsers that
were so buggy they could crash loading about:blank.
Yeah, it worked brilliantly, we've been at zero known bugs for a while now.
But inside, the code was, to use the technical term, a "big mess." Adding new
features was a hemorrhoid. To add one field to the central bug table would
probably require 50 modifications, and you'd still be finding places you
forgot to modify long after you bought your first family carplane for those
weekend trips to your beach house on Mars.
-- Joel Spolsky
-- Rub a dub dub ( http://www.joelonsoftware.com/articles/fog0000000348.html )