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

Debian LS-QL

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

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

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

パーティションの削除

標準ファームにログイン、 動いているシステム!のパーティションを削除する
root@LS-QL233:~# fdisk /dev/sda

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/sda: 163.9 GB, 163928604672 bytes
255 heads, 63 sectors/track, 19929 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks  Id System
/dev/sda1               1         125     1004031  83 Linux
/dev/sda2             126         748     5004247+ 83 Linux
/dev/sda4             749       19929   154071382+  5 Extended
/dev/sda5             749         873     1004031  82 Linux swap
/dev/sda6             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/sda: 163.9 GB, 163928604672 bytes
255 heads, 63 sectors/track, 19929 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   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
fdisk: WARNING: rereading partition table failed, kernel still uses old table: Device or resource busy
root@LS-QL233:~#

tftp サーバの準備

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 uImage.buffalo
yasunari@ude:/srv/tftp$ ln LS-QL_1.10b/* .
yasunari@ude:/srv/tftp$
最新のバージョンである 1.11 の initrd.buffalo uImage.buffalo も 置いておかなあかんな

再起動

コンセントを抜いてシャットダウンの後、再起動
E06 になるので、function ボタンを押す

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

準備(LS-QL の場合)

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

ログインできるようにしてある標準ファームの HDD で起動、
まっさらにした HDD を USB で接続。
/etc/shadow のパスワードを消す。
root@LS-QL233:~# df
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/md1               4993920    381796   4612124   8% /
/dev/ram1                15360       116     15244   1% /mnt/ram
/dev/md0                995928    172320    823608  17% /boot
/dev/disk1_6         148376092     66352 148309740   0% /mnt/disk1
/dev/usbdisk1_1         995928    172576    823352  17% /mnt/usbdisk1
root@LS-QL233:~# umount /mnt/usbdisk1/
root@LS-QL233:~# mkdir /tmp/root
root@LS-QL233:~# mount /dev/sdb2 /tmp/root
XFS mounting filesystem sdb2
root@LS-QL233:~# vi /tmp/root/etc/shadow
	:
	:
root@LS-QL233:~# grep root !$
grep root /tmp/root/etc/shadow
root::11009:0:99999:7:::
root@LS-QL233:~# umount /tmp/root
root@LS-QL233:~#

標準ファームの HDD のコピー

LS-QL では標準ファームにハックキットを上書きするため、 標準ファームの HDD をコピーします。

(1) ドライブ1に標準ファームの HDD をセット、 ドライブ2にパーティションを削除した HDD をセットして起動します。

(2) 標準ファームの Web 管理画面を用い DISK2 を XFS でフォーマットします。

(3) 電源 OFF。コンセントも抜きます。

標準ファームで起動

ハックキットのファイルを置く

RamBoot モードへの変更

(1) 標準ファームに root でログインします。

BUFFALO INC. LinkStation series
LS-QL233 login: root
No mail.
root@LS-QL233:~#

(2) initrd.buffalo の変更

ramroot_091128.sh を実行します。
root@LS-QL233:~# cd /mnt/disk1/share/hackkit/
root@LS-QL233:/mnt/disk1/share/hackkit# sh ramroot_091128.sh
Extracting initrd...
kjournald starting.  Commit interval 5 seconds
EXT3 FS on md0, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
110523+1 records in
110523+1 records out
mounting initrd...
editing linuxrc...
clearing root's password...
rebuilding initrd.buffalo...
gziping initrd ... wait 5 minutes
Image Name:   initrd
Created:      Sun Dec  6 09:39:34 2009
Image Type:   ARM Linux RAMDisk Image (gzip compressed)
Data Size:    7039809 Bytes = 6874.81 kB = 6.71 MB
Load Address: 0x00000000
Entry Point:  0x00000000
root@LS-QL233:/mnt/disk1/share/hackkit#

(3) 電源 OFF。コンセントも抜きます。

(4) コンセントを刺し、電源 ON。RamRoot モードで起動してきます。

ログイン

BUFFALO INC. LinkStation series
LS-QL-EM233 login: root
No mail.
root@LS-QL-EM233:~#

時計を合わせる

root@LS-QL-EM233:~# date
Sun Dec  6 09:44:37 JST 2009
root@LS-QL-EM233:~#

ディスクのマウント

root@LS-QL-EM233:~# mkdir /mnt/disk1
mkdir: cannot create directory '/mnt/disk1': File exists
root@LS-QL-EM233:~# mount /dev/sda6 /mnt/disk1
XFS mounting filesystem sda6
XFS resetting qflags for filesystem sda6
root@LS-QL-EM233:~#

インストール

カスタマイズ

hackkit_config を書く方法で
root@LS-QL-EM233:~# cd /mnt/disk1/share/hackkit/
 hackkit_config
> hackkit_config
root@LS-QL-EM233:/mnt/disk1/share/hackkit# cat hackkit_config
ADDRESS=192.168.2.50
HOSTNAME=qube
root@LS-QL-EM233:/mnt/disk1/share/hackkit#

インストーラの実行

root@LS-QL-EM233:/mnt/disk1/share/hackkit# sh hackkit_091128.sh
PRODUCTID = 0x00004000
MACHINE LSQL
building md...
-- rebuild mdadm.conf for BOOT, ROOTFS --
md: md10 stopped.
mdadm: /dev/disk1_1 has wrong uuid.
mdadm: /dev/disk1_2 has wrong uuid.
md: bind
raid1: raid set md10 active with 1 out of 4 mirrors
mdadm: /dev/md10md: md1 stopped.
 has been started with 1 drive (out of 4).
mdadm: /dev/disk1_1 has wrong uuid.
md: bind
raid1: raid set md1 active with 1 out of 4 mirrors
mdadm: /dev/md1 md: md0 stopped.
has been started with 1 drive (out of 4).
md: bind
raid1: raid set md0 active with 1 out of 4 mirrors
mdadm: /dev/md0 has been started with 1 drive (out of 4).
-- setup max error counts --
/sys/block/md0/md/maxerr_cnt is setted to -1
/sys/block/md1/md/maxerr_cnt is setted to -1
/sys/block/md10/md/maxerr_cnt is setted to -1
mounting root file system ...
Filesystem "md1": Disabling barriers, not supported by the underlying device
XFS mounting filesystem md1
extracting hackkit archive ...
./
./var/
./var/lib/
./var/lib/apt/
./var/lib/apt/lists/
./var/lib/apt/lists/partial/
	:
	:
./sbin/xfs_repair
./sbin/lsmod
./sbin/ip
./tmp/
./sys/
./selinux/
./srv/
./opt/
./media/
./initrd/
creating /etc/fstab ...
creating miconapl ...
creating kernelmon ...
creating usb ...
checking /dev/md0
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
/lost+found not found.  Create? yes

Pass 4: Checking reference counts
Pass 5: Checking group summary information

/dev/md0: ***** FILE SYSTEM WAS MODIFIED *****
/dev/md0: 19/62976 files (15.8% non-contiguous), 48586/250976 blocks
mounting /boot ...
kjournald starting.  Commit interval 5 seconds
EXT3 FS on md0, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
editing initrd ...
109997+1 records in
109997+1 records out
gunziping /mnt/debinst/boot/initrd.gz ...
gziping /mnt/debinst/boot/initrd ... wait 5 minutes
Image Name:   initrd
Created:      Sun Dec  6 09:51:31 2009
Image Type:   ARM Linux RAMDisk Image (gzip compressed)
Data Size:    7040705 Bytes = 6875.69 kB = 6.71 MB
Load Address: 0x00000000
Entry Point:  0x00000000
unmount /boot ...
root@LS-QL-EM233:/mnt/disk1/share/hackkit#

電源 OFF

ハックキットで起動

HDD の交換

非該当

起動

	:
---- in hackkit linuxrc ---
grep: /var/tmp/devlink: No such file or directory
-- rebuild mdadm.conf for BOOT, ROOTFS --
mdadm: cannot open /dev/disk2_1: No such device or address
mdadm: cannot open /dev/disk2_2: No such device or address
mdadm: cannot open /dev/disk2_5: No such device or address
md: md10 stopped.
mdadm: cannot open device /dev/disk2_1: No such device or address
mdadm: /dev/disk2_1 has wrong uuid.
mdadm: /dev/disk1_1 has wrong uuid.
mdadm: cannot open device /dev/disk2_2: No such device or address
mdadm: /dev/disk2_2 has wrong uuid.
mdadm: /dev/disk1_2 has wrong uuid.
mdadm: cannot open device /dev/disk2_5: No such device or address
mdadm: /dev/dmd: bind<sda5>
isk2_5 has wrong uuid.
raid1: raid set md10 active with 1 out of 4 mirrors
mdadm: /dev/md10md: md1 stopped.
 has been started with 1 drive (out of 4).
mdadm: /dev/disk1_1 has wrong uuid.
md: bind<sda2>
raid1: raid set md1 active with 1 out of 4 mirrors
mdadm: /dev/md1 md: md0 stopped.
has been started with 1 drive (out of 4).
md: bind<sda1>
raid1: raid set md0 active with 1 out of 4 mirrors
mdadm: /dev/md0 has been started with 1 drive (out of 4).
-- setup max error counts --
/sys/block/md0/md/maxerr_cnt is setted to -1
/sys/block/md1/md/maxerr_cnt is setted to -1
/sys/block/md10/md/maxerr_cnt is setted to -1
umount: cannot open /proc/mounts
Filesystem "md1": Disabling barriers, not supported by the underlying device
XFS mounting filesystem md1
VFS: Mounted root (xfs filesystem).
Trying to move old root to /initrd ... okay
Freeing init memory: 120K
INIT: version 2.86 booting
Setting the system clock.
Activating swap...Adding 1003896k swap on /dev/md10.  Priority:-1 extents:1 across:1003896k
done.
Filesystem "md1": Disabling barriers, not supported by the underlying device
Setting the system clock.
Cleaning up ifupdown....
Loading kernel modules...done.
Checking file systems...fsck 1.41.3 (12-Oct-2008)
done.
Setting kernel variables (/etc/sysctl.conf)...done.
Mounting local filesystems...kjournald starting.  Commit interval 5 seconds
EXT3 FS on md0, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
XFS mounting filesystem sda6
done.
Activating swapfile swap...done.
Setting up networking....
Configuring network interfaces...eth reg(9) val=0x0300
eth0: link down
done.
INIT: Entering runlevel: 2
Starting enhanced syslogd: rsyslogd.
eth0: link up, full duplex, speed 1 Gbps
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
ehci_marvell ehci_marvell.4523: Marvell Orion EHCI
ehci_marvell ehci_marvell.4523: new USB bus registered, assigned bus number 1
ehci_marvell ehci_marvell.4523: irq 17, io base 0xf1050100
ehci_marvell ehci_marvell.4523: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
ehci_marvell ehci_marvell.167817: Marvell Orion EHCI
ehci_marvell ehci_marvell.167817: new USB bus registered, assigned bus number 2
ehci_marvell ehci_marvell.167817: irq 12, io base 0xf10a0100
ehci_marvell ehci_marvell.167817: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004
usb usb2: configuration #1 chosen from 1 choice
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 1 port detected
USB Universal Host Controller Interface driver v3.0
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface 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 qube ttyS0

qube login:

動作確認

LED の確認

OK

ログイン

Debian GNU/Linux 5.0 qube ttyS0

qube login: guest
Password:
Linux qube 2.6.22.7 #1 Thu Jun 18 21:48:29 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@qube:/$

root になる

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

USB メモリの認識

usb 1-1: new high speed USB device using ehci_marvell and address 2
Dec  6 09:56:15 qube kernel: usb 1-1: new high susb 1-1: configuration #1 chosen from 1 choice
peed USB device using ehci_marvescsi2 : SCSI emulation for USB Mass Storage devices
ll and address 2
Dec  6 09:56:15 qube kernel: usb 1-1: configuration #1 chosen from 1 choice
Dec  6 09:56:15 qube kernel: scsi2 : SCSI emulation for USB Mass Storage devices
scsi 2:0:0:0: Direct-Access     BUFFALO  ClipDrive        2.00 PQ: 0 ANSI: 2
Dec  6 09:56:20 qube kernel: scsi 2:0:0:0: Direct-Access     BUFFALO  ClipDrive        2.00 PQ: 0 ANSI: 2
ready
sd 2:0:0:0: [sdb] 256000 512-byte hardware sectors (131 MB)
sd 2:0:0:0: [sdb] Write Protect is off
sd 2:0:0:0: [sdb] Assuming drive cache: write through
sd 2:0:0:0: [sdb] 256000 512-byte hardware sectors (131 MB)
sd 2:0:0:0: [sdb] Write Protect is off
sd 2:0:0:0: [sdb] Assuming drive cache: write through
 sdb: sdb1
sd 2:0:0:0: [sdb] Attached SCSI removable disk
sd 2:0:0:0: Attached scsi generic sg1 type 0
Dec  6 09:56:21 qube kernel: ready
Dec  6 09:56:21 qube kernel: sd 2:0:0:0: [sdb] 256000 512-byte hardware sectors (131 MB)
Dec  6 09:56:21 qube kernel: sd 2:0:0:0: [sdb] Write Protect is off
Dec  6 09:56:21 qube kernel: sd 2:0:0:0: [sdb] 256000 512-byte hardware sectors (131 MB)
Dec  6 09:56:21 qube kernel: sd 2:0:0:0: [sdb] Write Protect is off
Dec  6 09:56:21 qube kernel: sdb: sdb1
Dec  6 09:56:21 qube kernel: sd 2:0:0:0: [sdb] Attached SCSI removable disk
Dec  6 09:56:21 qube kernel: sd 2:0:0:0: Attached scsi generic sg1 type 0

usb 1-1: USB disconnect, address 2
Dec  6 09:56:32 qube kernel: usb 1-1: USB disconnect, address 2

OK

プリンタの認識

usb 1-1: new high speed USB device using ehci_marvell and address 3
usb 1-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

usb 1-1: USB disconnect, address 3
drivers/usb/class/usblp.c: usblp0: removed
OK

リブートの確認

OK

シャットダウンの確認

OK

最初の設定

起動

ログイン

Debian GNU/Linux 5.0 qube ttyS0

qube login: guest
Password:
Last login: Sun Dec  6 09:55:19 JST 2009 on ttyS0
Linux qube 2.6.22.7 #1 Thu Jun 18 21:48:29 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@qube:/$

root になる

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

時計を合わせる

qube:~# date
Sun Dec  6 10:02:24 JST 2009
qube:~#

スクリプト

ここから ftp サーバまでは、いつものスクリプトで確認する。
qube:/mnt/disk1/share/hackkit# 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
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 (62.2kB/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 2s (2976kB/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 15s (540kB/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:
Mismatch - password unchanged.
Unable to get new 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 (420kB/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 685
+ apt-get clean
qube:/mnt/disk1/share/hackkit# smbpasswd -a yasunari
New SMB password:
Retype new SMB password:
qube:/mnt/disk1/share/hackkit#
ちょっと間違ったが、、
問題なさそう

LS-QL
バッファローダイレクト
楽天市場
amazon
livedoorデパート
Sofmap
バリューモア
Yahoo!ショッピングトップ
ムラウチドットコム


ネットワーク対応HDD 計4製品の価格改定を実施 最大約13%の値下げ
ハックの記録
LinkStation/玄箱 をハックしよう

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

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