WD MC 분류

WD My Cloud에 minidlna 설치하기

컨텐츠 정보

  • 66,273 조회
  • 68 댓글
  • 0 추천
  • 목록

본문

0. 펌웨어 버전 확인하기


해당 강좌는 WDMyCloud v03.04.01-230 이하 버전에서만 정상 작동합니다.


v04.xx.xx-xxx 이상 버전에서는 무조건 벽돌되니, 필요하신 분은 다운그레이드 후 설치하시길 바랍니다.


다운그레이드 강좌는


http://www.wsgvet.com/iomega/1006


위 링크에 있습니다.


1. 대시보드에서 DLNA 서비스 끄기





위와 같이 대시보드에 접속하여 서비스를 끕니다.



2. 패키지 리스트 업데이트



apt-get update


위 명령어로 업데이트 합니다.



WDMyCloud:~# apt-get update

Ign http://ftp.us.debian.org wheezy InRelease

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

Get:2 http://ftp.us.debian.org wheezy Release [168 kB]

Get:3 http://ftp.us.debian.org wheezy/main armhf Packages [5693 kB]

Get:4 http://ftp.us.debian.org wheezy/main Translation-en [3852 kB]

Fetched 9715 kB in 56s (172 kB/s)

Reading package lists... Done

WDMyCloud:~#



위와 같이 업데이트가 됩니다.



3. 관련 패키지 설치하기



apt-get install libid3tag0 libavformat53 libavutil51


위 명령어로 관련 패키지를 미리 설치합니다.


혹시 설치가 안되거나 에러가 나면 그냥 다음 단계로 넘어갑니다. 


왜냐하면 기존에 다른 패키지들을 설치할 때 이미 깔려있을 수도 있기 때문입니다.


WDMyCloud:~# apt-get install libid3tag0 libavformat53 libavutil51

Reading package lists... Done

Building dependency tree

Reading state information... Done

The following extra packages will be installed:

  libavcodec53 libdirac-encoder0 libgsm1 libmp3lame0 libopenjpeg2 liborc-0.4-0

  libschroedinger-1.0-0 libspeex1 libtheora0 libva1 libvorbis0a libvorbisenc2

  libvpx1 libx264-123 libxvidcore4

Suggested packages:

  speex

The following NEW packages will be installed:

  libavcodec53 libavformat53 libavutil51 libdirac-encoder0 libgsm1 libid3tag0

  libmp3lame0 libopenjpeg2 liborc-0.4-0 libschroedinger-1.0-0 libspeex1

  libtheora0 libva1 libvorbis0a libvorbisenc2 libvpx1 libx264-123 libxvidcore4

0 upgraded, 18 newly installed, 0 to remove and 78 not upgraded.

Need to get 6308 kB of archives.

After this operation, 21.5 MB of additional disk space will be used.

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

Get:1 http://ftp.us.debian.org/debian/ wheezy/main libavutil51 armhf 6:0.8.6-1 [97.0 kB]

Get:2 http://ftp.us.debian.org/debian/ wheezy/main libdirac-encoder0 armhf 1.0.2-6 [337 kB]

Get:3 http://ftp.us.debian.org/debian/ wheezy/main libgsm1 armhf 1.0.13-4 [28.5 kB]

Get:4 http://ftp.us.debian.org/debian/ wheezy/main libmp3lame0 armhf 3.99.5 repack1-3 [373 kB]

Get:5 http://ftp.us.debian.org/debian/ wheezy/main libopenjpeg2 armhf 1.3 dfsg-4.7 [72.1 kB]

Get:6 http://ftp.us.debian.org/debian/ wheezy/main liborc-0.4-0 armhf 1:0.4.16-2 [154 kB]

Get:7 http://ftp.us.debian.org/debian/ wheezy/main libschroedinger-1.0-0 armhf 1.0.11-2 [287 kB]

Get:8 http://ftp.us.debian.org/debian/ wheezy/main libspeex1 armhf 1.2~rc1-7 [57.5 kB]

Get:9 http://ftp.us.debian.org/debian/ wheezy/main libtheora0 armhf 1.1.1 dfsg.1-3.1 [347 kB]

