基本的には 3/4 の手順そのまま
BUFFALO INC. LinkStation series HS-DHGL(JINMU) HS-DHGL276 login: yasunari Password: Login incorrect HS-DHGL276 login: root Password: root@HS-DHGL276:~#
root@HS-DHGL276:~# mkdir -p /mnt/disk1/share/debian root@HS-DHGL276:~# cd !$ cd /mnt/disk1/share/debian root@HS-DHGL276:/mnt/disk1/share/debian#ハックキットは HD-HGLAN に置いてあるので、ftp する
root@HS-DHGL276:/mnt/disk1/share/debian# ftp giga.yamasita.jp Connected to giga.yamasita.jp. 220 ProFTPD 1.2.10 Server (ProFTPD Default Installation) [192.168.1.32] 500 AUTH not understood 500 AUTH not understood KERBEROS_V4 rejected as an authentication type Name (giga.yamasita.jp:root): yasunari 331 Password required for yasunari. Password: 230 User yasunari logged in. Remote system type is UNIX. Using binary mode to transfer files. ftp> cd HackKit-1.00 250 CWD command successful ftp> ls 200 PORT command successful 150 Opening ASCII mode data connection for file list -rwxrw-r-- 1 yasunari yamasita 6338 Dec 20 03:20 LS-GL_hackkit_1.00.sh -rwxrw-r-- 1 yasunari yamasita 47490838 Jan 8 14:10 LS-GL_hackkit_1.00.tar.gz 226 Transfer complete. ftp> bin 200 Type set to I ftp> hash Hash mark printing on (1024 bytes/hash mark). ftp> prompt Interactive mode off. ftp> mget * local: LS-GL_hackkit_1.00.sh remote: LS-GL_hackkit_1.00.sh 200 PORT command successful 150 Opening BINARY mode data connection for LS-GL_hackkit_1.00.sh (6338 bytes) ###### 226 Transfer complete. 6338 bytes received in 0.00072 seconds (8.6e+03 Kbytes/s) local: LS-GL_hackkit_1.00.tar.gz remote: LS-GL_hackkit_1.00.tar.gz 200 PORT command successful 150 Opening BINARY mode data connection for LS-GL_hackkit_1.00.tar.gz (47490838 bytes) #################################################################### : : ###### 226 Transfer complete. 47490838 bytes received in 8.9 seconds (5.2e+03 Kbytes/s) ftp> bye 221 Goodbye. root@HS-DHGL276:/mnt/disk1/share/debian# ls -l -rw-r--r-- 1 root root 6338 Apr 23 14:18 LS-GL_hackkit_1.00.sh -rw-r--r-- 1 root root 47490838 Apr 23 14:18 LS-GL_hackkit_1.00.tar.gz root@HS-DHGL276:/mnt/disk1/share/debian#
root@HS-DHGL276:/mnt/disk1/share/debian# mv LS-GL_hackkit_1.00.sh LS-GL_hackkit_1.00.sh.orig root@HS-DHGL276:/mnt/disk1/share/debian# cp LS-GL_hackkit_1.00.sh.orig LS-GL_hackkit_1.00.sh root@HS-DHGL276:/mnt/disk1/share/debian# vi LS-GL_hackkit_1.00.sh : : root@HS-DHGL276:/mnt/disk1/share/debian# diff -c LS-GL_hackkit_1.00.sh.orig LS-GL_hackkit_1.00.sh *** LS-GL_hackkit_1.00.sh.orig Mon Apr 23 14:18:45 2007 --- LS-GL_hackkit_1.00.sh Mon Apr 23 14:20:45 2007 *************** *** 1,12 **** #! /bin/sh -x ! ADDRESS=192.168.1.38 NETWORK=192.168.1.0 NETMASK=255.255.255.0 BROADCAST=192.168.1.255 GATEWAY=192.168.1.1 NAMESERVER=192.168.1.2 ! HOSTNAME=hackkit MOUNTPOINT=/mnt/debinst WORK=/mnt/disk1/share/debian --- 1,12 ---- #! /bin/sh -x ! ADDRESS=192.168.1.39 NETWORK=192.168.1.0 NETMASK=255.255.255.0 BROADCAST=192.168.1.255 GATEWAY=192.168.1.1 NAMESERVER=192.168.1.2 ! HOSTNAME=sil MOUNTPOINT=/mnt/debinst WORK=/mnt/disk1/share/debian *************** *** 18,26 **** format_disk() { mke2fs -j /dev/sdb1 || exit ! mke2fs -j /dev/sdb2 || exit mkswap /dev/sdb3 || exit ! mke2fs -j /dev/sdb4 || exit } #--------------------------------------------------------- --- 18,26 ---- format_disk() { mke2fs -j /dev/sdb1 || exit ! mkfs.xfs -f /dev/sdb2 || exit mkswap /dev/sdb3 || exit ! mkfs.xfs -f /dev/sdb4 || exit } #--------------------------------------------------------- *************** *** 31,37 **** then mkdir $MOUNTPOINT || exit fi ! mount /dev/sdb2 $MOUNTPOINT || exit } #--------------------------------------------------------- # extract hackkit archive --- 31,37 ---- then mkdir $MOUNTPOINT || exit fi ! mount -t xfs /dev/sdb2 $MOUNTPOINT || exit } #--------------------------------------------------------- # extract hackkit archive root@HS-DHGL276:/mnt/disk1/share/debian#
Apr 23 14:22:46 HS-DHGL276 kernel: usb 2-1: new high speed USB device using ehci_platform and address 2 Apr 23 14:22:47 HS-DHGL276 kernel: scsi2 : SCSI emulation for USB Mass Storage devices Apr 23 14:22:52 HS-DHGL276 kernel: Vendor: ST332062 Model: 9QF0NVQ5 Rev: D Apr 23 14:22:52 HS-DHGL276 kernel: Type: Direct-Access ANSI SCSI revision: 02 Apr 23 14:22:52 HS-DHGL276 kernel: SCSI device sdb: 625142448 512-byte hdwr sectors (320073 MB) Apr 23 14:22:52 HS-DHGL276 kernel: sdb: assuming drive cache: write through Apr 23 14:22:52 HS-DHGL276 kernel: SCSI device sdb: 625142448 512-byte hdwr sectors (320073 MB) Apr 23 14:22:52 HS-DHGL276 kernel: sdb: assuming drive cache: write through Apr 23 14:22:52 HS-DHGL276 kernel: sdb: sdb1 sdb2 sdb3 sdb4 Apr 23 14:22:52 HS-DHGL276 kernel: Attached scsi disk sdb at scsi2, channel 0, id 0, lun 0 Apr 23 14:22:52 HS-DHGL276 kernel: Attached scsi generic sg1 at scsi2, channel 0, id 0, lun 0, type 0 Apr 23 14:22:53 HS-DHGL276 kernel: kjournald starting. Commit interval 5 seconds Apr 23 14:22:53 HS-DHGL276 kernel: EXT3 FS on sdb1, internal journal Apr 23 14:22:53 HS-DHGL276 kernel: EXT3-fs: mounted filesystem with ordered data mode.
root@HS-DHGL276:~# df Filesystem 1k-blocks Used Available Use% Mounted on /dev/sda2 484672 234344 250328 48% / /dev/ram1 15360 100 15260 1% /mnt/ram /dev/ls_disk1_1 195324 10490 174749 6% /boot /dev/ls_disk1_6 19237824 47028 19190796 0% /mnt/disk1 /dev/ls_usbdisk1_1 194443 10182 174222 6% /mnt/usbdisk1 root@HS-DHGL276:~# root@HS-DHGL276:~# umount /mnt/usbdisk1/ root@HS-DHGL276:~# df Filesystem 1k-blocks Used Available Use% Mounted on /dev/sda2 484672 235104 249568 49% / /dev/ram1 15360 104 15256 1% /mnt/ram /dev/ls_disk1_1 195324 10490 174749 6% /boot /dev/ls_disk1_6 19237824 47028 19190796 0% /mnt/disk1 root@HS-DHGL276:~#
root@HS-DHGL276:~# cd /mnt/disk1/share/debian/ root@HS-DHGL276:/mnt/disk1/share/debian# sh LS-GL_hackkit_1.00.sh (略) creating resolv.conf ... creating hosts ... creating hostname ... root@HS-DHGL276:/mnt/disk1/share/debian#
root@HS-DHGL276:/mnt/disk1/share/debian# cd root@HS-DHGL276:~# mount /dev/sdb2 /mnt/debinst root@HS-DHGL276:~# cd /mnt/debinst/etc root@HS-DHGL276:/mnt/debinst/etc# cp fstab /tmp root@HS-DHGL276:/mnt/debinst/etc# vi fstab : : root@HS-DHGL276:/mnt/debinst/etc# diff -c /tmp/fstab fstab *** /tmp/fstab Mon Apr 23 14:33:59 2007 --- fstab Mon Apr 23 14:34:48 2007 *************** *** 1,9 **** # /etc/fstab: static file system information. # #! /dev/sda2 / ext3 defaults,noatime,errors=remount-ro 0 0 proc /proc proc defaults 0 0 ! none /dev/pts devpts gid=103,mode=0622 0 0 /dev/sda3 swap swap defaults 0 0 /dev/sda1 /boot ext3 defaults,noatime 0 1 ! /dev/sda4 /mnt ext3 defaults,noatime 0 2 --- 1,9 ---- # /etc/fstab: static file system information. # # ! /dev/sda2 / xfs defaults,noatime 0 0 proc /proc proc defaults 0 0 ! none /dev/pts devpts gid=103,mode=0622 0 0 /dev/sda3 swap swap defaults 0 0 /dev/sda1 /boot ext3 defaults,noatime 0 1 ! /dev/sda4 /mnt xfs defaults,noatime 0 2 root@HS-DHGL276:/mnt/debinst/etc# root@HS-DHGL276:/mnt/debinst/etc# cd root@HS-DHGL276:~# umount /mnt/debinst root@HS-DHGL276:~#
Debian GNU/Linux 3.1 sil sil login: guest Password: Linux sil 2.6.12.6-arm1 #81 Wed Mar 7 11:17:24 JST 2007 armv5tejl GNU/Linux 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@sil:/$
guest@sil:/$ su - root Password: hack(画面には表示されない) sil:~#
sil:~# passwd root Enter new UNIX password: (新しいパスワード) Retype new UNIX password: (もう一度新しいパスワード) passwd: password updated successfully sil:~#
sil:~# addgroup yamasita Adding group `yamasita' (1000)... Done. sil:~# mkdir /home/yamasita sil:~# adduser --home /home/yamasita/yasunari --ingroup yamasita 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:(yasunari のパスワード) Retype new UNIX password:(もう一度 yasunari のパスワード) passwd: password updated successfully Changing the user information for yasunari Enter the new value, or press ENTER for the default Full Name []: Yasunari Yamashita Room Number []: Work Phone []: Home Phone []: Other []: Is the information correct? [y/N] y sil:~#管理者なので、root グループにもいれておく
sil:~# adduser yasunari root Adding user `yasunari' to group `root'... Done. sil:~#
Debian GNU/Linux 3.1 sil sil login: yasunari Password: Linux sil 2.6.12.6-arm1 #81 Wed Mar 7 11:17:24 JST 2007 armv5tejl GNU/Linux 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. yasunari@sil:~$ su - root Password: sil:~# deluser guest Removing user `guest'... done. sil:~#というわけで、1.06 でもハックキットはインストールできた。
|
楽天市場
Yahoo!ショッピング somap.com TSUKUMO ネットショップ ValuMore! ムラウチドットコム アット・ニフティストア Joshin web |
← HS-DHGL ファームウェア Ver.1.06 の root のパスワードの変更 |
ハックの記録 LinkStation/玄箱 をハックしよう |
→ ハックキットに GW3.5KH-U2 |