Monthly Archive for December, 2011

Shutdown, Reboot, Suspend or Hibernate with user priviliges via D-Bus

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 :)

Handball

People would take the Olympics a lot more seriously if they didn’t include handball. They’re just throwing a ball to each other like a bunch of kids. It’s just stupid.

And if you win, how do you look, say, the marathon gold medalist in the eye?…

Handball Gold Medalist: What did you get your gold for?
Marathon Gold Medalist: I ran 42 kilometers in extreme heat.
Handball Gold Medalist: Great. I threw a ball back and forth for a bit with someone about two feet away from me. Then I had a bath.
Marathon Gold Medalist: Big twat.

 

(c) Is It Just Me Or Is Everything Shit? (Steve Lowe & Alan McArthur)

Same shit would be with frisbee, if it gets included into Olympics :)




Hosted by EOMY.NET