Some distros don’t allow you to
shutdown -r now
from terminal without superuser password.
Shutdown/Reboot/Suspend/Hibernate with user priviliges in Linux is possible via D-Bus. You just need consolekit
and upower
packages installed.
Here are the commands:
Operation | D-Bus command |
---|---|
Suspend | dbus-send --print-reply --system --dest=org.freedesktop.UPower /org/freedesktop/UPower org.freedesktop.UPower.Suspend |
Hibernate | dbus-send --print-reply --system --dest=org.freedesktop.UPower /org/freedesktop/UPower org.freedesktop.UPower.Hibernate |
Reboot | dbus-send --system --print-reply --dest=org.freedesktop.ConsoleKit /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.Restart |
Shutdown | dbus-send --system --print-reply --dest=org.freedesktop.ConsoleKit /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.Stop |
Just paste them in your beloved terminal emulator and press enter
see here for the best best wall clocks anywhere
http://printing-machines.digiprintlab.com/ – We provide best printing machines on the market. Our cheap printing machines were manufactured for you by best companies in the world. Our printing company online has huge experience in offset printing and digital printing. Also we can provide printing offset machines for our customers. We are the best print web site on the market and we can offer best prices on our printing equipment.