So I have been playing around with my Raspberry Pi and found a really good use for it. Below are my instructions on installing subsonic on the raspberry pi. The Raspberry pi is an ideal device as it is powerful enough to run the server and has low power usage.

Using Subsonic a free open source music streamer, I can stream content from my raspberry pi to web connected device (phone/work laptop) etc. The setup is really easy and by mounting an external hard-drive I can store thousands of songs on it.

The set up is really straightforward.

Mounting the External Hard Drive

This will mount an external harddrive.

  • “mkdir /mnt/harddrive”
  • “mount /dev/sda1 /mnt/harddrive”
  • edit the fstab file: 
  • “nano /etc/fstab”
  • Add the following line:
  •  “/dev/sda1    /mnt/harddrive   ntfs-3g   rw,default   0   0″

Note: You will need to remount the harddrive if you change usb ports.

Installing Java

Subsonic requires java so if you have not installed java, install it with the following instructions:

  • apt-get update
  • apt-get upgrade
  • apt-get install openjdk-6-jre

Note: The update/upgrade and java install can take a few minutes!

Installing Subsonic

Subsonic should be run under its own account

  • “adduser subsonicuser”
  • “wget URL -O subsonic.deb”
  • (replace URL with the direct download link found found on subsonic.org for debian/ubuntu)
  • Install the file:
  • “dpkg -i subsonic.deb”
  • After installing it edit the subsonic user configuration to add the user name.
  • “nano /etc/default/subsonic”
  • add the line “SUBSONICUSER = “subsonicuser”
  • restart subsonic (sudo service subsonic restart)
  • Wait for about 10-15 minutes as subsonic installs. You can see the progress by running “tail /var/subsonic/subsonic_sh.log”.

Now access it by going to your raspberry Pi’s IP and port 4040. E.g. 192.168.1.4:4040

Preview: (Subsonic on the raspberry pi server)

Subsonic Login

Share Button

Leave a Reply

Your email address will not be published. Required fields are marked *