"shutdown -h now" powers off and reboots (also KDE

Started by orca, 2013/08/11, 04:44:17

Previous topic - Next topic

farinet

In the fluxbox menu i've now 3 shortcuts using gksu and all work!

SUSPEND:
gksu "qterminal -e pm-suspend"&exit
REBOOT:
gksu "qterminal --execute reboot"
SHUTDOWN:
gksu "qterminal --execute halt"

PS. May be it's an overkill to ask for pswd to go to suspend; but practically it can be done too or by closing the lid or by (default for the HP Pavilion) keyboard shortcut (FN+F5).

michaa7

Thanks for sharing this with us.

But for all those shortcuts to work you need to issue the *root* password. Shutdown/reboot with acpid does not require a p/w.
Ok, you can't code, but you still might be able to write a bug report for Debian's sake

farinet

True, and i'll look closer to the acpid scripts in the near future. Generally, i don't mind to have to put in pswd for shutdown or reboot in a prospective of security

farinet

Oh, since i'd problems with an installation the firestarter nox (graphics completely distorted) i studied a bit the manual. And what did i find? :shock:

Under the title: siduction-*.iso - Live Mode root password there is written:

To set a (temporary) root-password

Open a console/ shell:

siduction@0[siduction]$ sudo passwd
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
siduction@0[siduction]$


;) ;)

piper

Quote from: "farinet"Oh, since i'd problems with an installation the firestarter nox (graphics completely distorted) i studied a bit the manual. And what did i find? :shock:

Under the title: siduction-*.iso - Live Mode root password there is written:

To set a (temporary) root-password

Open a console/ shell:

siduction@0[siduction]$ sudo passwd
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
siduction@0[siduction]$


;) ;)

Which was already mentioned in this thread on page 1
Quote from: "piper"I have been building for a long time now and have yet to see sudo work out of the box on a clean install (live cd does not count)

Even in live mode, I still don't/won't use sudo
I have a Lucky Rabbit:    "Svoot" ..... (It's Swedish)

I am MAGA