昨日の続き、標準ファームの HDD が /tmp/root にマウントしてある。
hackkit:/tmp/root# tar cf - * |(cd /usr/local/buffalo; tar xvf -) : : www/help/ja/user.html hackkit:/tmp/root# cd / hackkit:/# umount /tmp/root hackkit:/#
以前、HD-LAN V1,V2 ではハックキットを全部 jail に入れたが、 今回は標準ファーム全部を jail に。豪勢な監獄である。
hackkit:/# cd /usr/local/buffalo hackkit:/usr/local/buffalo# chroot . etc/init.d/httpd.sh start start Starting HTTPD services: /usr/local/apache/bin/apachectl start: httpd started hackkit:/usr/local/buffalo# chroot . etc/init.d/pcastd.sh start killall: chk_mediaserver.sh: no process killed Start services: pcastd scheduler Opening /proc/modules: No such file or directory insmod: error inserting '/lib/modules/mv7dxu2_d.ko': -1 File exists Opening /proc/modules: No such file or directory insmod: error inserting '/lib/modules/mv7dxu2_0.ko': -1 File exists Opening /proc/modules: No such file or directory insmod: error inserting '/lib/modules/mv7dxu2_1.ko': -1 File exists Opening /proc/modules: No such file or directory insmod: error inserting '/lib/modules/mv7dxu2_2.ko': -1 File exists Opening /proc/modules: No such file or directory insmod: error inserting '/lib/modules/mv7dxu2_3.ko': -1 File exists Opening /proc/modules: No such file or directory insmod: error inserting '/lib/modules/videodev.ko': -1 File exists Opening /proc/modules: No such file or directory insmod: error inserting '/lib/modules/v4l2-common.ko': -1 File exists Opening /proc/modules: No such file or directory insmod: error inserting '/lib/modules/v4l1-compat.ko': -1 File exists Opening /proc/modules: No such file or directory insmod: error inserting '/lib/modules/averusb.ko': -1 File exists pcastd 0.5.9 start. key='server', value='on' key='media', value='/mnt/disk1/share' Set pcast_mp2000 seting media=global_param.public_root key='usbdisk', value='1' key='limit_media', value='' key='limit_pass', value='' EOF Detect. linkstation_cgi_file_read() public_root failed!!! config '/etc/pcast/pcastd.conf' open. key='server_port', value='8000' key='client_language_code', value='sjis' key='skin_root', value='/etc/pcast/theme/pcast' key='us_skin_root', value='/etc/pcast/theme_us/pcast' key='flag_unknown_extention_file_hide', value='true' key='flag_image_viewer', value='false' key='flag_daemon', value='true' key='flag_debug_log_output', value='false' key='debug_log_filename', value='/mnt/disk1/_share/pcastd_debug.log' EOF Detect. Daemoning.... killall: mt-daapd: no process killed ifconfig: Warning: cannot open /proc/net/dev. Limited output.: No such file or directory Start services: mediaserver Bad mp3 directory (/mnt/disk1/share): No such file or directory Error reading config file (/etc/mt-daapd.conf) Mediabolic Mediaserver Copyright: 1999-2005 Mediabolic, Inc. Version: 1.8.220 Date: Dec 5 2006 13:58:16 [16:34:20:878385] MSG [MAIN:914]: Mediabolic Build Configuration: [16:34:20:879894] MSG [MAIN:914]: clientlib: 1.8.225 Dec 5 2006 13:57:25 root@dd2-sugai GCC 3.4.4 serverupnpmsac:linux:mediabolic_d1:ja:BUFFALO:pcx [16:34:20:908123] SYSTEM-INFO[MAIN:914]: Loading properties from: mediaserver.conf [16:34:20:933940] Net Config-INFO[MAIN:914]: Set Net Config Defaults [16:34:20:935102] MOS-ERR [MAIN:914]: Failed to open /proc/stat to get statistics [16:34:20:946274] LINUX_NETEVENT-ERR [MAIN:914]: do_wireless_ioctl: if(eth0:eth0) ioctl(35585:SIOCGIWNAME) (22:Invalid argument) [16:34:20:946976] LINUX_NETEVENT-WARN[MAIN:914]: flags2ifc: SIOCGMIIPHY if(eth0) (95:Operation not supported) -- Assuming 100mbps [16:34:20:947752] LINUX_NETEVENT-ERR [MAIN:914]: do_wireless_ioctl: if(eth0:eth0) ioctl(35585:SIOCGIWNAME) (22:Invalid argument) [16:34:20:950888] STORMAN-WARN[MAIN:914]: Creating directory '/mnt/disk1/mediaserver/data/media' to hold media data [16:34:20:952508] STORMAN-INFO[MAIN:914]: Using media storage at '/mnt/disk1/mediaserver/data/media' [16:34:20:953268] STORMAN-INFO[MAIN:914]: Real disk usage is currently: 98830 of 494131 blocks - 20.00% [16:34:20:954178] STORMAN-WARN[MAIN:914]: Need to load the persisted reservations! [16:34:20:962448] MMSRV-INFO[MAIN:914]: Registering message handler for class [0x2] : :メッセージが出続けるので、別ターミナルを開く
hackkit:/usr/local/buffalo# chroot . etc/init.d/epg.sh start Start services: EPGd iRCommander EPGd : version 1.1.0 0.2.0 hackkit:/usr/local/buffalo#こんなもの?
hackkit:/usr/local/buffalo# tail var/log/apache/error_log : : fopen: No such file or directory httpd: could not log pid to file /var/run/apache/httpd.pid fopen: No such file or directory httpd: could not log pid to file /var/run/apache/httpd.pid fopen: No such file or directory httpd: could not log pid to file /var/run/apache/httpd.pid fopen: No such file or directory httpd: could not log pid to file /var/run/apache/httpd.pid hackkit:/usr/local/buffalo#/var/run/apache がないとだめのよう。
作る。
hackkit:/usr/local/buffalo# mkdir -p var/run/apache mkdir: cannot create directory `var/run': File exists hackkit:/usr/local/buffalo# ls -l var/run lrwxrwxrwx 1 root root 16 Feb 19 16:26 var/run -> /mnt/ram/var/run hackkit:/usr/local/buffalo# rm var/run hackkit:/usr/local/buffalo# mkdir -p var/run/apache hackkit:/usr/local/buffalo#もう一度 apache を起動する。
hackkit:/usr/local/buffalo# chroot . etc/init.d/httpd.sh start start Starting HTTPD services: /usr/local/apache/bin/apachectl start: httpd started hackkit:/usr/local/buffalo#今度は、ブラウザに管理画面が表示された。
だと。
hackkit:/usr/local/buffalo# ls -l var/tmp lrwxrwxrwx 1 root root 16 Feb 19 16:26 var/tmp -> /mnt/ram/var/tmp hackkit:/usr/local/buffalo# ls -l var total 48 drwxr-xr-x 2 root root 4096 Dec 8 16:06 backup drwxr-xr-x 2 root root 4096 Dec 8 16:06 cache drwxr-xr-x 3 root root 4096 Dec 23 15:53 empty drwxr-xr-x 4 root root 4096 Dec 23 15:53 lib drwxrwxrwx 5 root root 4096 Feb 18 13:27 lock drwxr-xr-x 6 root root 4096 Feb 18 13:09 log drwxr-xr-x 4 root root 4096 Dec 23 15:54 pcast drwxr-xr-x 2 root root 4096 Dec 23 15:53 proftpd drwxr-xr-x 3 root root 4096 Feb 19 16:47 run drwxr--r-- 2 root root 4096 Feb 19 16:47 session drwxr-xr-x 2 root root 4096 Dec 23 15:53 spool lrwxrwxrwx 1 root root 16 Feb 19 16:26 tmp -> /mnt/ram/var/tmp drwxr-xr-x 2 48 48 4096 Dec 23 15:53 www hackkit:/usr/local/buffalo#またか。作り直す。
hackkit:/usr/local/buffalo# rm var/tmp hackkit:/usr/local/buffalo# mkdir var/tmp hackkit:/usr/local/buffalo# chmod 1777 var/tmp hackkit:/usr/local/buffalo# ls -ld var/tmp drwxrwxrwt 2 root root 4096 Feb 19 16:48 var/tmp hackkit:/usr/local/buffalo#今度は、
と。
でたー。見慣れた mediabolic のロゴが。
だと。
/proc をマウントする
hackkit:/usr/local/buffalo# chroot . mount /proc hackkit:/usr/local/buffalo#PCast メニューから再度 「メディアサーバ設定」を実行すると、今度はちゃんと表示された。
「設定」をクリックすると、エラーも出ずに PCast メニューに戻った。
hackkit:/usr/local/buffalo# ls -l mnt/disk1 total 4 drwxrwxrwx 3 root root 4096 Feb 19 16:34 mediaserver hackkit:/usr/local/buffalo#share ディレクトリがなかった。
hackkit:/usr/local/buffalo# mkdir mnt/disk1/share hackkit:/usr/local/buffalo#再度、予約を実行。 「待機中」になり、、、今度は「予約録画中」\^_^/。 そのうち「予約録画リストが存在しません 」に。
hackkit:/usr/local/buffalo# ls -l mnt/disk1/share total 110288 -rw-rw-rw- 1 root root 112816133 Feb 19 17:11 cap1_0702191709.mpg hackkit:/usr/local/buffalo#できたぁ
|
楽天市場
Yahoo!ショッピング somap.com TSUKUMO ネットショップ ValuMore! ムラウチドットコム アット・ニフティストア Joshin web |
← ハック de 録!!(5)モジュールのロード |
ハックの記録 LinkStation/玄箱 をハックしよう |
→ ハック de 録!!(7)PCastLink で見る |