jrleeman / PiBooth

Raspberry Pi Photo Booth
9 stars 2 forks source link

/etc/inittab file missing #10

Open hermantherock opened 7 years ago

hermantherock commented 7 years ago

Following the instructions from Nuts and Volts : I entered sudo nano /etc/inittab and the editor did open up, but it was a blank file with [ New File ] showing at the bottom of editor.

I looked in the /etc folder and did not see a inittab file.

I was able to skip that step and move on to edit the profile file with sudo nano /etc/profile without issue, adding the command from the article made the photobooth program start up automatically on power up.

Using Raspbian Stretch, currently . I also recall not finding the file on the Jessie version either, and I never added the command to the profile file at that time so I had to start the photobooth with the terminal every time.

jrleeman commented 7 years ago

Ah - looks likeinittab was part of sysvinit which was replaced with systemd in Jessie and above. Your solution appears to be the best way to do this on the newer OS's. Should be noted in the README or similar now.

Solution reference: https://www.raspberrypi-spy.co.uk/2015/02/how-to-autorun-a-python-script-on-raspberry-pi-boot/