docker-kodi icon indicating copy to clipboard operation
docker-kodi copied to clipboard

Will it also run on Raspberry Pi 4 ?

Open wdklotz opened this issue 4 years ago • 18 comments

This image should work on any Linux distribution with a functional Docker installation.

Will it also run on Raspberry Pi 4 ?

wdklotz avatar Jan 19 '21 16:01 wdklotz

You'll likely have to build the image yourself on the RasPi, so it will be based on arm architecture instead of amd64.

mviereck avatar Jan 19 '21 18:01 mviereck

you really should ask yourself if you need to run such a power hungry application that requires all acceleration it can get ... through containerization on a quite low end machine (compared to a PC).

You only get good performance with a optimized Pi & Pi driver specific build.

gsantner avatar Jan 19 '21 18:01 gsantner

Well you are right! I solved my problem by instralling KODI as X11 client on my desktop, i.e. KODI and and Desktop use the same Xserver. I found the neccessary information from here.

wdklotz avatar Jan 20 '21 13:01 wdklotz

Hey, I have created a fork and modified it to run on Raspberry Pi 4 without x11docker. It is not fully tested, but you can have a look at: rimago/rpi-kodi

Unfortunately it still requires the --privileged flag. I am open for suggestions on how to remove that.

rimago avatar Jan 28 '21 19:01 rimago

Hello rimago I test it on my raspberry pi with docker and not working

It's a log if you want fix it

https://pastebin.pl/view/06716247

ngpsherwood avatar Feb 01 '21 19:02 ngpsherwood

Hey, thank you for providing the logfile. It seems to be a permission problem with the home directory? Did you add the kodi user to your host and make him as the owner of the home directory you mount in the container?

rimago avatar Feb 02 '21 16:02 rimago

A humble question: How do you 'docker run ....' the image? WDK

Am Di., 2. Feb. 2021 um 17:10 Uhr schrieb rimago [email protected]:

Hey, thank you for providing the logfile. It seems to be a permission problem with the home directory? Did you add the kodi user to your host and make him as the owner of the home directory you mount in the container?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ehough/docker-kodi/issues/37#issuecomment-771747493, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAE7W2F3GPCOXLHFSDFLYHTS5APXZANCNFSM4WJBNZFQ .

wdklotz avatar Feb 02 '21 16:02 wdklotz

You can find an example docker-compose.yml in the Readme of the Git-Repository: https://github.com/rimago/rpi-kodi

rimago avatar Feb 02 '21 18:02 rimago

Hello I did and it's some thing keep errors like post log

ngpsherwood avatar Feb 02 '21 23:02 ngpsherwood

Hi. I started the container with 'docker-compose up' like told with docker-compose.yml. I see the gui kodi screen. But the container (host is rasberry pi 4) does not react on my mouse, therefore there is no way to control the kodi container. Any hint available?

wdklotz avatar Feb 03 '21 09:02 wdklotz

Good point. I have not attached a keyboard or mouse to my raspberry. I am controlling kodi with the web-interface and the Android app (Kore). I guess if you want to use your mouse and keyboard you have to map these devices somehow into the container (extend the devices in the docker-compose.yml).

rimago avatar Feb 03 '21 09:02 rimago

Btw. this issue is now splitting up into two different topics. It might be useful if you could create separate issues (permission problem and no mouse/keyboard) in the fork: https://github.com/rimago/rpi-kodi

@ngpsherwood : could you provide me your docker-compose.yml and the output of the following command: ls -al /home/pi/kodi/home (if this is the home directory you want to use)

rimago avatar Feb 03 '21 10:02 rimago

Log say drwxr-xr-x 2 pi kodi 4069 drwxr-xr-x 3 pi pi 4069

ngpsherwood avatar Feb 03 '21 15:02 ngpsherwood

Ok, it seems the user pi is still the owner. Try to change this with the following command: sudo chown -R kodi:kodi /home/pi/kodi/home

rimago avatar Feb 03 '21 15:02 rimago

I done it with 755 and what is password for ssh kodi because I want enable to kore

ngpsherwood avatar Feb 03 '21 16:02 ngpsherwood

You don't need ssh. You can start a bash in the container with the following command: docker exec -it kodi /bin/bash

However, to enable the webserver for Kore you do not have to do this in the container. As you have the home-directory on your host system you could create there the advancedsettings.xml

For example. I have on my host-system:

pi@raspberrypi:~/kodi/home/.kodi/userdata $ cat advancedsettings.xml 
<advancedsettings>
    <services>
        <esallinterfaces>true</esallinterfaces>
        <webserver>true</webserver>
        <zeroconf>true</zeroconf>
    </services>
</advancedsettings>

rimago avatar Feb 03 '21 16:02 rimago

Hey all working fine and kore app Thanks you and can you enable issue tab on you github for any issue 😊

ngpsherwood avatar Feb 04 '21 01:02 ngpsherwood

I am happy to hear that :-)

I enabled the issues and also the discussion. Thank you for the hint ;-)

rimago avatar Feb 04 '21 08:02 rimago