Установка
1 |
$ sudo pkg ins minidlna |
1 2 3 4 |
New packages to be INSTALLED: libexif: 0.6.23 libid3tag: 0.15.1b_2 minidlna: 1.3.0_2,1 |
Автозапуск
1 |
$ sudo sysrc minidlna_enable=yes |
Каталоги
1 2 3 4 5 |
$ mkdir -p ~/Video $ mkdir -p ~/Music $ mkdir -p ~/Pictures $ sudo mkdir –p /var/db/minidlna $ sudo chown dlna:dlna /var/db/minidlna |
Настройка MiniDLNA
1 |
$ sudo ee /usr/local/etc/minidlna.conf |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
##################################################### #port for HTTP port=8200 #network interfaces network_interface=eth0 #nameuser - имя пользователя в системе для доступа к каталогам media_dir=A,/home/nameuser/Music media_dir=V,/home/nameuser/Video media_dir=P,/home/nameuser/Pictures # set this if you want to customize the name that shows up on your clients friendly_name=FreeBSD DLNA Server # set this if you would like to specify the directory where you want MiniDLNA to store its database and album art cache db_dir=/var/db/minidlna # set this if you would like to specify the directory where you want MiniDLNA to store its log file log_dir=/var/log log_level=general,artwork,database,inotify,scanner,metadata,http,ssdp,tivo=warn #this should be a list of file names to check for when searching for album art # note: names should be delimited with a forward slash ("/") album_art_names=Cover.jpg/cover.jpg/AlbumArtSmall.jpg/albumartsmall.jpg/AlbumArt.jpg/albumart.jpg/Album.jpg/album.jpg/Folder.jpg/folder.jpg/Thumb.jpg/thumb.jpg # set this to no to disable inotify monitoring to automatically discover new files # note: the default is yes inotify=yes # set this to yes to enable support for streaming .jpg and .mp3 files to a TiVo supporting HMO enable_tivo=no # set this to strictly adhere to DLNA standards. # * This will allow server-side downscaling of very large JPEG images, # which may hurt JPEG serving performance on (at least) Sony DLNA products. strict_dlna=no # notify interval in seconds notify_interval=900 # serial and model number the daemon will report to clients # in its XML description serial=12345678 model_number=1 # maximum number of simultaneous connections # note: many clients open several simultaneous connections while streaming max_connections=10 ##################################################### |
Запуск
1 |
$ sudo /usr/local/etc/rc.d/minidlna onestart |
Статистика базы данных и подключений
1 |
http://localhost:8200 |