<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Bootup on Arshad Siddiqui</title><link>https://arshadhs.github.io/tags/bootup/</link><description>Recent content in Bootup on Arshad Siddiqui</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Mon, 16 Dec 2013 22:45:00 +0000</lastBuildDate><atom:link href="https://arshadhs.github.io/tags/bootup/index.xml" rel="self" type="application/rss+xml"/><item><title>Bootup Script</title><link>https://arshadhs.github.io/docs/technology/bootupraspberrypi/</link><pubDate>Mon, 16 Dec 2013 22:45:00 +0000</pubDate><guid>https://arshadhs.github.io/docs/technology/bootupraspberrypi/</guid><description>&lt;h1 id="bootup-script-setup">
 Bootup script Setup
 
 &lt;a class="anchor" href="#bootup-script-setup">#&lt;/a>
 
&lt;/h1>
&lt;p>Edit Python script, add as first line -&lt;/p>
&lt;pre tabindex="0">&lt;code>#!/usr/bin/python
&lt;/code>&lt;/pre>&lt;p>Change permissions -&lt;/p>
&lt;pre tabindex="0">&lt;code>chmod 755 raspiLapseCam.py
&lt;/code>&lt;/pre>&lt;p>That means you can execute it by typing &lt;code>raspiLapseCam.py&lt;/code> rather than &lt;code>python raspiLapseCam.py&lt;/code>&lt;/p>
&lt;p>Then we can use an /etc/init.d script to get it started when the system boots.&lt;/p>
&lt;p>Start by copying /etc/init.d/skeleton to /etc/init.d/timelapse -&lt;/p>
&lt;pre tabindex="0">&lt;code>cd /etc/init.d &amp;amp;&amp;amp; sudo cp skeleton timelapse
&lt;/code>&lt;/pre>&lt;p>edit /etc/init.d/timelapse, change lines 23 &amp;amp; 24 to refer to the command &amp;lsquo;/home/pi/raspiLapseCam.py&amp;rsquo; -&lt;/p>
&lt;pre tabindex="0">&lt;code>DESC=&amp;#34;Raspberry Pi TimeLapse&amp;#34;
DAEMON=/home/pi/raspiLapseCam.py
&lt;/code>&lt;/pre>&lt;p>Make it executable -&lt;/p></description></item></channel></rss>