Homepage › Forums › RetroPie Project › New to RetroPie? Start Here! › Ballsed up Kodi on RetroPie: Permission Denied
- This topic has 17 replies, 6 voices, and was last updated 8 years, 11 months ago by coffeeking.
-
AuthorPosts
-
01/12/2016 at 21:15 #113837coffeekingParticipant
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)
01/13/2016 at 01:30 #113857herbfargusMembersudo chown pi:pi home/pi/RetroPie/roms/ports/kodi.sh
01/13/2016 at 09:16 #113877coffeekingParticipantHi
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.
01/13/2016 at 10:05 #113879InsecureSpikeParticipantyup correct
01/13/2016 at 11:58 #113883coffeekingParticipantHi
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?01/13/2016 at 18:16 #113904zerojayParticipant[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
01/13/2016 at 18:24 #113906coffeekingParticipantHi
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?
01/13/2016 at 18:53 #113909herbfargusMemberMy bad:
sudo chown pi:pi /home/pi/RetroPie/roms/ports/kodi.sh
01/13/2016 at 20:11 #113916coffeekingParticipantThanks guys but this isnt helping me I’m afraid.
So I need to confirm EXACTLY what I need to do please?
01/13/2016 at 20:34 #113919labelwhoreParticipantPress 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.
01/14/2016 at 13:08 #113973coffeekingParticipantHi
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?
01/14/2016 at 13:40 #113975OmnijaParticipantYou 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
01/14/2016 at 13:42 #113978coffeekingParticipantYou 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
01/14/2016 at 15:41 #113987coffeekingParticipantOK, 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 denied01/14/2016 at 16:56 #113993herbfargusMemberTry sudo chmod +x kodi.sh
01/14/2016 at 17:48 #114003coffeekingParticipantTry 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?
01/14/2016 at 17:58 #114004herbfargusMemberIf it didn’t give you an error it worked. Type ls -lah kodi.sh and show the results of that.
01/14/2016 at 19:14 #114012coffeekingParticipantHey
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.