


In order to have a command or program run when the Pi boots, you can add commands to the rc.local file. The first method to run a program on your Raspberry Pi at startup is to use the file rc.local.

In the /home/pi directory, open a file for editing: sudo nano sample.pyĪnd enter the following code and save it (press CTRL+X and enter Y ). To learn more about how to get the Raspberry Pi speak, we have a tutorial here. If you do not have the Espeak package installed, run the following in terminal to install: sudo apt-get install espeak This sample program will use the Espeak package to make the Raspberry pi speak “Welcome to the world of Robots”. You can use any program that you want to run at boot for this tutorial we are using a sample python program which will speak at the startup of Raspberry Pi. The five methods that are available to run a program at boot are: In this tutorial we show you five ways you can run a program on your Raspberry Pi at startup. Run a Program On Your Raspberry Pi At Startup
