Skip to content
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

Will it also run on Raspberry Pi 4 ? #37

Open
wdklotz opened this issue Jan 19, 2021 · 18 comments
Open

Will it also run on Raspberry Pi 4 ? #37

wdklotz opened this issue Jan 19, 2021 · 18 comments

Comments

@wdklotz
Copy link

wdklotz commented Jan 19, 2021

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

Will it also run on Raspberry Pi 4 ?

@mviereck
Copy link

mviereck commented Jan 19, 2021

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

@gsantner
Copy link

gsantner commented Jan 19, 2021

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.

@wdklotz
Copy link
Author

wdklotz commented Jan 20, 2021

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.

@rimago
Copy link

rimago commented Jan 28, 2021

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.

@ngpsherwood
Copy link

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

@rimago
Copy link

rimago commented Feb 2, 2021

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?

@wdklotz
Copy link
Author

wdklotz commented Feb 2, 2021 via email

@rimago
Copy link

rimago commented Feb 2, 2021

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

@ngpsherwood
Copy link

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

@wdklotz
Copy link
Author

wdklotz commented Feb 3, 2021

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?

@rimago
Copy link

rimago commented Feb 3, 2021

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
Copy link

rimago commented Feb 3, 2021

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)

@ngpsherwood
Copy link

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

@rimago
Copy link

rimago commented Feb 3, 2021

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

@ngpsherwood
Copy link

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

@rimago
Copy link

rimago commented Feb 3, 2021

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>

@ngpsherwood
Copy link

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

@rimago
Copy link

rimago commented Feb 4, 2021

I am happy to hear that :-)

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants