A simple gui wrapper to restart/shutdown the system. It's usefull for a windows manager like OpenBox that doesn't have that functionality. It uses python & tkinter.
#apt-get install python-tk
User need to be enough privilegies to shutdown/reboot the machine:
Create a new group:
sudo groupadd power
Adding your user to the group power:
sudo usermod -a -G power yourusername
Allow members of group power to shutdown without a password:
sudo visudo # Allow members of group sudo to execute any command %sudo ALL=(ALL:ALL) ALL # Allow members of group power to shutdown (or reboot) system %power ALL = NOPASSWD: /sbin/shutdown
It is necessary re-login to the changes take effect.
pyshutdown.py [-h] [-l] -h Show usage -l Enable logging archive in /var/tmp/
Pyshutdown detects the current user's language and the appropiate strings are showed. At this moment only english, spanish and german are supported.
Images from Mazenl77
|Original Image||Image on pyshutdown|
|EZ Restart Icon||restart_48.png restart_64.png restart_128.png|
|EZ Screen Saver Icon||continue_48.png continue_64.png continue_128.png|
|EZ Stand By Icon||shutdown_48.png shutdown_64.png shutdown_64.png|