- Save your program which has to be execute in boot time at home/pi
- Go to terminal box and enter the command
sudo nano /etc/rc.local
- Enter the program name using following command. Be sure to leave the line exit 0 at the end,
sudo python /home/pi/your_program_name.py
For example
- To save and exit by pressing Ctrl+X, " Y", ENTER
- Test it out. In the terminal type sudo reboot press"Enter"
No comments:
Post a Comment