Get:10 http://ftp.us.debian.org/debian/ wheezy/main libva1 armhf 1.0.15-4 [34.3 kB]

Get:11 http://ftp.us.debian.org/debian/ wheezy/main libvorbis0a armhf 1.3.2-1.3 [98.1 kB]

Get:12 http://ftp.us.debian.org/debian/ wheezy/main libvorbisenc2 armhf 1.3.2-1.3 [121 kB]

Get:13 http://ftp.us.debian.org/debian/ wheezy/main libvpx1 armhf 1.1.0-1 [460 kB]

Get:14 http://ftp.us.debian.org/debian/ wheezy/main libx264-123 armhf 2:0.123.2189 git35cf912-1 [431 kB]

Get:15 http://ftp.us.debian.org/debian/ wheezy/main libxvidcore4 armhf 2:1.3.2-9 [301 kB]

Get:16 http://ftp.us.debian.org/debian/ wheezy/main libavcodec53 armhf 6:0.8.6-1 [2580 kB]

Get:17 http://ftp.us.debian.org/debian/ wheezy/main libavformat53 armhf 6:0.8.6-1 [497 kB]

Get:18 http://ftp.us.debian.org/debian/ wheezy/main libid3tag0 armhf 0.15.1b-10 [33.6 kB]

Fetched 6308 kB in 19s (327 kB/s)

Selecting previously unselected package libavutil51:armhf.

dpkg: warning: files list file for package 'libssh2-1:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libxau6:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'liblockfile1:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libkrb5-3:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libwrap0:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libtagc0:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libcap2:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libglib2.0-0:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libgphoto2-port0:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libpng12-0:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libtalloc2:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libevent-2.0-5:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libedit2:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libldap-2.4-2:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libavahi-client3:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libgphoto2-2:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libtag1c2a:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'liblua5.1-0:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libpkcs11-helper1:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libpcre3:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libavahi-common3:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libsensors4:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libx11-6:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libnfsidmap2:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libbsd0:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libavahi-common-data:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libjpeg8:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libsasl2-2:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libcurl3:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libtirpc1:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libkrb5support0:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'librtmp0:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libpcap0.8:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libdevmapper1.02.1:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libexpat1:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libltdl7:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libkeyutils1:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libreadline5:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libantlr3c-3.2-0:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libasound2:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libxcb1:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libtdb1:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libxpm4:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libtag1-vanilla:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'liblzo2-2:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libogg0:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libfontconfig1:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libmagic1:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libk5crypto3:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libgssglue1:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libunistring0:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libwbclient0:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libfuse2:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libgssapi-krb5-2:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libparted0debian1:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libgd2-xpm:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libconfuse0:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libexif12:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libffi5:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libflac8:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libdbus-1-3:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libxml2:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libfreetype6:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libxdmcp6:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libpam-cap:armhf' missing; assuming package has no files currently installed

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

Unpacking libavutil51:armhf (from .../libavutil51_6:0.8.6-1_armhf.deb) ...

Selecting previously unselected package libdirac-encoder0:armhf.

Unpacking libdirac-encoder0:armhf (from .../libdirac-encoder0_1.0.2-6_armhf.deb) ...

Selecting previously unselected package libgsm1:armhf.

Unpacking libgsm1:armhf (from .../libgsm1_1.0.13-4_armhf.deb) ...

Selecting previously unselected package libmp3lame0:armhf.

Unpacking libmp3lame0:armhf (from .../libmp3lame0_3.99.5 repack1-3_armhf.deb) ...

Selecting previously unselected package libopenjpeg2:armhf.

Unpacking libopenjpeg2:armhf (from .../libopenjpeg2_1.3 dfsg-4.7_armhf.deb) ...

Selecting previously unselected package liborc-0.4-0:armhf.

Unpacking liborc-0.4-0:armhf (from .../liborc-0.4-0_1:0.4.16-2_armhf.deb) ...

Selecting previously unselected package libschroedinger-1.0-0:armhf.

