新型 HS-DHGL にハックキット(6)時刻同期

HS-DHGL

新型 HS-DHGL も旧形や 新型 LS-GL と同じ手順で ハックキットがインストールできるとは思うが、 念のために検証しておく。

続いて 時刻同期

ntpd のインストール

gin:~# 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 6067kB 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-7etch1 [2314kB]
Get:2 http://ftp2.jp.debian.org etch/main perl 5.8.8-7etch1 [3412kB]
Get:3 http://ftp2.jp.debian.org etch/main ntp 1:4.2.2.p4+dfsg-2 [342kB]
Fetched 6067kB in 55s (109kB/s)
Selecting previously deselected package perl-modules.
(Reading database ... 10170 files and directories currently installed.)
Unpacking perl-modules (from .../perl-modules_5.8.8-7etch1_all.deb) ...
Selecting previously deselected package perl.
Unpacking perl (from .../perl_5.8.8-7etch1_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-7etch1) ...
Setting up perl (5.8.8-7etch1) ...

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

gin:~#

ntpd.conf の修正

gin:~# cd /etc/
gin:/etc# mv ntp.conf ntp.conf.orig
gin:/etc# cp ntp.conf.orig ntp.conf
gin:/etc# ls -l ntp.conf*
-rw-r--r-- 1 root root 1582 Feb  3 09:27 ntp.conf
-rw-r--r-- 1 root root 1582 Mar  4  2007 ntp.conf.orig
gin:/etc# vi ntp.conf
	:
	:
gin:/etc# diff -c ntp.conf.orig ntp.conf
*** ntp.conf.orig       Sun Mar  4 22:58:52 2007
--- ntp.conf    Sun Feb  3 09:28:33 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,28 ----

  # 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

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

ntpd の再起動

gin:/etc# /etc/init.d/ntp restart
Stopping NTP server: ntpd.
Starting NTP server: ntpd.
gin:/etc# ntpq -p
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
 ntp3.jst.mfeed. 210.173.160.86   2 u    3   64    1   12.536   -1.695   0.015
 ntp2.jst.mfeed. 210.173.176.251  2 u    2   64    1   12.172   -1.731   0.015
 ntp1.jst.mfeed. 210.173.160.86   2 u    1   64    1   12.240   -1.748   0.015
gin:/etc#
そのうち同期するだろう。


HS-DH320GL
楽天市場
Yahoo!ショッピング
somap.com
TSUKUMO ネットショップ
ValuMore!
ムラウチドットコム
アット・ニフティストア icon
Joshin web icon


bash: !(数字)
ハックの記録
LinkStation/玄箱 をハックしよう

Tips 引っ越し

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