MAC アドレスのホスト名では気持ち悪い。
sil:~# cd /usr/local/buffalo/etc/ sil:/usr/local/buffalo/etc# ls apache hosts localtime openldap rsyncd.conf ssh_host_key.pub apcupsd hosts.deny login.access pam.d rsyncd.secret ssh_host_rsa_key atalk hotplug.d login.defs pam_smb.conf samba ssh_host_rsa_key.pub cron inetd.conf logrotate.d passwd security sshd_config daemonwatch.list init.d lpd pcast services sysctl.conf default initrd_ver melco printcap shadow syslog.conf dhcpc inittab moduli profile shadow- yp.conf fstab issue mt-daapd.conf profile.d shells yp.conf.sv ftpusers issue.net mtab proftpd skel group ld.so.cache network protocols ssh_config gshadow ld.so.conf nsswitch.conf resolv.conf ssh_host_dsa_key hddrootmode linkstation_release ntp.conf resolv.conf.sv ssh_host_dsa_key.pub host.conf locale.alias ntp.conf.sv rootfs_ok ssh_host_key sil:/usr/local/buffalo/etc#あるある。
sil:/usr/local/buffalo/etc# cat mt-daapd.conf web_root /usr/local/share/mt-daapd/admin-root port 3689 admin_pw mt-daapd #db_dir /var/cache/mt-daapd #mp3_dir /mnt/mp3 #servername mt-daapd runas nobody playlist /etc/mt-daapd.playlist #password mp3 extensions .mp3,.m4a,.m4p #logfile /var/log/mt-daapd.log #art_filename _folderOpenImage.jpg rescan_interval 300 #always_scan 0 #process_m3u 0 #scan_type 0 #compress 0 db_dir /mnt/disk1/mt-daapd mp3_dir /mnt/disk1/share/videos servername HS-DHGL276: LinkStation sil:/usr/local/buffalo/etc#まさにこれのよう。
sil:/usr/local/buffalo/etc# mv mt-daapd.conf{,.orig} sil:/usr/local/buffalo/etc# cp mt-daapd.conf{.orig,} sil:/usr/local/buffalo/etc# ls -l mt-daapd.conf* -rwxr-xr-x 1 root root 464 Jul 22 22:48 mt-daapd.conf -rwxr-xr-x 1 root root 464 Jul 15 09:52 mt-daapd.conf.orig sil:/usr/local/buffalo/etc# vi mt-daapd.conf : : sil:/usr/local/buffalo/etc# diff -u mt-daapd.conf.orig mt-daapd.conf --- mt-daapd.conf.orig 2007-07-15 09:52:43.387745750 +0900 +++ mt-daapd.conf 2007-07-22 22:49:58.551311216 +0900 @@ -18,5 +18,5 @@ db_dir /mnt/disk1/mt-daapd -mp3_dir /mnt/disk1/share/videos -servername HS-DHGL276: LinkStation +mp3_dir /mnt/disk1/share/MP3 +servername sil: LinkStation sil:/usr/local/buffalo/etc#
sil:/mnt/Music# tar cf - MP3/BoA |(cd /usr/local/buffalo/mnt/disk1/share; tar xvf -) : :
sil:~# cd /usr/local/buffalo sil:/usr/local/buffalo# cd etc/init.d/ sil:/usr/local/buffalo/etc/init.d# grep mt-daapd * pcastd.sh: killall -KILL mt-daapd pcastd.sh: /usr/local/bin/build_mt-daapd_conf.sh pcastd.sh: /usr/local/sbin/mt-daapd & pcastd.sh: killall -KILL mt-daapd sil:/usr/local/buffalo/etc/init.d#pcastd.sh の中でなにやら操作している。
sil:/usr/local/buffalo/etc/init.d# chroot /usr/local/buffalo sil:/# /etc/init.d/pcastd.sh stop Stop services: pcastd scheduler Stop services: mediaserver 1 2 killall: mediaserver: no process killed 3 killall: mediaserver: no process killed 4 killall: mediaserver: no process killed 5 killall: mediaserver: no process killed 6 killall: mediaserver: no process killed 7 killall: mediaserver: no process killed 8 killall: mediaserver: no process killed 9 killall: mediaserver: no process killed 10 killall: mediaserver: no process killed sil:/# /etc/init.d/pcastd.sh start 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 sil:/#
おかしいなぁと mt-daapd.conf を見てみると、 変更したはずなのに元に戻っている。
build_mt-daapd_conf.sh を見てみると、、、
いきなり rm -f /etc/mt-daapd.conf と。あんまりだ。
servername は /etc/hosts から、
mp3_dir は /etc/melco/pcast_mp2000 から
取得している。
sil:/usr/local/buffalo/etc# ls -l hosts* -rw-r--r-- 1 root root 66 Jul 22 23:12 hosts -rw-rw-rw- 1 root root 18 Nov 26 2004 hosts.deny -rw-r--r-- 1 root root 66 Jun 24 12:43 hosts.orig sil:/usr/local/buffalo/etc# vi hosts : : sil:/usr/local/buffalo/etc# diff -c hosts.orig hosts *** hosts.orig Sun Jun 24 12:43:31 2007 --- hosts Sun Jul 22 23:13:02 2007 *************** *** 1,2 **** 127.0.0.1 localhost.localdomain localhost ! 192.168.1.39 HS-DHGL276 --- 1,2 ---- 127.0.0.1 localhost.localdomain localhost ! 192.168.1.39 sil sil:/usr/local/buffalo/etc#
sil:/usr/local/buffalo/etc# cat melco/pcast_mp2000 server=on media=/mnt/disk1/share/videos usbdisk=1 limit_media= limit_pass= sil:/usr/local/buffalo/etc#変えるのは簡単だが、 こんなん変えたら録画ディレクトリまで変ってしまわないか?
sil:/usr/local/buffalo/etc# cd ../usr/local/bin sil:/usr/local/buffalo/usr/local/bin# mv build_mt-daapd_conf.sh build_mt-daapd_conf.sh.orig sil:/usr/local/buffalo/usr/local/bin# cp build_mt-daapd_conf.sh.orig build_mt-daapd_conf.sh sil:/usr/local/buffalo/usr/local/bin# ls -l build_mt-daapd_conf.sh* -rwxr-xr-x 1 root root 891 Jul 22 23:17 build_mt-daapd_conf.sh -rwxr-xr-x 1 root root 891 Aug 30 2006 build_mt-daapd_conf.sh.orig sil:/usr/local/buffalo/usr/local/bin# vi build_mt-daapd_conf.sh : : sil:/usr/local/buffalo/usr/local/bin# diff -c build_mt-daapd_conf.sh.orig build_mt-daapd_conf.sh *** build_mt-daapd_conf.sh.orig Wed Aug 30 17:02:51 2006 --- build_mt-daapd_conf.sh Sun Jul 22 23:20:02 2007 *************** *** 42,47 **** --- 42,49 ---- #echo $MEDIA_BASE + MEDIA_BASE=/mnt/disk1/share/MP3 + MP3_DIR=`echo mp3_dir $MEDIA_BASE` SERVERNAME=`echo servername $HOST_NAME: LinkStation` sil:/usr/local/buffalo/usr/local/bin#
sil:/usr/local/buffalo/usr/local/bin# chroot /usr/local/buffalo sil:/# /etc/init.d/pcastd.sh stop Stop services: pcastd scheduler Stop services: mediaserver 1 2 killall: mediaserver: no process killed 3 killall: mediaserver: no process killed 4 killall: mediaserver: no process killed 5 killall: mediaserver: no process killed 6 killall: mediaserver: no process killed 7 killall: mediaserver: no process killed 8 killall: mediaserver: no process killed 9 killall: mediaserver: no process killed 10 killall: mediaserver: no process killed sil:/# /etc/init.d/pcastd.sh start 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 sil:/# cat etc/mt-daapd.conf web_root /usr/local/share/mt-daapd/admin-root port 3689 admin_pw mt-daapd #db_dir /var/cache/mt-daapd #mp3_dir /mnt/mp3 #servername mt-daapd runas nobody playlist /etc/mt-daapd.playlist #password mp3 extensions .mp3,.m4a,.m4p #logfile /var/log/mt-daapd.log #art_filename _folderOpenImage.jpg rescan_interval 300 #always_scan 0 #process_m3u 0 #scan_type 0 #compress 0 db_dir /mnt/disk1/mt-daapd mp3_dir /mnt/disk1/share/MP3 servername sil: LinkStation sil:/# ls -l /mnt/disk1/share/MP3 drwxr-sr-x 3 1001 root 32 Jul 22 15:24 BoA sil:/#良さそう。
でも、、、iPod 持ってないし、、、 iTunes で演奏できてどうやっちゅうねん。
|
楽天市場
Yahoo!ショッピング somap.com TSUKUMO ネットショップ ValuMore! ムラウチドットコム アット・ニフティストア Joshin web |
← 別名 |
ハックの記録 LinkStation/玄箱 をハックしよう |
→ LinkStation LS-GL,HS-DHGL Tips/解析結果ページの独立 |