第三世代 LinkStation ハックキットで KURO-RS が動くようにできたので、 次は「延長対応ハック de ダブルまる録!! 外部チューナコントロールつき」
併せて外部チューナコントロール用の KURO-RS も 新型 HS-DHGL につなぐ。
slam:~# mkdir /usr/local/PCast slam:~# echo '/usr/sbin/chroot /usr/local/buffalo $0 $*' > /usr/local/PCast/DbAcRap slam:~# chmod +x /usr/local/PCast/DbAcRap slam:~# ls -l !$ ls -l /usr/local/PCast/DbAcRap -rwxr-xr-x 1 root staff 42 Jun 27 09:11 /usr/local/PCast/DbAcRap slam:~#
yasunari@sil:~$ cd /usr/local/ yasunari@sil:/usr/local$ ls etc/hackdemaruroku area channel channel_BS_Digital deny keyword yasunari@sil:/usr/local$ ls sbin/hackdemarurokuV4.sh sbin/hackdemarurokuV4.sh yasunari@sil:/usr/local$ tar zcvf /tmp/hackdemaruroku_090627.tar.gz etc/hackdema ruroku sbin/hackdemarurokuV4.sh etc/hackdemaruroku/ etc/hackdemaruroku/area etc/hackdemaruroku/deny etc/hackdemaruroku/channel_BS_Digital etc/hackdemaruroku/channel etc/hackdemaruroku/keyword sbin/hackdemarurokuV4.sh yasunari@sil:/usr/local$
slam:~# cd /tmp slam:/tmp# ftp sil.yamasita.jp Connected to sil.yamasita.jp. 220 sil FTP server (GNU inetutils 1.5) ready. Name (sil.yamasita.jp:yasunari): 331 Password required for yasunari. Password: 230- Linux sil 2.6.16.16-arm1 #6 Fri Aug 31 13:07:15 JST 2007 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 /tmp 250 CWD command successful. ftp> bin 200 Type set to I. ftp> hash Hash mark printing on (1024 bytes/hash mark). ftp> get hackdemaruroku_090627.tar.gz local: hackdemaruroku_090627.tar.gz remote: hackdemaruroku_090627.tar.gz 200 PORT command sucessful. 150 Opening BINARY mode data connection for 'hackdemaruroku_090627.tar.gz' (4549 bytes). #### 226 Transfer complete. 4549 bytes received in 0.04 secs (101.0 kB/s) ftp> bye 221 Goodbye. slam:/tmp#
slam:/tmp# cd /usr/local slam:/usr/local# tar zxvf /tmp/hackdemaruroku_090627.tar.gz etc/hackdemaruroku/ etc/hackdemaruroku/area etc/hackdemaruroku/deny etc/hackdemaruroku/channel_BS_Digital etc/hackdemaruroku/channel etc/hackdemaruroku/keyword sbin/hackdemarurokuV4.sh slam:/usr/local#
slam:/usr/local# cat /usr/local/etc/hackdemaruroku/area 004 slam:/usr/local#設定済
slam:/usr/local# vi /usr/local/etc/hackdemaruroku/channel : : slam:/usr/local# cat !$ cat /usr/local/etc/hackdemaruroku/channel 3001 BSD1 NHK 1 (BS1) 3002 BSD2 NHK 2 (BS2) 3003 BSD3 NHKハイビジョン 3004 BSD4 BS日テレ 3005 BSD5 BS朝日 3006 BSD6 BS- i 3007 BSD7 BSジャパン 3008 BSD8 BSフジ slam:/usr/local#
slam:/usr/local# less /usr/local/etc/hackdemaruroku/keyword ホワイトボックス プロフェッショナル スポーツ/モータースポーツ モータースポーツ : :
slam:/usr/local# sh /usr/local/sbin/hackdemarurokuV4.sh時間がかかるので、別ウィンドウでログを見る。
yasunari@slam:/tmp$ tail -f hackdemaruroku_20090627 2009/06/27/13/10 2009/06/27/13/54 BSD1 スポーツ大陸[再]本物になりたい~トライアスロン山本良介~ ドキュメンタリー・教養/スポーツ トライアスロン・山本良介の挑戦 出演者/山本良介 : :ボチボチ出力されれば問題なし。
しばらくして
ホワイトボックス プロフェッショナル モータースポーツ アインシュタイン Mobile GASHITSU 17 30 17 42 2009/06/27/17/30 - 2009/06/27/17/42 1000 2 アインシュタインの眼特選映像ファイル"夏"の風物詩~花火・波の不思議~ : [FINISH]Add /usr/local/bin/infrared_remocon BSD1 | at 17:29 06/27/09 /usr/local/sbin/hackdemarurokuV4.sh: line 339: at: command not found /usr/local/bin/infrared_remocon BSD1 /usr/local/sbin/hackdemarurokuV4.sh: line 343: /usr/local/bin/infrared_remocon: そのようなファイルやディレクトリはありません /usr/local/bin/infrared_remocon BSDOFF | at 17:42 06/27/09 /usr/local/sbin/hackdemarurokuV4.sh: line 355: at: command not found : : slam:/usr/local#がー。
slam:~# which at slam:~# at -su: at: command not found slam:~#確かにない。
slam:~# apt-cache search at 2vcard - perl script to convert an addressbook to VCARD file format 4g8 - Packet Capture and Interception for Switched Networks 6tunnel - TCP proxy for non-IPv6 applications 9base - Plan 9 userland tools 9menu - Creates X menus from the shell 9wm - emulation of the Plan 9 window manager 8-1/2 : :at なんて一般的な単語、含まれるパッケージ、、、ありすぎ。
slam:~# apt-cache show at Package: at Priority: standard Section: admin Installed-Size: 208 Maintainer: Ryan Murrayインストールする。Architecture: armel Version: 3.1.10.2 Depends: libc6 (>= 2.7-1), libpam0g (>= 0.99.7.1), exim4 | mail-transport-agent, lsb-base (>= 3.0-10) Filename: pool/main/a/at/at_3.1.10.2_armel.deb Size: 43214 MD5sum: 77d2e6b5a5a4aee87884e710f0bdd222 SHA1: 4068a5855c26e518c796cc4d8fb1612bf9eacfb9 SHA256: e270d264fa2e911ea45c2cb81850598f38457cb2ddc143548552daecf5392a3d Description: Delayed job execution and batch processing At and batch read shell commands from standard input storing them as a job to be scheduled for execution in the future. . Use at to run the job at a specified time batch to run the job when system load levels permit Tag: interface::daemon, network::client, network::server, role::program, use::timekeeping slam:~#
slam:~# apt-get install at Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: bsd-mailx exim4 exim4-base exim4-config exim4-daemon-light liblockfile1 libpcre3 mailx Suggested packages: mail-reader eximon4 exim4-doc-html exim4-doc-info gnutls-bin openssl file libmail-spf-query-perl swaks The following NEW packages will be installed: at bsd-mailx exim4 exim4-base exim4-config exim4-daemon-light liblockfile1 libpcre3 mailx 0 upgraded, 9 newly installed, 0 to remove and 15 not upgraded. Need to get 2223kB of archives. After this operation, 4825kB of additional disk space will be used. Do you want to continue [Y/n]? y Get:1 http://ftp.jp.debian.org lenny/main exim4-config 4.69-9 [350kB] Get:2 http://ftp.jp.debian.org lenny/main exim4-base 4.69-9 [989kB] Get:3 http://ftp.jp.debian.org lenny/main libpcre3 7.6-2.1 [213kB] Get:4 http://ftp.jp.debian.org lenny/main exim4-daemon-light 4.69-9 [435kB] Get:5 http://ftp.jp.debian.org lenny/main exim4 4.69-9 [7478B] Get:6 http://ftp.jp.debian.org lenny/main at 3.1.10.2 [43.2kB] Get:7 http://ftp.jp.debian.org lenny/main liblockfile1 1.08-3 [18.1kB] Get:8 http://ftp.jp.debian.org lenny/main bsd-mailx 8.1.2-0.20071201cvs-3 [158kB] Get:9 http://ftp.jp.debian.org lenny/main mailx 1:20071201-3 [8260B] Fetched 2223kB in 2s (1104kB/s) Preconfiguring packages ... Selecting previously deselected package exim4-config. (Reading database ... 11417 files and directories currently installed.) Unpacking exim4-config (from .../exim4-config_4.69-9_all.deb) ... Selecting previously deselected package exim4-base. Unpacking exim4-base (from .../exim4-base_4.69-9_armel.deb) ... Selecting previously deselected package libpcre3. Unpacking libpcre3 (from .../libpcre3_7.6-2.1_armel.deb) ... Selecting previously deselected package exim4-daemon-light. Unpacking exim4-daemon-light (from .../exim4-daemon-light_4.69-9_armel.deb) ... Selecting previously deselected package exim4. Unpacking exim4 (from .../archives/exim4_4.69-9_all.deb) ... Selecting previously deselected package at. Unpacking at (from .../archives/at_3.1.10.2_armel.deb) ... Selecting previously deselected package liblockfile1. Unpacking liblockfile1 (from .../liblockfile1_1.08-3_armel.deb) ... Selecting previously deselected package bsd-mailx. Unpacking bsd-mailx (from .../bsd-mailx_8.1.2-0.20071201cvs-3_armel.deb) ... Selecting previously deselected package mailx. Unpacking mailx (from .../mailx_1%3a20071201-3_all.deb) ... Processing triggers for man-db ... Setting up exim4-config (4.69-9) ... Adding system-user for exim (v4) Setting up exim4-base (4.69-9) ... Setting up libpcre3 (7.6-2.1) ... Setting up exim4-daemon-light (4.69-9) ... Starting MTA: exim4. Setting up exim4 (4.69-9) ... Setting up at (3.1.10.2) ... Starting deferred execution scheduler: atd. Setting up liblockfile1 (1.08-3) ... Setting up bsd-mailx (8.1.2-0.20071201cvs-3) ... Setting up mailx (1:20071201-3) ... slam:~#at で実行したコマンドの標準出力をメールするから??? メール関係がインストールされた。cron も同じだと思うのだが、、
slam:~# cd /tmp slam:/tmp# ftp sil.yamasita.jp Connected to sil.yamasita.jp. 220 sil FTP server (GNU inetutils 1.5) ready. Name (sil.yamasita.jp:yasunari): 331 Password required for yasunari. Password: 230- Linux sil 2.6.16.16-arm1 #6 Fri Aug 31 13:07:15 JST 2007 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 /usr/local/bin 250 CWD command successful. ftp> ls 200 PORT command sucessful. 150 Opening ASCII mode data connection for '/bin/ls'. total 60 -rw-r--r-- 1 staff 240 Jul 1 2008 fwd -rwxr-xr-x 1 staff 2014 Oct 13 2007 infrared_remocon -rwxr-xr-x 1 staff 245 Sep 23 2007 infrared_remocon.070923 -rwxr-xr-x 1 staff 262 Sep 30 2007 infrared_remocon.070930 -rwxr-xr-x 1 staff 992 Oct 8 2007 infrared_remocon.071008 -rwxr-xr-x 1 staff 1731 Jun 24 2007 kernelmon_exec.sh -rwxr-xr-x 1 staff 10369 Sep 22 2007 rs_rec -rwxr-xr-x 1 staff 10589 Sep 23 2007 rs_send -rwxr-xr-x 1 staff 10409 Sep 22 2007 rs_send.old 226 Transfer complete. ftp> get infrared_remocon local: infrared_remocon remote: infrared_remocon 200 PORT command sucessful. 150 Opening BINARY mode data connection for 'infrared_remocon' (2014 bytes). 226 Transfer complete. 2014 bytes received in 0.01 secs (135.9 kB/s) ftp> bye 221 Goodbye. slam:/tmp# cd /usr/local/bin/ slam:/usr/local/bin# ls rs_rec rs_send rs_send.old slam:/usr/local/bin# mv /tmp/infrared_remocon . slam:/usr/local/bin# chmod +x infrared_remocon slam:/usr/local/bin# ls -al total 28 drwxrwsr-x 2 root staff 56 Jun 27 10:27 . drwxrwsr-x 11 root staff 131 Jun 27 09:11 .. -rwxr-xr-x 1 root root 2014 Jun 27 10:26 infrared_remocon -rwxr-xr-x 1 root staff 10369 Sep 22 2007 rs_rec -rwxr-xr-x 1 yasunari staff 10589 Sep 23 2007 rs_send slam:/usr/local/bin#
slam:~# sh /usr/local/sbin/hackdemarurokuV4.sh ホワイトボックス プロフェッショナル モータースポーツ 2009/06/28/03/30 - 2009/06/28/04/00 1000 2 D1KING!2009[再]第2戦 : [FINISH]Add /usr/local/bin/infrared_remocon BSD8 | at 03:29 06/28/09 warning: commands will be executed using /bin/sh job 1 at Sun Jun 28 03:29:00 2009 /usr/local/bin/infrared_remocon BSDOFF | at 04:00 06/28/09 warning: commands will be executed using /bin/sh job 2 at Sun Jun 28 04:00:00 2009 アインシュタイン 2009/06/27/17/30 - 2009/06/27/17/42 1000 2 アインシュタインの眼特選映像ファイル"夏"の風物詩~花火・波の不思議~ : [FINISH]Add /usr/local/bin/infrared_remocon BSD1 | at 17:29 06/27/09 warning: commands will be executed using /bin/sh job 3 at Sat Jun 27 17:29:00 2009 /usr/local/bin/infrared_remocon BSDOFF | at 17:42 06/27/09 warning: commands will be executed using /bin/sh job 4 at Sat Jun 27 17:42:00 2009 : : 地球 Mobile GASHITSU 19 00 19 30 2009/06/27/19/00 - 2009/06/27/19/30 1000 2 THE世界遺産グランド・キャニオン国立公園(アメリカ) : [FINISH]Add /usr/local/bin/infrared_remocon BSD6 | at 18:59 06/27/09 warning: commands will be executed using /bin/sh job 5 at Sat Jun 27 18:59:00 2009 /usr/local/bin/infrared_remocon BSDOFF | at 19:30 06/27/09 warning: commands will be executed using /bin/sh job 6 at Sat Jun 27 19:30:00 2009 Mobile GASHITSU 19 30 20 00 2009/06/27/19/30 - 2009/06/27/20/00 1000 2 浪漫紀行地球の贈り物[再]水の神が宿る都・アンコールワット : [FINISH]Add /usr/local/bin/infrared_remocon BSD6 | at 19:29 06/27/09 warning: commands will be executed using /bin/sh job 7 at Sat Jun 27 19:29:00 2009 /usr/local/bin/infrared_remocon BSDOFF | at 20:00 06/27/09 warning: commands will be executed using /bin/sh job 8 at Sat Jun 27 20:00:00 2009 : : slam:~#予約できた。
確認は17時までお預け。
|
|
← 第三世代 LinkStation ハックキットでプリンタサーバ |
ハックの記録 LinkStation/玄箱 をハックしよう |
→ Re: 第三世代 LinkStation ハックキットでハック de 録!!(7) 延長対応ハック de ダブルまる録!! 外部チューナコントロールつきの修正 |