-
Notifications
You must be signed in to change notification settings - Fork 379
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question: running kodi with detachable output as system service #215
Comments
I am happy to help, and this is the right place for questions.
This sounds like you basically got what you want, but some issues remain. Can you explain further what has been wrong?
That might be a bit tricky, but should work. Is the monitor always attached to the server?
What exactly do you want to achieve? If it is only an autostart of x11docker on boot, I would just create a regular script setting up x11docker and xpra server, and run it from
[Edit:] You can store it as
I am not entirely sure if I understand right. However, I see one problem:
Edit: a general recommendation: If you encounter issues with xpra, install xpra from www.xpra.org. The distribution packages are often out of date and have heir own issues. |
I'm trying different containers atm to see which one would be appropriate for my needs. |
Have a look at https://github.com/ehough/docker-kodi |
I just found an interesting systemd unit example at ehough/docker-kodi#29:
|
Hi, sorry for not reporting back... I gave up :-) My idea of starting kodi with an xpra instance that one is able to connect to if wanted didn't work well. Don't know, maybe my knowledge and experience with creating docker containers is lacking the needed expertise or/and kodi is just a diva... :-) Nevertheless, if there's someone who is liking my idea of either solution (a container running kodi with a detachable head or a headless kodi with snapcast server), I'm willing to take it further... |
Thanks for reporting back! If you want to give it another try, you could show me what you did and tell me what fails. Maybe I would have an idea. |
In regards to running kodi-headless, I took linuxserver/kodi-headless as a base, installed pulseaudio in the container and changed the build instructions to enable pulseaudio for kodi. So my idea was to setup kodi-headless in the container, provide a "virtual" audio-out within kodi is able to find and connect that to a snapcast-server, so it's only one or 2 ports more to open for snapcast, no fiddling around with pulseaudio from the host and being able to setup s snapcast-client on the host or somewhere else... |
Ah, just found this one: |
To resume: Just to clarify :-) A) has the advantage of easier configuration as there's a head available, if needed, even throughout the local network |
https://github.com/ehough/docker-kodi is known to work well with ALSA and/or pulseaudio. If you have issues with xpra, use the latest version from www.xpra.org. The xpra packages shipped with the distributions can have issues. Edit: |
Closing due to inactivity. |
Hi, I've got a question and am misusing the issues on that, hope you don't mind!
Atm I've got a docker running a kodi headless for serving as centralized kodi to sync the library and to serve as main instance for yatse on a headless server. So far so good.
What I'm trying to achieve now is to have kodi running with "suspended" head (like with xpra) from a docker container started on system startup without the need to be logged in. So it mainly is like I have it now.
Right now I'm not able to get audio output and configuration of kodi is tricky as there is no UI, but only config files and web-ui.
So if I would use x11docker (tested it with xpra) I get sound and am able to attach and detach the "head" from localhost or via ssh.
That setup was a little unstable and xpra doesn't clean up nicely if quit (port already in use). I used your xpra via ssh example from the wiki.
So now my question:
What would the best way to realize such a setup?
Guess xpra or nxagent are the way to go or are there other/better solutions?
The server is able to provide gpu acceleration (i965), so it would be nice to render the head in hardware.
What would a systemd unit would look like?
As my server has got a monitor now...
If that kind of setup would work, I have the central kodi instance for maintenance starting on system startup, just like the headless docker is now, but with attacheable UI if I log in on the desktop, am able to play audio on the server from a remote app like yatse without the need to be logged in and it would only need a xpra client for to have the UI on every PC via ssh.
Any tips on a setup like this would be awesome!
The text was updated successfully, but these errors were encountered: