I want to share the xbmc library from my main media center with my raspberry pi running xbian in my bedroom. I got MySQL setup and the library migrated with no issues. I also got the rPi to load the remote library database with no issue.
The problem is the path in MySQL does not specify an IP address since it is on the same device as xbmc. So none of the files will play. Most of the guides and forum posts seemed to be aimed at the media files residing on an NAS and xbmc on the remote devices.
Is there a way that I can specify the network IP in the source paths on my main media center in a way that would still work on the rPi? I am using NFS file sharing. Can I add localhost to /etc/exports and the xbmc to use nfs to get files from the local machine? Would that affect performance?
The other option I have considered was using the OS to mount the media folders using NFS on the rPi using a matching path so that xbian finds the files where it is looking for them. But the xbmc wiki specifically warned gainst using the OS to mount the files (but didn't really say why).
TLDR version:
*Main media center has xbmc and mysql. Media paths as stored in MySQL db is "/media/MediaStorage/...."
*Raspberry Pi runnning xbian. Media paths need to be "nfs://xxx.xxx.xxx.xxx/media/MediaStorage...."
*How can I get the media source path to point both systems to the same place?
The problem is the path in MySQL does not specify an IP address since it is on the same device as xbmc. So none of the files will play. Most of the guides and forum posts seemed to be aimed at the media files residing on an NAS and xbmc on the remote devices.
Is there a way that I can specify the network IP in the source paths on my main media center in a way that would still work on the rPi? I am using NFS file sharing. Can I add localhost to /etc/exports and the xbmc to use nfs to get files from the local machine? Would that affect performance?
The other option I have considered was using the OS to mount the media folders using NFS on the rPi using a matching path so that xbian finds the files where it is looking for them. But the xbmc wiki specifically warned gainst using the OS to mount the files (but didn't really say why).
TLDR version:
*Main media center has xbmc and mysql. Media paths as stored in MySQL db is "/media/MediaStorage/...."
*Raspberry Pi runnning xbian. Media paths need to be "nfs://xxx.xxx.xxx.xxx/media/MediaStorage...."
*How can I get the media source path to point both systems to the same place?