標準ファーム Ver.1.04 でハックキット(4)時刻同期

LS-HGL

標準ファーム 1.04 の LS-HGL に、 LS-HGL ハックキットをインストールする。

次は 時刻同期を実行する。

ntpd のインストール

hackkit:~# 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 6065kB of archives.
After unpacking 24.6MB 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-7etch3 [2314kB]
Get:2 http://ftp2.jp.debian.org etch/main perl 5.8.8-7etch3 [3410kB]
Get:3 http://ftp2.jp.debian.org etch/main ntp 1:4.2.2.p4+dfsg-2 [342kB]
Fetched 6065kB in 10s (563kB/s)
Selecting previously deselected package perl-modules.
(Reading database ... 10148 files and directories currently installed.)
Unpacking perl-modules (from .../perl-modules_5.8.8-7etch3_all.deb) ...
Selecting previously deselected package perl.
Unpacking perl (from .../perl_5.8.8-7etch3_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-7etch3) ...
Setting up perl (5.8.8-7etch3) ...

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

hackkit:~#

ntp.conf の修正

hackkit:~# cd /etc
hackkit:/etc# mv ntp.conf ntp.conf.orig
hackkit:/etc# cp ntp.conf.orig ntp.conf
hackkit:/etc# ls -l ntp.conf*
-rw-r--r-- 1 root root 1582 Aug 16 10:59 ntp.conf
-rw-r--r-- 1 root root 1582 Mar  4  2007 ntp.conf.orig
hackkit:/etc# vi ntp.conf
	:
	:
hackkit:/etc# diff -c ntp.conf.orig ntp.conf
*** ntp.conf.orig       Sun Mar  4 22:58:52 2007
--- ntp.conf    Sat Aug 16 11:00:19 2008
***************
*** 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,30 ----

  # 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.
hackkit:/etc#

ntpd の再起動

hackkit:/etc# /etc/init.d/ntp restart
Stopping NTP server: ntpd.
Starting NTP server: ntpd.
hackkit:/etc# ntpq -p
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
 ntp3.jst.mfeed. 210.173.176.251  2 u    2   64    1   12.638   11.613   0.015
 ntp2.jst.mfeed. 210.173.160.86   2 u    1   64    1   12.973   12.031   0.015
 ntp1.jst.mfeed. .INIT.          16 u    -   64    0    0.000    0.000   0.015
 sil.yamasita.jp .INIT.          16 u    -   64    0    0.000    0.000   0.015
hackkit:/etc# ntpq -p
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
 ntp3.jst.mfeed. 210.173.176.251  2 u   46   64    7   12.153   11.742   0.095
 ntp2.jst.mfeed. 210.173.160.86   2 u   45   64    7   12.233   12.140   0.665
 ntp1.jst.mfeed. 210.173.176.251  2 u   44   64    7   12.247   11.813   0.142
 sil.yamasita.jp 210.173.160.57   3 u   43   64    3    0.373  -143.19   3.013
hackkit:/etc#
そのうち同期するだろう。

LS-H250GL
楽天市場
livedoor デパート
Sofmap
TSUKUMO ネットショップ
TWO TOP
Yahoo!ショッピング
パソQ
ムラウチドットコム
ヤマダ電機WEB
アット・ニフティストア icon
Joshin インターネットショッピング icon


標準ファーム Ver.1.04 でハックキット(3)パッケージのアップデート
ハックの記録
LinkStation/玄箱 をハックしよう

標準ファーム Ver.1.04 でハックキット(5)Windows 向けファイルサーバ

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