Take the 2-minute tour ×
Raspberry Pi Stack Exchange is a question and answer site for users and developers of hardware and software for Raspberry Pi. It's 100% free, no registration required.

I'm planning on using my Raspberry Pi as a media centre, I plan to have all my music on an external hard drive which is plugged into my Pi.

Is it possible to access the music on the external hard drive via Pi? For example I plan to use my Mac at work to access the music and listen to it.

If it can what OS should I use? I currenly have raspBMC installed, but that can only receive media it cannot send it.

share|improve this question
add comment

2 Answers 2

up vote 3 down vote accepted

Streaming in a web browser

Subsonic

You are probably looking for Subsonic. With Subsonic, you can stream your music in a web browser, and even on your mobile. Here is an online demo.

Subsonic needs Java to run, so I hope you have a 512 Mb RPi (maybe a 256 is enough...) Please have a look to this RPi.SE question to know how to install Java on your RPi. Here are the instructions to install Subsonic on a Debian system (such as Raspbian). Maybe you should consider to move to Raspbian.

Please note I have never tried to install Subsonic on my Pi: I don't know if it works on it. If you manage to run it, please let us know by leaving a comment ;)

Ampache

Ampache is an alternative to Subsonic, and is maybe more suitable for a little device like the RPi since it is written in PHP. Furthermore, it is available in the official repo, so you can install it with the following command:

$ sudo apt-get install ampache

DLNA

If you plan to stream your music inside your own private network, you can use a DLNA server on your Pi, and a DLNA client.

DLNA servers

MiniDLNA

MiniDLNA is server software with the aim of being fully compliant with DLNA clients.

To install MiniDLNA:

$ sudo apt-get install minidlna

Then, configure MiniDLNA by editing /etc/minidlna.conf

Mediatomb

Mediatomb has some additional such as a web interface for administration, on-the-fly transcoding (for devices that doesn't support the original codec), dynamic video thumbnail creation, ... and more here. But it has more RAM footprint than MiniDLNA.

To install Mediatomb:

$ sudo apt-get install mediatomb

DLNA clients (for Mac)

VLC

I don't have a Mac but VLC does support DLNA. Here is a SU.SE answer:

Go to VLC main menu and click ViewPlaylist and scroll down to Local Network. Locate Universal Plug and Play and click on it.

A few moments later your media service should be shown on the main window to the right. If you click on it (or double click) then it will start showing you all the folders/files being served. Give it time as it took mine almost 30 seconds to show everything.

share|improve this answer
    
Thanks for the answer I'll give Raspbien a try and "try" to install Subsonic, I'll let you know how it works out –  Harpal Dec 23 '12 at 21:26
    
Does ampache require java? –  Harpal Dec 23 '12 at 23:57
    
No. It is written in PHP. –  Morgan Courbet Dec 24 '12 at 9:27
    
@Harpal Have you managed to find a suitable solution to your problem? Please share your experience by answering your own question or by accepting the answer :) If you need more information, just ask us. –  Morgan Courbet Jan 8 '13 at 10:16
    
Got it working with subsonic, I'll post an answer later showing the tutorial I used to get it working with subsonic –  Harpal Feb 18 '13 at 10:54
add comment

Ampache over subsonic - aside from being a long-time fan of ampache: Subsonic charges a tax to let you stream to mobile devices with apps.

share|improve this answer

We're looking for long answers that provide some explanation and context. Don't just give a one-line answer; explain why your answer is right, ideally with citations. Answers that don't include explanations may be removed.

add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.