run python script on startup raspberry pi
sudo crontab -e
#Use text editor
#Add a line: @reboot sudo python3 <your-path-to-the-script.py>
run python script on startup raspberry pi
sudo crontab -e
#Use text editor
#Add a line: @reboot sudo python3 <your-path-to-the-script.py>
raspbian run a python script at startup
// Open the terminal with Ctrl+Alt+T
// Go to this directory: /etc/hgd/autostart using the cd command.
// Make a file with a .desktop extension using: sudo nano myFile.desktop
// Inside the myFile.desktop write the following:
[Desktop Entry]
Encoding=UTF-8
Type=Application
Name=ChooseAName
Exec=/usr/bin/python3 /home/pi/myPyhthonName.py
X-GNOME-Autostart-enabled=true
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us