2006年10月12日
NTP設定
玄箱の内蔵クロックは精度が悪くNTPだけだと平気で狂ってくるらしいけど、うちの一代目は問題なく動いているので、しばらく様子を見てみます。
1.関連パッケージのインストール
ricopheria:~# apt-get install ntp ntpdate ntp-doc ntp-simple
2.NTPサーバの設定
ricopheria:~# vi /etc/ntp.conf
海外のNTPサーバらしいpool.ntp.orgが設定されているので、国内のものに変更
# ntp1.tohoku.ac.jp/東北大学
server 130.34.11.117
# eric.nc.u-tokyo.ac.jp/東京大学
server 130.69.251.23
3.プロセスの再起動
ricopheria:~# /etc/init.d/ntp-server restart
Restarting NTP server: ntpd... done.
4.NTPサーバの同期確認
ricopheria:/var/run# ntpq -pn
remote refid st t when poll reach delay offset jitter
============================================================
*130.34.11.117 .GPS. 1 u 5 64 1 32.074 19.366 0.002
+130.69.251.23 .GPS. 1 u 4 64 1 23.564 19.784 0.002
127.127.1.0 LOCAL(0) 13 l 2 64 1 0.000 0.000 0.002
そのうち誤差が小さくなるでしょう。
- by
- at 22:06









