作り直したハックキットの確認(6)HS-DHGL

Debian HS-DHGL

ハックキットを作り直したので、全機種確認していく。
残りは LS-GL, HS-DHGL, LS-CL。
まだ 3.0 世代を一つも確認していないので、HS-DHGL から確認する。

まっさらな標準ファーム入りの HDD を作る

再現性を高めるため、いろいろ手を入れていないまっさらな 標準ファーム入りの HDD を作る。

パーティションの削除

実験用の HDD を LS-QL に USB で接続し、 パーティションを削除する
qube:~# fdisk /dev/sdb

The number of cylinders for this disk is set to 19929.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): p

Disk /dev/sdb: 163.9 GB, 163928604672 bytes
255 heads, 63 sectors/track, 19929 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1         125     1004031   83  Linux
/dev/sdb2             126         748     5004247+  83  Linux
/dev/sdb4             749       19929   154071382+   5  Extended
/dev/sdb5             749         873     1004031   82  Linux swap / Solaris
/dev/sdb6             874       19354   148448601   83  Linux

Command (m for help): d
Partition number (1-6): 4

Command (m for help): d
Partition number (1-4): 2

Command (m for help): d
Selected partition 1

Command (m for help): p

Disk /dev/sdb: 163.9 GB, 163928604672 bytes
255 heads, 63 sectors/track, 19929 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

   Device Boot      Start         End      Blocks   Id  System

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.
sd 2:0:0:0: [sdb] 320173056 512-byte hardware sectors (163929 MB)
sd 2:0:0:0: [sdb] Write Protect is off
sd 2:0:0:0: [sdb] Assuming drive cache: write through
 sdb:
sd 2:0:0:0: [sdb] 320173056 512-byte hardware sectors (163929 MB)
sd 2:0:0:0: [sdb] Write Protect is off
sd 2:0:0:0: [sdb] Assuming drive cache: write through
 sdb:
Syncing disks.
qube:~#

tftp サーバの準備

