[Tutorial] Shared Library / Shared Sources
|
3rd Jan, 2013, 04:03 AM
Post: #1
|
|||
|
|||
[Tutorial] Shared Library / Shared Sources
I made this on the git wiki, but maybe is handy to have it on the
http://wiki.xbian.org/index.php?title=Shared_Sources Any questions, feel free to ask. XBian Skin Beta Testing Clock Screensaver If you liked my help, click on "Thanks" to show your appreciation. |
|||
4th Jan, 2013, 10:08 AM
Post: #2
|
|||
|
|||
RE: [Tutorial] Shared Library / Shared Sources
I miss the shared thumbnail storage
pilight - modular domotica solution
|
|||
21st May, 2013, 01:19 AM
Post: #3
|
|||
|
|||
RE: [Tutorial] Shared Library / Shared Sources
Why does Xbian not use the default table names xbmc_video and xbmc_music? I followed this (http://ozymandyaz.blogspot.nl/2011/08/configure-synology-nas-as-mysql-server.html) tutorial, but somehow see that Xbian makes it's own table names.
|
|||
21st May, 2013, 03:59 AM
Post: #4
|
|||
|
|||
RE: [Tutorial] Shared Library / Shared Sources
(21st May, 2013 01:19 AM)Smiggel Wrote: Why does Xbian not use the default table names xbmc_video and xbmc_music? I followed this (http://ozymandyaz.blogspot.nl/2011/08/configure-synology-nas-as-mysql-server.html) tutorial, but somehow see that Xbian makes it's own table names. "Sorry, the page you were looking for in this blog does not exist." xbmc_video and xbmc_music is not standard. look point 5. http://wiki.xbmc.org/index.php?title=HOW-TO:Share_libraries_using_MySQL/Advanced_notes anytime you can override the names in advancedsettings.xml like this (xbmc will ALWAYS add version number (of the DB template, not XBMC version) as suffix): <videodatabase> <type>mysql</type> <host>xbmcdb.private</host> <port>3306</port> <user>USERNAME</user> <pass>PASSWORD</pass> <name>xbmc_MyVideos</name> </videodatabase> <musicdatabase> <type>mysql</type> <host>xbmcdb.private</host> <port>3306</port> <user>USERNAME</user> <pass>PASSWORD</pass> <name>xbmc_MyMusic</name> </musicdatabase> Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here |
|||
27th May, 2013, 11:44 AM
Post: #5
|
|||
|
|||
RE: [Tutorial] Shared Library / Shared Sources
Sorry for the noob question, but could you provide a step by step on how to copy over a advancedsettings to the pi. I have the rest setup as I have several different Macs using a shared resource of my synology NAS, but would like to know what is the easiest way to copy over my sources.xml and advancedsettings.xml files from one of my macs to the pi. I assume this can be done in terminal via ssh? Any help would be appreciated.
|
|||
27th May, 2013, 05:16 PM
Post: #6
|
|||
|
|||
RE: [Tutorial] Shared Library / Shared Sources
(21st May, 2013 03:59 AM)mk01 Wrote:(21st May, 2013 01:19 AM)Smiggel Wrote: Why does Xbian not use the default table names xbmc_video and xbmc_music? I followed this (http://ozymandyaz.blogspot.nl/2011/08/configure-synology-nas-as-mysql-server.html) tutorial, but somehow see that Xbian makes it's own table names. Ah ok. :-) Thanks. (27th May, 2013 11:44 AM)MM3 Wrote: Sorry for the noob question, but could you provide a step by step on how to copy over a advancedsettings to the pi. I have the rest setup as I have several different Macs using a shared resource of my synology NAS, but would like to know what is the easiest way to copy over my sources.xml and advancedsettings.xml files from one of my macs to the pi. I assume this can be done in terminal via ssh? Any help would be appreciated. You can use the terminal to make a new file. SSH into the PI and browse to the folder where the file is stored. Use nano advancedsettings.xml to open the file in nano and you can edit it from there. |
|||
27th May, 2013, 10:46 PM
Post: #7
|
|||
|
|||
RE: [Tutorial] Shared Library / Shared Sources
(27th May, 2013 05:16 PM)Smiggel Wrote: You can use the terminal to make a new file. SSH into the PI and browse to the folder where the file is stored. Use nano advancedsettings.xml to open the file in nano and you can edit it from there. Thanks that did the trick. Never used nano before, but it was pretty simple in the end. edit: For others following if you enable smb add-on on the xbian pi via terminal this then allows you to use finder or pathfinder (hidden file view must be enabled) on Mac to easily browse and edit the required files, without having to use terminal... |
|||
2nd Jun, 2013, 05:14 AM
Post: #8
|
|||
|
|||
RE: [Tutorial] Shared Library / Shared Sources
(27th May, 2013 10:46 PM)MM3 Wrote:(27th May, 2013 05:16 PM)Smiggel Wrote: You can use the terminal to make a new file. SSH into the PI and browse to the folder where the file is stored. Use nano advancedsettings.xml to open the file in nano and you can edit it from there. special bonus: - put mediasources.xml and sources.xml on the NAS - edit advanced.....xml on each Mac and RPi put Code: <pathsubstitution> and you have shared sources instantly available everywhere. you can do the same with favorites.xml the <to>...</to> can be regular folder (I have nfs mounted central xbmc setting folder on each machine), but it can be "nfs://" , "smb://" anything what xbmc understands. mk Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here |
|||
2nd Jun, 2013, 04:28 PM
Post: #9
|
|||
|
|||
RE: [Tutorial] Shared Library / Shared Sources
(2nd Jun, 2013 05:14 AM)mk01 Wrote: [quote] What are the advantages of doing this way? Is there any code that goes within mediasources.xml file? |
|||
2nd Jun, 2013, 05:08 PM
Post: #10
|
|||
|
|||
RE: [Tutorial] Shared Library / Shared Sources
(2nd Jun, 2013 04:28 PM)MM3 Wrote: What are the advantages of doing this way? Is there any code that goes within mediasources.xml file? you media sources (and changes in scrappers settings defined on those sources) always read from the central location, updated as well only there. it's like the shared db, you can add a source / favorite on any xbmc and you will see it on all other installations of xbmc and vice versa. the path substitution means the files are not going to be copied to local machine. they are shared from the one location. it's also possible to share add-ons settings this way. as soon as you install new add-on which already you have configured on other pc / atv / rpi, the add-on will work with the global shared setting. with more xbmc installations you don't have to walk always around the house to update & configure each installation. (and in case of crash/reinstall you just install clean xbmc, the same set of modules and all other is taken from central location, so in few seconds you have the same media as before) mk Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here |
|||
2nd Jun, 2013, 09:26 PM
Post: #11
|
|||
|
|||
RE: [Tutorial] Shared Library / Shared Sources
I still have to lookup, how i can share addons arcoss xbmc's
XBian Skin Beta Testing Clock Screensaver If you liked my help, click on "Thanks" to show your appreciation. |
|||
2nd Jun, 2013, 10:01 PM
Post: #12
|
|||
|
|||
RE: [Tutorial] Shared Library / Shared Sources
(2nd Jun, 2013 09:26 PM)brantje Wrote: I still have to lookup, how i can share addons arcoss xbmc's this is bit tricky. method how to achieve is the same - path substitution - or mount to xbmcs addon directory. normally, Thumbnails, add-on_data, mediasources and sources works with no issues. With addon scripts you can run into troubles from two reasons: 1) different versions and dependencies according to installed xbmc 2) the fact, that xbmc keeps addons physically in add ons folder, but informations about them in Databases/Addons.db. This db can't be moved to shared SQL and sqlite provides no locking/sharing mechanism. so by substituting addon path (or centrally mounting it) you will not make your xbmc installation be aware of the addons. there needs to be related record in Databases/Addons.db sqlite db. and to this, you are not able to provide shared access (if you start more than xbmc at a time). so once again, music and video library can be central "shared", thumbnails folder, addon_data, sources.xml, mediasources.xml, favorites. Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here |
|||
3rd Jun, 2013, 07:13 PM
Post: #13
|
|||
|
|||
RE: [Tutorial] Shared Library / Shared Sources
(2nd Jun, 2013 05:08 PM)mk01 Wrote:(2nd Jun, 2013 04:28 PM)MM3 Wrote: What are the advantages of doing this way? Is there any code that goes within mediasources.xml file? Ok, I am convinced. So can you described the steps for not so literate? Is it something like this: 1. Create mediasources.xml file. I'm not sure of its contents? Or is it a blank file that xbmc will write to? Place that file on my NAS, say in my media share/directory in a directory I created called 'xbmcdata'. 2. Do the same for the sources.xml - again is this file blank and will be written to when set up on one of the xbmc's? Or is the contents of the sources folder the same as it is now - pointing to the correct share/directories? 3. Edit the advancedsettings.xml file on each machine by adding the above code, eg, (from my Pi): Code: <advancedsettings> 4. Do the same for each machine - Mac, RPi, Apple TV, omitting the RPi specific stuff in the advancesettings.xml file. Is that about right? Thanks in advance. |
|||
3rd Jun, 2013, 08:15 PM
Post: #14
|
|||
|
|||
RE: [Tutorial] Shared Library / Shared Sources
yes !
only that from the file you posted is 1/2 RPi relevant Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here |
|||
3rd Jun, 2013, 10:45 PM
Post: #15
|
|||
|
|||
RE: [Tutorial] Shared Library / Shared Sources
Thanks. Got something right for a change
Which bit is not Pi relevant? The files on my other machines don't have the network, video, gpu, cpu, refreshrate, fanart or imageres code. I though those portions came from the standard xbian instal of this file? Edit: are the sources and mediasources files I place on the NAS blank until they are populated by xbmc? cheers |
|||
« Next Oldest | Next Newest »
|
Possibly Related Threads... | |||||
Thread: | Author | Replies | Views: | Last Post | |
[SOLVED] XMBC doesn't start automatically with nfs shared configured | Lukeid | 11 | 33,123 |
24th Mar, 2014 10:55 AM Last Post: mk01 |
|
Shared Library | ilgrank | 5 | 18,912 |
19th Jul, 2013 04:13 AM Last Post: ilgrank |
|
Multiple Pi with shared library | Calp87 | 1 | 7,087 |
19th May, 2013 07:58 PM Last Post: rikardo1979 |
|
[PROBLEM] can't access a shared folder on my laptop(windows 8) | xhuntrkillerx | 4 | 16,195 |
3rd May, 2013 01:40 AM Last Post: xhuntrkillerx |
|
[PROBLEM] Can't see shared folders with Win7 | Muertomatao | 4 | 14,180 |
19th Mar, 2013 04:12 AM Last Post: Muertomatao |