[RndTbl] Public access machine
Robert Keizer
robert at cluenet.org
Mon Dec 7 12:12:06 CST 2009
Mike Pfaiffer wrote:
> The CLL is setting up a public access machine in the next couple of
> weeks. It is installed with Mint 8 (a multimedia Ubuntu fork). I would
> like to set up a couple of init scripts. The first will delete the
> public account home directory and copy a "clean" version in its place
> each time the computer starts. The second will shut down the computer
> after half an hour of use.
>
> I haven't touched on cron since university 20 years ago and I've never
> written an init script. Having written a few shell scripts I know the
> copy script should be very simple. I'm not sure how to set up the timer
> script or make them run on start up. Would anybody be able to fire off
> some quick directions?
>
> This may be a "foot in the door" situation.
>
> Later
> Mike
> _______________________________________________
> Roundtable mailing list
> Roundtable at muug.mb.ca
> http://www.muug.mb.ca/mailman/listinfo/roundtable
>
A simple addition to root's crontab should allow you to reboot the
machine every 30 minutes without any problem. You could also give the
user a warning message if you wanted to with notify-send .. see
http://www.linuxjournal.com/content/tech-tip-get-notifications-your-scripts-notify-send
for reference.. or the september issue of LJ :)
All the best,
Robert Keizer
More information about the Roundtable
mailing list