- a graphical way to shutdown the computer
2 ways you can go about it, just do it by adding to the menu or via script. any which way make sure you add the "NOPASSWD:" to visudo for the commands.
example:
you ALL=(ALL) NOPASSWD: /sbin/shutdown, /sbin/reboot, /sbin/halt, /sbin/poweroff
menu:
Code:
<Program label="Reboot">exec sudo reboot</Program>
<Program label="Shutdown">exec sudo halt</Program>
<Exit label="Exit-X" confirm="false"/>
script:
Code:
#!/bin/sh
XMESSAGE=$(which gxmessage) || XMESSAGE=xmessage
$XMESSAGE " Logout Selections " -center -buttons "Cancel":1,"Reboot":2,"Shutdown":3,"Exit X":4
case $? in
1) exit 0 ;;
2) sudo reboot ;;
3) sudo halt ;;
4) jwm -exit ;;
esac
- "sudo for x" so that I can run things like synaptics, etc. from the GUI.
sudo apt-get install gksu
then for those programs that need a password use gksudo.
example:
Code:
<Program label="Package Manager">exec gksudo synaptic</Program>
- some sort of graphical network manager, so I can set up the network interface from the GUI (must support wireless).
sudo apt-get install network-manager
add "nm-applet" to your startup.
example:
Code:
<StartupCommand>
nm-applet
</StartupCommand>
Bookmarks