SHARE
TWEET

Install ReadyMedia miniDLNA 1.1.5 Raspberry Pi

urosevic Mar 28th, 2015 (edited) 488 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. *** Install ReadyMedia miniDLNA 1.1.5 Raspberry Pi by HTPC Guides v3 ***
  2.  
  3. DLNA servers allow you to stream your media library on your HTPC server to any DLNA enabled client. DLNA enabled clients include Bluray players, XBOX 360, XBOX One, PS3, PS4 and some TVs. There are other DLNA servers out there for the Raspberry Pi. I was looking at MediaTomb but it consumes several hundred megabytes of RAM when it is in use. This it not ideal on the low spec Pi running Raspbian. I had trouble with miniDLNA 1.0.24 not displaying avi (Divx, XviD) files in its folder database, this bug has been patched and fixed so that avi files – at least the ones I tested – were accessible by my DLNA clients. I will assume you have already mounted a USB hard drive for this guide – here is my Properly Mount USB Storage on Raspberry Guide (http://www.htpcguides.com/properly-mount-usb-storage-raspberry-pi/) in case you do need to mount. You will be compiling miniDLNA for Raspbian from source, it only takes a few minutes.
  4.  
  5. **Install ReadyMedia miniDLNA**
  6.  
  7. The latest version of ReadyMedia miniDLNA in the Raspbian repos is ancient so we are going to compile miniDLNA (now ReadyMedia) from source on Raspbian. This should fix avi problems you may have had in the past like them not showing up in the library.
  8.  
  9. Remove your old miniDLNA v1.1.2 or older
  10.  
  11. $ sudo apt-get purge minidlna -y
  12. $ sudo apt-get remove minidlna
  13. $ sudo apt-get autoremove -y
  14.  
  15. Make sure you have a source repository, default Raspbian does not include this
  16.  
  17. $ echo "deb-src http://archive.raspbian.org/raspbian jessie main contrib non-free" | sudo tee -a /etc/apt/sources.list
  18.  
  19. Update repositories so it will detect your new source repo
  20.  
  21. $ sudo apt-get update
  22.  
  23. Grab dependencies for building it from source
  24.  
  25. $ sudo apt-get build-dep minidlna -y
  26.  
  27. If you get any errors you can install the dependencies manually
  28.  
  29. $ sudo apt-get install libjpeg-dev libsqlite3-dev libexif-dev libid3tag0-dev libvorbis-dev libflac-dev -y
  30.  
  31. Download miniDLNA 1.1.5 source
  32.  
  33. $ wget http://sourceforge.net/projects/minidlna/files/minidlna/1.1.5/minidlna-1.1.5.tar.gz
  34.  
  35. Unpack it
  36.  
  37. $ tar -xvf minidlna-1.1.5.tar.gz
  38.  
  39. Enter the miniDLNA directory
  40.  
  41. $ cd minidlna-1.1.5
  42.  
  43. If you wish to have Raspberry Pi logo instead TUX or Debian Open Logo on TV, get icons.c file from https://pastebin.com/Uynt0HMy (following command will overwrite existing icons.c file)
  44.  
  45. $ wget -O icons.c https://pastebin.com/raw.php?i=Uynt0HMy
  46.  
  47. Configure, make and install miniDLNA, it will take ~5 minutes
  48.  
  49. $ ./configure && make && sudo make install
  50.  
  51. Copy the default configuration file
  52.  
  53. $ sudo cp minidlna.conf /etc/
  54.  
  55. Copy the startup daemon script to autostart ReadyMedia miniDLNA on boot and make it executable
  56.  
  57. $ sudo cp linux/minidlna.init.d.script /etc/init.d/minidlna
  58. $ sudo chmod 755 /etc/init.d/minidlna
  59.  
  60. Update rc to use the miniDLNA defaults
  61.  
  62. $ sudo update-rc.d minidlna defaults
  63.  
  64. Edit the configuration
  65.  
  66. $ sudo nano /etc/minidlna.conf
  67.  
  68. Edit the following to point to your media
  69.  
  70. This version of minidlna will give you multiple folders under Video. Before movies and TV would have been under separate categories, now movies and TV will both be under the category video. It will also show the folder structure of them instead of showing just the video files. Avi files will also show up and be streamable.
  71.  
  72. Please note, inotify uses resources because it autoupdates your library, if you don’t use inotify you will have to manually restart and reload the miniDLNA service
  73.  
  74. The friendly name is how your miniDLNA server will show up to its streaming clients
  75.  
  76. --->>>
  77. media_dir=V,/mnt/usbstorage/Movies
  78. media_dir=V,/mnt/usbstorage/TV
  79. media_dir=A,/mnt/usbstorage/Music
  80. media_dir=P,/mnt/usbstorage/Pictures
  81. # Names the DLNA server
  82. friendly_name=RasPi Media Server
  83. # Tells the DLNA to update the library when there are changes
  84. inotify=yes
  85. <<<---
  86.  
  87. Ctrl+X, Y and Enter to save and exit
  88.  
  89. Start the minidlna service
  90.  
  91. $ sudo service minidlna start
  92.  
  93. Now make sure it starts on boot (or you can skip this step)
  94.  
  95. $ sudo reboot
  96.  
  97. Your Raspberry Pi DLNA server will now be accessible to stream media to your clients: PCs, XBOX, PS3, Phones, TVs and more.
  98.  
  99. This will form part of my Ultimate Raspberry Pi Media Server guide, to make sure you don’t miss it sign up for my mailing list to find out when it drops.
  100.  
  101. Source of original guide: http://www.htpcguides.com/install-readymedia-minidlna-1-1-4-raspberry-pi/
  102. ChangeLog by http://urosevic.net/
  103. * [v3] Update to miniDLNA v1.1.5
  104. * [v2] In this document I included Raspberry Pi logo instead Debian Open Use Logo
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top