Page 1 of 1

Subsonic on Raspberry Pi B+ connect to remote music folder

PostPosted: Tue Dec 23, 2014 9:30 pm
by mattizz
Recently I bought a Raspberry Pi B+, installed NOOPS (Debian Wheezy) as OS and Subsonic 5.0.
I have Subsonic also installed on my Synology, but I would like to forward incoming Subsonic visitors to my Raspberry instead of my Synology.
Raspberry Pi B+ Subsonic is operating well on a static (internal) ip-address.
There is one issue, that is to point to the music files on my Synology. On the Synology it is /volume1/music, but to what url/path should I point from the Raspberry to the Synology music folder ??
I hope somebody has any solution.
Thanks !

Re: Subsonic on Raspberry Pi B+ connect to remote music fold

PostPosted: Mon Dec 29, 2014 10:10 pm
by mattizz
First issue solved thanks to http://v1chak.blogspot.nl/2013/03/raspb ... t-nfs.html
Still no luck adding folders to subsonic though ..

so here is explained how to connect from the Raspberry with a Synology share:
I have a Synology Nas with all my personal files on it and I wanted to access to it from my Raspberry Pi
My first need was to access to all my movies from my Raspberry Pi with Raspbmc
It is the same for a Raspberry Pi with Raspbian on it
(On my Synology Nas, the current DSM version is 4.1)
There are two step to do:

Set up NFS sharing on the Synology Nas
Mount the NFS sharing from the Raspberry Pi
Set up NFS sharing on the Synology Nas
Log on your Synology Nas via DSM web page, you need to be administrator of your Synology Nas
I assume that you already have shared folder
You need to enable the NFS service:
Open the Control Panel
Then Win/Mac/NFS
On the tab NFS Service check the box "Enable NFS"
That not all for the configuration of your NFS sharing! (that was my big mistake ;)
You need to give privileges to your shared folder in order to be shared via NFS
Go back to your Control Panel
Then Shared Folder
Click on your shared folder you want to be shared
Then click on Privileges button
And NFS Privileges
Here you need to specify who can access to your shared folder via NFS. I am in a secure personal network so I had the following rule:
Click on Create
I set this rule like; Hostname or IP=*, Privilege=Read/Write, Root squash=No mapping and check Enable asynchronous
Click on Ok then Ok again
That is it for the Synology Nas
Do not forget the privileges steps if you want to shared other folder via NFS
Mount the NFS sharing from the Raspberry Pi

For the following I assume:
Your Synology Nas is on 192.168.0.20 IP address
You have set up your video default shared folder in order to be mount via NFS (/volume1/video)
Log on your Raspberry Pi
Create the directory where you will mount your shared folder
pi@raspberrypi sudo mkdir /mnt/video
Add the following line to your /etc/fstab, in order to automatically mount your shared folder
You need to be root
192.168.0.20:/volume1/video /mnt/video nfs nouser,atime,auto,rw,dev,exec,suid 0 0
Then mount all the partition in your /etc/fstab
pi@raspberrypi sudo mount -a
Here we go! Now you can access to your shared folder at /mnt/video

The working line on the Synology /etc/exports is:
/volume1/music 192.168.0.*(rw,sync,no_wdelay,crossmnt,insecure,no_root_squash,insecure_locks,sec=sys,anonuid=1025,anongid=100)
Mounting on the Raspberry with this command:
sudo mount -t nfs 192.168.*.*:/volume1/music -o nolock /mnt/music
Subsonic gives no error and no "Folder not found" but "Scan media folders now" still gives no result.

Any ideas ??