LS-XHL, LS-QL 対応ハックキットの確認(6)LS-XHL:インストール~

Debian LS-XHL

LS-XHL で インストール以降を確認していく。

インストール

カスタマイズ

初めてなので、hackkit_config を作る。
root@LS-XHLA1F:~# cd /mnt/disk1/share/hackkit/
root@LS-XHLA1F:/mnt/disk1/share/hackkit# cp hackkit_config.sample hackkit_config
root@LS-XHLA1F:/mnt/disk1/share/hackkit# vi !$
	:
	:
root@LS-XHLA1F:/mnt/disk1/share/hackkit# cat !$
cat hackkit_config
ADDRESS=192.168.2.49
HOSTNAME=brick
root@LS-XHLA1F:/mnt/disk1/share/hackkit#

インストーラの実行

root@LS-XHLA1F:/mnt/disk1/share/hackkit# sh hackkit_090227.sh
PRODUCTID = 0x00000011
formating hard drive ...
mke2fs 1.40.5 (27-Jan-2008)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
62720 inodes, 249995 blocks
12499 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=260046848
8 block groups
32768 blocks per group, 32768 fragments per group
7840 inodes per group
Superblock backups stored on blocks:
        32768, 98304, 163840, 229376

Writing inode tables: done
Creating journal (4096 blocks): done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 27 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.
meta-data=/dev/sdb2              isize=256    agcount=8, agsize=156250 blks
         =                       sectsz=512   attr=0
data     =                       bsize=4096   blocks=1250000, imaxpct=25
         =                       sunit=0      swidth=0 blks, unwritten=1
naming   =version 2              bsize=4096
log      =internal log           bsize=4096   blocks=2560, version=1
         =                       sectsz=512   sunit=0 blks, lazy-count=0
realtime =none                   extsz=4096   blocks=0, rtextents=0
Setting up swapspace version 1, size = 1023995904 bytes
meta-data=/dev/sdb4              isize=256    agcount=16, agsize=7521665 blks
         =                       sectsz=512   attr=0
data     =                       bsize=4096   blocks=120346640, imaxpct=25
         =                       sunit=0      swidth=0 blks, unwritten=1
naming   =version 2              bsize=4096
log      =internal log           bsize=4096   blocks=32768, version=1
         =                       sectsz=512   sunit=0 blks, lazy-count=0
realtime =none                   extsz=4096   blocks=0, rtextents=0
mounting root file system ...
extracting hackkit archive ...
./
./var/
./var/lib/
./var/lib/apt/
./var/lib/apt/lists/
./var/lib/apt/lists/partial/
	:
	:
./media/
./initrd/
creating miconapl ...
creating kernelmon ...
copying /lib/modules ...
lib/modules/
lib/modules/2.6.22.18/
	:
	:
lib/modules/2.6.22.18/modules.seriomap
creating usb ...
checking /dev/sdb1
fsck 1.40.5 (27-Jan-2008)
e2fsck 1.40.5 (27-Jan-2008)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/sdb1: 11/62720 files (9.1% non-contiguous), 6399/249995 blocks
mounting /boot ...
copying /boot ...
initrd.buffalo
uImage.buffalo
editing initrd ...
132990+1 records in
132990+1 records out
gunziping /mnt/debinst/boot/initrd.gz ...
gziping /mnt/debinst/boot/initrd ... wait 5 minutes
Image Name:   initrd
Created:      Sat Feb 28 14:25:51 2009
Image Type:   ARM Linux RAMDisk Image (gzip compressed)
Data Size:    8470329 Bytes = 8271.81 kB = 8.08 MB
Load Address: 0x00000000
Entry Point:  0x00000000
unmount /boot ...
root@LS-XHLA1F:/mnt/disk1/share/hackkit#

電源 OFF

電源 SW で電源 OFF、AC アダプタも抜く。

ハックキットで起動

HDD の交換

USB で接続していた HDD を SATA で内蔵ポートに接続。

起動

AC アダプタを刺し、電源 SW を ON にする。
シリアルコンソールがないので、ブートの様子がわからない。不安。

とりあえず、POWER LED は点滅から点灯になった。

最初の設定

ログイン

telnet する。
Debian GNU/Linux 5.0
brick login: guest
Password:
Linux brick 2.6.22.18 #11 Tue Feb 24 16:37:06 JST 2009 armv5tejl

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
No directory, logging in with HOME=/
guest@brick:/$
いけた。