Unpacking libschroedinger-1.0-0:armhf (from .../libschroedinger-1.0-0_1.0.11-2_armhf.deb) ...

Selecting previously unselected package libspeex1:armhf.

Unpacking libspeex1:armhf (from .../libspeex1_1.2~rc1-7_armhf.deb) ...

Selecting previously unselected package libtheora0:armhf.

Unpacking libtheora0:armhf (from .../libtheora0_1.1.1 dfsg.1-3.1_armhf.deb) ...

Selecting previously unselected package libva1:armhf.

Unpacking libva1:armhf (from .../libva1_1.0.15-4_armhf.deb) ...

Selecting previously unselected package libvorbis0a:armhf.

Unpacking libvorbis0a:armhf (from .../libvorbis0a_1.3.2-1.3_armhf.deb) ...

Selecting previously unselected package libvorbisenc2:armhf.

Unpacking libvorbisenc2:armhf (from .../libvorbisenc2_1.3.2-1.3_armhf.deb) ...

Selecting previously unselected package libvpx1:armhf.

Unpacking libvpx1:armhf (from .../libvpx1_1.1.0-1_armhf.deb) ...

Selecting previously unselected package libx264-123:armhf.

Unpacking libx264-123:armhf (from .../libx264-123_2:0.123.2189 git35cf912-1_armhf.deb) ...

Selecting previously unselected package libxvidcore4:armhf.

Unpacking libxvidcore4:armhf (from .../libxvidcore4_2:1.3.2-9_armhf.deb) ...

Selecting previously unselected package libavcodec53:armhf.

Unpacking libavcodec53:armhf (from .../libavcodec53_6:0.8.6-1_armhf.deb) ...

Selecting previously unselected package libavformat53:armhf.

Unpacking libavformat53:armhf (from .../libavformat53_6:0.8.6-1_armhf.deb) ...

Selecting previously unselected package libid3tag0.

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

Setting up libavutil51:armhf (6:0.8.6-1) ...

Setting up libdirac-encoder0:armhf (1.0.2-6) ...

Setting up libgsm1:armhf (1.0.13-4) ...

Setting up libmp3lame0:armhf (3.99.5 repack1-3) ...

Setting up libopenjpeg2:armhf (1.3 dfsg-4.7) ...

Setting up liborc-0.4-0:armhf (1:0.4.16-2) ...

Setting up libschroedinger-1.0-0:armhf (1.0.11-2) ...

Setting up libspeex1:armhf (1.2~rc1-7) ...

Setting up libtheora0:armhf (1.1.1 dfsg.1-3.1) ...

Setting up libva1:armhf (1.0.15-4) ...

Setting up libvorbis0a:armhf (1.3.2-1.3) ...

Setting up libvorbisenc2:armhf (1.3.2-1.3) ...

Setting up libvpx1:armhf (1.1.0-1) ...

Setting up libx264-123:armhf (2:0.123.2189 git35cf912-1) ...

Setting up libxvidcore4:armhf (2:1.3.2-9) ...

Setting up libavcodec53:armhf (6:0.8.6-1) ...

Setting up libavformat53:armhf (6:0.8.6-1) ...

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

Processing triggers for libc-bin ...

WDMyCloud:~#


관련 패키지를 설치한 적이 없다면 위와 같이 진행됩니다.



4. minidlna 설치하기


apt-get install minidlna


위 명령어로 설치합니다.


WDMyCloud:~# apt-get install minidlna

Reading package lists... Done

Building dependency tree

Reading state information... Done

The following extra packages will be installed:

  libid3tag0

The following NEW packages will be installed:

  libid3tag0 minidlna

0 upgraded, 2 newly installed, 0 to remove and 78 not upgraded.

Need to get 170 kB of archives.

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

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

Get:1 http://ftp.us.debian.org/debian/ wheezy/main libid3tag0 armhf 0.15.1b-10 [33.6 kB]

Get:2 http://ftp.us.debian.org/debian/ wheezy/main minidlna armhf 1.0.24 dfsg-1 [137 kB]

Fetched 170 kB in 5s (29.0 kB/s)

