Hi All,
My name is Georges. 24. a French guy interested in RasPi :D :D

I have seen several tutorials about minidlna server but, there was always something missing, so I want to share with you.

The idea is to use the RasPi as a multimedia server (in my case, for my PS3).

Hardware/Network configuration :
RasPi (I an under raspian, I use 2012-08-16-wheezy-raspbian)
External HD, or USB device, where media files are stored. Plug it to RasPi (USB)
PS3 (or any mediacenter to discover to RasPi media files)
(PC, ) RasPi and PS3 under to same sub-network

As I only have 1 screen for PS3 and RasPi, I did the configuration using ssh

  • Assuming IP adress table is :
    PC : 192.168.0.11
    PS3 : 192.168.0.14
    RasPi : 192.168.0.16

In case of using ssh, Connect :

[/color]

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

[/color]

I recommend updating everything before intallation :
Update package list:

[/color]
Update packages:

[/color]

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

[/color]
You see your drive suck as :

Code: Select all

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

[/color]

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

[/color]

Edit the fstab file :

[/color]

Add this line (using your UUID and TYPE) :

Code: Select all

UUID=49A1-143B  /media/HardDrive   vfat    defaults      0     0

[/color]

Install minidlna :

[/color]
It will warn you about how many disk space it will use and dependencies installation

Now you can configure minidlna:

[/color]

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
media_dir=A,/media/HardDrive/Media/Music
media_dir=V,/media/HardDrive/Media/Video
media_dir=P,/media/HardDrive/Media/Photos
 
# Change db_dir so that the database is saved across reboots
db_dir=/home/pi/.minidlna
 
# Uncomment log_dir for now in case we hit problems
log_dir=/var/log

You can choose to start minidlna at boot :

Code: Select all

sudo update-rc.d minidlna defaults

[/color]
Or just start it once now :

[/color]

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

[/color]

You PS3 detects automatically the server in sections Pictures, Music or Videos
Usage is absolutely fluid. Play and pause a DivX without any problem. Thumbnail using square button is quick/instant !!

I forgot something ? I am not crystal clear ? Some spelling mistakes ? Leave a comment !