-1

Good morning, I'm trying to run a program automatically When the Raspberry log in and shows the desktop, I'd already run a program following this tutorial: https://www.raspberrypi-spy.co.uk/2015/02/how-to-autorun-a-python-script-on-raspberry-pi-boot/ , but I need internet to execute my program, so I need a real start of the raspberry. How can I do that?

p.s.: I'd already start the raspberry without login, password and the command "startx", what I can't do is run the python3 program automatically.

  • 1
    Why are you asking about an obsolete OS and referencing an even older tutorial which was WRONG even in 2015? – Milliways Nov 8 at 11:37
  • 1
    Milliways, it is not really obsolete (technically it is not even unsupported yet); functionally it is pretty much identical to current Raspbian, but the latter with various tweaks, changes and improvements. While not everybody may have them, there are valid enough reasons for wanting to run an older version of an OS. That being said, if the OP doesn't have a good reason he might as well start by upgrading... – goldilocks Nov 8 at 13:50
  • A linux computer start over different steps the run levels. Earlier versions use the so called init scripts (I believe Jessie is none of them). Some newer linuxes use the systemd mechanism. You can write a script that starts what you want and add it to the run level that is executed after the run level that starts the networking. There are some HowTos in the internet that you can use as a starting point. e.g. debian-administration.org/article/212/… – Peter Paul Kiefer Nov 8 at 17:52
  • Or for systemd distributions: medium.com/@johannes_gehrs/… – Peter Paul Kiefer Nov 8 at 17:55
  • Systemd has been the norm on Raspbian since v.8 (jessie). Whether that's the best way to go depends on what it is the program is supposed to do, which the question of course says nothing about o_O? – goldilocks Nov 8 at 18:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.