Sunday, March 26, 2017

Autostart python program at boot time in raspberry pi

 

  1.  Save your program which has to be execute  in boot time at   home/pi 
  2. Go to terminal box and enter the command 
     
    sudo nano /etc/rc.local
     
  3. 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  
    
    https://32414320wji53mwwch1u68ce-wpengine.netdna-ssl.com/wp-content/uploads/2014/11/test1.png
  4.   To save and exit by pressing Ctrl+X, " Y", ENTER
  5.  Test it out. In the terminal type           sudo reboot     press"Enter"
    
 

No comments:

Post a Comment