Viewing 18 posts - 1 through 18 (of 18 total)
  • Author
    Posts
  • coffeeking
    Participant
    Post count: 12

    The error message I’m aways getting now when I try to access Kodi is

    home/pi/retropie/roms/ports/kodi.sh: permission denied

    Here’s what I did:

    Installed Kodi (As a channel in Ports section of RetroPie) by following this YouTube tutorial by the great Floob

    It was all working fine but it would never shut down properly and kept hanging so this link was advised to fix it

    https://github.com/RetroPie/RetroPie-Setup/wiki/KODI

    I have my Pi connected up to my network, so using Finder on my Mac I went into the raspberry pi folder

    /roms/ports/kodi.sh

    And changed the text in the file kodi.sh from

    #!/bin/bash
    “/opt/retropie/supplementary/runcommand/runcommand.sh” 0 SYS kodi

    to

    #!/bin/bash

    LOG_FILE=$HOME/.kodi/temp/kodi.log

    rm $LOG_FILE 2> /dev/null

    /usr/lib/kodi/kodi.bin –standalone &

    while [[ ! -f $LOG_FILE ]] ; do
    sleep 1s
    done

    while read line ; do
    if [[ ${line} =~ “application stopped” ]] ; then
    echo “Killing kodi”
    break
    fi
    done < <(tail –pid=$$ -f -n0 $LOG_FILE)

    killall kodi.bin

    fbset -depth 8 && fbset -depth 16

    I then hit save and a prompt came up that I ignored and said OK to (Could have been something about permissions)

    I then went back to my Pi to the Ports folder in RetroPie and I now have two KODI options in there

    One is “kodi” as normal, one is “_kodi”

    Neither of these work and give me the error
    home/pi/retropie/roms/ports/kodi.sh: permission denied

    Can anyone advise how to fix this please? I am VERY new to the raspberry pi and messing with anything like this. (I do know better to back up first before doing anything like this though, but on this occasion I didnt)

    herbfargus
    Member
    Post count: 1858

    sudo chown pi:pi home/pi/RetroPie/roms/ports/kodi.sh

    coffeeking
    Participant
    Post count: 12

    Hi
    Thanks for the response.
    I’m sorry but I dont know what you mean?
    Do I just need to type that into the system and it will fix it yeah?

    Apologies for my dumbness.

    InsecureSpike
    Participant
    Post count: 571

    yup correct

    coffeeking
    Participant
    Post count: 12

    Hi
    I must be doing something wrong herre as I’m getting the following message:

    chown: cannot access ‘sudo chown pi:pi home/pi/RetroPie/roms/ports/kodi.sh’: No such file or directory

    So I’m hitting F4 to get out of RetroPie/Emulation Station

    Then Im presented with Uptime/Memory/Running Processes/IP Address/Temperature in red

    then

    pi@retropie ~$

    in green

    So I’m typing it in after this.

    Is this NOT where I should be typing it in?
    Can anyone advise in laymans terms what I need to do please?

    zerojay
    Participant
    Post count: 173

    [quote=113857]sudo chown pi:pi home/pi/RetroPie/roms/ports/kodi.sh

    [/quote]

    This isn’t going to work unless he is currently in the / directory. So either cd / first before typing it in or use the following:

    sudo chown pi:pi /home/pi/RetroPie/roms/ports/kodi.sh

    coffeeking
    Participant
    Post count: 12

    Hi
    So to confirm after pressing F4 to get out of the emulator I need to type

    cd /

    then hit return
    then type the below line in its entirety

    sudo chown pi:pi /home/pi/RetroPie/roms/ports/kodi.sh

    then hit return?

    herbfargus
    Member
    Post count: 1858

    My bad:
    sudo chown pi:pi /home/pi/RetroPie/roms/ports/kodi.sh

    coffeeking
    Participant
    Post count: 12

    Thanks guys but this isnt helping me I’m afraid.

    So I need to confirm EXACTLY what I need to do please?

    labelwhore
    Participant
    Post count: 526

    Press F4
    hit another buttton to keep Es from relaunching
    type: cd /home/pi/RetroPie/roms/ports
    hit enter
    type: sudo chown pi:pi kodi.sh
    hit enter

    To explain what’s going on here:

    ‘cd /home/pi/RetroPie/roms/ports’ get you into the directory where kodi.sh resides

    ‘sudo’ gives the user you are currently logged in with root permissions, which we need to run the chown command.

    ‘chown’ is the command to change ownership of a file, in this case kodi.sh.

    ‘pi:pi’ refers to the pi user.

    coffeeking
    Participant
    Post count: 12

    Hi
    I’m afraid still cannot get this to work. Here’s what happens

    I type

    cd /home/pi/RetroPie/roms/ports

    hit return

    fine but then when I then type
    sudo chown pi:pi kodi.sh

    Its says
    chown: cannot access ‘kodi.sh: No such file or directory

    (Screen image below)
    http://prntscr.com/9pynex

    But when I look for that file in Mac Finder its there
    (Image below)

    http://prntscr.com/9pyno0

    Can anyone help any further please?

    Omnija
    Participant
    Post count: 155

    You could use your w/e file explorer and right click on it, click properties to check the permissions manually add (pi) to group and make sure X is checked.

    Side Note : linux is strict(case sensetive) and that look like a capital K, try

    sudo chown pi:pi Kodi.sh

    coffeeking
    Participant
    Post count: 12

    You could use your w/e file explorer and right click on it, click properties to check the permissions manually add (pi) to group and make sure X is checked.

    Side Note : linux is strict(case sensetive) and that look like a capital K, try Kodi.sh

    Sorry but I’m going to need a laymans terms / step by step of this please

    coffeeking
    Participant
    Post count: 12

    OK, getting a bit further here now, but its still not working

    I type

    cd /home/pi/RetroPie/roms/ports

    hit return

    and I’m presented with
    pi@retropie ~/RetroPie/roms/ports $

    I then type
    sudo chown pi:pi Kodi.sh

    With a capital K on Kodi, hit return

    And all that comes up is
    pi@retropie ~/RetroPie/roms/ports $
    (Same as above before)

    What do I do now?
    Having done that I tried rebooting, and running Kodi in Ports still says Permission denied

    herbfargus
    Member
    Post count: 1858

    Try sudo chmod +x kodi.sh

    coffeeking
    Participant
    Post count: 12

    Try sudo chmod +x kodi.sh

    Tried it, got no further
    Here’s the results
    http://prntscr.com/9q231a

    Am I supposed to get some prompt telling me its worked?

    herbfargus
    Member
    Post count: 1858

    If it didn’t give you an error it worked. Type ls -lah kodi.sh and show the results of that.

    coffeeking
    Participant
    Post count: 12

    Hey
    sudo chmod +x Kodi.sh

    (With a capital K) looks like it worked. All running again now, so many, many thanks.

    (When it first ran it went into serious low def, but on reboot now its fine again)

Viewing 18 posts - 1 through 18 (of 18 total)
  • The forum ‘New to RetroPie? Start Here!’ is closed to new topics and replies.