Skip to main content

Thread: 12.04 desktop shutdown icon


anyone got code icon on desktop no ask
shutdown quick....???

well, make shell script shut down. create launcher run shell script. if don't want asking sudo password, hardcode script, that's not smart thing if don't trust has access computer. if want that, open gedit, enter following code, save somewhere, , make file executable. when open script, choose run terminal.

code:
#!/bin/bash echo "password" | sudo -s shutdown -h now
where "password" sudo password, leaving in quotes. can create launcher script, , shut computer down immediately. if want safer , don't mind entering password each time, change 2nd line
code:
sudo shutdown -h now
there ways edit sudoers run script in root without requiring password, that's beyond me.


Forum The Ubuntu Forum Community Ubuntu Official Flavours Support New to Ubuntu [ubuntu] 12.04 desktop shutdown icon


Ubuntu

Comments

Popular posts from this blog

Thread: gpg: Conflicting Commands

Adobe Acrobat Pro , Terminal Server Use

when i try using AE CC 3d camera tracker after the first step it says "Analysis solve failed." help?