Hello, I have RPi-4 with latest 64bit Bookworm OS (full), X11 desktop.
I manged to do all necessary things to run main.py manually.
First step was to create file StartMain.sh in the same folder where main.py is located.StartMain.shIn terminal I can manually start my app like belowSo, the question is how to start main.py automatically at restart of the RPi-4?
With best regards, Vlado
I manged to do all necessary things to run main.py manually.
First step was to create file StartMain.sh in the same folder where main.py is located.
Code:
sudo nano /home/vlado/Project/StartMain.shCode:
#!/bin/bashcd /home/vlado/Projectsource env/bin/activatepython main.pyCode:
vlado@raspberry:~ $ cd Projectvlado@raspberry:~/Project $ sudo chmod +x StartMain.shvlado@raspberry:~/Project $ ./StartMain.sh startWith best regards, Vlado
Statistics: Posted by California — Sat May 03, 2025 3:42 pm