树莓派raspberry pi配置DLNA服务

  • 安装
    sudo apt-get install minidlna

  • 编辑配置文件
    sudo vi /etc/minidlna.conf

#   * "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)
media_dir=/home/pi/mp3
media_dir=A,/home/pi/hdd/music/
media_dir=V,/home/pi/hdd/TV/
media_dir=V,/home/pi/hdd/moive/
media_dir=P,/home/pi/hdd/picures
# 缓存目录
db_dir=/var/cache/minidlna
# 放在tmp每天关机时自动清理
log_dir=/tmp/

  • 重启服务,
    sudo /etc/init.d/minidlna start

你可能感兴趣的:(树莓派raspberry pi配置DLNA服务)