WD MBL 분류

WD My Book Live에서 음원 스트리밍으로 듣기

컨텐츠 정보

  • 32,842 조회
  • 17 댓글
  • 0 추천
  • 목록

본문

1. 들어가며


기존 아이튠즈 서버가 잘 된다면


http://www.wsgvet.com/bbs/board.php?bo_table=iomega&wr_id=503


위 강좌를 보시면 됩니다.



제 MBL에는 기존 아이튠즈 서버가 잘 안돼서 로그를 보니


[2013-12-30 01:22:25]     main: Forked Media Server Version 0.19 taking off

[2013-12-30 01:22:25]     main: mDNS init

[2013-12-30 01:22:25]     mdns: Avahi state change: Client connecting

[2013-12-30 01:22:25]       db: Could not prepare statement: no such table: admin

[2013-12-30 01:22:25]       db: Could not check database version, trying DB init

[2013-12-30 01:22:29]     mdns: Failed to create service browser: Bad state

[2013-12-30 01:22:29]   player: Could not add mDNS browser for AirTunes devices

[2013-12-30 01:22:29]     main: Player thread failed to start

[2013-12-30 01:22:29]     main: File scanner deinit

[2013-12-30 01:22:29]     main: Database deinit

[2013-12-30 01:22:29]     main: mDNS deinit

[2013-12-30 01:22:29]     main: Exiting.


이런 식으로 나오더군요.


관련 내용은 구글링 해봤지만 딱히 해결책이 없어보였습니다.



그래서 데비안 스퀴즈 mt-daapd를 설치하는 것을 추천합니다.


아쉽게도 아이튠즈에서 인식이 안되는 버그가 있습니다만


안드로이드 Music Pump DAAP Player에서는 잘 됩니다.



2. fored-daapd 강제 삭제




▲ 먼저 위 스샷처럼 아이튠즈 서버를 끕니다.


그리고 dlna 서버도 안쓴다면 끄는게 좋습니다. 


특히 트랜스미션 돌아갈 때 dlna가 켜져있으면 성능저하의 원인이 됩니다.



Putty로 로그인 후



apt-get remove forked-daapd


위 명령을 내리면 뭐 물어봅니다. y 엔터를 누릅니다.



MyBookLive:~# apt-get remove forked-daapd

Reading package lists... Done

Building dependency tree

Reading state information... Done

The following packages were automatically installed and are no longer 


required:

  webui libplist1 libtalloc2 shared-mime-info apache-php-webdav strings

  smbclient libantlr3c-3.2-0 libtagc0 libtdb1 smbfs strace openssl-blacklist

  networking-general libnetaddr-ip-perl admin-rest-api date-time afp

  nas-safepoint bmon samba-common-bin apm-zermatt wd-lib sysstat

  libtag1-vanilla wd-nas php-apc libpam-winbind alerts

  libapache2-mod-xsendfile upnp-nas liblzo2-2 libglib2.0-data libflac8 samba

  libpkcs11-helper1 vft orion-resources libunistring0 cifs-utils libglib2.0-0

  libtag1c2a libdb5.1 samba-common bonjour openvpn winbind sqlite3

  libnet-upnp-perl mdadm openvpn-blacklist

Use 'apt-get autoremove' to remove them.

The following packages will be REMOVED:

  apnc forked-daapd itunes

0 upgraded, 0 newly installed, 3 to remove and 0 not upgraded.

After this operation, 713kB disk space will be freed.

Do you want to continue [Y/n]?y

