Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question about start-up #5

Open
ProfileNameIsOk opened this issue May 8, 2023 · 1 comment
Open

Question about start-up #5

ProfileNameIsOk opened this issue May 8, 2023 · 1 comment

Comments

@ProfileNameIsOk
Copy link

I was wondering if there was a good method to run the command /home/pi/DaVinci/DaVinci.py on startup. i tried using the command:

sudo chrontab -e

this was so I could go to the bottom of the file to add "@reboot python3 /home/pi/DaVinci/DaVinci.py &" so that it can run on startup. However upon rebooting the file nothing happens and I have to start the python script manually. Is there a good method to start the script automatically upon booting the pi?

@DevMiser
Copy link
Owner

Here is a suggested way to do so from another user:
Modify the .bashrc file so that it will handle the audio startup correctly. sudo nano /home/pi/.bashrc, and add python3 /home/pi/DaVinci/[DaVinci.py] to the end of the .bashrc file, save, exit and also go into raspi-config and change the boot option, select automatic login, so that it will be logged in as the pi user. Now it boots up and starts DaVinci.py as you would from the command line with no issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants