Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

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>
Comment

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

Comment

PREVIOUS NEXT
Code Example
Python :: python else 
Python :: how to slice string in python 
Python :: how to convert one dimensional array into two dimensional array 
Python :: drop null values in dataframe 
Python :: python xgboost 
Python :: python sort a list by a custom order 
Python :: discord.py 
Python :: function to measure intersection over union 
Python :: python string: immutable string 
Python :: python code for twitter scraping using tweepy 
Python :: django model queries 
Python :: decoding 
Python :: how to open chrome console in selenium webdriver 
Python :: pass multiple arguments to map function python 
Python :: python iterate through list 
Python :: Dependency on app with no migrations: 
Python :: python one sample t-test 
Python :: code optimization in python 
Python :: flask_jinja structure 
Python :: python iterate over instances of class 
Python :: why is there a lot of numbers in python 
Python :: pyglet on button press 
Python :: read text file python path open 
Python :: add border to table in python pptx 
Python :: bash: line 1: templates/addtask.html: No such file or directory in flask app 
Python :: tqb separator csv 
Python :: Kernel Ridge et Hyperparameter cross validation sklearn 
Shell :: ubuntu audio restart 
Shell :: ubuntu uninstall redis 
Shell :: remove proxy git 
ADD CONTENT
Topic
Content
Source link
Name
5+4 =