Published on

Setting Up a DLNA Server on a Raspberry Pi

Authors
  • avatar
    Name
    Kanelis Elias
    Twitter

Setup DLNA server on Raspberry Pi

Installation

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install minidlna

Mount hard drive

Connect an external hard drive.

sudo nano /etc/fstab

Add this line. Change only the /dev of your hard drive. It is assumed that the hdd is fat32 formatted.

/dev/sda1    /media/HDD   vfat    defaults     0        2

Configuration

Open the file /etc/minidlna.conf

sudo nano /etc/minidlna.conf

and change this

#friendly_name=
# * "A" for audio (eg. media_dir=A,/var/lib/minidlna/music)
# * "P" for pictures (eg. media_dir=P,/var/lib/minidlna/pictures)
# * "V" for video (eg. media_dir=V,/var/lib/minidlna/videos)

into this:

friendly_name="MINIDLNA"
media_dir=A,/media/HDD/Music
media_dir=P,/media/HDD/Pictures
media_dir=V,/media/HDD/Movies

Restart server

sudo service minidlna restart
sudo service minidlna force-reload