HS-DHGL: ハック de 録!!(1)


HS-DHGL でもハック de 録!!が動作させたい。
標準ファームから必要なファイルを持って行けばいいのだろうけど いったい何を持っていけばいいのやら。
さて、どこから調べていこうか。

ps

標準ファームで起動し、ps を見る。
root@HS-DHGL276:~# ps
  PID  Uid     VmSize Stat Command
    1 root        564 S   init
    2 root            SWN [ksoftirqd/0]
    3 root            SW< [events/0]
    4 root            SW< [khelper]
    5 root            SW< [kthread]
   11 root            SW< [kblockd/0]
   14 root            SW  [khubd]
   29 root            SW  [crypto]
   30 root            SW  [crypto_ret]
   51 root            SW  [pdflush]
   52 root            SW  [pdflush]
   54 root            SW< [aio/0]
   55 root            SW< [xfslogd/0]
   56 root            SW< [xfsdatad/0]
  181 root            SW  [scsi_eh_0]
  182 root            SW  [scsi_eh_1]
   53 root            SW  [kswapd0]
   57 root            SW  [xfsbufd]
  196 root            SW  [mtdblockd]
  267 root            SW  [xfssyncd]
  466 root            SW  [kjournald]
  517 root        684 S   syslogd -m 0
  519 root        480 S   klogd
  523 root        764 S   /usr/sbin/inetd
  526 root        956 S   /bin/sh /usr/local/sbin/kernelmon
  532 root        500 S   /usr/local/sbin/miconmon -d
  546 root        508 S   cat /proc/driver/kernevnt
  547 root            SW  [xfssyncd]
  554 root        524 S   /usr/local/sbin/diskmon
  557 root        484 S   /usr/local/sbin/errormon
  574 root        520 S   /usr/sbin/telnetd
  612 root       1048 S   /bin/sh /etc/init.d/atalk.sh start
  613 root        480 S   /usr/local/sbin/atalkd -f /etc/atalk/atalkd.conf
  623 root       1076 S   /usr/local/apache/bin/httpd
  626 root       1080 S   /usr/local/apache/bin/httpd -f /etc/apache/httpd8080.conf
  627 root       1100 S   /usr/local/apache/bin/httpd -f /etc/apache/httpd8080.conf
  632 root        680 S   /usr/local/sbin/atalkd -f /etc/atalk/atalkd.conf
  633 root       1116 S   /usr/local/apache/bin/httpd
  634 root       1116 S   /usr/local/apache/bin/httpd
  635 root       1116 S   /usr/local/apache/bin/httpd
  636 root       1116 S   /usr/local/apache/bin/httpd
  637 root       1100 S   /usr/local/apache/bin/httpd -f /etc/apache/httpd8080.conf
  638 root       1100 S   /usr/local/apache/bin/httpd -f /etc/apache/httpd8080.conf
  639 root       1100 S   /usr/local/apache/bin/httpd -f /etc/apache/httpd8080.conf
  640 root       1120 S   /usr/local/apache/bin/httpd
  641 root       1124 S   /usr/local/apache/bin/httpd -f /etc/apache/httpd8080.conf
  642 root       2548 S   /usr/local/sbin/smbd -D
  644 root       2536 S   /usr/local/sbin/smbd -D
  645 root       1768 S   /usr/local/sbin/nmbd -D
  650 root       1204 S   -sh
  715 root       1076 S   /usr/local/PCast/Scheduler
  718 root       1180 S   /usr/local/PCast/pcastd
  719 root       1192 S   /usr/local/PCast/pcastd
  754 root       8032 S   /usr/mediaserver/mediaserver
  763 nobody      924 S   /usr/local/sbin/mt-daapd
  764 nobody     1396 S   /usr/local/sbin/mt-daapd
  787 root       1044 S   /bin/sh /usr/local/bin/chk_mediaserver.sh
  825 root        788 S   /usr/local/PCast/EPGd
  830 root        808 S   /usr/local/PCast/iRCommander
  835 root        356 S   /usr/local/bin/directcopy
  836 root        956 S   /bin/sh /usr/local/bin/directcopy_job.sh
  848 root        544 S   /usr/local/sbin/clientUtil_server -i eth0
  850 root        808 S   /usr/local/sbin/lsprcvd
  854 root        436 S   /usr/local/sbin/daemonwatch -a /etc/daemonwatch.list
  858 root        736 S   /usr/sbin/crond
  863 root        484 S   /usr/local/sbin/logchkd
  916 root        616 S   /sbin/getty -L ttyS0 115200 vt100
 1090 root        416 S   sleep 1
 1094 root        416 S   sleep 1
 1103 root        716 R   ps
root@HS-DHGL276:~#
LS-GL の ps の結果と 見比べてみると、、、
/usr/local/apache/bin/httpd -f /etc/apache/httpd8080.conf
/usr/local/PCast/Scheduler
/usr/local/PCast/pcastd
/usr/mediaserver/mediaserver
/usr/local/sbin/mt-daapd
/bin/sh /usr/local/bin/chk_mediaserver.sh
/usr/local/PCast/EPGd
/usr/local/PCast/iRCommander
/usr/local/bin/directcopy
/bin/sh /usr/local/bin/directcopy_job.sh
このあたりか。

PCast

/usr/local/apache/bin/httpd -f /etc/apache/httpd8080.conf
は、PCast の Web インタフェイス。
root@HS-DHGL276:~# grep Directory /etc/apache/httpd8080.conf


#
#


#
#
# DirectoryIndex: Name of the file or files to use as a pre-written HTML
    DirectoryIndex index.html index.htm
    
    
    
    
    
    
    
    
    
    
    
    
#    
#    
#    
#    
ROOT@HS-DHGL276:~#
/usr/local/PCast/www/ が必要。
というか
/usr/local/PCast/Scheduler
/usr/local/PCast/pcastd
/usr/local/PCast/EPGd
/usr/local/PCast/iRCommander
も必要なので、/usr/local/PCast 全部が必要と考える。

メディアサーバ

/usr/mediaserver/mediaserver
/bin/sh /usr/local/bin/chk_mediaserver.sh
このあたり。
root@HS-DHGL276:~# ls -l /usr/mediaserver/
-rwxr-xr-x    1 root     root        24710 Dec  5 13:58 mdb_verify
-rwxr-xr-x    1 root     root        36196 Dec  5 13:58 mediaserver
drwxr-xr-x    3 root     root           16 Dec 23 15:52 webui2
webui2 ってなんだ? Web U(ser)I(nterfae) (Version)2 ?
宿題。

/usr/local/bin/chk_mediaserver.sh を見てみると、 /usr/etc/mediaserver.conf
/mnt/disk1/mediaserver
あたりも必要。

iTunes サーバ(?)

/usr/local/sbin/mt-daapd
/etc/mt-daapd.conf を見ると、 /usr/local/share/mt-daapd/
/etc/mt-daapd.playlist
/mnt/disk1/mt-daapd
あたりも必要。

というか、debian のパッケージの方が、いいかも。
これも宿題。

Direct Copy

/usr/local/bin/directcopy
/bin/sh /usr/local/bin/directcopy_job.sh
これもハック de 録!!とは関係なさそう。
これも宿題。


LS-GL: Wake UP On LAN
ハックの記録
LinkStation/玄箱 をハックしよう

HS-DHGL: ハック de 録!!(2)

Copyright (C) 2007 Yasunari Yamashita. All Rights Reserved.
yasunari @ yamasita.jp 山下康成@京都府向日市