Kodi Community Forum
Headless Kodi - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Kodi Application (https://forum.kodi.tv/forumdisplay.php?fid=93)
+--- Thread: Headless Kodi (/showthread.php?tid=212061)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32


RE: Headless Kodi - celedhrim - 2015-07-16

I ran my kodi isengard docker without issues since frist beta.

You can try the image.

https://registry.hub.docker.com/u/celedhrim/kodi-server/

prepare a kodi profile with a standard kodi version and load it with the docker

Take the isengard docker version.

Code:
docker run -d --restart="always" --net=host -v /where/you/store/your/profile:/opt/kodi-server/share/kodi/portable_data celedrim/kodi-server:isengard



RE: Headless Kodi - IncMrG - 2015-07-16

Thank you for your quick reply,
but it seems that i'm to stupid for that Huh

The first instruction here:
(2015-07-16, 01:02)celedhrim Wrote: You can try the image.

https://registry.hub.docker.com/u/celedhrim/kodi-server/
give's me the following error Sad

Quote:$git clone [email protected]:celedhrim/docker-xbmc-server.git -b helix
Klone nach 'docker-xbmc-server'...
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.



RE: Headless Kodi - fma965 - 2015-07-16

(2015-07-16, 00:11)IncMrG Wrote: Hi to all,

first i have to say, i'm a really noob in compiling programs Sad
but i have to ask you: has anyone really running Kodi (Isengard) Headless running Huh

I tried all your hints without success No

With Helix the server is running with web-server, so i can see my media, but i can not stream them to my phone (Yatse as client)
When i try to stream a mp3 the server crashes.

With Isengard i get the web-server not started.

So, i wish to run Isengard (Headless) on my Ubuntu Server (15.04 / 64 Bit) to update the MySQL-Server and stream my media to my mobile device (Android)
Is it possible to give me a Noob-Ready step by step or better already compiled zip/deb?

Thanks a lot for your help and comprehension Blush

IncMrG

Yes i have it working doing the steps i said i did in a previous post.


RE: Headless Kodi - celedhrim - 2015-07-16

(2015-07-16, 03:10)IncMrG Wrote: Thank you for your quick reply,
but it seems that i'm to stupid for that Huh

The first instruction here:
(2015-07-16, 01:02)celedhrim Wrote: You can try the image.

https://registry.hub.docker.com/u/celedhrim/kodi-server/
give's me the following error Sad

Quote:$git clone [email protected]:celedhrim/docker-xbmc-server.git -b helix
Klone nach 'docker-xbmc-server'...
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

You don't have to git clone , you just have to install docker and run the command I give.

This will run a prebuild container.


RE: Headless Kodi - pgjensen - 2015-07-16

(2015-07-12, 22:41)fma965 Wrote: I believe this is a working patch for RC2 atleast it worked for me...

https://gist.github.com/Fma965/b01099fd866c133cb257#file-rc2patch-patch

Code:
git clone https://github.com/xbmc/xbmc.git -b Isengard --depth=1
git reset --hard 0aa930b (just to make sure is same commit)
wget https://gist.githubusercontent.com/Fma965/b01099fd866c133cb257/raw/4ad14b38fa79d5eb5341533dad6567c985275c3b/RC2Patch.patch
Code:
git apply --check RC2Patch.patch
git apply RC2Patch.patch
./bootstrap
./configure --prefix=/opt/kodi-server
make -j2
make install


I'm getting an error with that patch. I followed the directions to a tee. After I cloned it, I did cd into the directory which appears correct.


CPP xbmc/cores/dvdplayer/DVDPlayer.o
In file included from DVDPlayer.cpp:22:0:
DVDPlayer.h:157:23: sorry, unimplemented: non-static data member initializers
DVDPlayer.h:157:23: error: ISO C++ forbids in-class initialization of non-const static member âtypeâ
DVDPlayer.h:158:29: sorry, unimplemented: non-static data member initializers
DVDPlayer.h:158:29: error: ISO C++ forbids in-class initialization of non-const static member âtype_indexâ
DVDPlayer.h:163:46: sorry, unimplemented: non-static data member initializers
DVDPlayer.h:163:46: error: ISO C++ forbids in-class initialization of non-const static member âflagsâ
DVDPlayer.h:164:25: sorry, unimplemented: non-static data member initializers
DVDPlayer.h:164:25: error: ISO C++ forbids in-class initialization of non-const static member âsourceâ
DVDPlayer.h:165:21: sorry, unimplemented: non-static data member initializers
DVDPlayer.h:165:21: error: ISO C++ forbids in-class initialization of non-const static member âidâ
DVDPlayer.h:167:27: sorry, unimplemented: non-static data member initializers
DVDPlayer.h:167:27: error: ISO C++ forbids in-class initialization of non-const static member âchannelsâ
/home/bleh/kodi/xbmc/guilib/GraphicContext.h:296:1: warning: âg_graphicsContextâ defined but not used [-Wunused-variable]
make[1]: *** [DVDPlayer.o] Error 1
make: *** [xbmc/cores/dvdplayer/DVDPlayer.a] Error 2


RE: Headless Kodi - fma965 - 2015-07-17

(2015-07-16, 21:10)pgjensen Wrote:
(2015-07-12, 22:41)fma965 Wrote: I believe this is a working patch for RC2 atleast it worked for me...

https://gist.github.com/Fma965/b01099fd866c133cb257#file-rc2patch-patch

Code:
git clone https://github.com/xbmc/xbmc.git -b Isengard --depth=1
git reset --hard 0aa930b (just to make sure is same commit)
wget https://gist.githubusercontent.com/Fma965/b01099fd866c133cb257/raw/4ad14b38fa79d5eb5341533dad6567c985275c3b/RC2Patch.patch
Code:
git apply --check RC2Patch.patch
git apply RC2Patch.patch
./bootstrap
./configure --prefix=/opt/kodi-server
make -j2
make install


I'm getting an error with that patch. I followed the directions to a tee. After I cloned it, I did cd into the directory which appears correct.


CPP xbmc/cores/dvdplayer/DVDPlayer.o
In file included from DVDPlayer.cpp:22:0:
DVDPlayer.h:157:23: sorry, unimplemented: non-static data member initializers
DVDPlayer.h:157:23: error: ISO C++ forbids in-class initialization of non-const static member âtypeâ
DVDPlayer.h:158:29: sorry, unimplemented: non-static data member initializers
DVDPlayer.h:158:29: error: ISO C++ forbids in-class initialization of non-const static member âtype_indexâ
DVDPlayer.h:163:46: sorry, unimplemented: non-static data member initializers
DVDPlayer.h:163:46: error: ISO C++ forbids in-class initialization of non-const static member âflagsâ
DVDPlayer.h:164:25: sorry, unimplemented: non-static data member initializers
DVDPlayer.h:164:25: error: ISO C++ forbids in-class initialization of non-const static member âsourceâ
DVDPlayer.h:165:21: sorry, unimplemented: non-static data member initializers
DVDPlayer.h:165:21: error: ISO C++ forbids in-class initialization of non-const static member âidâ
DVDPlayer.h:167:27: sorry, unimplemented: non-static data member initializers
DVDPlayer.h:167:27: error: ISO C++ forbids in-class initialization of non-const static member âchannelsâ
/home/bleh/kodi/xbmc/guilib/GraphicContext.h:296:1: warning: âg_graphicsContextâ defined but not used [-Wunused-variable]
make[1]: *** [DVDPlayer.o] Error 1
make: *** [xbmc/cores/dvdplayer/DVDPlayer.a] Error 2

(2015-07-09, 09:29)wsnipex Wrote: yep, same reason ubuntu precise PPA builds are broken, gcc is too old. You need at least gcc 4.7, better 4.8

Please atleast read a few pages back!

If it's not in your current repo's follow this guide
http://ubuntuhandbook.org/index.php/2013/08/install-gcc-4-8-via-ppa-in-ubuntu-12-04-13-04/


Also i would suggest running "git clean -xfd" to make sure your cleaned of all broken built files and non-tracked files.


RE: Headless Kodi - pgjensen - 2015-07-17

(2015-07-17, 09:40)fma965 Wrote:
(2015-07-16, 21:10)pgjensen Wrote:
(2015-07-12, 22:41)fma965 Wrote: I believe this is a working patch for RC2 atleast it worked for me...

https://gist.github.com/Fma965/b01099fd866c133cb257#file-rc2patch-patch

Code:
git clone https://github.com/xbmc/xbmc.git -b Isengard --depth=1
git reset --hard 0aa930b (just to make sure is same commit)
wget https://gist.githubusercontent.com/Fma965/b01099fd866c133cb257/raw/4ad14b38fa79d5eb5341533dad6567c985275c3b/RC2Patch.patch
Code:
git apply --check RC2Patch.patch
git apply RC2Patch.patch
./bootstrap
./configure --prefix=/opt/kodi-server
make -j2
make install


I'm getting an error with that patch. I followed the directions to a tee. After I cloned it, I did cd into the directory which appears correct.


CPP xbmc/cores/dvdplayer/DVDPlayer.o
In file included from DVDPlayer.cpp:22:0:
DVDPlayer.h:157:23: sorry, unimplemented: non-static data member initializers
DVDPlayer.h:157:23: error: ISO C++ forbids in-class initialization of non-const static member âtypeâ
DVDPlayer.h:158:29: sorry, unimplemented: non-static data member initializers
DVDPlayer.h:158:29: error: ISO C++ forbids in-class initialization of non-const static member âtype_indexâ
DVDPlayer.h:163:46: sorry, unimplemented: non-static data member initializers
DVDPlayer.h:163:46: error: ISO C++ forbids in-class initialization of non-const static member âflagsâ
DVDPlayer.h:164:25: sorry, unimplemented: non-static data member initializers
DVDPlayer.h:164:25: error: ISO C++ forbids in-class initialization of non-const static member âsourceâ
DVDPlayer.h:165:21: sorry, unimplemented: non-static data member initializers
DVDPlayer.h:165:21: error: ISO C++ forbids in-class initialization of non-const static member âidâ
DVDPlayer.h:167:27: sorry, unimplemented: non-static data member initializers
DVDPlayer.h:167:27: error: ISO C++ forbids in-class initialization of non-const static member âchannelsâ
/home/bleh/kodi/xbmc/guilib/GraphicContext.h:296:1: warning: âg_graphicsContextâ defined but not used [-Wunused-variable]
make[1]: *** [DVDPlayer.o] Error 1
make: *** [xbmc/cores/dvdplayer/DVDPlayer.a] Error 2

(2015-07-09, 09:29)wsnipex Wrote: yep, same reason ubuntu precise PPA builds are broken, gcc is too old. You need at least gcc 4.7, better 4.8

Please atleast read a few pages back!

If it's not in your current repo's follow this guide
http://ubuntuhandbook.org/index.php/2013/08/install-gcc-4-8-via-ppa-in-ubuntu-12-04-13-04/


Also i would suggest running "git clean -xfd" to make sure your cleaned of all broken built files and non-tracked files.



Thanks, I try to keep up to date on this thread weekly but must have missed that one. Appreciate the help even after I missed it!


RE: Headless Kodi - chirin - 2015-07-18

(2015-07-16, 01:02)celedhrim Wrote: I ran my kodi isengard docker without issues since frist beta.

You can try the image.

https://registry.hub.docker.com/u/celedhrim/kodi-server/

prepare a kodi profile with a standard kodi version and load it with the docker

Take the isengard docker version.

Code:
docker run -d --restart="always" --net=host -v /where/you/store/your/profile:/opt/kodi-server/share/kodi/portable_data celedrim/kodi-server:isengard

FYI, you spelled your docker image name wrong, should be celedhrim/kodi-server:isengard instead of celedrim/kodi-server:isengard


Took me a while to figure out why nothing worked Smile


RE: Headless Kodi - fma965 - 2015-07-22

Just to let you know that my RC2 patch (modified from the RC1 patch) works fine on the final release of 15.0

git clean --hard 2f34a0c (for Final)


RE: Headless Kodi - pgjensen - 2015-07-26

(2015-07-22, 22:54)fma965 Wrote: Just to let you know that my RC2 patch (modified from the RC1 patch) works fine on the final release of 15.0

git clean --hard 2f34a0c (for Final)

git clean won't take --hard as a parameter. all the steps are listed below.

Code:
git clone https://github.com/xbmc/xbmc.git -b Isengard --depth=1
cd xbmc
git reset --hard 2f34a0c
wget https://goo.gl/oVsvol -O Isengard15Final.patch
git apply --check Isengard15Final.patch
git apply Isengard15Final.patch
./bootstrap
./configure --prefix=/opt/kodi-server-15
make -j2
make install



RE: Headless Kodi - fma965 - 2015-07-27

(2015-07-26, 19:13)pgjensen Wrote:
(2015-07-22, 22:54)fma965 Wrote: Just to let you know that my RC2 patch (modified from the RC1 patch) works fine on the final release of 15.0

git clean --hard 2f34a0c (for Final)

git clean won't take --hard as a parameter. all the steps are listed below.

Code:
git clone https://github.com/xbmc/xbmc.git -b Isengard --depth=1
cd xbmc
git reset --hard 2f34a0c
wget https://goo.gl/oVsvol -O Isengard15Final.patch
git apply --check Isengard15Final.patch
git apply Isengard15Final.patch
./bootstrap
./configure --prefix=/opt/kodi-server-15
make -j2
make install
yes i meant git reset my mistake.


RE: Headless Kodi - montana - 2015-08-02

Hello, I posted exactly 1 month ago.

I've been working on the docker version...

I want to install my playercorefactory.xml and an autoexec.py in the userdata section. So When I start the docker, it will autostart a stream and send it in udp. Now I wonder, if the headless kodi, I can install ffmpeg and rtmpdump?

My setup is working on a normal linux box with Kodi Helix. I want to run a docker with the option to start a kodi server with a option I have running the linux box. Just to do the broadcasting.

But to do that I need rtmpdump and ffmpeg.

I tried apt-get install rtmpdump and apt-get install ffmpeg in the docker. And it cannot find the package. I dont want to do apt-get update. I will grow the docker for no reason.

Is what I am trying is going to work? Or the headless kodi is not built to do udp broadcast even If I have my own playercodefactory.xml

Im trying to have a web page setup with an option of a channel, onces you choose a channel, it copy the new autoexec.py to userdata and then start the headless kodi.


RE: Headless Kodi - montana - 2015-08-04

(2015-07-27, 22:19)fma965 Wrote:
(2015-07-26, 19:13)pgjensen Wrote:
(2015-07-22, 22:54)fma965 Wrote: Just to let you know that my RC2 patch (modified from the RC1 patch) works fine on the final release of 15.0

git clean --hard 2f34a0c (for Final)

git clean won't take --hard as a parameter. all the steps are listed below.

Code:
git clone https://github.com/xbmc/xbmc.git -b Isengard --depth=1
cd xbmc
git reset --hard 2f34a0c
wget https://goo.gl/oVsvol -O Isengard15Final.patch
git apply --check Isengard15Final.patch
git apply Isengard15Final.patch
./bootstrap
./configure --prefix=/opt/kodi-server-15
make -j2
make install
yes i meant git reset my mistake.

Im trying to compile trough ssh. Am I am getting on the configure this error...

configure: error: Could not find a required library. Please see the README for your platform.


Im using ubuntu. I dont know where to find the library... Im doing this trough SSH


RE: Headless Kodi - wsnipex - 2015-08-04

make sure you have all build depends from README.linux/ubuntu installed.


RE: Headless Kodi - montana - 2015-08-04

(2015-08-04, 18:38)wsnipex Wrote: make sure you have all build depends from README.linux/ubuntu installed.

Now I installed the complete version of kodi. and it tells me cannot find gui existing...

I downloaded the full version, installed it, then installed few headless version, I am getting compiling on the headless version. Missing library. But I see the library been installed from the full version. What is the right way to do it?