(Reading database ...

dpkg: warning: files list file for package `ramlog' missing, assuming package 


has no files currently installed.


dpkg: warning: files list file for package `libparted0' missing, assuming 


package has no files currently installed.

(Reading database ... 18717 files and directories currently installed.)

Removing apnc ...

Removing itunes ...

[itunes.prerm] 12/30/13 09:37:22: remove

[itunes.prerm] 12/30/13 09:37:22: done.

[itunes.postrm] 12/30/13 09:37:22: remove

[itunes.postrm] 12/30/13 09:37:22: done.

Removing forked-daapd ...

Processing triggers for man-db ...

MyBookLive:~#


위와 같이 삭제가 되었습니다.


혹시 


MyBookLive:~# apt-get remove forked-daapd

Reading package lists... Done

Building dependency tree

Reading state information... Done

You might want to run `apt-get -f install' to correct these:

The following packages have unmet dependencies:

itunes: Depends: forked-daapd but it is not going to be installed

libc6-ppc64: Depends: libc6 (= 2.11.3-4) but 2.11.2-2 is to be installed

E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).


위와 같이 에러가 뜨면 관련 패키지도 삭제해야 됩니다.


apt-get remove libc6-ppc64 itunes apnc


위 명령어로 패키지를 삭제한 후 


apt-get remove forked-daapd


위 명령어로 삭제하면 삭제됩니다.



이제 소스리스트를 변경해야 합니다.


http://www.wsgvet.com/bbs/board.php?bo_table=iomega&wr_id=278


위 링크로 가서


2. 패키지 수정 및 업데이트 까지 완료하고 오시길 바랍니다.



MyBookLive:~# apt-get update

Get:1 http://ftp.us.debian.org squeeze Release.gpg [1672B]

Get:2 http://ftp.us.debian.org squeeze Release [99.8kB]

Get:3 http://ftp.us.debian.org squeeze/main Packages [6490kB]

Get:4 http://ftp.us.debian.org squeeze/main Sources [4541kB]

Fetched 11.1MB in 30s (370kB/s)

Reading package lists... Done

MyBookLive:~#



위와 같이 정상적으로 소스리스트 업데이트가 되었다면 다음 단계로 진행합니다.




3. mt-daapd 설치하기



apt-get install mt-daapd


위 명령어로 설치합니다.


뭐 물어보면 y 엔터 누르면 됩니다.



MyBookLive:~# apt-get install mt-daapd

Reading package lists... Done

Building dependency tree

Reading state information... Done

The following packages were automatically installed and are no longer 


required:

  webui libplist1 libtalloc2 shared-mime-info apache-php-webdav strings

  smbclient libantlr3c-3.2-0 libtdb1 smbfs openssl-blacklist strace

  networking-general libnetaddr-ip-perl admin-rest-api date-time afp

  nas-safepoint bmon samba-common-bin apm-zermatt wd-lib sysstat wd-nas

  php-apc libpam-winbind alerts libapache2-mod-xsendfile upnp-nas liblzo2-2

  libglib2.0-data samba libpkcs11-helper1 vft orion-resources libunistring0

  cifs-utils libglib2.0-0 libdb5.1 samba-common bonjour openvpn winbind

  sqlite3 libnet-upnp-perl mdadm openvpn-blacklist

Use 'apt-get autoremove' to remove them.

The following extra packages will be installed:

  javascript-common libid3tag0 libjs-prototype libjs-scriptaculous libvorbis0a

  libvorbisfile3 wwwconfig-common

Suggested packages:

  mysql-client postgresql-client apache apache-ssl

The following NEW packages will be installed:

  javascript-common libid3tag0 libjs-prototype libjs-scriptaculous

  libvorbisfile3 mt-daapd wwwconfig-common

The following packages will be upgraded:

  libvorbis0a

1 upgraded, 7 newly installed, 0 to remove and 252 not upgraded.

Need to get 645kB of archives.

After this operation, 2388kB of additional disk space will be used.

Do you want to continue [Y/n]? y

Get:1 http://ftp.us.debian.org squeeze/main wwwconfig-common 0.2.1 [22.7kB]

Get:2 http://ftp.us.debian.org squeeze/main javascript-common 7 [3810B]

Get:3 http://ftp.us.debian.org squeeze/main libid3tag0 0.15.1b-10 [38.2kB]

Get:4 http://ftp.us.debian.org squeeze/main libjs-prototype 1.6.1-1 [35.0kB]

Get:5 http://ftp.us.debian.org squeeze/main libjs-scriptaculous 1.8.3-1 


[129kB]

Get:6 http://ftp.us.debian.org squeeze/main libvorbis0a 1.3.1-1+squeeze1 


[111kB]

Get:7 http://ftp.us.debian.org squeeze/main libvorbisfile3 1.3.1-1+squeeze1 


[25.3kB]

Get:8 http://ftp.us.debian.org squeeze/main mt-daapd 0.9~r1696.dfsg-16 [281kB]

Fetched 645kB in 2s (319kB/s)

Selecting previously deselected package wwwconfig-common.

(Reading database ...

dpkg: warning: files list file for package `wd-nas' missing, assuming package 


has no files currently installed.


dpkg: warning: files list file for package `ramlog' missing, assuming package 


has no files currently installed.


dpkg: warning: files list file for package `libparted0' missing, assuming 


package has no files currently installed.

(Reading database ... 18483 files and directories currently installed.)

Unpacking wwwconfig-common (from .../wwwconfig-common_0.2.1_all.deb) ...

Selecting previously deselected package javascript-common.

Unpacking javascript-common (from .../javascript-common_7_all.deb) ...

Selecting previously deselected package libid3tag0.

Unpacking libid3tag0 (from .../libid3tag0_0.15.1b-10_powerpc.deb) ...

Selecting previously deselected package libjs-prototype.

Unpacking libjs-prototype (from .../libjs-prototype_1.6.1-1_all.deb) ...

Selecting previously deselected package libjs-scriptaculous.

Unpacking libjs-scriptaculous (from .../libjs-scriptaculous_1.8.3-1_all.deb) 


...

Preparing to replace libvorbis0a 1.2.0.dfsg-3.1+lenny1 (using 


.../libvorbis0a_1.3.1-1+squeeze1_powerpc.deb) ...

Unpacking replacement libvorbis0a ...

Selecting previously deselected package libvorbisfile3.

Unpacking libvorbisfile3 (from .../libvorbisfile3_1.3.1-


1+squeeze1_powerpc.deb) ...

Selecting previously deselected package mt-daapd.

Unpacking mt-daapd (from .../mt-daapd_0.9~r1696.dfsg-16_powerpc.deb) ...

Processing triggers for man-db ...

Setting up wwwconfig-common (0.2.1) ...

Setting up javascript-common (7) ...

Setting up libid3tag0 (0.15.1b-10) ...

Setting up libjs-prototype (1.6.1-1) ...

Setting up libjs-scriptaculous (1.8.3-1) ...

Setting up libvorbis0a (1.3.1-1+squeeze1) ...

Setting up libvorbisfile3 (1.3.1-1+squeeze1) ...

Setting up mt-daapd (0.9~r1696.dfsg-16) ...

Starting mt-daapd: mt-daapd.

MyBookLive:~#


위와 같이 나오면 정상입니다.



4. mt-daapd 설정하기



이제 인터넷 브라우저로 가서 


http://MBL내부IP:3689 로 들어갑니다.





▲ 그럼 위와 같이 아이디와 비번을 물어보는데 


아이디와 비번 모두 mt-daapd 를 넣으면 됩니다.




▲ 위와 같은 화면이 나오면 성공입니다.





▲ 이제 위와 같이 설정에 들어가서 암호를 변경하고


음원의 루트를 지정해줍니다.


무난하게 /shares/Public 을 넣으면 퍼블릭 이하의 모든 파일을 검색할 수 있습니다.


혹시 mp3_dir 에러가 뜨면


/DataVolume/shares/Public


위 경로로 넣으면 됩니다.


그리고 Music Password 에 암호를 넣으면 서버에 접속할 때 비번을 지정할 수 있습니다.


save 를 누르고 다른 메뉴로 들어가면 암호를 물어보는데


아이디는 mt-daapd 이고 암호는 위에 지정한 암호를 넣으면 됩니다.



/shares/Public 이하에 음원을 넣었다면 스캔을 해줘야 합니다.


물론 지속적으로 스캔을 할 수도 있지만 MBL의 부하를 최소화하기 위해


스캔은 하지 않도록 설정했습니다.





▲ 위와 같이 Start Scan을 누르면 됩니다.


Full Scan과의 차이점은 잘 모르겠네요.




5. Avahi daemon 설치 및 업그레이드


그리고 아바히 관련 패키지를 설치 및 업그레이드 해야합니다.



apt-get install avahi-daemon libavahi-client3 libavahi-common3


위 명령어로 설치합니다.



Do you want to continue [Y/n]?


위와 같이 물어보면 y 엔터



avahi-daemon.conf ?  물어보면 그냥 엔터





MyBookLive:~# apt-get install avahi-daemon libavahi-client3 libavahi-common3

Reading package lists... Done

Building dependency tree

Reading state information... Done

The following packages were automatically installed and are no longer 


required:

  webui libplist1 libtalloc2 shared-mime-info apache-php-webdav strings

  smbclient libantlr3c-3.2-0 libtdb1 smbfs openssl-blacklist strace

  networking-general libnetaddr-ip-perl admin-rest-api date-time afp

  nas-safepoint bmon samba-common-bin apm-zermatt wd-lib sysstat wd-nas

  php-apc libpam-winbind alerts libapache2-mod-xsendfile upnp-nas liblzo2-2

  libglib2.0-data samba libpkcs11-helper1 vft orion-resources libunistring0

  cifs-utils libglib2.0-0 libdb5.1 samba-common bonjour openvpn winbind

  sqlite3 libnet-upnp-perl mdadm openvpn-blacklist

Use 'apt-get autoremove' to remove them.

The following extra packages will be installed:

  libavahi-core7 libdaemon0

The following NEW packages will be installed:

  libavahi-core7

The following packages will be upgraded:

  avahi-daemon libavahi-client3 libavahi-common3 libdaemon0

4 upgraded, 1 newly installed, 0 to remove and 248 not upgraded.

Need to get 344kB of archives.

After this operation, 360kB of additional disk space will be used.

Do you want to continue [Y/n]? y

Get:1 http://ftp.us.debian.org squeeze/main libavahi-common3 0.6.27-2 squeeze1 


[            53.3kB]

Get:2 http://ftp.us.debian.org squeeze/main libavahi-core7 0.6.27-2 squeeze1 


[12            2kB]

Get:3 http://ftp.us.debian.org squeeze/main libdaemon0 0.14-2 [18.9kB]

Get:4 http://ftp.us.debian.org squeeze/main avahi-daemon 0.6.27-2 squeeze1 


[93.7            kB]

Get:5 http://ftp.us.debian.org squeeze/main libavahi-client3 0.6.27-2 squeeze1 


[            55.9kB]

Fetched 344kB in 8s (38.4kB/s)

(Reading database ...

dpkg: warning: files list file for package `wd-nas' missing, assuming package 


ha            s no files currently installed.


dpkg: warning: files list file for package `ramlog' missing, assuming package 


ha            s no files currently installed.


dpkg: warning: files list file for package `libparted0' missing, assuming 


packag            e has no files currently installed.

(Reading database ... 18724 files and directories currently installed.)

Preparing to replace libavahi-common3 0.6.23-3lenny1 (using .../libavahi-


common3            _0.6.27-2 squeeze1_powerpc.deb) ...

Unpacking replacement libavahi-common3 ...

Selecting previously deselected package libavahi-core7.

Unpacking libavahi-core7 (from .../libavahi-core7_0.6.27-


2 squeeze1_powerpc.deb)             ...

Preparing to replace libdaemon0 0.12-2lenny1 (using .../libdaemon0_0.14-


2_powerp            c.deb) ...

Unpacking replacement libdaemon0 ...

Preparing to replace avahi-daemon 0.6.25-3 (using .../avahi-daemon_0.6.27-


2 sque            eze1_powerpc.deb) ...

Stopping Avahi mDNS/DNS-SD Daemon: avahi-daemon.

Unpacking replacement avahi-daemon ...

Preparing to replace libavahi-client3 0.6.23-3lenny1 (using .../libavahi-


client3            _0.6.27-2 squeeze1_powerpc.deb) ...

Unpacking replacement libavahi-client3 ...

Processing triggers for man-db ...

Setting up libavahi-common3 (0.6.27-2 squeeze1) ...

Setting up libavahi-core7 (0.6.27-2 squeeze1) ...

Setting up libdaemon0 (0.14-2) ...

Setting up avahi-daemon (0.6.27-2 squeeze1) ...

Installing new version of config file /etc/dbus-1/system.d/avahi-dbus.conf ...


Configuration file `/etc/avahi/avahi-daemon.conf'

 ==> Modified (by you or by a script) since installation.

 ==> Package distributor has shipped an updated version.

   What would you like to do about it ?  Your options are:

    Y or I  : install the package maintainer's version

    N or O  : keep your currently-installed version

      D     : show the differences between the versions

      Z     : start a shell to examine the situation

 The default action is to keep your current version.

*** avahi-daemon.conf (Y/I/N/O/D/Z) [default=N] ?


Installing new version of config file /etc/avahi/hosts ...

Reloading system message bus config...done.

Starting Avahi mDNS/DNS-SD Daemon: avahi-daemonavahi-daemon disabled because 


there is a unicast .local domain (warning).

Setting up libavahi-client3 (0.6.27-2 squeeze1) ...

MyBookLive:~#



위와 같이 진행됩니다.


warning이 찝찝하니깐 관련 에러를 제거합니다.



rm /var/run/avahi-daemon/disabled-for-unicast-local


y엔터



/etc/init.d/avahi-daemon restart


위 명령어로 아바히 데몬을 재시작합니다.



MyBookLive:~# /etc/init.d/avahi-daemon restart

Restarting Avahi mDNS/DNS-SD Daemon: avahi-daemon.

MyBookLive:~#


위와 같이 진행됩니다.



/etc/init.d/mt-daapd restart


위 명령어로 mt-daapd를 재시작합니다.



MyBookLive:~# /etc/init.d/mt-daapd restart

Stopping mt-daapd: mt-daapd.

Waiting for mt-daapd to terminate....OK, all clear.

Starting mt-daapd: mt-daapd.

MyBookLive:~#


위와 같이 재시작됩니다.


설치가 완료되었습니다.



기존 forked-daapd와는 다르게 아이튠즈나 기타 앱에서 자동 검색이 안됩니다.


새로운 서버 추가하여 내부IP를 직접 넣어야 합니다.



앱과 관련된 내용은


http://www.wsgvet.com/bbs/board.php?bo_table=iomega&wr_id=503


위 링크를 참조하세요



혹시 한글태그가 깨진다면


http://www.clien.net/cs2/bbs/board.php?bo_table=lecture&wr_id=102715


위 링크를 참조하세요.

관련자료

  • 서명
    우성짱의 NAS를 운영하고 있습니다.

    저의 즐거움이 여러분의 즐거움이면 좋겠습니다.

댓글 17 / 2 페이지

구름님의 댓글

아이튠즈 삭제후
mt-daapd설치진행중
MyBookLive:~# apt-get install mt-daapd
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
  mt-daapd: Depends: libvorbisfile3 (>= 1.1.2) but it is not going to be installed
E: Broken packages
라고 나오네요 ㅜㅜ
다른분들은 수월하게 하시는것 같은데 저는 하는것 마다 자꾸 걸리네요
ㅠㅜ

우성군님의 댓글의 댓글

음.. 아마 앞에 wheezy에서 뭔가를 설치해서 그럴 듯 합니다.

apt-get remove libvorbisfile3

위 명령어 수행 후 다시 해보세요.

mene님의 댓글

안녕하세요~
초기화 후 설치를 다시하고 Server Status 페이지 뜨는 것 확인했는데요
다른 페이지는 다 뜨는데 Configuration 페이지만 흰페이지로 나오네요..;;; 허참....
삭제하고 다시 까는 방법이나 putty 상에서 설정 들어갈 수 있는 방법 있으면 알려주세요.
설정은 폴더 지정만 한번 해 놓으면 될 것 같아서요~
매번 감사합니다.

우성군님의 댓글의 댓글

설치한지 오래되어 설치파일의 정확한 경로를 모르겠네요.

아마 etc폴더에 있을 것 같은데요.

cd /etc

ls

해서 mt-daapd 와 관련된 파일이 있는지 확인해보세요.

그 뒤에

nano /etc/mt-daapd.conf

위와 같은 형식으로 설정 파일에 들어갈 수 있습니다.

설정 변경 후 mt-daapd 재시작해주면 될겁니다.


putty로 작업한 것들을 완전히 초기화시키려먼

수동으로 펌웨어 업그레이드 하시면 됩니다.

토토코코님의 댓글

안녕하세요~!^^
저 역시 아이튠즈가 잘 되지 않아서요.ㅠㅠ
1-2에서 막혔어요. 저는 key가 3개가 나오더라구요. 모두 등록은 했어요.

MyBookLive:~# apt-get install mt-daapd
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package mt-daapd

이런 에러가 나오네요. 펌업을 모두 해서 인듯도 하네요.
펌다운을 해야 할지...ㅠㅠ
어찌해야 할까요?

우성군님의 댓글의 댓글

에공.. 요 게시물을 쓴지 너무 오래되어 ㅠㅠ 안될 수 있어요..

왜냐하면.. .소스 리스트를 만져야 되는데.. 너무 오래되어 호환이 안되는 경우가 생기더라구요...

이건 저도 어찌 할 방법이 없네요 ㅠㅠ
전체 99 / 7 페이지
RSS

최근글


새댓글


알림 0