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:

<item label="Restart">
    <action name="Execute"> 
       <prompt>Are you sure you want to Restart?</prompt> 
       <command>sudo shutdown -r now</command>
  </item>  <item label="Shutdown">
    <action name="Execute">
    <prompt>Are you sure you want to Shutdown?</prompt> 
       <execute>sudo shutdown -h now</execute>
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.

My visudo file looks like this:
# User privilege specification
%shutdown ALL=(root)NOPASSWD: /sbin/reboot
%shutdown ALL=(root)NOPASSWD: /sbin/halt
%shutdown ALL=(root)NOPASSWD: /sbin/shutdown

%admin ALL=(ALL)ALL
%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
Any help anyone could give me would be appreciated.

Chris Adams.