LS-GL ハックキット 2.0 時刻同期

LS-GL

ファームウェアが 1.11 になったことだし、 Movable Type もバージョンアップしたことだし(ん?) LS-GL にハックキットをきれいにいれ直す。

続いて時刻同期。
以下、 LS-GL/HS-DHGL ハックキットの、 時刻同期の 手順

ntpd のインストール

ude:~# apt-get install ntp
Reading package lists... Done
Building dependency tree... Done
The following extra packages will be installed:
  perl perl-modules
Suggested packages:
  ntp-doc libterm-readline-gnu-perl libterm-readline-perl-perl
Recommended packages:
  perl-doc
The following NEW packages will be installed:
  ntp perl perl-modules
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 6064kB of archives.
After unpacking 24.9MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://ftp2.jp.debian.org etch/main perl-modules 5.8.8-7 [2310kB]
Get:2 http://ftp2.jp.debian.org etch/main perl 5.8.8-7 [3413kB]
Get:3 http://ftp2.jp.debian.org etch/main ntp 1:4.2.2.p4+dfsg-2 [342kB]
Fetched 6064kB in 7s (772kB/s)
Selecting previously deselected package perl-modules.
(Reading database ... 8732 files and directories currently installed.)
Unpacking perl-modules (from .../perl-modules_5.8.8-7_all.deb) ...
Selecting previously deselected package perl.
Unpacking perl (from .../archives/perl_5.8.8-7_arm.deb) ...
Selecting previously deselected package ntp.
Unpacking ntp (from .../ntp_1%3a4.2.2.p4+dfsg-2_arm.deb) ...
Setting up perl-modules (5.8.8-7) ...
Setting up perl (5.8.8-7) ...

Setting up ntp (4.2.2.p4+dfsg-2) ...
Starting NTP server: ntpd.

ude:~#

ntpd.conf の設定

ude:~# cd /etc/
ude:/etc# mv ntp.conf ntp.conf.orig
ude:/etc# cp ntp.conf.orig ntp.conf
ude:/etc# ls -l ntp.conf*
-rw-r--r-- 1 root root 1582 Aug 19 11:31 ntp.conf
-rw-r--r-- 1 root root 1582 Mar  4 22:58 ntp.conf.orig
ude:/etc# vi ntp.conf
	:
	:
ude:/etc# diff -c ntp.conf.orig ntp.conf
*** ntp.conf.orig       Sun Mar  4 22:58:52 2007
--- ntp.conf    Sun Aug 19 11:33:09 2007
***************
*** 11,25 ****

  # You do need to talk to an NTP server or two (or three).
  #server ntp.your-provider.example

  # pool.ntp.org maps to more than 300 low-stratum NTP servers.
  # Your server will pick a different set every time it starts up.
  #  *** Please consider joining the pool! ***
  #  ***  ***
! server 0.debian.pool.ntp.org iburst
! server 1.debian.pool.ntp.org iburst
! server 2.debian.pool.ntp.org iburst
! server 3.debian.pool.ntp.org iburst

  # By default, exchange time with everybody, but don't allow configuration.
  # See /usr/share/doc/ntp-doc/html/accopt.html for details.
--- 11,29 ----

  # You do need to talk to an NTP server or two (or three).
  #server ntp.your-provider.example
+ server ntp3.jst.mfeed.ad.jp
+ server ntp2.jst.mfeed.ad.jp
+ server ntp1.jst.mfeed.ad.jp
+ server sil.yamasita.jp

  # pool.ntp.org maps to more than 300 low-stratum NTP servers.
  # Your server will pick a different set every time it starts up.
  #  *** Please consider joining the pool! ***
  #  ***  ***
! #server 0.debian.pool.ntp.org iburst
! #server 1.debian.pool.ntp.org iburst
! #server 2.debian.pool.ntp.org iburst
! #server 3.debian.pool.ntp.org iburst

  # By default, exchange time with everybody, but don't allow configuration.
  # See /usr/share/doc/ntp-doc/html/accopt.html for details.
ude:/etc#

ntpd の再起動

ude:/etc# /etc/init.d/ntp restart
Stopping NTP server: ntpd.
Starting NTP server: ntpd.
ude:/etc#
しばらくして、、
ude:/etc# ntpq -p
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
+ntp3.jst.mfeed. 210.173.160.86   2 u   10   64  377   11.347  155.489 158.403
+ntp2.jst.mfeed. 210.173.160.86   2 u    7   64  377   11.097  213.075 114.052
*ntp1.jst.mfeed. 210.173.160.86   2 u   63   64  377   11.105  247.805 110.338
 sil.yamasita.jp 210.173.160.27   3 u    6   64   17    0.367  398.835  72.417
ude:/etc#


LS-160GL
楽天市場
Amazon
Yahoo!ショッピング
ソフマップ
ツクモネットショプ
livedoor デパート
ドスパラ


LS-GL ハックキット 2.0 追加パッケージのインストール
ハックの記録
LinkStation/玄箱 をハックしよう

HS-DH750GL, HS-DH1000GL 発表

Copyright (C) 2003-2007 Yasunari Yamashita. All Rights Reserved.
yasunari @ yamasita.jp 山下康成@京都府向日市