PCと映画とテレビと、2nd(終)

web2web.eek.jp(2nd) から 引っ越し。 今後はmono-works.com/blog(3rd)へ

Categories
Archives
Selected Entries
Recent Comments
Recent Trackbacks
Other

Ubuntu設定|NTP

自鯖機の時刻を見てみると、2分ほどずれてた。
なんかデフォルトではntpは入らないようなので、ググってntpを入れてみた。
$ sudo ntp-get atp-get install ntp

するすると導入(CD-Rから)

次いで /etc/ntpd.conf を開き、NTPサーバのところ
# You do need to talk to an NTP server or two (or three).
server ntp.ubuntu.com

を下記に変更
# You do need to talk to an NTP server or two (or three).
# server ntp.ubuntu.com
server 自プロバイダのNTPサーバ
server ntp.nict.jp

ubuntuのNTPサーバをコメントアウトし、自ISPのNTPサーバと「ntp.nict.jp」を追加。

ntpサーバを再起動
$ sudo /etc/init.d/ntp restart

確認
$ sudo ntpq -p
remote refid st t when poll reach delay offset jitter
==============================================================================
*ntp2.plala.or.j 202.234.233.109 4 u 10 64 377 37.740 12.621 34.446
ntp-a2.nict.go. .INIT. 16 u - 64 0 0.000 0.000 0.000

時刻も同期されたし、okみたい。

◆関連ログ:「Ubuntu設定」ネタ
デジタル的話 > Linux的話 | comments (2) | trackbacks (0)

COMMENTS

yshimo | 2008/04/20 06:10 PM
| sudo apt-get ・・・

ご指摘どうも、ありがとうございます。 m(_ _)m
自分は、最近、CentOSにしたのですが、8.04が出たらまたUbuntuに戻そうかと思ってます。
Dai | 2008/04/20 12:48 PM
1行目、
× sudo npt-get ...
○ sudo apt-get ...
ですよね。

それにしても、Ubuntu って標準で ntp 入ってなかったんですね。
昨年 11 月ぐらいに Cent-OS から Ubuntu に migrate したんですが、まだ知らないことがありそうです。

Comment Form

※本記事に関係ないと判断した COMMENTS はお断りしております。

TRACKBACKS

現在、TRACKBACKは停止させてもらってます。
Calendar
Amazon
トロン:レガシー [Blu-ray]
トロン:レガシー [Blu-ray]
ウォルト・ディズニー・ジャパン株式会社
重々しい音響が印象的
ハリー・ポッターと死の秘宝 PART 2 [Blu-ray]
ハリー・ポッターと死の秘宝 PART 2 [Blu-ray]
ワーナー・ホーム・ビデオ
2枚で3000円キャンペーン! (2012.7.13時点)