root になる

guest@brick:/$ su - root
Password:
brick:~#

時計を合わせる

brick:~# date
Sat Jul 10 01:18:59 JST 2004
brick:~# date 022817462009
Sat Feb 28 17:46:00 JST 2009
brick:~#

最初の設定の残りの設定と、
時刻同期
Windows 向けファイルサーバまでスクリプトを使う。

brick:/tmp# sh setup_090203.sh
passwd root
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
Adding group `yamasita' (GID 1001) ...
Done.
adduser yasunari
Adding user `yasunari' ...
Adding new user `yasunari' (1001) with group `yamasita' ...
Creating home directory `/home/yamasita/yasunari' ...
Copying files from `/etc/skel' ...
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
Removing user `guest' ...
Warning: group `guest' has no more members.
userdel: user guest is currently logged in
/usr/sbin/deluser: `/usr/sbin/userdel guest' returned error code 8. Exiting.
Hit http://ftp.jp.debian.org lenny Release.gpg
Get:1 http://security.debian.org lenny/updates Release.gpg [189B]
Hit http://ftp.jp.debian.org lenny Release
Get:2 http://security.debian.org lenny/updates Release [40.7kB]
Ign http://ftp.jp.debian.org lenny/main Packages/DiffIndex
Ign http://ftp.jp.debian.org lenny/main Sources/DiffIndex
Hit http://ftp.jp.debian.org lenny/main Packages
Hit http://ftp.jp.debian.org lenny/main Sources
Ign http://security.debian.org lenny/updates/main Packages/DiffIndex
Ign http://security.debian.org lenny/updates/main Sources/DiffIndex
Get:3 http://security.debian.org lenny/updates/main Packages [38.5kB]
Get:4 http://security.debian.org lenny/updates/main Sources [13.1kB]
Fetched 92.4kB in 3s (23.5kB/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  libcap1 libedit2 perl perl-modules
Suggested packages:
  ntp-doc perl-doc libterm-readline-gnu-perl libterm-readline-perl-perl
The following NEW packages will be installed:
  libcap1 libedit2 ntp perl perl-modules
0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
Need to get 8257kB of archives.
After this operation, 29.2MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://ftp.jp.debian.org lenny/main libedit2 2.11~20080614-1 [64.5kB]
Get:2 http://ftp.jp.debian.org lenny/main perl-modules 5.10.0-19 [3189kB]
Get:3 http://ftp.jp.debian.org lenny/main perl 5.10.0-19 [4535kB]
Get:4 http://ftp.jp.debian.org lenny/main libcap1 1:1.10-14 [9074B]
Get:5 http://ftp.jp.debian.org lenny/main ntp 1:4.2.4p4+dfsg-8 [459kB]
Fetched 8257kB in 8s (955kB/s)
Selecting previously deselected package libedit2.
(Reading database ... 8591 files and directories currently installed.)
Unpacking libedit2 (from .../libedit2_2.11~20080614-1_armel.deb) ...
Selecting previously deselected package perl-modules.
Unpacking perl-modules (from .../perl-modules_5.10.0-19_all.deb) ...
Selecting previously deselected package perl.
Unpacking perl (from .../perl_5.10.0-19_armel.deb) ...
Selecting previously deselected package libcap1.
Unpacking libcap1 (from .../libcap1_1%3a1.10-14_armel.deb) ...
Selecting previously deselected package ntp.
Unpacking ntp (from .../ntp_1%3a4.2.4p4+dfsg-8_armel.deb) ...
Processing triggers for man-db ...
Setting up libedit2 (2.11~20080614-1) ...
Setting up libcap1 (1:1.10-14) ...
Setting up ntp (1:4.2.4p4+dfsg-8) ...
Starting NTP server: ntpd.
Setting up perl-modules (5.10.0-19) ...
Setting up perl (5.10.0-19) ...
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  libcups2 libkeyutils1 libkrb53 libldap-2.4-2 libtalloc1 libwbclient0
  samba-common ucf
Suggested packages:
  cups-common krb5-doc krb5-user smbldap-tools ldb-tools
The following NEW packages will be installed:
  libcups2 libkeyutils1 libkrb53 libldap-2.4-2 libtalloc1 libwbclient0 samba
  samba-common ucf
0 upgraded, 9 newly installed, 0 to remove and 0 not upgraded.
Need to get 8603kB of archives.
After this operation, 23.0MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://ftp.jp.debian.org lenny/main libkeyutils1 1.2-9 [5228B]
Get:2 http://ftp.jp.debian.org lenny/main libkrb53 1.6.dfsg.4~beta1-5 [448kB]
Get:3 http://ftp.jp.debian.org lenny/main libldap-2.4-2 2.4.11-1 [179kB]
Get:4 http://ftp.jp.debian.org lenny/main ucf 3.0016 [64.4kB]
Get:5 http://ftp.jp.debian.org lenny/main libcups2 1.3.8-1lenny4.1 [157kB]
Get:6 http://ftp.jp.debian.org lenny/main libtalloc1 1.2.0~git20080616-1 [13.3kB]
Get:7 http://ftp.jp.debian.org lenny/main libwbclient0 2:3.2.5-4 [78.1kB]
Get:8 http://ftp.jp.debian.org lenny/main samba-common 2:3.2.5-4 [3366kB]
Get:9 http://ftp.jp.debian.org lenny/main samba 2:3.2.5-4 [4292kB]
Fetched 8603kB in 15s (544kB/s)
Preconfiguring packages ...

Package configuration



















   lqqqqqqqqqqqqqqqqqqqqqqqqqqqqu Samba Server tqqqqqqqqqqqqqqqqqqqqqqqqqqqqk
   x Please specify the workgroup you want this server to appear to be in   x
   x when queried by clients. Note that this parameter also controls the    x
   x domain name used with the security=domain setting.                     x
   x                                                                        x
   x Workgroup/Domain Name:                                                 x
   x                                                                        x
   x YAMASITA______________________________________________________________ x
   x                                                                        x
   x                                 <Ok>                                   x
   x                                                                        x
   mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj




















Package configuration

















 lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqu Samba Server tqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk
 x                                                                           x
 x If your computer gets IP address information from a DHCP server on the    x
 x network, the DHCP server may also provide information about WINS servers  x
 x ("NetBIOS name servers") present on the network.  This requires a change  x
 x to your smb.conf file so that DHCP-provided WINS settings will            x
 x automatically be read from /etc/samba/dhcp.conf.                          x
 x                                                                           x
 x The dhcp3-client package must be installed to take advantage of this      x
 x feature.                                                                  x
 x                                                                           x
 x Modify smb.conf to use WINS settings from DHCP?                           x
 x                                                                           x
 x                    <Yes>                       <No>                       x
 x                                                                           x
 mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj

















Selecting previously deselected package libkeyutils1.
(Reading database ... 9843 files and directories currently installed.)
Unpacking libkeyutils1 (from .../libkeyutils1_1.2-9_armel.deb) ...
Selecting previously deselected package libkrb53.
Unpacking libkrb53 (from .../libkrb53_1.6.dfsg.4~beta1-5_armel.deb) ...
Selecting previously deselected package libldap-2.4-2.
Unpacking libldap-2.4-2 (from .../libldap-2.4-2_2.4.11-1_armel.deb) ...
Selecting previously deselected package ucf.
Unpacking ucf (from .../archives/ucf_3.0016_all.deb) ...
Moving old data out of the way
Selecting previously deselected package libcups2.
Unpacking libcups2 (from .../libcups2_1.3.8-1lenny4.1_armel.deb) ...
Selecting previously deselected package libtalloc1.
Unpacking libtalloc1 (from .../libtalloc1_1.2.0~git20080616-1_armel.deb) ...
Selecting previously deselected package libwbclient0.
Unpacking libwbclient0 (from .../libwbclient0_2%3a3.2.5-4_armel.deb) ...
Selecting previously deselected package samba-common.
Unpacking samba-common (from .../samba-common_2%3a3.2.5-4_armel.deb) ...
Selecting previously deselected package samba.
Unpacking samba (from .../samba_2%3a3.2.5-4_armel.deb) ...
Processing triggers for man-db ...
Setting up libkeyutils1 (1.2-9) ...
Setting up libkrb53 (1.6.dfsg.4~beta1-5) ...
Setting up libldap-2.4-2 (2.4.11-1) ...
Setting up ucf (3.0016) ...
Setting up libcups2 (1.3.8-1lenny4.1) ...
Setting up libtalloc1 (1.2.0~git20080616-1) ...
Setting up libwbclient0 (2:3.2.5-4) ...
Setting up samba-common (2:3.2.5-4) ...

Creating config file /etc/samba/smb.conf with new version
Setting up samba (2:3.2.5-4) ...
Generating /etc/default/samba...
tdbsam_open: Converting version 0 database to version 3.
account_policy_get: tdb_fetch_uint32 failed for field 1 (min password length), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 2 (password history), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 3 (user must logon to change password), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 4 (maximum password age), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 5 (minimum password age), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 6 (lockout duration), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 7 (reset count minutes), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 8 (bad lockout attempt), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 9 (disconnect time), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 10 (refuse machine password change), returning 0
Importing account for root...ok
Importing account for daemon...ok
Importing account for bin...ok
Importing account for sys...ok
Importing account for sync...ok
Importing account for games...ok
Importing account for man...ok
Importing account for lp...ok
Importing account for mail...ok
Importing account for news...ok
Importing account for uucp...ok
Importing account for proxy...ok
Importing account for www-data...ok
Importing account for backup...ok
Importing account for list...ok
Importing account for irc...ok
Importing account for gnats...ok
Importing account for nobody...ok
Importing account for libuuid...ok
Importing account for guest...ok
Importing account for telnetd...ok
Importing account for yasunari...ok
Importing account for ntp...ok
Adding group `sambashare' (GID 105) ...
Done.
Starting Samba daemons: nmbd smbd.
Reloading /etc/samba/smb.conf: smbd only.
smbpasswd -a yasunari
New SMB password:
Retype new SMB password:
brick:/tmp#