ぉー。結局は LS-GL を起動しないといけないのか。
パーティションの削除も LS-GL でしとけば良かった。
yasunari@ude:~$ cd /srv/tftp/
yasunari@ude:/srv/tftp$ ls
HS-DHGL_1.20  LS-CHL_1.21    LS-CL_1.11    LS-LGL_2.01        LS-QL_1.10b   LS-XHL_1.02+telnet  SheevaPlug_1.2
LS-CHL_1.10   LS-CL+HackKit  LS-GL_1.15    LS-QL_1.05+telnet  LS-WSGL_1.06  LS-XHL_1.04b        initrd.buffalo
LS-CHL_1.20   LS-CL_1.07     LS-HGL_1.07b  LS-QL_1.07b        LS-XHL_1.02   LS-XHL_1.10         uImage.buffalo
yasunari@ude:/srv/tftp$ rm initrd.buffalo
yasunari@ude:/srv/tftp$ rm uImage.buffalo
yasunari@ude:/srv/tftp$ ln HS-DHGL_1.20/* .
yasunari@ude:/srv/tftp$

起動

パーティションを消した HDD を接続して起動すると、 自動的に tftp ブートする

ファームウェアアップデータを実行して まっさらに。 電源断

準備(それ以外 の場合)

標準ファームに root でログインできるようにします

LS-GL に USB で接続して root のパスワードを消し、 telnet が起動できるようにする。

今更ではあるが、スクリプトにする。
機械にできることは機械にまかせる。

ude:/home/linkstation/HackKit/unified/tool# cat telnetable_091206.sh
#!/bin/sh

set -x

mkdir /tmp/root
mount /dev/sdb2 /tmp/root || exit

# shadow
cd /tmp/root/etc
mv shadow shadow.orig
sed -e 's/^\(root:\)[^:]*\(:.*\)$/\1\2/' shadow.orig > shadow
chmod 600 shadow

# telnetd
if [ -f /tmp/root/usr/sbin/telnetd ]
then
        echo >> /tmp/root/etc/init.d/rcS
        echo /usr/sbin/telnetd >> /tmp/root/etc/init.d/rcS
fi

umount /tmp/root
ude:/home/linkstation/HackKit/unified/tool# sh telnetable_091206.sh
+ mkdir /tmp/root
+ mount /dev/sdb2 /tmp/root
+ cd /tmp/root/etc
+ mv shadow shadow.orig
+ sed -e 's/^\(root:\)[^:]*\(:.*\)$/\1\2/' shadow.orig
+ chmod 600 shadow
+ '[' -f /tmp/root/usr/sbin/telnetd ']'
+ echo
+ echo /usr/sbin/telnetd
+ umount /tmp/root
umount: /tmp/root: device is busy
umount: /tmp/root: device is busy
ude:/home/linkstation/HackKit/unified/tool#
ぅぉー、エラーだ。
ude:/home/linkstation/HackKit/unified/tool# grep root /tmp/root/etc/shadow
root::11009:0:99999:7:::
ude:/home/linkstation/HackKit/unified/tool# tail /tmp/root/etc/init.d/rcS

#fin.
exec_sh bootcomplete.sh

#
/usr/local/bin/chk_pcastd.sh > /dev/null 2>&1 &
exec_sh pcastd.sh


/usr/sbin/telnetd
ude:/home/linkstation/HackKit/unified/tool#
目的は達しているが、
アンマウント前に cd で抜けるのを忘れいている
今回はいいとして、次のためにスクリプトを修正しておく
ude:/home/linkstation/HackKit/unified/tool# cat !$
cat telnetable_091206.sh
#!/bin/sh

set -x

mkdir /tmp/root
mount /dev/sdb2 /tmp/root || exit

# shadow
cd /tmp/root/etc
mv shadow shadow.orig
sed -e 's/^\(root:\)[^:]*\(:.*\)$/\1\2/' shadow.orig > shadow
chmod 600 shadow

# telnetd
if [ -f /tmp/root/usr/sbin/telnetd ]
then
        echo >> /tmp/root/etc/init.d/rcS
        echo /usr/sbin/telnetd >> /tmp/root/etc/init.d/rcS
fi

cd /
umount /tmp/root
ude:/home/linkstation/HackKit/unified/tool#
手動でアンマウント
ude:/home/linkstation/HackKit/unified/tool# umount /tmp/root
ude:/home/linkstation/HackKit/unified/tool#

標準ファームで起動

HDD を HS-DHGL に戻して起動

ハックキットのファイルを置きます

ログイン

BUFFALO INC. LinkStation series HS-DHGL(JINMU)
HS-DHGLEA2 login: root
root@HS-DHGLEA2:~#

時計を合わせる

root@HS-DHGLEA2:~# date
Sun Dec  6 22:13:33 JST 2009
root@HS-DHGLEA2:~#

インストールする HDD の準備

(1) ハックキットをインストールする HDD を USB で接続します。

/sbin/hotplug [usb]
/sbin/hotplug [scsi_host]
/sbin/hotplug [usb_device]
/sbin/hotplug [usb]
Dec  6 22:17:51 HS-DHGLEA2 kernel: usb 2-1: new high speed USB device using ehci_platform and address 2
Dec  6 22:17:51 HS-DHGLEA2 kernel: usb 2-1: configuration #1 chosen from 1 choice
Dec  6 22:17:51 HS-DHGLEA2 kernel: scsi2 : SCSI emulation for USB Mass Storage devices
  Vendor: ViPowER   Model: VP-89118(SD1)     Rev: 2.10
  Type:   Direct-Access                      ANSI SCSI revision: 04
SCSI device sdb: 488397168 512-byte hdwr sectors (250059 MB)
sdb: Write Protect is off
sdb: assuming drive cache: write through
/sbin/hotplug [scsi]
SCSI device sdb: 488397168 512-byte hdwr sectors (250059 MB)
sdb: Write Protect is off
sdb: assuming drive cache: write through
/sbin/hotplug [block]
/sbin/hotplug [block]
/sbin/hotplug [block]
/sbin/hotplug [block]
sd 2:0:0:0: Attached scsi disk sdb
/sbin/hotplug [block]
/sbin/hotplug [block]
/sbin/hotplug [scsi_device]
sd 2:0:0:0: Attached scsi generic sg1 type 0
/sbin/hotplug [scsi_generic]
Dec  6 22:17:56 HS-DHGLEA2 kernel:   Vendor: ViPowER   Model: VP-89118(SD1)     Rev: 2.10
Dec  6 22:17:56 HS-DHGLEA2 kernel:   Type:   Direct-Access                      ANSI SCSI revision: 04
Dec  6 22:17:56 HS-DHGLEA2 kernel: SCSI device sdb: 488397168 512-byte hdwr sectors (250059 MB)
Dec  6 22:17:56 HS-DHGLEA2 kernel: sdb: Write Protect is off
Dec  6 22:17:56 HS-DHGLEA2 kernel: sdb: assuming drive cache: write through
Dec  6 22:17:56 HS-DHGLEA2 kernel: SCSI device sdb: 488397168 512-byte hdwr sectors (250059 MB)
Dec  6 22:17:56 HS-DHGLEA2 kernel: sdb: Write Protect is off
Dec  6 22:17:56 HS-DHGLEA2 kernel: sdb: assuming drive cache: write through
Dec  6 22:17:56 HS-DHGLEA2 kernel:  sdb: sdb1 sdb2 sdb4 < sdb5 sdb6 >
Dec  6 22:17:56 HS-DHGLEA2 kernel: sd 2:0:0:0: Attached scsi disk sdb
Dec  6 22:17:56 HS-DHGLEA2 kernel: sd 2:0:0:0: Attached scsi generic sg1 type 0
EXT3-fs warning: checktime reached, running e2fsck is recommended
/sbin/hotplug [block]
Dec  6 22:17:58 HS-DHGLEA2 kernel: kjournald starting.  Commit interval 5 seconds
Dec  6 22:17:58 HS-DHGLEA2 kernel: EXT3-fs warning: checktime reached, running e2fsck is recommended
Dec  6 22:17:58 HS-DHGLEA2 kernel: EXT3 FS on sdb1, internal journal
Dec  6 22:17:58 HS-DHGLEA2 kernel: EXT3-fs: mounted filesystem with ordered data mode.
Dec  6 22:17:59 HS-DHGLEA2 nmbd[890]: [2009/12/06 22:17:59, 0] nmbd/nmbd.c:terminate(58)
Dec  6 22:17:59 HS-DHGLEA2 nmbd[890]:   Got SIGTERM: going down...
Dec  6 22:18:00 HS-DHGLEA2 atalkd[860]: done
Dec  6 22:18:00 HS-DHGLEA2 afpd[2433]: shutting down on signal 15

(2) /mnt/usbdisk1 に自動的にマウントされた場合はアンマウントします。

root@HS-DHGLEA2:~# df
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/sda2               493212    280528    212684  57% /
/dev/ram1                15360       116     15244   1% /mnt/ram
/dev/ls_disk1_1         194443     11019    173385   6% /boot
/dev/ls_disk1_6      159166528     67992 159098536   0% /mnt/disk1
/dev/ls_usbdisk1_1      287785     14907    258020   5% /mnt/usbdisk1
root@HS-DHGLEA2:~# umount /mnt/usbdisk1/
/sbin/hotplug [block]
root@HS-DHGLEA2:~#

(3) sdb にパーティションを切ります。

root@HS-DHGLEA2:~# fdisk /dev/sdb

The number of cylinders for this disk is set to 30401.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): p

Disk /dev/sdb: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1          37      297171   83  Linux
/dev/sdb2              38          99      498015   83  Linux
/dev/sdb4             100       30401   243400815    5  Extended
/dev/sdb5             100         116      136521   82  Linux swap
/dev/sdb6             117       30401   243264231   83  Linux

Command (m for help): d
Partition number (1-6): 4

Command (m for help): d
Partition number (1-4): 2

Command (m for help): d
Selected partition 1

Command (m for help): p

Disk /dev/sdb: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System

Command (m for help): n
Command action
   e   extended
   p   primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-30401, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-30401, default 30401): +250M

Command (m for help): n
Command action
   e   extended
   p   primary partition (1-4)
p
Partition number (1-4): 2
First cylinder (32-30401, default 32):
Using default value 32
Last cylinder or +size or +sizeM or +sizeK (32-30401, default 30401): +2048M

Command (m for help): n
Command action
   e   extended
   p   primary partition (1-4)
p
Partition number (1-4): 3
First cylinder (282-30401, default 282):
Using default value 282
Last cylinder or +size or +sizeM or +sizeK (282-30401, default 30401): +256M

Command (m for help): n
Command action
   e   extended
   p   primary partition (1-4)
p
Selected partition 4
First cylinder (314-30401, default 314):
Using default value 314
Last cylinder or +size or +sizeM or +sizeK (314-30401, default 30401):
Using default value 30401

Command (m for help): t
Partition number (1-4): 3
Hex code (type L to list codes): 82
Changed system type of partition 3 to 82 (Linux swap)

Command (m for help): p

Disk /dev/sdb: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1          31      248976   83  Linux
/dev/sdb2              32         281     2008125   83  Linux
/dev/sdb3             282         313      257040   82  Linux swap
/dev/sdb4             314       30401   241681860   83  Linux

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.
SCSI device sdb: 488397168 512-byte hdwr sectors (250059 MB)
sdb: Write Protect is off
sdb: assuming drive cache: write through
/sbin/hotplug [block]
/sbin/hotplug [block]
/sbin/hotplug [block]
/sbin/hotplug [block]
/sbin/hotplug [block]
/sbin/hotplug [block]
/sbin/hotplug [block]
/sbin/hotplug [block]
/sbin/hotplug [block]
/sbin/hotplug [block]
/sbin/hotplug [block]
/sbin/hotplug [block]
/sbin/hotplug [block]
SCSI device sdb: 488397168 512-byte hdwr sectors (250059 MB)
sdb: Write Protect is off
sdb: assuming drive cache: write through
/sbin/hotplug [block]
/sbin/hotplug [block]
/sbin/hotplug [block]
/sbin/hotplug [block]
Syncing disks.
root@HS-DHGLEA2:~#

インストール

カスタマイズ

hackkit_config を書く方法で
root@HS-DHGLEA2:~# cd /mnt/disk1/share/hackkit/
root@HS-DHGLEA2:/mnt/disk1/share/hackkit# echo ADDRESS=192.168.2.43 > hackkit_config
root@HS-DHGLEA2:/mnt/disk1/share/hackkit# echo HOSTNAME=gin >> hackkit_config
root@HS-DHGLEA2:/mnt/disk1/share/hackkit# cat !$
cat hackkit_config
ADDRESS=192.168.2.43
HOSTNAME=gin
root@HS-DHGLEA2:/mnt/disk1/share/hackkit#

インストーラの実行

root@HS-DHGLEA2:/mnt/disk1/share/hackkit# sh hackkit_091128.sh
PRODUCTID = 0x0000000A
MACHINE HSDHGL
formating hard drive ...
mke2fs 1.27 (8-Mar-2002)
Filesystem label=
OS type: Linux
Block size=1024 (log=0)
Fragment size=1024 (log=0)
62248 inodes, 248976 blocks
12448 blocks (5.00%) reserved for the super user
First data block=1
31 block groups
8192 blocks per group, 8192 fragments per group
2008 inodes per group
Superblock backups stored on blocks:
        8193, 24577, 40961, 57345, 73729, 204801, 221185

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

This filesystem will be automatically checked every 20 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.
meta-data=/dev/sdb2              isize=256    agcount=8, agsize=62754 blks
         =                       sectsz=512
data     =                       bsize=4096   blocks=502031, 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
realtime =none                   extsz=65536  blocks=0, rtextents=0
Setting up swapspace version 1, size = 263204864 bytes
meta-data=/dev/sdb4              isize=256    agcount=58, agsize=1048576 blks
         =                       sectsz=512
data     =                       bsize=4096   blocks=60420465, imaxpct=25
         =                       sunit=0      swidth=0 blks, unwritten=1
naming   =version 2              bsize=4096
log      =internal log           bsize=4096   blocks=29502, version=1
         =                       sectsz=512   sunit=0 blks
realtime =none                   extsz=65536  blocks=0, rtextents=0
mounting root file system ...
XFS mounting filesystem sdb2
/sbin/hotplug [block]
extracting hackkit archive ...
./
./var/
./var/lib/
./var/lib/apt/
./var/lib/apt/lists/
./var/lib/apt/lists/partial/
	:
	:
lib/modules/2.6.16.16-arm1/modules.alias
lib/modules/2.6.16.16-arm1/modules.symbols
lib/modules/v4l1-compat.ko
creating usb ...
/sbin/hotplug [block]
checking /dev/sdb1
fsck 1.27 (8-Mar-2002)
e2fsck 1.27 (8-Mar-2002)
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/62248 files (0.0% non-contiguous), 11987/248976 blocks
mounting /boot ...
copying /boot ...
/sbin/hotplug [block]
initrd.buffalo
uImage.buffalo
editing initrd ...
76973+1 records in
76973+1 records out
gunziping /mnt/debinst/boot/initrd.gz ...
EXT2-fs warning: checktime reached, running e2fsck is recommended
/sbin/hotplug [block]
/sbin/hotplug [block]
gziping /mnt/debinst/boot/initrd ... wait 5 minutes
Image Name:   initrd
Created:      Sun Dec  6 22:31:13 2009
Image Type:   ARM Linux RAMDisk Image (gzip compressed)
Data Size:    4907984 Bytes = 4792.95 kB = 4.68 MB
Load Address: 0x00000000
Entry Point:  0x00000000
unmount /boot ...
umount: /mnt/debinst/boot: device is busy
umount: /mnt/debinst/boot: device is busy
root@HS-DHGLEA2:/mnt/disk1/share/hackkit#

電源 OFF

ハックキットで起動

HDD の交換

標準ファームの HDD を取り外し、 USB で接続していた HDD を内蔵する。

起動

	:
---- in hackkit linuxrc ---
XFS mounting filesystem sda2
VFS: Mounted root (xfs filesystem).
Trying to move old root to /initrd ... okay
Freeing init memory: 108K
INIT: version 2.86 booting
Setting the system clock.
Activating swap...Adding 257032k swap on /dev/sda3.  Priority:-1 extents:1 across:257032k
done.
Setting the system clock.
Cleaning up ifupdown....
Loading kernel modules...done.
Checking file systems...fsck 1.41.3 (12-Oct-2008)
/dev/sda1: recovering journal
/dev/sda1: Clearing orphaned inode 6027 (uid=0, gid=0, mode=0100644, size=14680064)
/dev/sda1: Backing up journal inode block information.

/dev/sda1: clean, 13/62248 files, 18601/248976 blocks
/sbin/fsck.xfs: XFS file system.
done.
Setting kernel variables (/etc/sysctl.conf)...Unknown HZ value! (115) Assume 100.
done.
Mounting local filesystems...kjournald starting.  Commit interval 5 seconds
EXT3 FS on sda1, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
XFS mounting filesystem sda4
done.
Activating swapfile swap...done.
Setting up networking....
Configuring network interfaces...eth0: link down
done.
err: >AnalyzeRecvPacket:This is invalid RespCode.(code=244)
INIT: Entering runlevel: 2
Starting enhanced syslogd: rsyslogd.
eth0: link up<5>, full duplex<5>, speed 1 Gbps<5>
usbcore: registered new driver usblp
drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver
Starting internet superserver: inetd.
Starting periodic command scheduler: crond.

Debian GNU/Linux 5.0 gin ttyS0

gin login:

動作確認

LED の確認

OK

ログイン

Debian GNU/Linux 5.0 gin ttyS0

gin login: guest
Password:
Linux gin 2.6.16.16-arm1 #69 Wed Oct 1 10:59:37 JST 2008 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@gin:/$

root になる

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

USB メモリの認識

gin:~# tail -f /var/log/messages
	:
	:
usb 2-1: new high speed USB device using ehci_platform and address 2
Dec  6 22:38:22 gin kernel: usb 2-1: new high speed USB device using ehci_platform and address 2
usb 2-1: configuration #1 chosen from 1 choice
scsi2 : SCSI emulation for USB Mass Storage devices
Dec  6 22:38:22 gin kernel: usb 2-1: configuration #1 chosen from 1 choice
Dec  6 22:38:22 gin kernel: scsi2 : SCSI emulation for USB Mass Storage devices
  Vendor: BUFFALO   Model: ClipDrive         Rev: 2.00
  Type:   Direct-Access                      ANSI SCSI revision: 02
Dec  6 22:38:27 gin kernel:  Vendor: BUFFALO   Model: ClipDrive         Rev: 2.00
Dec  6 22:38:27 gin kernel:  Type:   Direct-Access                      ANSI SCSI revision: 02
ready
SCSI device sdb: 256000 512-byte hdwr sectors (131 MB)
sdb: Write Protect is off
sdb: assuming drive cache: write through
SCSI device sdb: 256000 512-byte hdwr sectors (131 MB)
sdb: Write Protect is off
sdb: assuming drive cache: write through
 sdb: sdb1
sd 2:0:0:0: Attached scsi removable disk sdb
sd 2:0:0:0: Attached scsi generic sg1 type 0
Dec  6 22:38:28 gin kernel: ready
Dec  6 22:38:28 gin kernel: SCSI device sdb: 256000 512-byte hdwr sectors (131 MB)
Dec  6 22:38:28 gin kernel: sdb: Write Protect is off
Dec  6 22:38:28 gin kernel: SCSI device sdb: 256000 512-byte hdwr sectors (131 MB)
Dec  6 22:38:28 gin kernel: sdb: Write Protect is off
Dec  6 22:38:28 gin kernel: sdb: sdb1
Dec  6 22:38:28 gin kernel: sd 2:0:0:0: Attached scsi removable disk sdb
Dec  6 22:38:28 gin kernel: sd 2:0:0:0: Attached scsi generic sg1 type 0

usb 2-1: USB disconnect, address 2
Dec  6 22:38:37 gin kernel: usb 2-1: USB disconnect, address 2
OK

プリンタの認識

usb 2-1: new high speed USB device using ehci_platform and address 3
usb 2-1: configuration #1 chosen from 1 choice
drivers/usb/class/usblp.c: usblp0: USB Bidirectional printer dev 3 if 0 alt 0 proto 2 vid 0x04B8 pid 0x0007
Dec  6 22:39:12 gin kernel: usb 2-1: new high speed USB device using ehci_platform and address 3
Dec  6 22:39:12 gin kernel: usb 2-1: configuration #1 chosen from 1 choice
Dec  6 22:39:12 gin kernel: drivers/usb/class/usblp.c: usblp0: USB Bidirectional printer dev 3 if 0 alt 0 proto 2 vid 0x04B8 pid 0x0007

usb 2-1: USB disconnect, address 3
drivers/usb/class/usblp.c: usblp0: removed
Dec  6 22:39:20 gin kernel: usb 2-1: USB disconnect, address 3
Dec  6 22:39:20 gin kernel: drivers/usb/class/usblp.c: usblp0: removed
OK

リブートの確認

OK

シャットダウンの確認

OK

最初の設定

起動

ログイン

Debian GNU/Linux 5.0 gin ttyS0

gin login: guest
Password:
Last login: Sun Dec  6 22:37:39 JST 2009 on ttyS0
Linux gin 2.6.16.16-arm1 #69 Wed Oct 1 10:59:37 JST 2008 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@gin:/$

root になる

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

時計を合わせる

gin:~# date
Sun Dec  6 22:45:10 JST 2009
gin:~#

スクリプト

ここから ftp サーバまでは、いつものスクリプトで確認する。
gin:~# sh setup_090717.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
Hit http://ftp.jp.debian.org lenny Release
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
Get:1 http://security.debian.org lenny/updates Release.gpg [835B]
Get:2 http://security.debian.org lenny/updates Release [40.8kB]
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 [296kB]
Get:4 http://security.debian.org lenny/updates/main Sources [77.8kB]
Fetched 415kB in 6s (64.9kB/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 8262kB of archives.
After this operation, 29.7MB 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-19lenny2 [3198kB]
Get:3 http://ftp.jp.debian.org lenny/main perl 5.10.0-19lenny2 [4532kB]
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-8lenny2 [459kB]
Fetched 8262kB in 3s (2576kB/s)
Selecting previously deselected package libedit2.
(Reading database ... 8602 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-19lenny2_all.deb) ...
Selecting previously deselected package perl.
Unpacking perl (from .../perl_5.10.0-19lenny2_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-8lenny2_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-8lenny2) ...
Starting NTP server: ntpd.
Setting up perl-modules (5.10.0-19lenny2) ...
Setting up perl (5.10.0-19lenny2) ...
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 8614kB 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-5lenny1 [449kB]
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 libtalloc1 1.2.0~git20080616-1 [13.3kB]
Get:6 http://security.debian.org lenny/updates/main libcups2 1.3.8-1+lenny7 [158kB]
Get:7 http://security.debian.org lenny/updates/main libwbclient0 2:3.2.5-4lenny7 [78.8kB]
Get:8 http://security.debian.org lenny/updates/main samba-common 2:3.2.5-4lenny7 [3372kB]
Get:9 http://security.debian.org lenny/updates/main samba 2:3.2.5-4lenny7 [4294kB]
Fetched 8614kB in 27s (308kB/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                                                                    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                                                                  x
 x                                                                           x
 mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj



Selecting previously deselected package libkeyutils1.
(Reading database ... 9854 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-5lenny1_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-1+lenny7_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-4lenny7_armel.deb) ...
Selecting previously deselected package samba-common.
Unpacking samba-common (from .../samba-common_2%3a3.2.5-4lenny7_armel.deb) ...
Selecting previously deselected package samba.
Unpacking samba (from .../samba_2%3a3.2.5-4lenny7_armel.deb) ...
Processing triggers for man-db ...
Setting up libkeyutils1 (1.2-9) ...
Setting up libkrb53 (1.6.dfsg.4~beta1-5lenny1) ...
Setting up libldap-2.4-2 (2.4.11-1) ...
Setting up ucf (3.0016) ...
Setting up libcups2 (1.3.8-1+lenny7) ...
Setting up libtalloc1 (1.2.0~git20080616-1) ...
Setting up libwbclient0 (2:3.2.5-4lenny7) ...
Setting up samba-common (2:3.2.5-4lenny7) ...

Creating config file /etc/samba/smb.conf with new version
Setting up samba (2:3.2.5-4lenny7) ...
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:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  inetutils-ftpd
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 94.1kB of archives.
After this operation, 197kB of additional disk space will be used.
Get:1 http://ftp.jp.debian.org lenny/main inetutils-ftpd 2:1.5.dfsg.1-9 [94.1kB]
Fetched 94.1kB in 0s (325kB/s)
Selecting previously deselected package inetutils-ftpd.
(Reading database ... 10031 files and directories currently installed.)
Unpacking inetutils-ftpd (from .../inetutils-ftpd_2%3a1.5.dfsg.1-9_armel.deb) ...
Processing triggers for man-db ...
Setting up inetutils-ftpd (2:1.5.dfsg.1-9) ...
gin:~#
問題なさそう


HS-DHGL
バッファローダイレクト
楽天市場
Yahoo!ショッピング
ValuMore!
ムラウチドットコム


作り直したハックキットの確認(5)LS-QL
ハックの記録
LinkStation/玄箱 をハックしよう

作り直したハックキットの確認(7)LS-CL

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