Tuesday, January 1, 2013

minidlna on squeeze

I wanted to try minidlna on my Mac Mini/G4 with debian squeeze. Here is what I did:

$ apt-get source minidlna
$ cd minidlna-1.0.24+dfsg
$ quilt pop
$ vim debian/patches/series
-> comment last patch:
#0021-Use-run-instead-of-var-run-to-store-runtime-files.patch
$ vim debian/minidlna.init
-> change /run into /var/run
PIDDIR=/var/run/$NAME
$ vim debian/minidlna.postrm
-> change /run into /var/run
PIDDIR=/var/run/minidlna
$ dpkg-buildpackage -rfakeroot -us -uc
$ sudo dpkg -i ../minidlna_1.0.24+dfsg-1_powerpc.deb
$ sudo vim /etc/minidlna.conf
-> add location for *.avi files:
media_dir=V,/home/mathieu/Videos
$ sudo /etc/init.d/minidlna restart

Your minidlna server should appears from your Freebox menu ! Just as with mediatomb, the 'Delete' from the Freebox menu does not work...

ref:
http://doc.ubuntu-fr.org/minidlna