Hello,
I am using the minidlna / ReadyMedia daemon on my Raspberry for streaming audio and video in my network. First i simply used the official package package from the package index with 'apt install minidlna', created my config, set up the daemon and was ready to go. But from time to time the daemon crashed with some file handling errors, after some research I noticed that the version from the package index is pretty old, it is 1.3.0 - Released 24-Nov-2020. In the newer versions file handling and http issues have been fixed. It took me some time to figure out how to get the latest version running, so I want to share this with you, if anyone else has these problems:
Download the latest sources from https://sourceforge.net/projects/minidl ... /minidlna/ (minidlna-X.X.X.tar.gz), currently it is 1.3.3.
Extract the files, in the directory whre you extracted the files run the following on a shell:
Install dependencies:Build & install:Setup user:Setup cache directory:(Must be the directory configured as db_dir in your minidlna.conf file)
Copy your minidlna.conf to /etc/
Create the daemon file /etc/systemd/system/minidlna.service:Start the service:
I took the user, directory & daemon setup from the apt package.
I am using the minidlna / ReadyMedia daemon on my Raspberry for streaming audio and video in my network. First i simply used the official package package from the package index with 'apt install minidlna', created my config, set up the daemon and was ready to go. But from time to time the daemon crashed with some file handling errors, after some research I noticed that the version from the package index is pretty old, it is 1.3.0 - Released 24-Nov-2020. In the newer versions file handling and http issues have been fixed. It took me some time to figure out how to get the latest version running, so I want to share this with you, if anyone else has these problems:
Download the latest sources from https://sourceforge.net/projects/minidl ... /minidlna/ (minidlna-X.X.X.tar.gz), currently it is 1.3.3.
Extract the files, in the directory whre you extracted the files run the following on a shell:
Install dependencies:
Code:
sudo apt install autoconf autopoint libavutil-dev libavcodec-dev libavformat-dev libjpeg-dev libsqlite3-dev libexif-dev libid3tag0-dev libogg-dev libvorbis-dev libflac-dev gettext
Code:
./autogen.sh./configuremakesudo make install
Code:
sudo adduser --system --group --gecos "MiniDLNA server" --home "/var/lib/minidlna" --no-create-home minidlna
Code:
sudo mkdir -p "/var/cache/minidlna"sudo chown minidlna:minidlna "/var/cache/minidlna"sudo chmod 750 "/var/cache/minidlna"
Copy your minidlna.conf to /etc/
Create the daemon file /etc/systemd/system/minidlna.service:
Code:
[Unit]Description=MiniDLNA lightweight DLNA/UPnP-AV serverDocumentation=man:minidlnad(1) man:minidlna.conf(5)After=local-fs.target remote-fs.target autofs.service[Service]User=minidlnaGroup=minidlnaEnvironment=CONFIGFILE=/etc/minidlna.confEnvironment=DAEMON_OPTS=-rEnvironmentFile=-/etc/default/minidlnaRuntimeDirectory=minidlnaLogsDirectory=minidlnaPIDFile=/run/minidlna/minidlna.pidExecStart=/usr/local/sbin/minidlnad -f $CONFIGFILE -P /run/minidlna/minidlna.pid -S $DAEMON_OPTS[Install]WantedBy=multi-user.target
Code:
sudo systemctl enable minidlnasudo systemctl start minidlna
I took the user, directory & daemon setup from the apt package.
Statistics: Posted by Drexel — Mon Nov 18, 2024 9:12 am