作り直したハックキットの確認(3)LS-CHL(偽)

Debian LS-CHL

ハックキットを作り直したので、全機種確認していく。
続いて LS-CHL

といっても LS-CHL はレンガにしてしまったので、互換の LS-XHL を使う。 これとてフラッシュが壊れているので、気休めでしかない。

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

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

パーティションの削除

ハックキットをインストールした LS-XHL に 実験用 HDD を USB で接続し、 fdisk でパーティションを削除。
brick:~# fdisk /dev/sdb

WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support GPT. Use GNU Parted.


The number of cylinders for this disk is set to 60801.
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: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1       60802   488386583+  ee  EFI GPT

Command (m for help): q

brick:~# parted
-su: parted: command not found
brick:~# apt-get install parted
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  libparted1.8-10
Suggested packages:
  libparted1.8-dev libparted1.8-i18n parted-doc
The following NEW packages will be installed:
  libparted1.8-10 parted
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 270kB of archives.
After this operation, 623kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://ftp.jp.debian.org lenny/main libparted1.8-10 1.8.8.git.2008.03.24-11.1 [202kB]
Get:2 http://ftp.jp.debian.org lenny/main parted 1.8.8.git.2008.03.24-11.1 [67.6kB]
Fetched 270kB in 0s (511kB/s)
Selecting previously deselected package libparted1.8-10.
(Reading database ... 10041 files and directories currently installed.)
Unpacking libparted1.8-10 (from .../libparted1.8-10_1.8.8.git.2008.03.24-11.1_armel.deb) ...
Selecting previously deselected package parted.
Unpacking parted (from .../parted_1.8.8.git.2008.03.24-11.1_armel.deb) ...
Processing triggers for man-db ...
Setting up libparted1.8-10 (1.8.8.git.2008.03.24-11.1) ...
Setting up parted (1.8.8.git.2008.03.24-11.1) ...
brick:~# parted -s /dev/sdb print
Model: ViPowER VP-89118(SD1) (scsi)
Disk /dev/sdb: 500GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number  Start   End     Size    File system  Name     Flags
 1      17.4kB  1024MB  1024MB  ext3         primary
 2      1024MB  6144MB  5120MB  xfs          primary
 3      6144MB  7168MB  1024MB  linux-swap   primary
 4      7168MB  500GB   493GB   xfs          primary

brick:~# parted -s /dev/sdb rm 4
brick:~# ^4^3
parted -s /dev/sdb rm 3
brick:~# ^3^2
parted -s /dev/sdb rm 2
brick:~# ^2^1
parted -s /dev/sdb rm 1
brick:~# parted -s /dev/sdb print
Model: ViPowER VP-89118(SD1) (scsi)
Disk /dev/sdb: 500GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number  Start  End  Size  File system  Name  Flags

brick:~# !fdisk
fdisk /dev/sdb

WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support GPT. Use GNU Parted.


The number of cylinders for this disk is set to 60801.
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: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1       60802   488386583+  ee  EFI GPT

Command (m for help): d
Selected partition 1

Command (m for help): p

Disk /dev/sdb: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 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.
Syncing disks.
brick:~#

tftp サーバの準備

