Please read the following carefully!
don't use this guide anymore! The XBMC-version will not be upgraded above 13.0
Use this instead: http://forums.openmediavault.org/viewtopic.php?f=13&t=4906
Thx to GutPilz
-----------------------------------------------------------------------------------------------------------------------
This guide describes, how to run a headless xbmc-server on OMV (amd64 only for now, sorry). The XBMC-server is only for the MySQL-Database scan and cannot play any files or music.
You need some CLI experience for this guide
Info about the xbmc-server: http://forum.xbmc.org/showthre…19&pid=1117319#pid1117319
The xbmc-server must be compiled by your own or you can use the version linked in this post (amd64 only). Eventually someone can provide a 32bit version?
How to compile the xbmc-server:
Guide over @ xbmc.org from KraVen: here
xbmc-server.cpp and others here or here
fix for Frodo 12.0: here
The binary linked under 3. is compiled with:
./configure --enable-shared-lib --disable-debug --disable-vdpau --disable-vaapi --disable-crystalhd --disable-vdadecoder --disable-vtbdecoder --disable-openmax --disable-joystick --disable-xrandr --disable-rsxs --disable-projectm --disable-rtmp --disable-airplay --disable-airtunes --disable-dvdcss --disable-optical-drive --disable-libbluray --disable-libusb --disable-libcec --disable-libmp3lame --disable-libcap --disable-optical-drive --disable-libbluray --disable-ssh --disable-udev --disable-asap-codec --disable-afpclient --disable-nfs --disable-goom --disable-avahi --disable-upnp
You must know, what you are doing! I'm not responsible, if you break your OMV-System!
I repeat: It's for the 64bit-version only!This xbmc-server can NOT play any files and is only for MySQL-DB scan. It is _not_ the "normal" XBMC. If you know what you are doing, proceed.
Please ask questions about the xbmc-server in the corresponding XBMC-Forum
To get this to work, you need:
1. One ore more XBMC-Clients - Frodo 12.0 is supported only
2. a MySQL-Database for XBMC -> Howto thx to bootlegninja
3. your XBMC-Clients already connected to your MySQL-DB -> Howto
You have all this? OK, let's go:
1. Install some needed stuff:
apt-get install libsdl1.2debian-all libmicrohttpd5 libsmbclient libsdl-image1.2 libjasper1 libtinyxml2.5.3 libyajl1 liblzo2-2 libglu1-mesa libglew1.5 libpython2.6 libfribidi0 libpcrecpp0 libcdio10 libsamplerate0 libtag1c2a libhal1 libhal-storage1
2. Install taglib 1.8
Go to http://debian.oppserver.net/debian/#squeeze and search for taglib
There are 3 files:
- libtag1-vanilla
- libtag1c2a
- libtagc0
I don't know which one is needed, so download and install all 3
3. unpack the xbmc-server to the root directory (copys the files to their location)
Download this file and unpack it to root with
tar xvfz xbmc-server_Frodo_12.0_amd64.tar.gz -C /
4. update the start scripts
update-rc.d xbmc-server defaults
5. Run the xbmc-server
services xbmc-server start
6. Connect to the xbmc-server's WebGUI via your preferred browser
User: "xbmc"
Password:"xbmc"
xbmc-server runs with portable-data under "/opt/xbmc-server/portable-data". You find the xbmc-server-log in "/opt/xbmc-server/portable-data/temp/xbmc.log"
Please change the guisettings.xml (for password and WebGUI-Port), advancedsettings.xml and the sources.xml on all clients to fit your needs. More Info on XBMC-Wiki
All XBMC-Clients needs the same sources for the database and the same db-version. If you set up user and pw for the smb-share, make sure you use this syntax for the smb-share:
smb://user:password@Server/Path/to/media
You can update your DB over the XBMC-WebGUI or over CLI with: (change the IP)
Video-DB:
curl -s -d '{"jsonrpc":"2.0","method":"VideoLibrary.Scan","id":1}' -H 'content-type: application/json;' http://xbmc:xbmc@yourOMV-IP:8585/jsonrpc?VideoLibrary.Scan
Music-DB:
curl -s -d '{"jsonrpc":"2.0","method":"VideoLibrary.Scan","id":1}' -H 'content-type: application/json;' http://xbmc:xbmc@yourOMV-IP:8585/jsonrpc?MusicLibrary.Scan
If everything works, it should look like this:
Zitat
user@huntington:~$ curl -s -d '{"jsonrpc":"2.0","method":"VideoLibrary.Scan","id":1}' -H 'content-type: application/json;' http://xbmc:xbmc@yourIP:8585/jsonrpc?VideoLibrary.Scan (Enter)
{"id":1,"jsonrpc":"2.0","result":"OK"} (reply from the xbmc-server)
user@huntington:~$
and then the xbmc.log looks like this:
Zitat
...
19:43:36 T:140260291684096 NOTICE: Thread CVideoInfoScanner start, auto delete: false
19:43:36 T:140260291684096 NOTICE: VideoInfoScanner: Starting scan ..
19:43:47 T:140260291684096 NOTICE: VideoInfoScanner: Finished scan. Scanning for video info took 00:10
19:45:19 T:140260641339296 NOTICE: Samba is idle. Closing the remaining connections
I've got a ATV2 and a Windows-PC (both Frodo 12.0) synced over a MySQL-DB with xbmc-server.
If you want, you can store the thumbnails on a SMB-share on the OMV-machine. So every client can get them and doesn't have to store them on its own:
http://wiki.xbmc.org/index.php…Sync_thumbails_and_fanart
I don't know, if it's neccessary for Frodo 12.0, but works on my Clients very nice.
New libxbmc.so with Frodo 12.2 and upnp, NFS etc.:
http://filebin.ca/vesuT5KyDnF/libxbmc.so.zip
overwrite the old file in /lib
Known issues:
- xbmc-server will crash, if you browse the Database with the XBMC-WebGUI
To do:
- get this addon working -> XBMC Library Updater Addon
Turorial-Version 0.3