MiniDLNA (ReadyMedia)
Перейти к навигации
Перейти к поиску
Сервер DLNA(протокол медиа библиотеки)
Install MiniDLNA
yum install MiniDLNA chmod 755 /etc/init.d/minidlna /var/log/minidlna /var/cache/minidlna rm /var/cache/minidlna/files.db
Configuration
cp /etc/minidlna.conf /etc/minidlna.conf.orig vi /etc/minidlna.conf diff /etc/minidlna.conf.orig /etc/minidlna.conf
< media_dir=/opt --- > media_dir=V,/mnt/data/fs-media/Movie > media_dir=A,/mnt/data/fs-media/Music < #friendly_name=My DLNA Server --- > friendly_name=DLNA Server
Add minidlna user to a group which has a permission of media directories
ls -l /mnt/data/fs-media/ total 16 drwxrwx---. 15 example_user example_group 4096 May 8 02:20 Movie drwxrwx---. 5 example_user example_group 4096 May 10 10:23 Music
id minidlna uid=495(minidlna) gid=495(minidlna) groups=495(minidlna) usermod -G example_group minidlna id minidlna uid=495(minidlna) gid=495(minidlna) groups=495(minidlna),500(example_group)
Register init script
chkconfig --add minidlnad chkconfig --list | grep minidlnad minidlnad 0:off 1:off 2:off 3:on 4:on 5:on 6:off service minidlnad start