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 - steve1977 - 2015-09-16

(2015-08-12, 18:50)candyman2000 Wrote: Hi

I recently installed Sparklyballs Docker Helix Headless: https://hub.docker.com/r/sparklyballs/headless-kodi-helix/ on my Synology NAS.

The container is created and I can connect ok to the web server on (mapped) port 8080.

However I don't seem to be able to see any of my content via the web server, should this be the case?

I've copied my standard sources.xml to the container userdata folder but this doesn't seem to have done anything.

Can someone confirm if I should be able to browse my media from the web browser as per normal. If so, then is there anything special that needs to be done to define sources in the headless build?

Thanks


I am in the same position. Kodi and MariaDB works very well. I can access the web server, but cannot see the content (but don't really care about it).

However (much worse), I still have not managed to access the UPNP server. The actual purpose of me installing Helix docker is to run it as UPNP server. Now, this functionality is the only thing that I cannot get to work. Can anyone confirm that this is working with Sparklyball's Helix docker? I have other Kodi clients acting as UPNP server without issues.

Any thoughts appreciated!


RE: Headless Kodi - steve1977 - 2015-09-18

Anyone any success to get UPNP server running on Sparklyball's headless Isendgard / mariadb docker?


RE: Headless Kodi - vajonam - 2015-09-20

@topfs_2 how come this still hasn't made it into the mainline. I think we have futzing around w/ this since 12.x


RE: Headless Kodi - topfs2 - 2015-09-21

(2015-09-20, 12:37)vajonam Wrote: @topfs_2 how come this still hasn't made it into the mainline. I think we have futzing around w/ this since 12.x

Because I have closed all my PRs and have no energy to pursuing it? The patches are highly unlikely to be accepted as is and the patches I tried to split out in good chunks didn't get the platform support they needed. Basically much of the needed patches will be in the dangerous area of changing a lot and in high risk of lots of politics, bikeshedding and so on, which is fine because its high risk - high reward stuff but I don't find it fun.

EDIT: I would also like to add that I do not own a NAS so I have very little personal use for it, I mostly tried to make it headless as I think Kodi _should_ be able to run headless. Which adds to my inability to muster the PR process on this Smile

If anyone wants to take it over they are free to do so, all the code still sits in my fork.


RE: Headless Kodi - montana - 2015-09-22

Hello,

I've made my own Kodi running without a screen. Now I notice when I start Kodi, it checks 2 times 4 times if theres a sound device or something. Is there a way to remove this is slows down kodi for 30 sec.

01:13:31 T:123419441440704 ERROR: PulseAudio: Failed to connect context
01:13:31 T:123419441440704 NOTICE: PulseAudio might not be running. Context was not created.
01:13:31 T:123418974881536 NOTICE: Thread FDEventMonitor start, auto delete: false
01:13:31 T:123419441440704 NOTICE: CAESinkOSS::EnumerateDevicesEx - No OSS mixer device present: /dev/mixer
01:13:31 T:123419441440704 NOTICE: No Devices found - retry: 4
01:13:33 T:123419441440704 ERROR: PulseAudio: Failed to connect context
01:13:33 T:123419441440704 NOTICE: PulseAudio might not be running. Context was not created.
01:13:33 T:123419441440704 NOTICE: CAESinkOSS::EnumerateDevicesEx - No OSS mixer device present: /dev/mixer
01:13:33 T:123419441440704 NOTICE: No Devices found - retry: 3
01:13:34 T:123419441440704 ERROR: PulseAudio: Failed to connect context
01:13:34 T:123419441440704 NOTICE: PulseAudio might not be running. Context was not created.
01:13:34 T:123419441440704 NOTICE: CAESinkOSS::EnumerateDevicesEx - No OSS mixer device present: /dev/mixer
01:13:34 T:123419441440704 NOTICE: No Devices found - retry: 2
01:13:36 T:123419441440704 ERROR: PulseAudio: Failed to connect context
01:13:36 T:123419441440704 NOTICE: PulseAudio might not be running. Context was not created.
01:13:36 T:123419441440704 NOTICE: CAESinkOSS::EnumerateDevicesEx - No OSS mixer device present: /dev/mixer
01:13:36 T:123419441440704 NOTICE: No Devices found - retry: 1


It happens twice.... What the way to remove this?


RE: Headless Kodi - natethomas - 2015-09-24

(2015-09-21, 11:27)topfs2 Wrote:
(2015-09-20, 12:37)vajonam Wrote: @topfs_2 how come this still hasn't made it into the mainline. I think we have futzing around w/ this since 12.x

Because I have closed all my PRs and have no energy to pursuing it? The patches are highly unlikely to be accepted as is and the patches I tried to split out in good chunks didn't get the platform support they needed. Basically much of the needed patches will be in the dangerous area of changing a lot and in high risk of lots of politics, bikeshedding and so on, which is fine because its high risk - high reward stuff but I don't find it fun.

EDIT: I would also like to add that I do not own a NAS so I have very little personal use for it, I mostly tried to make it headless as I think Kodi _should_ be able to run headless. Which adds to my inability to muster the PR process on this Smile

If anyone wants to take it over they are free to do so, all the code still sits in my fork.

As a follow up to this, getting stuff PRed into Kodi, when it touches all sorts of things, is pretty difficult and really only gets the attention it deserves when either a lot of people are pushing for it, or the numerous devs necessary across platforms get together behind it. (The downside of an all volunteer dev team, I suppose.) My guess is that this will become far easier to push in once montellese's Media Importing project is done and in. At that point, more devs and users will see the value of having a headless kodi server sitting somewhere acting as the main source for imported media, and will push to make it happen.

That's just a guess though.


RE: Headless Kodi - rap777 - 2015-09-24

(2015-09-24, 02:21)natethomas Wrote:
(2015-09-21, 11:27)topfs2 Wrote:
(2015-09-20, 12:37)vajonam Wrote: @topfs_2 how come this still hasn't made it into the mainline. I think we have futzing around w/ this since 12.x

Because I have closed all my PRs and have no energy to pursuing it? The patches are highly unlikely to be accepted as is and the patches I tried to split out in good chunks didn't get the platform support they needed. Basically much of the needed patches will be in the dangerous area of changing a lot and in high risk of lots of politics, bikeshedding and so on, which is fine because its high risk - high reward stuff but I don't find it fun.

EDIT: I would also like to add that I do not own a NAS so I have very little personal use for it, I mostly tried to make it headless as I think Kodi _should_ be able to run headless. Which adds to my inability to muster the PR process on this Smile

If anyone wants to take it over they are free to do so, all the code still sits in my fork.

As a follow up to this, getting stuff PRed into Kodi, when it touches all sorts of things, is pretty difficult and really only gets the attention it deserves when either a lot of people are pushing for it, or the numerous devs necessary across platforms get together behind it. (The downside of an all volunteer dev team, I suppose.) My guess is that this will become far easier to push in once montellese's Media Importing project is done and in. At that point, more devs and users will see the value of having a headless kodi server sitting somewhere acting as the main source for imported media, and will push to make it happen.

That's just a guess though.


I would like to help "pushing". I have a Freenas Server and I am running emby.....almost perfect but the idea of having a native kodi on the server sounds appealing

Thanks
Alfred


RE: Headless Kodi - topfs2 - 2015-09-24

(2015-09-24, 02:57)rap777 Wrote: I would like to help "pushing". I have a Freenas Server and I am running emby.....almost perfect but the idea of having a native kodi on the server sounds appealing

Thanks, what nate was talking about is mostly dev push though Smile I think this thread in general shows its a wanted feature.

(2015-09-24, 02:21)natethomas Wrote: As a follow up to this, getting stuff PRed into Kodi, when it touches all sorts of things, is pretty difficult and really only gets the attention it deserves when either a lot of people are pushing for it, or the numerous devs necessary across platforms get together behind it. (The downside of an all volunteer dev team, I suppose.) My guess is that this will become far easier to push in once montellese's Media Importing project is done and in. At that point, more devs and users will see the value of having a headless kodi server sitting somewhere acting as the main source for imported media, and will push to make it happen.

That's just a guess though.

Honestly I think thats the problem. Headless touches so much underlying code, which is not sexy in any way. So unless people actually wants headless (and devs on all platforms) it won't get done Smile

Linux and OS X are very similar, but there is noone for windows which is interested. But perhaps it will get an upswing when Sascha gets his media importing in. But sadly that PR kindof has the same problem, it touches a crapload and very few will help out with it I suspect.


RE: Headless Kodi - rap777 - 2015-09-24

(2015-09-24, 09:50)topfs2 Wrote:
(2015-09-24, 02:57)rap777 Wrote: I would like to help "pushing". I have a Freenas Server and I am running emby.....almost perfect but the idea of having a native kodi on the server sounds appealing

Thanks, what nate was talking about is mostly dev push though Smile I think this thread in general shows its a wanted feature.

(2015-09-24, 02:21)natethomas Wrote: As a follow up to this, getting stuff PRed into Kodi, when it touches all sorts of things, is pretty difficult and really only gets the attention it deserves when either a lot of people are pushing for it, or the numerous devs necessary across platforms get together behind it. (The downside of an all volunteer dev team, I suppose.) My guess is that this will become far easier to push in once montellese's Media Importing project is done and in. At that point, more devs and users will see the value of having a headless kodi server sitting somewhere acting as the main source for imported media, and will push to make it happen.

That's just a guess though.

Honestly I think thats the problem. Headless touches so much underlying code, which is not sexy in any way. So unless people actually wants headless (and devs on all platforms) it won't get done Smile

Linux and OS X are very similar, but there is noone for windows which is interested. But perhaps it will get an upswing when Sascha gets his media importing in. But sadly that PR kindof has the same problem, it touches a crapload and very few will help out with it I suspect.


I can not even begin to comprehend whats involved in this. I definitely meant to say "push the idea" not you.
Thank you for even explaining how involved this actually is and thank you for making a start...

Regards

Alfred


RE: Headless Kodi - FernetMenta - 2015-10-19

FYI:
I started to separate the render thread which is also a major step towards headless: http://forum.kodi.tv/showthread.php?tid=240870


RE: Headless Kodi - topfs2 - 2015-10-21

(2015-10-19, 18:16)FernetMenta Wrote: FYI:
I started to separate the render thread which is also a major step towards headless: http://forum.kodi.tv/showthread.php?tid=240870

Really awesome to hear! I'll try to adapt the patches to this when it hits master.

That along with the appmessenger rewrite we are actually getting there. One of the patches needed for headless was blocked because of our usage of window messenger, which we now probably could move away from much more easily.

Now we mostly need a windows dev to take on the appparser stuff I started on Linux Smile


RE: Headless Kodi - natethomas - 2015-10-21

I'd imagine @afedchin or @Paxxi would be willing to look at the code when it's in a state ready to be moved over to Windows.


RE: Headless Kodi - pgjensen - 2015-10-21

For 15.2 Final:

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



RE: Headless Kodi - tom_nuke - 2015-11-09

Thank you for this!!

(2015-10-21, 19:41)pgjensen Wrote: For 15.2 Final:

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

Totally new to this process. I decided to try this as my rpi kodi server is just not reliable. (OpenElec)

I spun up an Ubuntu server VM (14.03 LTS), followed the wiki on installing dependencies for compiling Kodi from source, then followed the quoted steps. Worked like a champ.

I did run into an issue when starting Kodi, though. By default the webserver is set to disabled. When I would modify the guisettings.xml file to enable and set a password, it gets overwritten. I worked around this by changing the settings.xml file, but I don't feel thats a good workaround. Did I miss something? Or is that how this patched version works?

Thanks to everyone for all the great advice in this thread!


RE: Headless Kodi - Saidou - 2015-11-17

Hi all,


I'm new to Docker and running it on my Synology DS412+, but some things are still not clear to me...

I was able to install the image "sparklyballs/headless-kodi-helix". I'm able to open the web server (with my custom assigned ports)

Image

Like you can see nothing is shown, because I didn't configure anything yet.
My question now how I can configure it and where do I have to put my userdata...

If anyone could help me?

Thanks!