A foot in the door for more unpaid work?<div><br></div><div>OTTOMH:</div><div><br></div><div>Your user is publicuser. Store your skeleton in /usr/local/etc/publicuser. </div><div><br></div><div>In rc.local or whatever Mint calls it:</div>
<div><br></div><div>rm -rf /home/publicuser</div><div>(cd /usr/local/etc &amp;&amp; tar -cf - publicuser) | (cd /home &amp;&amp; tar -xf -)</div>
<div><br></div><div>In the skeleton&#39;s .bashrc</div><div><br></div><div>echo &quot;reboot&quot; | at now + 30 minutes</div><div><br></div><div>I&#39;d hate to be around when someone is typing an email at T+00:30:01 though. Maybe a few minutes googling for &quot;linux kiosk&quot; will find a far more elegant solution. Not sure if you chose Mint because you like it or you have a particular need, but there appear to be some custom distributions or packages made for this exact purpose.</div>

<div><br></div><div>This also assumes the user can reboot the computer from the command line. It works in Red Hat/Fedora.</div><div><br></div><div>Sean</div><div><br><div class="gmail_quote">On Mon, Dec 7, 2009 at 11:33 AM, Mike Pfaiffer <span dir="ltr">&lt;<a href="mailto:high.res.mike@gmail.com" target="_blank">high.res.mike@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">        The CLL is setting up a public access machine in the next couple of<br>
weeks. It is installed with Mint 8 (a multimedia Ubuntu fork). I would<br>
like to set up a couple of init scripts. The first will delete the<br>
public account home directory and copy a &quot;clean&quot; version in its place<br>
each time the computer starts. The second will shut down the computer<br>
after half an hour of use.<br>
<br>
        I haven&#39;t touched on cron since university 20 years ago and I&#39;ve never<br>
written an init script. Having written a few shell scripts I know the<br>
copy script should be very simple. I&#39;m not sure how to set up the timer<br>
script or make them run on start up. Would anybody be able to fire off<br>
some quick directions?<br>
<br>
        This may be a &quot;foot in the door&quot; situation.<br>
<br>
                                Later<br>
                                Mike<br>
_______________________________________________<br>
Roundtable mailing list<br>
<a href="mailto:Roundtable@muug.mb.ca" target="_blank">Roundtable@muug.mb.ca</a><br>
<a href="http://www.muug.mb.ca/mailman/listinfo/roundtable" target="_blank">http://www.muug.mb.ca/mailman/listinfo/roundtable</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Sean Walberg &lt;<a href="mailto:sean@ertw.com" target="_blank">sean@ertw.com</a>&gt;    <a href="http://ertw.com/" target="_blank">http://ertw.com/</a><br>
</div>