본문 바로가기

Single Board Computer

Single Board Computer setting 6. miniDLNA

□ 설치

apt install minidlna

□ miniDLNA설정파일 편집

nano /etc/minidlna.conf

------------------------------ minidlna.conf 설정

album_art_names=Cover.jpg/cover.jpg/AlbumArtSmall.jpg/albumartsmall.jpg

album_art_names=AlbumArt.jpg/albumart.jpg/Album.jpg/album.jpg

album_art_names=Folder.jpg/folder.jpg/Thumb.jpg/thumb.jpg

media_dir=V,/home/저장폴더 이름/01.Video

media_dir=P,/home/저장폴더 이름/02.Photo

media_dir=A,/home/저장폴더 이름/03.Audio

(저자는 저장 폴더 내에 ​01.Video, 02.Photo, 03.Audio 3개 폴더를 만들어서 사용 함)

 

root_container=B.

port=8200

# Names the DLNA server

friendly_name=Banana(넣고 싶은 이름 넣기)

notify_interval=895

# Tells the DLNA to update the library when there are changes

inotify=yes

# wide_links=yes

------------------------------

Ctrl+X, Y and Enter to save and exit

□ 권한부여(필요한 경우, 앞 단계에서 이미 진행 했음)

chmod -R 777 /home/저장폴더 이름

□ minidlna 실행/재실행

service minidlna start

service minidlna restart

service minidlna force-reload

□ 실행여부 확인

웹브라우저에서 ip주소:8200 입력(동일 내트워크 내에서만 확인 가능)

예: 192.168.0.xxx:8200

□ Dlna 버전확인

minidlnad -V

□ To rebuild Media_DB forcibly:

minidlnad -R

□ To run in debug mode:

minidlnad -d

□ OS시작시 실행(부팅시 자동실행 안될 경우 적용해보기)

update-rc.d minidlna defaults