Selecting previously unselected package libid3tag0.

dpkg: warning: files list file for package 'libssh2-1:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libxau6:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'liblockfile1:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libkrb5-3:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libwrap0:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libtagc0:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libcap2:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libglib2.0-0:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libgphoto2-port0:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libpng12-0:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libtalloc2:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libevent-2.0-5:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libedit2:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libldap-2.4-2:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libavahi-client3:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libgphoto2-2:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libtag1c2a:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'liblua5.1-0:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libpkcs11-helper1:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libpcre3:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libavahi-common3:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libsensors4:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libx11-6:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libnfsidmap2:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libbsd0:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libavahi-common-data:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libjpeg8:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libsasl2-2:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libcurl3:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libtirpc1:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libkrb5support0:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'librtmp0:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libpcap0.8:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libdevmapper1.02.1:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libexpat1:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libltdl7:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libkeyutils1:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libreadline5:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libantlr3c-3.2-0:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libasound2:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libxcb1:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libtdb1:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libxpm4:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libtag1-vanilla:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'liblzo2-2:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libogg0:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libfontconfig1:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libmagic1:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libk5crypto3:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libgssglue1:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libunistring0:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libwbclient0:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libfuse2:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libgssapi-krb5-2:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libparted0debian1:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libgd2-xpm:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libconfuse0:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libexif12:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libffi5:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libflac8:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libdbus-1-3:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libxml2:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libfreetype6:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libxdmcp6:armhf' missing; assuming package has no files currently installed

dpkg: warning: files list file for package 'libpam-cap:armhf' missing; assuming package has no files currently installed

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

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

Selecting previously unselected package minidlna.

Unpacking minidlna (from .../minidlna_1.0.24 dfsg-1_armhf.deb) ...

Processing triggers for man-db ...

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

Setting up minidlna (1.0.24 dfsg-1) ...

Processing triggers for libc-bin ...

WDMyCloud:~#


설치가 잘 되었습니다.



위 과정에서 에러 발생시


Setting up minidlna (1.0.24 dfsg-1) ...

[2014/02/08 00:19:28] minidlna.c:474: error: Media directory "/var/lib/minidlna" not accessible! [No such file or directory]


혹시 위와 같이 에러가 난다면 해당 폴더를 생성해주면 됩니다.

mkdir /var/lib/minidlna

chmod 755 /var/lib/minidlna


위와 같이 폴더 생성하면 되구요.


/etc/init.d/minidlna restart


위 명령어로 재실행해보면 잘 됩니다.


WDMyCloud:/DataVolume# /etc/init.d/minidlna restart

[ ok ] Restarting DLNA/UPnP-AV media server: minidlna.

WDMyCloud:/DataVolume#




5. SMI 자막 지원하는 minidlna로 교체하기


블벅고아님이 작업하신 파일로 교체합니다. (원문링크)



/etc/init.d/minidlna stop


위 명령어로 정지합니다.



mv /usr/bin/minidlna /usr/bin/minidlna.old


위 명령어로 기존 실행파일을 백업합니다.


cd /usr/bin


위 명령어로 실행파일이 있는 곳으로 갑니다.


wget --no-check-certificate https://www.dropbox.com/s/hpy8s49tnh6py83/minidlna


위 명령어로 블벅고아님의 파일을 받습니다.


WDMyCloud:/usr/bin# wget --no-check-certificate https://www.dropbox.com/s/hpy8s49tnh6py83/minidlna

--2014-01-26 04:13:32--  https://www.dropbox.com/s/hpy8s49tnh6py83/minidlna

Resolving www.dropbox.com (www.dropbox.com)... 108.160.166.142

Connecting to www.dropbox.com (www.dropbox.com)|108.160.166.142|:443... connected.

WARNING: The certificate of `www.dropbox.com' is not trusted.

WARNING: The certificate of `www.dropbox.com' hasn't got a known issuer.

HTTP request sent, awaiting response... 302 FOUND

Location: https://dl.dropboxusercontent.com/s/xsp8nrudy0luptg/minidlna?token_hash=AAF1ZT5qCL2A6mhSaCEdRCFrDcj5_YXehTELWw03zIDY4A [following]

