Linked Questions

5
votes
5answers
4k views

How to start a python script at boot [duplicate]

What I tried: crontab -e creating a desktop entry at /home/pi/.config/autostart edit /etc/rc.local My python script: import os from gpiozero import Button from time import sleep from pynput....
1
vote
5answers
19k views

Python run script in new console on startup [duplicate]

I try to start a python program (for accessing the camera, but that is irrelevant) every time the raspberry pi boots. The tutorials I read said one should add the corresponding command in /etc/rc....
0
votes
1answer
1k views

Running python script on power up [duplicate]

I have a python file that I would like my Raspberry Pi 3 B to run, the instant that I plug the power cable in. I dont want to have to log in or connect a computer to it before the file starts running. ...
0
votes
1answer
747 views

Running a python simple script at startup/boot [duplicate]

Can anyone please help me to run a simple python script at start up? (for eg. let the script print hello) please explain me step by step,,,starting from basic steps! I tried many examples using ...
0
votes
1answer
88 views

Automatically run Pelican on system boot [duplicate]

I have a Raspberry PI running Raspbian. I use Apache to host my web site. I use Pelican to generate the site content. I can log in to my PI via SSH, navigate to the directory where the source ...
0
votes
0answers
68 views

How to auto start a script in Raspbian [duplicate]

Hi I am trying to autostart a python script . I have edited the rc.local file to add the file location before exit 0.. sudo python /home/pi/myscript.py & The myscript.py has executable ...
2
votes
1answer
2k views

pygame.mixer sound not playing when script run from command line

For the project I'm working on I have a python script that accepts some serial input and plays sounds depending on the input. I have the script set up and it works just fine when I run it from within ...
0
votes
2answers
601 views

Automatic shortcut execution on boot

I want to achieve following: run my GUI (made in Tkinter interface) application automatically as I boot the RPi (i.e. no desktop screen loading). But I want to be able kill the application so I can ...
-2
votes
2answers
597 views

Autostart a program at boot up?

I want to autostart a Python script that starts a Tkinter GUI at boot up. The working terminal command to start the script is python3 /home/pi/Documents/slincam/slincam_menu.py. I added this command ...