D-BUS: DBUS and Mad scientists… – 2004 Style

Posted by in Software

TL;DR: This post is about an experience I had in 2004 and it’s part of my consolidating technical posts I wrote in time. It may or may not be relevant to today’s technologies.

For the last while I was poking around with the glorious D-BUS… As it’s always the case with new cutting edge technology, it’s done by one or more very good, brilliant one might say (posh british accent here) people. I always have this image of “mad scientist” associated with that :).

DBUS is great, is monumental, but it took me 2 weeks to make the darn thing work with suse (stand-alone I mean). So I’m writing a tiny bit of a tutorial to show what you need to make DBUS work on SuSE:

Install

Install Guru’s dbus stuff, then add a file: /etc/rc.d/dbus:

More services

Some more services need to be allowed… In /etc/dbus-1/system.d add a file named “netapplet.conf”:

Run

To start dbus run /etc/rc.d/dbus start. If you don’t see a green “done”, then something is wrong.

NOTE: this will start the system bus!!!! one should be VERY restrictive with this.

Programming

To demo the dbuss process, I created 2 programs in python, using the dbus and gtk bindings.

The server

The server program is designed to be actually a provider (i.e. generate objects and send them via dbus).

The client

The client is designed to consume such objects.

Run them and WATCH DA MAGIC!!!!

Original post is here.

HTH,


A little experiment: If you find this post and ad below useful, please check the ad out :-)