Auto Run Python Program on Raspberry Pi4 Startup using Battery (Power Bank)
We'll learn how to Auto Run Python Program on Startup. In the end, we'll Power-up Raspberry Pi using Power Bank to automate running python script on boot. We can learn how stand alone product run python program. So we don't need to use terminal and run python script manually.
How to run a python script on Raspberry Pi Boot (4-STEP PROCESS)
sudo raspi-config
Select “Boot Options” then “Desktop/CLI” then “Console Autologin”
In the command prompt or in a terminal window type:
sudo nano /etc/profile
Scroll to the bottom and add the following line
sudo python /home/pi/brightness.py &
where “/home/pi/brightness.py” is the path to your script.
Type “Ctrl+X” to exit, then “Y” to save followed by “Enter” twice.
sudo reboot
Видео Auto Run Python Program on Raspberry Pi4 Startup using Battery (Power Bank) канала BINARYUPDATES
How to run a python script on Raspberry Pi Boot (4-STEP PROCESS)
sudo raspi-config
Select “Boot Options” then “Desktop/CLI” then “Console Autologin”
In the command prompt or in a terminal window type:
sudo nano /etc/profile
Scroll to the bottom and add the following line
sudo python /home/pi/brightness.py &
where “/home/pi/brightness.py” is the path to your script.
Type “Ctrl+X” to exit, then “Y” to save followed by “Enter” twice.
sudo reboot
Видео Auto Run Python Program on Raspberry Pi4 Startup using Battery (Power Bank) канала BINARYUPDATES
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
Embedded System Design CareerPlus CourseMicrocontroller Masterclass Course- To Become a ProfessionalAVR Fuse Bits Example: Setting Clock SourceAmazon SNS and DynamoDB in AWS Cloud- Email Notification and DatabaseWhy learn PCB Design with Top 4- ReasonsLearn Basics of Electricity and Solids- Part IIILearn how a Breadboard works and How to use It?Setup Install Cygnus IDE for PlutoX DroneEagle PCB Design: Setup and InstallationLearn Basics of Electronic Circuit- Part IVComputer Vision with the Raspberry Pi4- OpenCV and Tesseract OCRSWITCH TO LPC2148 ARM7 MICROCONTROLLERControl LCD with Arduino: Build Cool ProjectsLearn Basics of Electricity and Electronics Part-IISolve Failed to fetch archives- Raspberry Pi4 Update and Upgrade ErrorRaspberry Pi4 Masterclass Course Build Real Live Use CasesRFID Reader RYRR10S with Arduino TutorialRoles and responsibilities of an Embedded Systems EngineerTop-10 Industries for Embedded Systems Engineer- Job OpportunitiesLoRa Module with Arduino- REYAX RYLR998 TutorialSTM32F4 Nucleo Board Introduction- Learn and Explore