• 1
  • 51
  • 52
  • 53(current)
  • 54
  • 55
  • 58
xbmc minified as a server?
(2014-07-10, 13:18)wernerb Wrote:
(2014-07-09, 17:21)joelones Wrote: @wernerb: using your docker image, so far so good, was just wondering what is the recommended way of changing the time zone within the container?
They list the problem here: https://github.com/dotcloud/docker/issues/3359

Add the following arguments to the docker run command:
Code:
-v /etc/localtime:/etc/localtime:ro -v /etc/timezone:/etc/timezone:ro

The docker container will then share time and timezone with the parent host.
Please test this, if it works I will consider putting it in the container itself as a default Smile


Thank you wernerb, that indeed does fix the time zone.
Reply
does anyone else have issues with the webserver not starting and or not being accessible with the regular headless compile? i tried a few forks from github mentioned here and all yield the same result.

and anyone here able to point me in the right direction to getting the docker release to work? i keep getting invalid arguments or complaints about supervisord not existing in /usr/bin/ even though it is there when trying to launch using the specified commands.
iOS XBMC users PLEASE use the advanced search function before starting a new thread. Make sure to click on 'XBMC for iOS Specific Support' so your results are narrowed down correctly.

Please make sure to visit the Sticky section for common issues/questions/etc. Also, XBMC for iOS information
Reply
You must be more specific. Post the exact errors you're getting, both for XBMC not starting as the problems you have with docker.
Reply
wrote some instructions for Debian wheezy using wernerbs method
http://forums.openmediavault.org/viewtop...=13&t=4906


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
Reply
Here is a log of a compiled xbmc running as service using this post (http://forum.xbmc.org/showthread.php?tid...pid1708770):
had to use some pathsubstitutions to play nice with my sql library. videos do scan and update into the library so that is working just great. however, the webserver is not starting it seems.

guisettings: http://pastebin.com/D4YyMr2n
xbmc.log http://pastebin.com/1fmHQPhy

i have other services running on 8080 so can't use default port so it's been changed to 8090 as seen in the guisettings. my advancedssettings.xml is shown in the log.

is the webserver working for anyone else? if so what repo?

UPDATE: it seems as though i got the webserver working.. just deleted the default guisettings.xml and replaced with http://cyanlabs.net/uploads/guisettings.xml from http://forum.xbmc.org/showthread.php?tid...pid1706140 and of course changed port/etc.

so all is well for now Smile finally!!
iOS XBMC users PLEASE use the advanced search function before starting a new thread. Make sure to click on 'XBMC for iOS Specific Support' so your results are narrowed down correctly.

Please make sure to visit the Sticky section for common issues/questions/etc. Also, XBMC for iOS information
Reply
Hi there.
made a reinstall and tried your docker again.
doesnt work anymore.
is nfs still enabled Huh

Code:
17:51:23 T:140266719672064   ERROR: NFS: Failed to mount nfs share: /export/NAS_HD (mount/mnt call failed with "RPC error: Mount failed with error MNT3ERR_ACCES(13) Permission denied(13)")
17:51:23 T:140266719672064 WARNING: Process directory 'nfs://192.168.0.107/export/NAS_HD/Medien/Movies/2 Guns (2013)/' does not exist - skipping scan.

still getting erros!
Reply
nevermind.
problem solved by installing a higher kernel than 3.8
Reply
(2014-07-14, 20:09)gutz-pilz Wrote: wrote some instructions for Debian wheezy using wernerbs method
http://forums.openmediavault.org/viewtop...=13&t=4906


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 -v /root/xbmc-server/xbmcdata:/opt/xbmc-server/portable_data --entrypoint=/opt/xbmc-server/xbmcVideoLibraryScan wernerb/docker-xbmc-server --no-test --nolirc -p

Hi! Thanks for writing up instructions! I see there are no instructions for debian wheezy/squeeze on the docker site: https://docs.docker.com/installation/debian/ . I have no idea if that means it is unsupported or unstable but it might be worth a warning?
Glad you think using docker xbmc server is helpful. Maybe adjust your instructions to also include the UPnP server approach? This way you can have xbmc-server serve your files all the time.
Reply
i dont understand that upnp version...
what does it do !?
Reply
(2014-07-23, 13:06)gutz-pilz Wrote: i dont understand that upnp version...
what does it do !?

It starts xbmc as a daemon and runs an UPnP (DLNA) server. You can then on any UPnP/DNLA client see the xbmc server show up and play videos and music through it. In xbmc you can for example browse UPnP devices in the "videos" section.
And personally I use BubbleUPnP on my phone to stream videos/music to whatever renderer/player.

Also could you adjust your instructions to add --net=host to the run command if using nfs/smb as a video source?
Reply
i see. i guess i gonna give that upnp a shot.
atm i use plex for streaming. but having just one tool to also do stuff like that. always better. simplifies much!

previous post edited
Reply
installed upnp version.
crashes once i connect on the webinterface.
(^^like the manually compiled version on debian.)

DLNA seems to work.
is tehere a good dlna app for iDevices ? (so far found one but doesnt play ac3 or dts)
Reply
(2014-07-23, 14:16)gutz-pilz Wrote: installed upnp version.
crashes once i connect on the webinterface.
(^^like the manually compiled version on debian.)

DLNA seems to work.
is tehere a good dlna app for iDevices ? (so far found one but doesnt play ac3 or dts)

Yes, the webserver has the same bugs the UPnP server had previously with thumbnail generation accessing the GUI and causing a segmentation fault. I fixed this for UPnP by returning 404 for missing thumbnails, but haven't found the time to create such a work-around for the webserver. When I have time I will try to fix the webserver as it appears there is some demand for a fix.
Reply
(2014-07-01, 18:55)XBL. Wrote: This is what I use to add the sources (already replaced the paths with your paths). You probably want to check the options.

You can also add the sources from a client, which is probably a bit easier if you want to configure the options for each source.

Code:
INSERT INTO `path` (`strPath`, `strContent`, `strScraper`, `strHash`, `scanRecursive`, `useFolderNames`, `strSettings`, `noUpdate`, `exclude`, `dateAdded`) VALUES
('nfs://192.168.0.107/export/NAS_HD/Medien/Movies/', 'movies', 'metadata.themoviedb.org', NULL, 1, 1, '<settings><setting id="RatingS" value="IMDb" /><setting id="TrailerQ" value="No" /><setting id="certprefix" value="Rated " /><setting id="fanart" value="true" /><setting id="keeporiginaltitle" value="true" /><setting id="language" value="en" /><setting id="tmdbcertcountry" value="nl" /><setting id="trailer" value="true" /></settings>', 0, 0, NULL),
('nfs://192.168.0.107/export/NAS_HD/Medien/TV Shows/', 'tvshows', 'metadata.tvdb.com', NULL, 0, 0, '<settings><setting id="absolutenumber" value="false" /><setting id="dvdorder" value="false" /><setting id="fanart" value="true" /><setting id="language" value="en" /><setting id="posters" value="false" /></settings>', 0, 0, NULL);

OK, so I compiled XBMC 14.0-ALPHA1 into docker container running on Ubuntu 12.04 and everything seems to be working. This is running under VMWare, so I shared my videos, pictures and music over (as test) and is mounted as /mnt/hgfs. I then used -v /mnt/hgfs:/media in my run command and used the above script to add /media/video and /media/music as sources. I finally added cron entry to update the library at regular intervals. Just did this as a quick proof of concept to replace Serviio. I am able to browse content on all my dlna/upnp devices including other XBMC boxes and so far, all content has been able to play.

However, I do have a couple questions. Why do I have to add sources in the database? I originally wanted to test pure upnp setup which my understanding wouldn't even need centralized DB. I tried leaving out DB configuration and only use sources.xml but had no luck in doing so. I also am not quite sure how to add picture source through XML or DB. Is there a way I can add my pictures library as a local source and share via upnp?
Reply
(2014-07-24, 18:00)blauter78 Wrote:
(2014-07-01, 18:55)XBL. Wrote: This is what I use to add the sources (already replaced the paths with your paths). You probably want to check the options.

You can also add the sources from a client, which is probably a bit easier if you want to configure the options for each source.

Code:
INSERT INTO `path` (`strPath`, `strContent`, `strScraper`, `strHash`, `scanRecursive`, `useFolderNames`, `strSettings`, `noUpdate`, `exclude`, `dateAdded`) VALUES
('nfs://192.168.0.107/export/NAS_HD/Medien/Movies/', 'movies', 'metadata.themoviedb.org', NULL, 1, 1, '<settings><setting id="RatingS" value="IMDb" /><setting id="TrailerQ" value="No" /><setting id="certprefix" value="Rated " /><setting id="fanart" value="true" /><setting id="keeporiginaltitle" value="true" /><setting id="language" value="en" /><setting id="tmdbcertcountry" value="nl" /><setting id="trailer" value="true" /></settings>', 0, 0, NULL),
('nfs://192.168.0.107/export/NAS_HD/Medien/TV Shows/', 'tvshows', 'metadata.tvdb.com', NULL, 0, 0, '<settings><setting id="absolutenumber" value="false" /><setting id="dvdorder" value="false" /><setting id="fanart" value="true" /><setting id="language" value="en" /><setting id="posters" value="false" /></settings>', 0, 0, NULL);

OK, so I compiled XBMC 14.0-ALPHA1 into docker container running on Ubuntu 12.04 and everything seems to be working. This is running under VMWare, so I shared my videos, pictures and music over (as test) and is mounted as /mnt/hgfs. I then used -v /mnt/hgfs:/media in my run command and used the above script to add /media/video and /media/music as sources. I finally added cron entry to update the library at regular intervals. Just did this as a quick proof of concept to replace Serviio. I am able to browse content on all my dlna/upnp devices including other XBMC boxes and so far, all content has been able to play.

However, I do have a couple questions. Why do I have to add sources in the database? I originally wanted to test pure upnp setup which my understanding wouldn't even need centralized DB. I tried leaving out DB configuration and only use sources.xml but had no luck in doing so. I also am not quite sure how to add picture source through XML or DB. Is there a way I can add my pictures library as a local source and share via upnp?

Hi! Good question. What you do is the following:

1. Setup xbmc on your computer (download it as normal, install as normal)
2. Configure the sources there with the GUI, adding pictures, video locations etc.
3. Enable UPnP Server and other services and test them in your network
4. Then simply copy over the userdata folder from your computer to your server and link that with the docker container (-V ~/.userdata:.. look at the example)
5. Copy over advancedsettings.xml to the userdata folder (from the xbmc docker container) and remove the section about mysql.
6. Run your container

Your xbmc server will then start and it will be identical to the xbmc you had configured on your PC.
Effectively you configure everything through gui and once satisfied you shutdown and copy the library/database/settings to the docker container where it will run as a headless server.
No need to configure anything manually with xml or db.
Reply
  • 1
  • 51
  • 52
  • 53(current)
  • 54
  • 55
  • 58

Logout Mark Read Team Forum Stats Members Help
xbmc minified as a server?9