Posts by apeg

    *** UPDATE, found the answer for power, but it looks like the mouse-lock functionality may be built into the remote.

    autostart.sh

    systemd-inhibit --what=handle-power-key sleep 1000d &

    ***

    I just picked up one of these remote for my Coreelec box but i am unable to remap two of the buttons.

    Top left "Power" button and 2nd row down center; "Mouse lock"

    going back to the old IR days i would;

    1. SSH, irw; and see what code these buttons used

    2. Reference that code in the LIRCD.conf

    3. make the appropriate change in /storage/.kodi/userdata/keymaps/remote.xml

    Its the IRW step that im missing because i cant figure out what keypress the buttons are sending? I overwrite "POWER" to be "back" because i let my box run when not in use. But with POWER mapped the top left button still shuts down the box?

    What command would the "Mouse lock" button use? Thanks for any pointers. s-l1600.jpg

    My fault vpeter, originally CvH and i were talking about the v102 and i didn't even notice the v104 increment.

    Heck i even copied and pasted your link not even noticing it was 104.

    Either way, thanks again for the help, and thanks for releasing v104! did the trick perfectly.

    Well, turns out i was close...

    service.web.lamp-8.2.104-Odroid_C2.aarch64.zip

    Just noticed that version was put up... and that did the trick perfectly!

    Thanks to whoever put that up, the least i can do is donate some beer money for the help... was that you vpeter or CvH?

    this is where my lack of knowledge starts to shine through. A while back I did compile a few builds for my odroid, but this was pre libreeleec and openelec. (and very guided)

    I can’t figure out why none of these builds will install. From the UI kodi doesn’t even acknowledge I attempted to install. I select the zip file and… nothing.

    The lamp addon does significantly more than I need, I don’t even need the latest version of PHP… just basic functionality, is there no other avenue I could explore?

    Thanks again for the help so far

    Your right, the E->e doesn't seems to effect the result at this point. But the absolute path does.

    either way its still giving me to the same end error.

    I just tried both the packages on fresh images and i cant get them to install:

    service.web.lamp-8.1.102-rpi2.arm.zip

    service.web.lamp-8.2.104-odroid_c2.aarch64.zip

    i've also tried via command line and same result... or rather, no results

    Code
    kodi-send -a "InstallAddon(service.web.lamp)"

    Would trying to compile my own php binary be less/more work than attempting to troubleshoot the lamp install?

    all i really need is basic php support.

    Thanks!

    I'll try it this evening, but i have tried:

    service.web.lamp-8.1.102-Odroid_C2.arm.Raybuntu

    i had to edit:

    /storage/.kodi/addons/http://service.web.lamp/bin/httpd.start

    Original:

    Code
    LOCPATH=$ADDON_DIR/lib/locale exec $ADDON_DIR/bin/httpd -d "$ADDON_HOME/srvroot" -f "$ADDON_HOME/srvroot/conf/httpd.conf" -E $ADDON_HOME/httpd.log -e info

    Change:

    Code
    LOCPATH=$ADDON_DIR/lib/locale exec httpd -d "$ADDON_HOME/srvroot" -f "$ADDON_HOME/srvroot/conf/httpd.conf" -e $ADDON_HOME/httpd.log -e info

    *notice the httpd absolute path change along with the -E -> -e option

    following i then disabled mySQL (i dont need it) but when i try and start the httpd service i get the following error:

    Code
    ● httpd.service - Apache Httpd Server
       Loaded: loaded (/storage/.kodi/addons/service.web.lamp/system.d/httpd.service; enabled; vendor preset: disabled)
       Active: activating (auto-restart) (Result: resources) since Thu 2018-04-19 18:54:27 UTC; 1s ago
      Process: 30937 ExecStart=/bin/sh -c exec sh /storage/.kodi/addons/service.web.lamp/bin/httpd.start (code=exited, status=0/SUCCESS)
    
    Apr 19 18:54:27 LibreELEC systemd[1]: Failed to start Apache Httpd Server.
    Apr 19 18:54:27 LibreELEC systemd[1]: httpd.service: Unit entered failed state.
    Apr 19 18:54:27 LibreELEC systemd[1]: httpd.service: Failed with result 'resources'.

    Unfortunately this is as close as I've got.

    Unrelated to my media setup i'm seeing if i can use my odroid c2 boxes running Libreelec for a small side project of mine.

    This is where my limited knowledge is made apparent; I just need the equivalent of a hello world script to run on my odroid.

    I attempted to follow some dated forum posts for the LAMP addon and although I got close was never able to get a php server fully working. LAMP addon - Linux, Apache, MySQL PHP bundle

    The last posts of the thread suggest using docker, but im having even less success with that (i can muck around, but am no expert)

    is there a simple way to get a basic php server running on libreleec? i dont need SQL, i dont need the latest version of PHP... just a basic instance.

    Im running

    LibreELEC (official): 8.2.5 (Odroid_C2.aarch64)

    Thanks!