consolekit is evil

Download this article as an e-bookDownload this article as an e-book

… and hates me

I should really tell you about the DLD seminar three weeks ago, or the PARANOIA security conference, or even just that Adobe should be considered harmful but things have been crazy and between this and electromagnetism I haven’t had the mind space. After the 6th of december, I promise I’l come back with pictures and relations and maybe even sounds (I have notes, don’t worry I’ll remember).

On the other hand here’s a nasty hack to kill console-kit-daemon, which has a really nasty way of polluting the PID-space… and annoys me enough to warrant a public humiliation as well. What does it do, and why? Who cares what it does, it’s doing it poorly enough to catch attention to itself! So here’s how to kill it:

root@wasp:/usr/sbin# dpkg -S console-kit-daemon
consolekit: /usr/sbin/console-kit-daemon

DON’T try to purge the package because that’s just one end of a really big ugly yarn of unneccessary dependency pain that I’d like to spare you…

DON’T try to replace /usr/sbin/console-kit-daemon with your own stub… turns out dbus autostarts this “service”, and that approach will make dbus block your (ssh) session when you log in… not forever, but that’s even more annoying than the pid pollution.

Instead, debian bug #544147 and #544483 clewed me in to the following hack:

cp /usr/share/dbus-1/system-services/org.freedesktop.ConsoleKit.service \
  /usr/local/share/dbus-1/system-services/
echo Exec=/bin/false >> /usr/local/share/dbus-1/system-services/org.freedesktop.ConsoleKit.service

which is a two-liner, and would have been less ugly and easier to debug if it hadn’t been for the fine hubris of the freedesktop dudes…

Download this article as an e-bookDownload this article as an e-book

Tags: , , , , , , ,

6 Responses to “consolekit is evil”

  1. David-Sarah Hopwood says:

    “DON’T try to purge the package because that’s just one end of a really big ugly yarn of unneccessary dependency pain that I’d like to spare you…”

    Thanks :-)

  2. wario says:

    I hate ConsoleKit, but I fear that disabling it could create problems with, say, Network Manager, sessions, etc. Oh well, I’ll have to try and see if after using your hack I can use my desktop normally or if I have to learn to live with these useless “services”.

  3. kacper says:

    yea, but it is unclear to me that ConsoleKit is needed by the average desktop user:
    http://lists.freedesktop.org/archives/hal/2007-January/006996.html

    am not a big fan of Network Manager either… I use wicd to get the job done.

  4. ren says:

    Unfortunately on my notebook this hack makes Gnome 3 hang (mouse pointer becomes a “X” and no menu/panel/desktop is displayed). Maybe it’s because i’m using network manager, anyway it’s frustrating. I don’t need user switching or concurrent users, why do i have to keep freedesktop’s junk on my system?

  5. kirby says:

    Console kit has been a thorn in my side since I first saw it running. Thanks!

  6. [...] and windy road that broke the camels back. Pulseaudio assumes you are running systemd, and talks to console-kit-daemon which is surely one of Satan’s most trusted advisers and a harbinger of the [...]

Leave a Reply