Page 1 of 1

Help smoothing out my experience

Posted: Sun Oct 18, 2015 5:05 pm
by GreenPhantom
I'm using the Pi as a camera for a blind spot. Would like a little help for the whole setting up to me more streamlined.

1. Is there a way I can have the Pi run a command as soon as it boots without any input. Example: Running a "raspivid" command for a display.

2. Easiest way to shutdown? I'd like an option if I could tap one key or something. Or better yet, if there was a hardware option, for a button to be clicked to active the "Sudo halt command"

Any help would be much appreciated

Re: Help smoothing out my experience

Posted: Sun Oct 18, 2015 5:37 pm
by gordon77
Not exactly what you want, unless you need to record the video, but might help you..
viewtopic.php?f=41&t=111605&p=778276#p778276

Uses a button to shutdown and looking through the thread should help you run it at boot.

Re: Help smoothing out my experience

Posted: Sun Oct 18, 2015 7:34 pm
by ThomasS
To run a command on startup or on login look at the first answer here.

To shutdown using the GPIO pins and a simple pushbutton see here.