I've just very recently got my first pi and have meddled around a bit trying a couple of different things like the pi arcade and so on. I love it.
I've currently got Raspbian installed along with wiringpi in order to use the lapsepi timelapse program, in conjunction with the pitft touchscreen. I can run the program fine and it works great but here's where I have run into what is almost certainly a really stupid noob problem.
I am trying to get the pi to boot straight to the lapsepi software since this will be the purpose of this pi (and I'll get another to mess with), and have been following the edits to rc.local specified here:
This is to add in these two lines, prior to the end of the rc.local file:
The problem I get though is that when attempting to boot up, I get an error "Can't cd to /home/pi/lapsepitouch" and I cannot find the correct way to resolve this. I assume this will be some sort of user/permissions issue but I don't understand quite what. I'm afraid I'm very new to Linux and trying to learn terminal etc but have a long way to go.
Code: Select all
cd /home/pi/LapsePiTouch python lapse.py
I did try as an alternative to forget about the cd command, and instead to specify the absolute path when launching lapse.py script. This almost worked as it tried to, but then fails as the code of the script is I think referring to folders/directories that it would be expecting to find, assuming the current directory had been changed. I'd rather not have to try and find every such reference in the script and attempt to adjust them all, when I'm sure I must be overlooking something basic for why the cd command isn't working?
Would really appreciate a point in the right direction if someone could be so kind please?
Many thanks indeed!