LS-CHL の initrd, uImage を用意する。
yasunari@ude:~$ cd /srv/tftp/
yasunari@ude:/srv/tftp$ ls
HS-DHGL_1.20   LS-CL_1.11         LS-QL_1.10b         SheevaPlug_1.2
LS-CHL_1.10    LS-GL_1.15         LS-WSGL_1.06        initrd.buffalo
LS-CHL_1.20    LS-HGL_1.07b       LS-XHL_1.02         uImage.buffalo
LS-CHL_1.21    LS-LGL_2.01        LS-XHL_1.02+telnet
LS-CL+HackKit  LS-QL_1.05+telnet  LS-XHL_1.04b
LS-CL_1.07     LS-QL_1.07b        LS-XHL_1.10
yasunari@ude:/srv/tftp$ rm initrd.buffalo uImage.buffalo
yasunari@ude:/srv/tftp$ ln LS-CHL_1.21/* .
yasunari@ude:/srv/tftp$

tftp boot

パーティションを削除した HDD を LS-XHL に刺して起動
E06 になったところで FUNCTION SW を押す

tftp サーバから uImage と initrd とを持っていったが、 いつまで立っても LED は青点滅のまま。

LS-CHL 1.10 の initrd.buffalo uImage.buffalo で tftp boot してみたら 無事起動してきた。

ファームウェアアップデータの実行

LS-CHL ファームウェア 1.21 の LSUpdater.ini を修正する。
・ProductID を 0x80000080 に変更
・NoFormatting=1 行を消す。

ファームウェアアップデータを実行して LS-XHL の電源断

準備(LS-XHL の場合)

LS-CHL も LS-XHL と同じで良いはず

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

LS-CHL 標準ファームの HDD を取り外し、 ハックキットをインストールした LS-XHL の HDD で起動する。
この LS-XHL ハックキットを使って標準ファームに root でログインできるように する。
brick:~# mkdir /tmp/root
brick:~# mount /dev/sdb2 /tmp/root/
brick:~# vi /tmp/root/etc/shadow
	:
	:
brick:~# grep root !$
grep root /tmp/root/etc/shadow
root::11009:0:99999:7:::
brick:~#
続いて telnet だが、、、
brick:~# ls -l /tmp/root/usr/sbin/telnetd
ls: cannot access /tmp/root/usr/sbin/telnetd: No such file or directory
brick:~# cat /tmp/root/etc/linkstation_release
VERSION=1.21
SUBVERSION=HDD 0.88
PRODUCTID=0x00000000
BUILDDATE=2009/07/24 19:50:32
brick:~#
ファーム 1.21 には telnetd がない。
仕方がないので、先日作った telnetd を仕込む
brick:~# cd /tmp/root/usr/local/bin/
brick:/tmp/root/usr/local/bin# ftp ude
ftp: ude: Unknown host
ftp> bye
brick:/tmp/root/usr/local/bin# ftp ude.yamasita.jp
Connected to ude.yamasita.jp.
220 ude FTP server (GNU inetutils 1.5) ready.
Name (ude.yamasita.jp:yasunari):
331 Password required for yasunari.
Password:
230- Linux ude 2.6.16.16-arm1 #37 Tue May 20 10:01:57 JST 2008 armv5tejl
230-
230- The programs included with the Debian GNU/Linux system are free software;
230- the exact distribution terms for each program are described in the
230- individual files in /usr/share/doc/*/copyright.
230-
230- Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
230- permitted by applicable law.
230 User yasunari logged in.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> cd /home/linkstation/HackKit/unified/091122/busybox
250 CWD command successful.
ftp> bin
200 Type set to I.
ftp> get busybox-telnetd_static
local: busybox-telnetd_static remote: busybox-telnetd_static
200 PORT command sucessful.
150 Opening BINARY mode data connection for 'busybox-telnetd_static' (646596 bytes).
226 Transfer complete.
646596 bytes received in 0.02 secs (25414.2 kB/s)
ftp> bye
221 Goodbye.
brick:/tmp/root/usr/local/bin# ls -l busybox-telnetd_static
-rw-r--r-- 1 root root 646596 Nov 23 13:59 busybox-telnetd_static
brick:/tmp/root/usr/local/bin# chmod 775 busybox-telnetd_static
brick:/tmp/root/usr/local/bin# ./busybox-telnetd_static --help
BusyBox v1.7.0 (2009-09-29 19:11:16 JST) multi-call binary
Copyright (C) 1998-2006  妥rik Andersen, Rob Landley, and others.
Licensed under GPLv2.  帯ee source distribution for full notice.

Usage: busybox [function] [arguments]...
   or: [function] [arguments]...

        BusyBox is a multi-call binary that combines many common Unix
        utilities into a single executable.  Most people will create a
        link to busybox for each function they wish to use and BusyBox
        will act like whatever it was invoked as!

