You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RUN (cd xbmc && ./bootstrap && ./configure --enable-nfs --enable-upnp --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-dbus && make -j2 && cp libxbmc.so /lib && ldconfig && cd xbmc && make -f make_xbmc-server all && make -f make_xbmcVideoLibraryScan all && mkdir -p /opt/xbmc-server/portable_data/ && cp xbmc-server xbmcVideoLibraryScan /opt/xbmc-server && cd .. && cp -R addons language media sounds system userdata /opt/xbmc-server/ && cd / && rm -rf /xbmc)
33
33
34
+
#Fix for XBMC not being able to choose its own network binding interface. Will force the webserver/eventserver/upnpserver to use the specified ip if LD_PRELOAD and BIND_ADDR are given as environment variables. See README.MD for further info
#install only dependencies for running xbmc. Taken out of the list: libbluetooth3 libbluray1. Put in the list: libssh-4 libtag1c2a libcurl3-gnutls libnfs1
Copy file name to clipboardExpand all lines: README.md
+9-37
Original file line number
Diff line number
Diff line change
@@ -4,15 +4,10 @@ This will allow you to serve files through the XBMC UPnP Library to your UPnP cl
4
4
5
5
Docker is used to compile and run the latest headless version of XBMC Frodo
6
6
7
-
This has been inspired by [Plex media server in Docker](http://blog.ostanin.org/2013/09/14/plex-media-server-in-docker/)
8
-
9
7
This also includes some custom patches that will fix crashes. See the FAQ section for details.
10
8
11
-
If you are running Docker 0.9+ look at the FAQ
12
-
13
9
### Preqrequisites:
14
-
* Docker version 0.8+ (See FAQ for 0.9+)
15
-
* Optional, for UPnP to work: Set up a bridge. Your docker container must run on an IP that reaches your media players. See the [Setting up a network bridge section on this blog](http://blog.ostanin.org/2013/09/14/plex-media-server-in-docker/)
10
+
* Docker version 0.12+
16
11
17
12
### Quick start
18
13
@@ -51,26 +46,21 @@ If you are running Docker 0.9+ look at the FAQ
51
46
Use this command in your automation scripts or in a crontab. Keep in mind that a library scan can take some time.
52
47
53
48
*__UPnP Server__:
54
-
Required: See [Plex media server in Docker](http://blog.ostanin.org/2013/09/14/plex-media-server-in-docker/) on how to set up a bridge.
55
-
56
-
Pull from docker and run:
57
49
58
-
$ sudo docker run -d --networking=false \
50
+
Run the following command to spawn a docker container running xbmc with UPnP:
Ps. Replace `br0`, `192.168.1.48` and `192.168.1.1`with the bridge interface, desired ip for container and your network gateway IP. Replace `/directory/with/xbmcdata` with the folder where you would like to store the xbmc data. Point it to the full path to the xbmcdata folder of this repository.
57
+
Ps. Replace `192.168.1.50`with the IP to which you want to bind xbmc to, i.e., your host network ip. Replace `/directory/with/xbmcdata` with the folder where you would like to store the xbmc data. Point it to the full path to the xbmcdata folder of this repository.
Docker ensures that xbmc-server can be run on multiple operating systems, as well as making xbmc-server portable. In the case of xbmc-server, a lot of people are having trouble compiling it to work in headless mode for different distributions. The steps to compile xbmc can be viewed in `Dockerfile` and lists the best practises found in this [xbmc forum thread](http://forum.xbmc.org/showthread.php?tid=132919).
81
71
82
72
__What do the patches do?__
83
-
I discovered that the UPnP server in XBMC was very unstable, and crashed when browsing the library in headless mode. The problem was with thumbnail generation for some videos. The patches provided in this repo are automatically applied when compiling for headless mode, and allows xbmc to run without crashing.
84
-
85
-
__Getting veth errors?__
86
-
You are most likely running docker 0.9 or higher that uses libcontainer and not lxc. Until lxc-conf veth commands work you can work around this by running docker with the following additonal arguments `-e lxc`.
87
-
88
-
* For Arch linux: you can find the file to add the arguments at:
* For Ubuntu: open `/etc/default/docker` and uncomment and edit the following:
93
-
94
-
#DOCKER_OPTS="-dns 8.8.8.8 -dns 8.8.4.4"
95
-
to reflect:
96
-
97
-
DOCKER_OPTS="-e lxc"
98
-
99
-
Additionally you may need to install the lxc package, as it is no longer a dependency of Docker
100
-
73
+
I discovered that the UPnP server in XBMC was very unstable, and crashed when browsing the library in headless mode. The problem was with thumbnail generation for some videos. The patches provided in this repo are automatically applied when compiling for headless mode, and allows xbmc to run without crashing.
0 commit comments