時間合わせで有名ものは
桜時計ですが、もちろん
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を指すようなことは止めましょう。
I may not be totally perfect, but parts of me are excellent. Ashleigh Brilliant -- Ashleigh Brilliant -- I May Not Be Totally Perfect, but Parts of Me Are Excellent ( http://www.amazon.com/Totally-Perfect-Excellent-Brilliant-Thoughts/dp/0912800674/ref=pd_sim_b_1 ) Chuck Norris wrote a complete Perl 6 implementation in a day, but then destroyed all evidence with his bare hands, so no-one will know his secrets. -- Shlomi Fish -- Chuck Norris Facts by Shlomi Fish ( http://www.shlomifish.org/humour/bits/facts/Chuck-Norris/ )