-
AuthorPosts
-
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 kodito
#!/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
donewhile 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 deniedCan 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)
sudo chown pi:pi home/pi/RetroPie/roms/ports/kodi.sh
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.
yup correct
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?[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
Hi
So to confirm after pressing F4 to get out of the emulator I need to typecd /
then hit return
then type the below line in its entiretysudo chown pi:pi /home/pi/RetroPie/roms/ports/kodi.sh
then hit return?
My bad:
sudo chown pi:pi /home/pi/RetroPie/roms/ports/kodi.sh
Thanks guys but this isnt helping me I’m afraid.
So I need to confirm EXACTLY what I need to do please?
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 enterTo 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.
Hi
I’m afraid still cannot get this to work. Here’s what happensI type
cd /home/pi/RetroPie/roms/ports
hit return
fine but then when I then type
sudo chown pi:pi kodi.shIts says
chown: cannot access ‘kodi.sh: No such file or directory(Screen image below)
http://prntscr.com/9pynexBut when I look for that file in Mac Finder its there
(Image below)Can anyone help any further please?
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
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
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.shWith 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 deniedTry sudo chmod +x kodi.sh
Try sudo chmod +x kodi.sh
Tried it, got no further
Here’s the results
http://prntscr.com/9q231aAm I supposed to get some prompt telling me its worked?
If it didn’t give you an error it worked. Type ls -lah kodi.sh and show the results of that.
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)
-
AuthorPosts
- The forum ‘New to RetroPie? Start Here!’ is closed to new topics and replies.