
Editamos el menu de Fluxbox:
gedit .fluxbox/menu
Y añadimos las líneas de apagado:
[exec] (Reboot) {gksudo -a -m "Enter Password To Reboot Computer" "shutdown -r now"}
[exec] (Standby) {gksudo -a -m "Enter Password To Standby Computer" "/etc/acpi/sleep.sh"}
[exec] (Hibernate) {gksudo -a -m "Enter Password To Sleep Computer" "/etc/acpi/hibernate.sh"}
[exec] (Shutdown) {gksudo -a -m "Enter Password To Shutdwon Computer" "shutdown -h now"}
Ahora damos privilegios para permitir el apagado, editando el archivo /etc/sudoers
sudo gedit /etc/sudoers
Y añadiendo la siguiente línea:
tu_usuario ALL=NOPASSWD: ALL
0 comentarios:
Publicar un comentario