LS-HGL ファームウェア Ver.1.02 でハックキット(4) 時刻同期

LS-HGL

セキュリティホールの確認をしただけで ほったらかしにしていたファームウェア 1.02 を使って、 LS-HGL ハックキットをインストールする。

LS-HGL には USB ポートがあるので、、、ごにょごにょ。

時刻同期

続いて、 時刻同期

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 proposed-updates/main perl-modules 5.8.8-7etch3 [2314kB]
Get:2 http://ftp2.jp.debian.org proposed-updates/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 42s (142kB/s)
tar: ./control: time stamp 2008-04-26 04:34:11 is 15298131.379573 s in the future
tar: ./md5sums: time stamp 2008-04-26 04:34:11 is 15298131.373585 s in the future
tar: ./conffiles: time stamp 2008-04-26 04:34:11 is 15298131.371584 s in the future
tar: .: time stamp 2008-04-26 04:34:11 is 15298131.370062 s in the future
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) ...
tar: ./md5sums: time stamp 2008-04-26 22:48:33 is 15363788.760416 s in the future
tar: ./prerm: time stamp 2008-04-26 22:48:33 is 15363788.757536 s in the future
tar: ./postinst: time stamp 2008-04-26 22:48:33 is 15363788.755543 s in the future
tar: ./control: time stamp 2008-04-26 22:48:48 is 15363803.747258 s in the future
tar: .: time stamp 2008-04-26 22:48:48 is 15363803.745768 s in the future
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:~#

時計を合わせる

まずは、手動で時計を合わせておく
hackkit:~# date 070513252008
Sat Jul  5 13:25:00 JST 2008
hackkit:~#

ntp.conf の修正

hackkit:~# cd /etc
hackkit:/etc# mv ntp.conf ntp.conf.orig
hackkit:/etc# cp ntp.conf.orig ntp.conf
hackkit:/etc# vi ntp.conf
	:
	:
hackkit:/etc# diff -u ntp.conf.orig ntp.conf
--- ntp.conf.orig       2007-03-04 22:58:52.000000000 +0900
+++ ntp.conf    2008-07-05 13:27:34.594126000 +0900
@@ -11,15 +11,19 @@

 # 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
+#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.846  9587.47   0.015
 ntp2.jst.mfeed. 210.173.176.4    2 u    1   64    1   12.445  9587.42   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#
例によって、そのうち同期するでしょう。

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


OSC 2008 KANSAI セミナ企画
ハックの記録
LinkStation/玄箱 をハックしよう

リモートステーション PC-OP-RS1

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