Currently defined functions:
        [, [[, ash, echo, sh, telnetd, test

brick:/tmp/root/usr/local/bin# ln -s /usr/local/bin/busybox-telnetd_static /tmp/root/usr/sbin/telnetd
brick:/tmp/root/usr/local/bin# tail /tmp/root/etc/init.d/rcS

exec_sh bootcomplete.sh

echo "** step final(after bootcomplete) **"
for cmd in hdd_late_check.sh check_initialization.sh usb_late_check.sh
do
        exec_sh ${cmd}
done

/usr/local/bin/share_delete.sh &
brick:/tmp/root/usr/local/bin# echo >> /tmp/root/etc/init.d/rcS
brick:/tmp/root/usr/local/bin# echo /usr/sbin/telnetd >> /tmp/root/etc/init.d/rcS
brick:/tmp/root/usr/local/bin# !tail
tail /tmp/root/etc/init.d/rcS

echo "** step final(after bootcomplete) **"
for cmd in hdd_late_check.sh check_initialization.sh usb_late_check.sh
do
        exec_sh ${cmd}
done

/usr/local/bin/share_delete.sh &

/usr/sbin/telnetd
brick:/tmp/root/usr/local/bin# cd /
brick:/# umount /tmp/root
brick:/#
LS-XHL をシャットダウン

標準ファームで起動

LS-CHL 標準ファームの HDD を LS-XHL に戻して起動

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

ログイン


BUFFALO INC. BuffaloNas series
sh-3.2#

時計を合わせる

sh-3.2# date
Mon Nov 23 14:05:42 JST 2009
sh-3.2#

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

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

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

sh-3.2# df
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/sda2              4989760    375940   4613820   8% /
/dev/ram1                15360       112     15248   1% /mnt/ram
/dev/sda1               992036    159820    832216  16% /boot
/dev/disk1_6         473337664     67568 473270096   0% /mnt/disk1
/dev/usbdisk1_1         992036     17632    924408   2% /mnt/usbdisk1
sh-3.2# umount /mnt/usbdisk1/
sh-3.2#

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

sh-3.2# parted -s /dev/sdb print
Model: ViPowER VP-89118(SD1) (scsi)
Disk /dev/sdb: 500GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number  Start   End     Size    File system  Name     Flags
 1      17.4kB  1024MB  1024MB  ext3         primary
 2      1024MB  6144MB  5120MB  xfs          primary
 3      6144MB  6144MB  512B                 primary
 4      6144MB  6144MB  512B                 primary
 5      6144MB  7168MB  1024MB  linux-swap   primary
 6      7168MB  492GB   485GB   xfs          primary

sh-3.2# parted -s /dev/sdb rm 6
sh-3.2# ^6^5
parted -s /dev/sdb rm 5
sh-3.2# ^5^4
parted -s /dev/sdb rm 4
sh-3.2# ^4^3
parted -s /dev/sdb rm 3
sh-3.2# ^3^2
parted -s /dev/sdb rm 2
sh-3.2# ^2^1
parted -s /dev/sdb rm 1
sh-3.2# !?print
parted -s /dev/sdb print
Model: ViPowER VP-89118(SD1) (scsi)
Disk /dev/sdb: 500GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number  Start  End  Size  File system  Name  Flags

sh-3.2# fdisk /dev/sdb

The number of cylinders for this disk is set to 60801.
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: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks  Id System
/dev/sdb1               1       60802   488386583+ ee EFI GPT

Command (m for help): d
Selected partition 1

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

Calling ioctl() to re-read partition table
sh-3.2# parted -s /dev/sdb mklabel gpt
sh-3.2# parted -s /dev/sdb mkpart primary ext3 0 1024M
sh-3.2# parted -s /dev/sdb mkpart primary xfs 1024MB 6144MB
sh-3.2# parted -s /dev/sdb mkpart primary linux-swap 6144MB  7168MB
sh-3.2# parted -s /dev/sdb mkpart primary xfs 7168MB 500GB
sh-3.2# !?print
parted -s /dev/sdb print
Model: ViPowER VP-89118(SD1) (scsi)
Disk /dev/sdb: 500GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number  Start   End     Size    File system  Name     Flags
 1      17.4kB  1024MB  1024MB  ext3         primary
 2      1024MB  6144MB  5120MB  xfs          primary
 3      6144MB  7168MB  1024MB               primary
 4      7168MB  500GB   493GB   xfs          primary

sh-3.2#

インストール

カスタマイズ

hackkit_config を書く方法で
sh-3.2# cd /mnt/disk1/share/hackkit/
sh-3.2# echo ADDRESS=192.168.2.52 > hackkit_config
sh-3.2# echo HOSTNAME=chl >> hackkit_config
sh-3.2# cat hackkit_config
ADDRESS=192.168.2.52
HOSTNAME=chl
sh-3.2#

インストーラの実行

私の LS-XHL は PRODUCTID が壊れているので、fake しておく
sh-3.2# cd /mnt/disk1/share/hackkit
sh-3.2# mv hackkit_091122.sh{,.orig}
sh-3.2# cp hackkit_091122.sh{.orig,}
sh-3.2# vi hackkit_091122.sh
	:
	:
0x00000012 | 0x80000080)
        MACHINE=LSCHL

        ETH=eth1
        ;;
インストーラを実行する
sh-3.2# sh hackkit_091122.sh
PRODUCTID = 0x80000080
MACHINE LSCHL
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 28 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.dep
lib/modules/2.6.22.18/modules.ofmap
lib/modules/2.6.22.18/modules.symbols
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 ...
139728+1 records in
139728+1 records out
gunziping /mnt/debinst/boot/initrd.gz ...
gziping /mnt/debinst/boot/initrd ... wait 5 minutes
Image Name:   initrd
Created:      Mon Nov 23 14:15:48 2009
Image Type:   ARM Linux RAMDisk Image (gzip compressed)
Data Size:    8904830 Bytes = 8696.12 kB = 8.49 MB
Load Address: 0x00000000
Entry Point:  0x00000000
unmount /boot ...
sh-3.2#

電源 OFF

ハックキットで起動

HDD の交換

起動

シリアルコンソールがないので、LED だけが頼り。
青点灯にはなった。

動作確認

LED の確認

ログイン

Debian GNU/Linux 5.0
chl login: guest
Password:
Linux chl 2.6.22.18 #12 Fri Jul 24 19:48:59 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@chl:/$

root になる

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

USB メモリの認識

chl:~# tail -f /var/log/messages

Nov 23 14:19:55 chl kernel: usb 1-1: new high speed USB device using ehci_marvell and address 2
Nov 23 14:19:55 chl kernel: usb 1-1: configuration #1 chosen from 1 choice
Nov 23 14:19:55 chl kernel: scsi2 : SCSI emulation for USB Mass Storage devices
Nov 23 14:20:00 chl kernel: scsi 2:0:0:0: Direct-Access     BUFFALO  ClipDrive        2.00 PQ: 0 ANSI: 2
Nov 23 14:20:01 chl kernel: ready
Nov 23 14:20:01 chl kernel: sd 2:0:0:0: [sdb] 256000 512-byte hardware sectors (131 MB)
Nov 23 14:20:01 chl kernel: sd 2:0:0:0: [sdb] Write Protect is off
Nov 23 14:20:01 chl kernel: sd 2:0:0:0: [sdb] 256000 512-byte hardware sectors (131 MB)
Nov 23 14:20:01 chl kernel: sd 2:0:0:0: [sdb] Write Protect is off
Nov 23 14:20:01 chl kernel: sdb: sdb1
Nov 23 14:20:01 chl kernel: sd 2:0:0:0: [sdb] Attached SCSI removable disk
Nov 23 14:20:01 chl kernel: sd 2:0:0:0: Attached scsi generic sg1 type 0

Nov 23 14:20:07 chl kernel: usb 1-1: USB disconnect, address 2

プリンタの認識


Nov 23 14:57:04 chl kernel: usb 1-1: new full speed USB device using ehci_marvell and address 3
Nov 23 14:57:04 chl kernel: usb 1-1: configuration #1 chosen from 1 choice
Nov 23 14:57:04 chl kernel: drivers/usb/class/usblp.c: usblp0: USB Bidirectional printer dev 3 if 0 alt 0 proto 2 vid 0x04B8 pid 0x0005

Nov 23 14:57:16 chl kernel: usb 1-1: USB disconnect, address 3
Nov 23 14:57:16 chl kernel: drivers/usb/class/usblp.c: usblp0: removed
OK

リブートの確認

シャットダウンの確認

最初の設定

起動

ログイン

Debian GNU/Linux 5.0
chl login: guest
Password:
Last login: Mon Nov 23 14:18:35 JST 2009 from x31l.yamasita.jp on pts/0
Linux chl 2.6.22.18 #12 Fri Jul 24 19:48:59 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@chl:/$

root になる

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

時計を合わせる

chl:~# date
Mon Nov 23 15:02:06 JST 2009
chl:~#

スクリプト

ここから ftp サーバまでは、いつものスクリプトで確認する。
chl:~# sh -x setup_090717.sh
+ echo passwd root
passwd root
+ passwd root
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
+ addgroup --gid 1001 yamasita
Adding group `yamasita' (GID 1001) ...
Done.
+ echo adduser yasunari
adduser yasunari
+ adduser --home /home/yamasita/yasunari --ingroup yamasita --uid 1001 --gecos 'Yasunari Yamashita' 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
+ deluser guest
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.
+ apt-get update
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
Hit http://security.debian.org lenny/updates/main Packages
Hit http://security.debian.org lenny/updates/main Sources
Fetched 41.6kB in 4s (10.1kB/s)
Reading package lists... Done
+ apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
+ apt-get install ntp
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 8s (1003kB/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) ...
+ mv /etc/ntp.conf /etc/ntp.conf.orig
+ sed -e 's/^server/# server/' -e '/ntp.your-provider.example/aserver ntp3.jst.mfeed.ad.jp\
server ntp2.jst.mfeed.ad.jp\
server ntp1.jst.mfeed.ad.jp' /etc/ntp.conf.orig
+ apt-get install samba
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 1min9s (125kB/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.
+ echo
+ echo '[share]'
+ echo '        comment = hackkit share'
+ echo '        path = /mnt'
+ echo '        writable = Yes'
+ echo '        create mask = 0660'
+ echo '        directory mask = 0770'
+ /etc/init.d/samba reload
Reloading /etc/samba/smb.conf: smbd only.
+ echo smbpasswd -a yasunari
smbpasswd -a yasunari
+ smbpasswd -a yasunari
New SMB password:
Retype new SMB password:
+ mkdir /mnt/share
+ chgrp yamasita /mnt/share/
+ chmod g+w /mnt/share
+ apt-get install inetutils-ftpd
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 (170kB/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) ...
+ echo 'ftp     stream  tcp     nowait  root    /usr/sbin/tcpd  ftpd'
++ cat /var/run/inetd.pid
+ kill -HUP 609
+ apt-get clean
chl:~#
ざっと問題なさそう

LS-CHL
バッファローダイレクト
楽天市場
Amazon


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

DDOS

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