次は PodCast。
PodCast も HD-HLAN から移行する。
sil:~# cd /usr/local/sbin/ sil:/usr/local/sbin# mkdir PodCast sil:/usr/local/sbin# cd PodCast sil:/usr/local/sbin/PodCast# sil:/usr/local/sbin/PodCast# ftp link Connected to link.yamasita.jp. 220 ProFTPD 1.2.10rc1 Server (ProFTPD Default Installation) [link] Name (link: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 /usr/local/sbin/PodCast 250 CWD command successful ftp> ls 200 PORT command successful 150 Opening ASCII mode data connection for file list -rw-r--r-- 1 yasunari yamasita 315 May 27 14:31 ITMediaMondayEnterPrise.sh -rw-r--r-- 1 yasunari yamasita 299 May 27 14:31 atITnamameyomiweekly.sh -rw-r--r-- 1 yasunari yamasita 295 May 3 12:53 biztrend.sh -rw-rw-r-- 1 yasunari root 609 Nov 22 2006 echat_Vancouver.sh -rw-rw-r-- 1 yasunari yamasita 1768 Jul 8 21:44 podcast.sh 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: ITMediaMondayEnterPrise.sh remote: ITMediaMondayEnterPrise.sh 200 PORT command successful 150 Opening BINARY mode data connection for ITMediaMondayEnterPrise.sh (315 bytes) # 226 Transfer complete. 315 bytes received in 0.01 secs (26.8 kB/s) local: atITnamameyomiweekly.sh remote: atITnamameyomiweekly.sh 200 PORT command successful 150 Opening BINARY mode data connection for atITnamameyomiweekly.sh (299 bytes) # 226 Transfer complete. 299 bytes received in 0.00 secs (272.6 kB/s) local: biztrend.sh remote: biztrend.sh 200 PORT command successful 150 Opening BINARY mode data connection for biztrend.sh (295 bytes) # 226 Transfer complete. 295 bytes received in 0.00 secs (129.7 kB/s) local: echat_Vancouver.sh remote: echat_Vancouver.sh 200 PORT command successful 150 Opening BINARY mode data connection for echat_Vancouver.sh (609 bytes) # 226 Transfer complete. 609 bytes received in 0.01 secs (44.2 kB/s) local: podcast.sh remote: podcast.sh 200 PORT command successful 150 Opening BINARY mode data connection for podcast.sh (1768 bytes) # 226 Transfer complete. 1768 bytes received in 0.01 secs (161.4 kB/s) ftp> bye 221 Goodbye. sil:/usr/local/sbin/PodCast# chgrp yamasita * sil:/usr/local/sbin/PodCast# chmod g+w * sil:/usr/local/sbin/PodCast#
sil:/usr/local/sbin/PodCast# mkdir -p /mnt/Music/News sil:/usr/local/sbin/PodCast#
sil:/usr/local/sbin/PodCast# mkdir /mnt/dap sil:/usr/local/sbin/PodCast#
Jul 15 09:37:19 sil kernel: usb 2-1.3: new high speed USB device using ehci_platform and address 6 Jul 15 09:37:19 sil kernel: usb 2-1.3: configuration #1 chosen from 1 choice Jul 15 09:37:19 sil kernel: scsi2 : SCSI emulation for USB Mass Storage devices Jul 15 09:37:24 sil kernel: Vendor: Samsung Model: YP-T9 Rev: 1.00 Jul 15 09:37:24 sil kernel: Type: Direct-Access ANSI SCSI revision: 02 Jul 15 09:37:24 sil kernel: SCSI device sdb: 7954367 512-byte hdwr sectors (4073 MB) Jul 15 09:37:24 sil kernel: sdb: Write Protect is off Jul 15 09:37:24 sil kernel: SCSI device sdb: 7954367 512-byte hdwr sectors (4073 MB) Jul 15 09:37:24 sil kernel: sdb: Write Protect is off Jul 15 09:37:24 sil kernel: sdb: sdb1 sdb2 Jul 15 09:37:24 sil kernel: sd 2:0:0:0: Attached scsi removable disk sdb Jul 15 09:37:24 sil kernel: sd 2:0:0:0: Attached scsi generic sg1 type 0 sil:/usr/local/sbin/PodCast#やっぱり sdb
sil:/usr/local/sbin/PodCast# grep sda * podcast.sh:DEVICE=/dev/sda1 sil:/usr/local/sbin/PodCast#podcast.sh の修正が必要
sil:/usr/local/sbin/PodCast# diff -c podcast.sh.orig podcast.sh *** podcast.sh.orig 2007-07-15 09:27:20.431684711 +0900 --- podcast.sh 2007-07-15 09:40:00.964017645 +0900 *************** *** 65,71 **** #MOUNTPOINT=/mnt/muvo2 MOUNTPOINT=/mnt/dap ! DEVICE=/dev/sda1 #DIRTOCOPY=/mnt/muvo2/PodCast/News DIRTOCOPY=/mnt/dap/Music/News --- 65,71 ---- #MOUNTPOINT=/mnt/muvo2 MOUNTPOINT=/mnt/dap ! DEVICE=/dev/sdb1 #DIRTOCOPY=/mnt/muvo2/PodCast/News DIRTOCOPY=/mnt/dap/Music/News sil:/usr/local/sbin/PodCast#
sil:/usr/local/sbin/PodCast# sh podcast.sh : : mount: unknown filesystem type 'vfat' sil:/usr/local/sbin/PodCast#vfat を知らないと。
sil:/usr/local/sbin/PodCast# chroot /mnt/buffalo/ sil:/# ls /lib/modules/2.6.16.16-arm1/kernel/fs/vfat/ vfat.ko sil:/# ls /lib/modules/2.6.16.16-arm1/kernel/fs/vfat/vfat.ko /lib/modules/2.6.16.16-arm1/kernel/fs/vfat/vfat.ko sil:/# insmod !$ insmod /lib/modules/2.6.16.16-arm1/kernel/fs/vfat/vfat.ko insmod: error inserting '/lib/modules/2.6.16.16-arm1/kernel/fs/vfat/vfat.ko': -1 Unknown symbol in module sil:/#?
sil:/# cd /lib/modules/ sil:/lib/modules# ls 2.6.16.16-arm1 mv7dxu2_0.ko mv7dxu2_2.ko mv7dxu2_d.ko v4l1-compat.ko videodev.ko averusb.ko mv7dxu2_1.ko mv7dxu2_3.ko usblp.ko v4l2-common.ko sil:/lib/modules# cd 2.6.16.16-arm1/ sil:/lib/modules/2.6.16.16-arm1# ls kernel modules.dep modules.isapnpmap modules.symbols modules.alias modules.ieee1394map modules.pcimap modules.usbmap modules.ccwmap modules.inputmap modules.seriomap sil:/lib/modules/2.6.16.16-arm1# cd kernel/ sil:/lib/modules/2.6.16.16-arm1/kernel# ls crypto drivers fs net sil:/lib/modules/2.6.16.16-arm1/kernel# cd fs/ sil:/lib/modules/2.6.16.16-arm1/kernel/fs# ls fat msdos nls ntfs vfat sil:/lib/modules/2.6.16.16-arm1/kernel/fs# cd fat/ sil:/lib/modules/2.6.16.16-arm1/kernel/fs/fat# ls fat.ko sil:/lib/modules/2.6.16.16-arm1/kernel/fs/fat# insmod fat.ko sil:/lib/modules/2.6.16.16-arm1/kernel/fs/fat# cd ../vfat/ sil:/lib/modules/2.6.16.16-arm1/kernel/fs/vfat# insmod vfat.ko sil:/lib/modules/2.6.16.16-arm1/kernel/fs/vfat#fat を先にロードしておかないといけないのか。
/etc/init.d/buffalodaemon に追加する。
sil:/etc/init.d# diff -c buffalodaemon.orig buffalodaemon *** buffalodaemon.orig 2007-07-15 00:34:07.381772735 +0900 --- buffalodaemon 2007-07-15 09:48:55.861591295 +0900 *************** *** 4,9 **** --- 4,11 ---- start) chroot /usr/local/buffalo mount /proc chroot /usr/local/buffalo insmod "/lib/modules/usblp.ko" + chroot /usr/local/buffalo insmod "/lib/modules/2.6.16.16-arm1/kernel/fs/fat/fat.ko" + chroot /usr/local/buffalo insmod "/lib/modules/2.6.16.16-arm1/kernel/fs/vfat/vfat.ko" for prog in httpd.sh pcastd.sh epg.sh clientUtil_servd.sh ltbootd.sh do sil:/etc/init.d#
sil:~# crontab -l : # PodCast 15 7 * * 1-5 /bin/sh /usr/local/sbin/PodCast/podcast.sh 2>/dev/null 1>/dev/null 55 23 * * 1 /bin/sh /usr/local/sbin/PodCast/ITMediaMondayEnterPrise.sh 2>/dev/null 1>/dev/null 55 23 * * 2 /bin/sh /usr/local/sbin/PodCast/atITnamameyomiweekly.sh 2>/dev/null 1>/dev/null 55 11 * * 1,2 /bin/sh /usr/local/sbin/PodCast/biztrend.sh 2>/dev/null 1>/dev/null sil:~#明日の朝確認。
|
楽天市場
Yahoo!ショッピング somap.com TSUKUMO ネットショップ ValuMore! ムラウチドットコム アット・ニフティストア Joshin web |
← OSC2007 Kyoto 終了 |
ハックの記録 LinkStation/玄箱 をハックしよう |
→ 別名 |