動作確認

LED の確認

特に問題なし。

USB メモリの認識

brick:~# tail -f /var/log/messages
	:
	:
Feb 28 17:52:42 brick kernel: usb 1-1: new full speed USB device using ehci_marvell and address 2
Feb 28 17:52:42 brick kernel: usb 1-1: configuration #1 chosen from 1 choice
Feb 28 17:52:42 brick kernel: scsi2 : SCSI emulation for USB Mass Storage devices
Feb 28 17:52:49 brick kernel: scsi 2:0:0:0: Direct-Access     eUSB     Memory Stick     5.06 PQ: 0 ANSI: 2
Feb 28 17:52:49 brick kernel: sd 2:0:0:0: [sdb] 126912 512-byte hardware sectors (65 MB)
Feb 28 17:52:49 brick kernel: sd 2:0:0:0: [sdb] Write Protect is off
Feb 28 17:52:49 brick kernel: sd 2:0:0:0: [sdb] 126912 512-byte hardware sectors (65 MB)
Feb 28 17:52:49 brick kernel: sd 2:0:0:0: [sdb] Write Protect is off
Feb 28 17:52:49 brick kernel: sdb: sdb1
Feb 28 17:52:49 brick kernel: sd 2:0:0:0: [sdb] Attached SCSI removable disk
Feb 28 17:52:49 brick kernel: sd 2:0:0:0: Attached scsi generic sg1 type 0
マウントしてみる。
brick:~# mkdir /tmp/usb
brick:~# mount /dev/sdb1 /tmp/usb/
brick:~# ls /tmp/usb/
dcim  memstick.ind
brick:~# umount /tmp/usb/
brick:~#
問題なさそう。

プリンタの認識(LS-GL 以外)

brick:~# !tail
tail -f /var/log/messages
	:
	:
Feb 28 17:55:47 brick kernel: usb 1-1: new full speed USB device using ehci_marvell and address 3
Feb 28 17:55:48 brick kernel: usb 1-1: configuration #1 chosen from 1 choice
Feb 28 17:55:48 brick kernel: drivers/usb/class/usblp.c: usblp0: USB Bidirectional printer dev 3 if 0 alt 0 proto 2 vid 0x04B8 pid 0x0005
OK.

リブートの確認

問題なし。

シャットダウンの確認

OK

さあ、残るは LS-QL のみ!



LS-XHL
バッファローダイレクト
楽天市場
amazon
Sofmap
ValuMore


LS-XHL, LS-QL 対応ハックキットの確認(6)LS-XHL:準備
ハックの記録
LinkStation/玄箱 をハックしよう

LS-XHL, LS-QL 対応ハックキットの確認(7)LS-QL:準備

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