I have a small internet cafe with 7-9 Ubuntu 12.04 workstations. Unfortunately, I can't be there every week.
I've seen a Java solution to upgrade the system, after a normal (non-sudo/admin) user requests a shut down (but not restart!) the system upgrades itself - the base system is Ubuntu 10.04 as I remember, but the programs, and the desktop manager is fully customized, with custom softwares (eg. to check the printers' ink level...)
That's why I thought, that if I could set up something similar in our environment, it would be very useful. I've already scripted in Bash, and used Zenity, so I only want to know:
- how can I call/run my script?
- how can I run root commands(sudo required) inside that script? (eg. sudo poweroff or halt)