Re: How Do I Setup Dbus & Hal on Fedora?
- From: "John (J5) Palmieri" <johnp redhat com>
- To: Raul Acevedo <raul cantara com>
- Cc: garnome-list gnome org, billg <billg f-m fm>
- Subject: Re: How Do I Setup Dbus & Hal on Fedora?
- Date: Mon, 20 Sep 2004 10:55:29 -0400
On Sun, 2004-09-19 at 14:34 -0700, Raul Acevedo wrote:
> I'm having problems running the daemon... if as root I type:
>
> $GARNOME/bin/dbus-daemon-1 --system
>
> It forks right away, but then the process apparently dies because a ps
> ax | grep -i bus doesn't show anything. I don't see any errors logged
> anywhere. I can't put it in gdb because the process always forks right
> away. Thoughts?
Usually this is due to not having the correct user setup. Default for
D-BUS is to run as the messagebus user. On Fedora we use the dbus user
for historical reasons. I had that backwards in my previous post,
sorry. So for non Fedora users make sure there is a messagebus user and
put that in the <user></user> tag. For Fedora put dbus there. If you
wish to debug DBUS simply take the <fork/> tag out of the configuration
file. You might want to add a --fork flag in your init.d script because
if you reboot with the fork tag taken out it will block when it loads
the dbus daemon on bootup.
> Raul
>
> On Sun, 2004-09-19 at 09:46 -0400, John (J5) Palmieri wrote:
> > On Sun, 2004-09-19 at 06:51, billg wrote:
> > > I've built 2.8.0 on a Fedora Core 2 machine. All seems well. The top
> > > panel wasn't populated by default, but that's easy enough to fix.
> > >
> > > Questions, though, about dbus and hal: The build complained about a
> > > missing hald, so I built bootstrap/hal, which also built dbus. How do I
> > > configure dbus and hal? Hald doesn't appear to be running. How do I
> > > ensure that Garnome's dbus is used rather than Fedora's?
> >
> > First thing to do on Fedora is go into the <garnome
> > prefix>/etc/dbus-1/system.conf file and change the user from dbus to
> > messagebus. Next you need to stop the current dbus
> > "/etc/rc.d/init.d/messagebus stop" and start the other one "<garnome
> > prefix>/etc/rc.d/init.d/messagebus start". After that start hal
> > "<garnome prefix>/etc/rc.d/init.d/haldaemon start". Make sure you do
> > all this as root. That should get you up and running. If you want dbus
> > and hal to start every time just symlink their init scripts to
> > /etc/rc.d/init.d/ and add hal to your runlevel.
> >
> > Note that FC3 will ship with Gnome 2.8 and the latest releases of dbus
> > and hal.
> >
> > --
> > J5
> >
>
--
John (J5) Palmieri
Associate Software Engineer
Desktop Group
Red Hat, Inc.
Blog: http://martianrock.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]