0

I made python code in Raspbian. This code has while loop. For my mistake, I register automatically execute this program whenever raspberry pi is turned on. How can I get out of (escape) from this code? I typed ctrl+c, d, etc.

Do I have to reinstall raspbian? TT...

3
  • 4
    You need to explain how you "register automatically execute this program whenever raspberry pi is turned on", otherwise there's no way to tell you how to undo it.
    – goldilocks
    May 26, 2015 at 17:21
  • 4
    How did you "register [this program to] automatically execute whenever raspberry pi is turned on"? If you show us how you did this, then we can help undoing this setup.
    – Phil B.
    May 26, 2015 at 17:21
  • 2
    @goldilocks jinx!
    – Phil B.
    May 26, 2015 at 17:22

1 Answer 1

1

Regardless of how you made it automatically run on boot you can fix it if you have a Linux PC or a Windows computer with software that can read and write to ext partitions (for example Paragon). Many auto start scripts I have seen have lines in /etc/rc.local. Just comment out the line you added and plug the sd card back in your Pi and reboot.

Or sometimes going to cmdline.txt (no software needed) on any pc and adding init=/bin/sh will bring up a terminal in which you can disable the auto script from within your pi (in my experience this does not work if your auto started program halts the system).

2
  • I guess you mean init=/bin/sh ?
    – mpromonet
    Jun 2, 2015 at 6:44
  • Yup, my bad, I fixed it!
    – NULL
    Jun 2, 2015 at 10:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.