GreenPhantom
Posts: 39
Joined: Mon Aug 12, 2013 1:57 pm
Location: Kent

Help smoothing out my experience

Sun Oct 18, 2015 5:05 pm

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

gordon77
Posts: 4072
Joined: Sun Aug 05, 2012 3:12 pm

Re: Help smoothing out my experience

Sun Oct 18, 2015 5:37 pm

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.

ThomasS
Posts: 118
Joined: Thu Jan 23, 2014 7:05 pm
Location: Leeds
Contact: Website

Re: Help smoothing out my experience

Sun Oct 18, 2015 7:34 pm

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.
ThomasS

Return to “Beginners”