[TUTO] Install and SetUp minidlna media server

por | 10 abril, 2013

In case of using ssh, Connect :

Code: Select all
ssh [email protected]

Enter password (default «raspberry»), then tty command line appears

Code: Select all

I recommend updating everything before intallation :
Update package list:

Code: Select all
sudo apt-get update

Update packages:

Code: Select all
sudo apt-get upgrade

Mount hard drive automatically :
Use this command to discover UUID :

Code: Select all
sudo blkid

You see your drive suck as :

Code: Select all
/dev/sda1: LABEL="ExternalHD" UUID="49A1-143B" TYPE="vfat"

Make a directory where to mount the disk and change the autorizations:

Code: Select all
sudo mkdir -p /media/HardDrive
sudo chmod 755 /media/HardDrive

Edit the fstab file :

Code: Select all
sudo nano /etc/fstab

Add this line (using your UUID and TYPE) :

Code: Select all
UUID=49A1-143B  /media/HardDrive   vfat    defaults      0     0

Install minidlna :

Code: Select all
sudo apt-get install minidlna

It will warn you about how many disk space it will use and dependencies installation

Now you can configure minidlna:

Code: Select all
sudo nano /etc/minidlna.conf

You see many options like :

Code: Select all
# Change the Media Dir's to point to the external hard drive, obviously change these to match your directory layout

# Change db_dir so that the database is saved across reboots

# Uncomment log_dir for now in case we hit problems

You can choose to start minidlna at boot :

Code: Select all
sudo update-rc.d minidlna defaults

Or just start it once now :

Code: Select all
sudo service minidlna start

MiniDLNA will now begin indexing all of your media files, it’s quite quick but folders not COMPLETELY indexed will not appear until they are done.

If you modify minidlna configuration, you have to reload it :

Code: Select all
sudo service minidlna force-reload