XBMC-Server (headless/minified) Libraryscanner

  • This Guide does not work with Debian Squeeze 6.0 (OMV 0.5) as the repo which is used for the docker installation is only for Debian Wheezy 7.0 (OMV 1.0)
    + a kernel later than 3.8!!!

    Hi,


    here a short tutorial how to get the newest XBMC up and running as a server version aka Libraryscanner.
    You probably think :"why som1 wants to do something like that!!? i scan with my client!!"


    I use this version of xbmc to have a automated "libraryupdater"
    EXAMPLE: every time my downloadprogram (pyload) finished something it automatically sorts/renames the files into specified location and than tells my XBMC-server to rescan my Media.
    next time i turn on my XBMC client (RPi) - VOILA i have my movies and series already updated - no need to rescan manually with the client !!!
    http://forum.xbmc.org/showthre…19&pid=1730164#pid1730164
    https://github.com/wernerb/docker-xbmc-server


    Steps to get XBMC-Server
    1. Install DOCKER

    Code
    apt-get install -y git curl
    wget http://get.docker.io/builds/Linux/x86_64/docker-latest -O /usr/bin/docker
    curl -o /etc/init.d/docker https://raw.githubusercontent.com/dotcloud/docker/master/contrib/init/sysvinit-debian/docker
    chmod +x /usr/bin/docker /etc/init.d/docker
    addgroup docker
    update-rc.d -f docker defaults
    cat << EOF > /etc/default/docker
    DOCKER_OPTS="-H 127.0.0.1:4243 -H unix:///var/run/docker.sock"
    EOF
    service docker restart


    2. get wernerb's git sources

    Code
    mkdir /root/xbmc-server
    git clone https://github.com/wernerb/docker-xbmc-server.git /root/xbmc-server


    3.change advancedsettings to suite your needs!

    Code
    nano /root/xbmc-server/xbmcdata/userdata/advancedsettings.xml


    3.DONE - put this code as cron or call it whenever u need to scan / refresh the xbmc lib (this might take a while (max10min) at first run)

    Code
    docker run --net=host -v /root/xbmc-server/xbmcdata:/opt/xbmc-server/portable_data --entrypoint=/opt/xbmc-server/xbmcVideoLibraryScan wernerb/docker-xbmc-server --no-test --nolirc -p
  • I'd advice against adding an Ubuntu repo to Debian. Maybe it doesn't break something today, but someday it'll probably cause problems.

  • The Debian solution seems to be for Jessie though. If you test the solutions can you report the results? I'm interested :)

  • As far as I know, tough beeing in jessie repo, docker works fone with the libs on wheezy. At least, last time I checked.


    Greetings
    David

    "Well... lately this forum has become support for everything except omv" [...] "And is like someone is banning Google from their browsers"


    Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.

    Upload Logfile via WebGUI/CLI
    #openmediavault on freenode IRC | German & English | GMT+1
    Absolutely no Support via PM!

  • ist nicht in wheezy implementiert. habs grad auf ner vm getestet.
    dafür hier ne funktionierende kurzanleitung


    Code
    touch /etc/apt/sources.list.d/docker.list
    echo deb http://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list
    apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9
    apt-get update
    apt-get install -y lxc-docker
    rm /etc/apt/sources.list.d/docker.list
    apt-get update
  • Bitte nicht mehr anleitungen mit Ubuntu quellen mehr erstellen, die sorgten in letzter zeit immer wieder für problem. Soweit ich weiß kann man auch einfach das paket aus den debian jessie quellen installieren, oder eben aus den backports.


    Gruß
    David

    "Well... lately this forum has become support for everything except omv" [...] "And is like someone is banning Google from their browsers"


    Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.

    Upload Logfile via WebGUI/CLI
    #openmediavault on freenode IRC | German & English | GMT+1
    Absolutely no Support via PM!

  • oo f**k. hab ich schon wieder nicht drauf geachtet... sorry
    ^^so vielleicht? oder noch die preferneces anpassen ?


    Code
    touch /etc/apt/sources.list.d/docker.list
    echo deb http://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list
    apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9
    apt-get update
    apt-get install -y lxc-docker
    rm /etc/apt/sources.list.d/docker.list
    apt-get update
  • Entweder dass oder die sources hinterher wieder raushauen weil du dir anderweitig das system verbastelst.


    Gruß
    David

    "Well... lately this forum has become support for everything except omv" [...] "And is like someone is banning Google from their browsers"


    Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.

    Upload Logfile via WebGUI/CLI
    #openmediavault on freenode IRC | German & English | GMT+1
    Absolutely no Support via PM!

  • Dann so ;) ??

    Code
    touch /etc/apt/sources.list.d/docker.list
    echo deb ftp://ftp.debian.org/debian/ jessie main >> /etc/apt/sources.list.d/docker.list
    echo deb-src ftp://ftp.debian.org/debian/ jessie main >> /etc/apt/sources.list.d/docker.list
    apt-get update
    apt-get install docker.io
    rm /etc/apt/sources.list.d/docker.list
    apt-get update
  • habs grad eben nochmal getestet.
    funkioniert so nicht, egal was ich probier:

    Code
    unable to remount sys readonly: unable to mount sys as readonly max retries reached


    für mich war das jetzt die einzig funktionierende variante.



    WARNHINWEIS: benutzung auf eigene gefahr!!!
    whier wird temporär eine Ubuntu source hinzugefügt - das könnte andere pakete beeinflüssen und dazu führen das danach euer system nicht mehr so funktioniert wie vorher

    Code
    touch /etc/apt/sources.list.d/docker.list
    echo deb http://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list
    apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9
    apt-get update
    apt-get install -y lxc-docker
    rm /etc/apt/sources.list.d/docker.list
    apt-get update
  • You can skip the touch command. 'echo' creates the file too.


    Greetings
    David

    "Well... lately this forum has become support for everything except omv" [...] "And is like someone is banning Google from their browsers"


    Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.

    Upload Logfile via WebGUI/CLI
    #openmediavault on freenode IRC | German & English | GMT+1
    Absolutely no Support via PM!

  • Probably with this, but I think this could lead to very high read I/O activity on your hard disk.


    http://stackoverflow.com/quest…ch-folder-execute-command


    Greetings
    David

    "Well... lately this forum has become support for everything except omv" [...] "And is like someone is banning Google from their browsers"


    Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.

    Upload Logfile via WebGUI/CLI
    #openmediavault on freenode IRC | German & English | GMT+1
    Absolutely no Support via PM!

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!