I've recently installed Ubuntu's mini.iso with Openbox and Simple Login Manager, on an Acer Aspire One netbook. I want to be able to shutdown and restart from the Openbox menu, but I can't get it to work. There are a number of threads with solutions here on the Ubuntu Forums, but none of them has worked for me.
Here is the XML I have in my 'menu.rc' file:
In place of the command 'sudo shutdown -h now', I have used 'sudo /sbin/shutdown -h now', 'sudo /sbin/halt', 'gksu shutdown -h now', 'x-terminal-emulator -t sudo shutdown -h now', and even 'x-terminal-emulator -t shutdown -h now'. Nothing works.
<prompt>Are you sure you want to Restart?</prompt>
<command>sudo shutdown -r now</command>
</item> <item label="Shutdown">
<prompt>Are you sure you want to Shutdown?</prompt>
<execute>sudo shutdown -h now</execute>
My visudo file looks like this:
Any help anyone could give me would be appreciated.
# User privilege specification
root ALL=(ALL:ALL) ALL
%shutdown ALL=(root)NOPASSWD: /sbin/reboot
%shutdown ALL=(root)NOPASSWD: /sbin/halt
%shutdown ALL=(root)NOPASSWD: /sbin/shutdown
%admin ALL=NOPASSWD: /sbin/reboot, /sbin/halt, /sbin/shutdown
# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL
# Allow members of group sudo to execute any command
%sudo ALL=(ALL:ALL) ALL