--2014-01-26 04:13:34--  https://dl.dropboxusercontent.com/s/xsp8nrudy0luptg/minidlna?token_hash=AAF1ZT5qCL2A6mhSaCEdRCFrDcj5_YXehTELWw03zIDY4A

Resolving dl.dropboxusercontent.com (dl.dropboxusercontent.com)... 107.21.220.74

Connecting to dl.dropboxusercontent.com (dl.dropboxusercontent.com)|107.21.220.74|:443... connected.

WARNING: The certificate of `dl.dropboxusercontent.com' is not trusted.

WARNING: The certificate of `dl.dropboxusercontent.com' hasn't got a known issuer.

HTTP request sent, awaiting response... 200 OK

Length: 794348 (776K) [text/plain]

Saving to: `minidlna'


100%[======================================>] 794,348      233K/s   in 3.3s


2014-01-26 04:13:39 (233 KB/s) - `minidlna' saved [794348/794348]


WDMyCloud:/usr/bin#


제일 마지막에 saved가 나오면 성공!



chmod 755 minidlna


위 명령어로 권한을 줍니다.



6. minidlna 설정 변경하기


nano /etc/minidlna.conf


위 명령어로 설정화면으로 들어갑니다.


# This is the configuration file for the MiniDLNA daemon, a DLNA/UPnP-AV media

# server.

#

# Unless otherwise noted, the commented out options show their default value.

#

# On Debian, you can also refer to the minidlna.conf(5) man page for

# documentation about this file.



# Path to the directory you want scanned for media files.

#

# This option can be specified more than once if you want multiple directories

# scanned.

#

# If you want to restrict a media_dir to a specific content type, you can

# prepend the directory name with a letter representing the type (A, P or V),

# followed by a comma, as so:

#   * "A" for audio    (eg. media_dir=A,/var/lib/minidlna/music)

#   * "P" for pictures (eg. media_dir=P,/var/lib/minidlna/pictures)

#   * "V" for video    (eg. media_dir=V,/var/lib/minidlna/videos)

#

# WARNING: After changing this option, you need to rebuild the database. Either

#          run minidlna with the '-R' option, or delete the 'files.db' file

#          from the db_dir directory (see below).

#          On Debian, you can run, as root, 'service minidlna force-reload' instead.

media_dir=/shares


# Path to the directory that should hold the database and album art cache.

db_dir=/DataVolume/minidlna/db


# Path to the directory that should hold the log file.

log_dir=/DataVolume/minidlna/log


# Minimum level of importance of messages to be logged.

# Must be one of "off", "fatal", "error", "warn", "info" or "debug".


# "off" turns of logging entirely, "fatal" is the highest level of importance

# and "debug" the lowest.

#log_level=warn


# Use a different container as the root of the directory tree presented to

# clients. The possible values are:

#   * "." - standard container

#   * "B" - "Browse Directory"

#   * "M" - "Music"

#   * "P" - "Pictures"

#   * "V" - "Video"

# if you specify "B" and client device is audio-only then "Music/Folders" will be used as r$

#root_container=.


# Network interface(s) to bind to (e.g. eth0), comma delimited.

#network_interface=


# IPv4 address to listen on (e.g. 192.0.2.1).

#listening_ip=


# Port number for HTTP traffic (descriptions, SOAP, media transfer).

port=8200


# URL presented to clients.

# The default is the IP address of the server on port 80.

#presentation_url=http://example.com:80


# Name that the DLNA server presents to clients.

friendly_name=My Cloud DLNA


# Serial number the server reports to clients.

serial=12345678


# Model name the server reports to clients.

#model_name=Windows Media Connect compatible (MiniDLNA)


# Model number the server reports to clients.

model_number=1


# Automatic discovery of new files in the media_dir directory.

inotify=yes


# List of file names to look for when searching for album art. Names should be

# delimited with a forward slash ("/").

album_art_names=Cover.jpg/cover.jpg/AlbumArtSmall.jpg/albumartsmall.jpg/AlbumArt.jpg/albuma$


