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 && tar -cf - publicuser) | (cd /home && tar -xf -)</div>
<div><br></div><div>In the skeleton's .bashrc</div><div><br></div><div>echo "reboot" | at now + 30 minutes</div><div><br></div><div>I'd hate to be around when someone is typing an email at T+00:30:01 though. Maybe a few minutes googling for "linux kiosk" 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"><<a href="mailto:high.res.mike@gmail.com" target="_blank">high.res.mike@gmail.com</a>></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 "clean" 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't touched on cron since university 20 years ago and I've never<br>
written an init script. Having written a few shell scripts I know the<br>
copy script should be very simple. I'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 "foot in the door" 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 <<a href="mailto:sean@ertw.com" target="_blank">sean@ertw.com</a>> <a href="http://ertw.com/" target="_blank">http://ertw.com/</a><br>
</div>