Raspbery Pi Wireless Auto-Sorting NAS/Media Server using MiniDLNA and Samba

Picture of Raspbery Pi Wireless Auto-Sorting NAS/Media Server using MiniDLNA and Samba
I have a couple of spare USB hard drives lying around, and of course a Raspberry Pi (headless). I put them to use as a wireless NAS / Media server. I'd also like my clients to be able to make the Pi automatically download torrents and save them on the NAS. I've already posted a guide to set up your Pi as a wireless access point. Just ignore the bit about 3g if it's not relevant!

To do this, I'll use Samba to share the files over my network (a mixture of Linux and Windows clients), and MiniDLNA to manage media serving. MiniDLNA will allow any UPnP compatible device on your network, such as a television or games console, to access the shares on your Pi. qBittorent will be used as the torrent client. Fsniper will be used for auto-download feature..

I also use fsniper to automatically sort all locally downloaded content into the appropriate files on the NAS.

As an alternative to this, you could use an operating system like FreeNAS or XMBC. I prefer to keep Raspbian and bolt on the extra bits I need.

This guide assumes you are using the 06-12-12 of Raspbian. It should also work on the latest version, but I can't guarantee that as I've not had chance to test it yet. I used the following IP scheme:

Pi Ethernet Port:
Pi wlan0:

Note: external hard drives on the Pi should be connected via a powered hub.
Remove these adsRemove these ads by Signing Up
cmessa11 months ago

I ended up needing to enter this command to be able to access the samba share. Don't know much about it, but it worked for me. I used the pi username and raspberry password.

sudo smbpasswd -a pi

diy_bloke1 year ago

learned a lot. thanks

LSA1 year ago
Thx for you instructable, just a comment to fsniper: to get the make working I first had to install the pcre-dev package;
sudo apt-get install libpcre3-dev

after that the make just runs fine  
cheers, david
psauvignac2 years ago
I've read on raspi forum that video can be very slow/laggy when the hard drive format is not ext 3/4 or something like that (the guy was having an ntfs hard drive). No problem for you?