第三世代 LinkStation ハックキットのセットアップは 一通り終わり、 KURO-RS を用いた赤外線リモコンも動くようになったので、 ハック de 録!!をセットアップしていく。
続いて デーモンの起動
slam:~# vi /etc/init.d/buffalodaemon : : slam:~# cat !$ cat /etc/init.d/buffalodaemon #!/bin/sh case "$1" in start) chroot /usr/local/buffalo mount /proc for prog in httpd.sh pcastd.sh epg.sh clientUtil_servd.sh ltbootd.sh do chroot /usr/local/buffalo etc/init.d/$prog start done ;; stop) for prog in ltbootd.sh clientUtil_servd.sh epg.sh pcastd.sh httpd.sh do chroot /usr/local/buffalo etc/init.d/$prog stop done chroot /usr/local/buffalo umount /proc ;; *) echo "Usage: $0 {start|stop}" exit 1 esac exit 0 slam:~# chmod 755 /etc/init.d/buffalodaemon slam:~#
slam:~# /etc/init.d/buffalodaemon start start Starting HTTPD services: /usr/local/apache/bin/apachectl start: httpd started killall: chk_mediaserver.sh: no process killed Start services: pcastd scheduler pcastd 0.5.9 start. key='server', value='on' key='media', value='/mnt/disk1/share/videos' Set pcast_mp2000 seting media=global_param.public_root key='usbdisk', value='1' key='limit_media', value='' key='limit_pass', value='' EOF Detect. 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 Start services: mediaserver Start services: EPGd iRCommander EPGd : version 1.1.0 0.2.0 Starting clientUtil_server:starting on eth0 Starting services: rarpd tftpd rarpcfgd fwupdated. slam:~# HwCtrlPid = [1980]
slam:~# cd /etc slam:/etc# ln -s ../init.d/buffalodaemon rc0.d/K10buffalodaemon slam:/etc# ln -s ../init.d/buffalodaemon rc6.d/K10buffalodaemon slam:/etc# ln -s ../init.d/buffalodaemon rc2.d/S90buffalodaemon slam:/etc# ls -l */*buffalodaemon* -rwxr-xr-x 1 root root 561 Jul 18 20:41 init.d/buffalodaemon lrwxrwxrwx 1 root root 23 Jul 18 20:43 rc0.d/K10buffalodaemon -> ../init.d/buffalodaemon lrwxrwxrwx 1 root root 23 Jul 18 20:43 rc2.d/S90buffalodaemon -> ../init.d/buffalodaemon lrwxrwxrwx 1 root root 23 Jul 18 20:43 rc6.d/K10buffalodaemon -> ../init.d/buffalodaemon slam:/etc#
slam:/etc# ps -aux Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 1 0.0 0.5 1968 712 ? S 17:06 0:05 init [2] root 2 0.0 0.0 0 0 ? SN 17:06 0:00 [ksoftirqd/0] root 3 0.0 0.0 0 0 ? S< 17:06 0:00 [events/0] root 4 0.0 0.0 0 0 ? S< 17:06 0:00 [khelper] root 5 0.0 0.0 0 0 ? S< 17:06 0:00 [kthread] root 11 0.0 0.0 0 0 ? S< 17:06 0:00 [kblockd/0] root 14 0.0 0.0 0 0 ? S< 17:06 0:00 [khubd] root 29 0.0 0.0 0 0 ? S 17:06 0:00 [crypto] root 30 0.0 0.0 0 0 ? S 17:06 0:00 [crypto_ret] root 51 0.0 0.0 0 0 ? S 17:06 0:00 [pdflush] root 52 0.0 0.0 0 0 ? S 17:06 0:03 [pdflush] root 54 0.0 0.0 0 0 ? S< 17:06 0:00 [aio/0] root 53 0.0 0.0 0 0 ? S 17:06 0:00 [kswapd0] root 55 0.0 0.0 0 0 ? S< 17:06 0:00 [xfslogd/0] root 56 0.0 0.0 0 0 ? S< 17:06 0:00 [xfsdatad/0] root 180 0.0 0.0 0 0 ? S< 17:06 0:00 [scsi_eh_0] root 181 0.0 0.0 0 0 ? S< 17:06 0:00 [scsi_eh_1] root 194 0.0 0.0 0 0 ? S 17:06 0:00 [mtdblockd] root 225 0.0 0.0 0 0 ? S< 17:06 0:00 [xfsbufd] root 226 0.0 0.0 0 0 ? S< 17:06 0:00 [xfssyncd] root 386 0.0 0.1 1544 176 ? Ss 17:06 0:00 logsave -s /var/log/fsck/checkfs fsck -C -R -A -a root 395 0.0 0.0 0 0 ? S 17:06 0:00 [kjournald] root 397 0.0 0.0 0 0 ? S< 17:06 0:00 [xfsbufd] root 398 0.0 0.0 0 0 ? S< 17:06 0:00 [xfssyncd] root 528 0.0 0.9 2812 1196 ? S 17:06 0:00 /bin/sh /usr/local/sbin/kernelmon root 536 0.0 0.3 1552 392 ? S 17:06 0:00 cat /proc/buffalo/kernevnt root 539 0.0 1.0 27384 1316 ? Sl 17:06 0:00 /usr/sbin/rsyslogd -c3 daemon 564 0.0 0.6 5144 784 ? Ss 17:06 0:00 lpd Waiting root 577 0.0 0.4 1816 608 ? Ss 17:06 0:00 /usr/sbin/inetd root 588 0.0 1.3 7372 1704 ? Ss 17:06 0:00 /usr/sbin/nmbd -D root 590 0.0 2.2 13164 2864 ? Ss 17:06 0:00 /usr/sbin/smbd -D root 597 0.0 0.7 13164 944 ? S 17:06 0:00 /usr/sbin/smbd -D ntp 602 0.0 1.0 4736 1348 ? Ss 17:06 0:00 /usr/sbin/ntpd -p /var/run/ntpd.pid -u 102:104 -g root 624 0.0 0.6 2136 776 ? Ss 17:06 0:00 /usr/sbin/cron root 641 0.0 0.4 1560 528 ttyS0 Ss+ 17:06 0:00 /sbin/getty -L ttyS0 115200 vt100 telnetd 644 0.0 0.6 1876 804 ? Ss 17:08 0:03 in.telnetd: uxl.yamasita.jp root 646 0.0 0.9 2948 1224 pts/0 Ss 17:08 0:00 login -h uxl.yamasita.jp -p yasunari 647 0.0 1.4 3444 1816 pts/0 S 17:08 0:00 -bash root 654 0.0 0.8 2644 1076 pts/0 S 17:09 0:00 su - root root 655 0.0 1.2 2944 1592 pts/0 S 17:09 0:00 -su root 1135 0.0 0.7 3204 924 ? Ss 20:41 0:00 /usr/local/apache/bin/httpd root 1139 0.0 0.5 3260 672 ? S 20:41 0:00 /usr/local/apache/bin/httpd root 1140 0.0 0.5 3260 672 ? S 20:41 0:00 /usr/local/apache/bin/httpd root 1141 0.0 0.5 3260 672 ? S 20:41 0:00 /usr/local/apache/bin/httpd root 1142 0.0 0.5 3260 672 ? S 20:41 0:00 /usr/local/apache/bin/httpd root 1143 0.0 0.7 3204 928 ? Ss 20:41 0:00 /usr/local/apache/bin/httpd -f /etc/apache/httpd8080.conf root 1147 0.0 0.5 3260 676 ? S 20:41 0:00 /usr/local/apache/bin/httpd -f /etc/apache/httpd8080.conf root 1148 0.0 0.5 3260 676 ? S 20:41 0:00 /usr/local/apache/bin/httpd -f /etc/apache/httpd8080.conf root 1149 0.0 0.5 3260 676 ? S 20:41 0:00 /usr/local/apache/bin/httpd -f /etc/apache/httpd8080.conf root 1150 0.0 0.5 3260 676 ? S 20:41 0:00 /usr/local/apache/bin/httpd -f /etc/apache/httpd8080.conf root 1151 0.0 0.5 3260 676 ? S 20:41 0:00 /usr/local/apache/bin/httpd root 1154 0.0 0.5 3260 680 ? S 20:41 0:00 /usr/local/apache/bin/httpd -f /etc/apache/httpd8080.conf root 1217 1.6 5.2 42944 6636 ? Ssl 20:41 0:02 /usr/local/PCast/Scheduler root 1220 0.0 0.4 5304 540 ? S 20:41 0:00 /usr/local/PCast/pcastd root 1221 0.0 0.5 5304 660 ? S 20:41 0:00 /usr/local/PCast/pcastd root 1325 0.5 7.4 10148 9372 pts/0 SNLl 20:42 0:00 /usr/mediaserver/mediaserver root 1344 1.4 0.8 2108 1056 pts/0 S 20:42 0:01 /bin/sh /usr/local/bin/chk_mediaserver.sh root 1898 0.0 0.4 3016 524 ? Ss 20:42 0:00 /usr/local/PCast/EPGd root 1903 0.0 0.4 3612 540 ? Ss 20:42 0:00 /usr/local/PCast/iRCommander root 1919 0.0 0.2 1864 268 pts/0 S 20:42 0:00 /usr/local/sbin/clientUtil_server -i eth0 root 1927 0.0 0.1 1412 220 ? Ss 20:42 0:00 /usr/local/BootServer/fwupdated root 1928 0.0 0.2 9736 360 ? Ssl 20:42 0:00 /usr/local/BootServer/rarpcfgd root 1929 0.0 0.2 17936 372 ? Ssl 20:42 0:00 /usr/local/BootServer/rarpd root 1932 0.0 0.1 1544 196 ? Ss 20:42 0:00 /usr/local/BootServer/tftpd root 1980 0.0 0.8 38036 1044 ? Sl 20:42 0:00 /usr/local/PCast/Scheduler root 3271 0.0 0.7 2476 956 pts/0 R+ 20:44 0:00 ps -aux slam:/etc#
|
← いちからやり直し、、、(15)ハック de 録!!(2)設定変更 |
ハックの記録 LinkStation/玄箱 をハックしよう |
→ いちからやり直し、、、(17)ハック de 録!!(4)ビデオキャプチャボックスの接続と確認 |