User Tools

Site Tools


UPnP MediaServer on OpenWRT PirateBox

:!: this howto is for piratebox 0.6 , checkout for more info :!: ««

The following HowTo describes HowTo setup and minidlna1) Server on your OpenWRT PirateBox. It is tested with current (2013-06-12) custom-image including the stable Attitude Adjustment release. This is very useful for Apple clients!

If you encounter problems, see PirateBox Forum - Support Topic

  • Login into your PirateBox and reconfigure your /etc/config/network that you get internet access (like on the DIY HowTo)
  • Run the following command to enable DNS resolution

/etc/init.d/piratebox nodns

  • Next step initialize opkg and install it into the extended installation destination called “piratebox”. The ln stuff links over the important stuff
opkg update
opkg install minidlna -d piratebox
ln -s  /mnt/ext/etc/config/minidlna /etc/config/
ln -s  /mnt/ext/etc/init.d/minidlna /etc/init.d/
ln -s /mnt/ext/usr/bin/minidlna /usr/bin  
  • Because of the current installation of PirateBox (0.6.3) haven't the correct profile setup, we need to do the following three commands to enhance&initiate our shell
echo 'export PATH=$PATH:/usr/local/bin' >> /etc/profile
echo 'export LD_LIBRARY_PATH=/lib:/usr/lib:/usr/local/lib'  >> /etc/profile
source /etc/profile
  • Next step is to download and bring my preconfigured configuration in place.
    • Important note There is logfile, but as far as I considered it, there is no information about the connections.
    • It points to the Directory /mnt/usb/PirateBox/Shared
cd /tmp
cp openwrt.example.minidlna   /mnt/ext/etc/config/minidlna
  • Edit the config if you want to… (ie. change displayed name)
vi /etc/config/minidlna
  • Now disable the startup, and do some customizations
/etc/init.d/minidlna disable
sed 's|START=50|START=85\nSTOP=01|' -i /etc/init.d/minidlna
sed 's/exit 0/#exit 0/' -i /etc/rc.local
echo 'sleep 10' >> /etc/rc.local
echo 'export PATH=$PATH:/usr/local/bin' >> /etc/rc.local
echo 'export LD_LIBRARY_PATH=/lib:/usr/lib:/usr/local/lib' >> /etc/rc.local
echo '/etc/init.d/minidlna restart' >> /etc/rc.local
/etc/init.d/minidlna enable
  • Start it now
/etc/init.d/minidlna start

You are done! Thank you David Darts for this idea!

openwrt/upnpmediaserver.txt · Last modified: 2014/06/26 20:15 by matthias