# Strictly adhere to DLNA standards.

# This allows server-side downscaling of very large JPEG images, which may

# decrease JPEG serving performance on (at least) Sony DLNA products.

#strict_dlna=no


# Support for streaming .jpg and .mp3 files to a TiVo supporting HMO.

#enable_tivo=no


# Notify interval, in seconds.

notify_interval=86400


# Path to the MiniSSDPd socket, for MiniSSDPd support.

#minissdpdsocket=/run/minissdpd.sock


위와 같이 설정하면 shares 폴더 이하 모든 파일을 검색합니다.


빨간색 글자들이 수정된 부분입니다.


참고하셔서 다 바꾸세요.


컨트롤 + O, 엔터, 컨트롤 + X를 누르면 저장 후 닫아집니다.




mkdir /DataVolume/minidlna


mkdir /DataVolume/minidlna/log


mkdir /DataVolume/minidlna/db


chown -R minidlna:minidlna /DataVolume/minidlna


위 4개의 명령어로 minidlna가 쌓을 log와 db 폴더를 생성하고 권한을 지정합니다.



혹시 바로 위 명령어가 안되면


chown -R minidlna /DataVolume/minidlna


위 명령어로 해보세요.




nano /etc/sysctl.d/inotify.conf


위 명령어를 내리면 32768 이라고 되어 있는데


#

# System variables for inotify configuration

#

fs.inotify.max_user_watches = 100000


위와 같이 100000 으로 고치고 컨트롤 + O, 엔터, 컨트롤 + X를 누르면 저장 후 닫아집니다.


해당 작업은 log에 쌓이는 경고 부분을 없애기 위한 조치입니다.



reboot


위 명령어로 재부팅을 해줘야 정상 반영된다고 합니다.




재부팅 후 Putty로 들어가서


service minidlna force-reload


minidlna -R


위 두명령어로 시작 후 강제 재가동을 하면서 DB를 생성합니다.


인터넷 브라우저에 


http://MC내부IP:8200 을 넣으면 각각의 항목의 파일 수가 업데이트 됩니다.


MiniDLNA status


Audio files: 0

Video files: 3

Image files: 0


위와 같은 식으로 됩니다.



폰에서 bubbleUPnP 에서 잘 잡히고, 컴퓨터의 XBMC에서도 잘 됩니다.


다만 SMI 자막 인식이 안되더군요 -_-;;;;


스마트TV가 없어서, TV에서 잘 될지 모르겠네요.



혹시 나중에 MC를 껐다가 켰을 때 파일 목록 업데이트가 안되면


service minidlna force-reload


위 명령어를 내리면 자동으로 검색을 시작하게 됩니다.

관련자료

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

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

댓글 68 / 7 페이지

날닥님의 댓글

우성님 글 보고 설치해서 잘 사용하던 중에 어제부터 갑자기 minidlna 에서 받은 파일들이 보이질 않습니다. my book live 네트워크로 들어가면 받은 미디어 파일들은 잘 저장되어있고, 컴퓨터로 실행은 당연히 됩니다.

다시 깔려고 하니까  마지막 부분에서 다시
MyBookLive:~# service minidlna force-reload
-bash: service: command not found

이렇게 뜨던데 어떻게 하면 될까요?? 아니면 기존에 설치를 지우는 방법은 있는지요??

우성군님의 댓글의 댓글

음.. 제 생각엔 펌웨어 업그레이드가 자동으로 된 것 같습니다.

해당 서비스 자체가 사라진 것이죠.

minidlna 를 처음부터 설치해보세요.

선구자님의 댓글

스마트 TV에서 잘 작동되던것이 안되어서
처음부터 설치했습니다
설치를 다하고 vi로 수정하려고 하니

/etc/minidlna.conf
이것이 없는것 같습니다.

스마트TV에서 mc의 영상을 바로 보았었는데
이상하네요 ㅠㅠ


minidlna: unrecognized service
WDMyCloud:/etc# 

전체 99 / 6 페이지
RSS

최근글


새댓글


알림 0