You are not logged in.

#1 2008-12-30 23:47:54

viga
Member
Registered: 2007-06-12
Posts: 112

Trying to get dbus to work

I have been trying to set up my printer.

How can I get dbus to work.  I get an error and it does not start.

I have read a previous post that recomend doing the following:


# usr/sbin/groupadd -g 81 dbus
# usr/sbin/useradd -c 'System message bus' -u 81 -g dbus -d '/' -s /bin/false dbus# usr/sbin/groupadd -g 81 dbus
# usr/sbin/useradd -c 'System message bus' -u 81 -g dbus -d '/' -s /bin/false dbus

but it gives me command not found.

Thanks for any help


but

Offline

#2 2008-12-31 04:54:56

SamC
Member
From: Calgary
Registered: 2008-05-13
Posts: 611
Website

Re: Trying to get dbus to work

Could you perhaps post the error?

Offline

#3 2008-12-31 06:07:46

viga
Member
Registered: 2007-06-12
Posts: 112

Re: Trying to get dbus to work

The error I get is Failed to start message bus:  Could not get UID and GID for username "dbus"

I tried addidng the group and user with the command above but it did not work it gives me a command not found.

Offline

#4 2008-12-31 06:46:27

peart
Member
From: Kanuckistan
Registered: 2003-07-28
Posts: 510

Re: Trying to get dbus to work

Add a slash to the beginning of the commands (/usr/bin/useradd instead of usr/bin/useradd).  Better yet, just forget the usr/bin part, and type "useradd ..."

This is really strange though.  The dbus user and group should already exist.  You should check for config files that need to be merged: run "ls -la /etc/*.pac*" .

Offline

#5 2008-12-31 16:25:02

viga
Member
Registered: 2007-06-12
Posts: 112

Re: Trying to get dbus to work

Thanks peart  This is what i get when running ls -la /etc/*.pac*


-rw-r--r-- 1 root root 8907 2008-12-14 10:51 /etc/locale.gen.pacnew
-rw-r--r-- 1 root root 2949 2008-12-06 09:39 /etc/slim.conf.pacnew

This is what i get when I try to start dbus

:: Starting D-BUS system messagebus                                      [BUSY] Failed to start message bus: The pid file "/var/run/dbus.pid" exists, if the message bus is not running, remove this file
                                                                         [FAIL

Last edited by viga (2008-12-31 16:26:05)

Offline

#6 2008-12-31 16:30:27

capnfabs
Member
From: Wollongong, Australia
Registered: 2008-12-27
Posts: 32
Website

Re: Trying to get dbus to work

in your error, see how it states that "if the message bus is not running, remove this file?" this probably means that your computer has not been shut down properly at some point in time and dbus has left a temporary file. It uses this to work out if it's already running or not, so you can fix this particular error by typing

sudo rm /var/run/dbus.pid

also, have you tried reinstalling dbus? it might automatically sort out your configuration issues (although it could be risky too). to reinstall, you can type:

sudo pacman -S dbus

note that if you choose to reinstall dbus you may still need to type the first line to remove the temporary file.

good luck!

Last edited by capnfabs (2008-12-31 16:32:14)

Offline

#7 2009-01-01 01:01:28

viga
Member
Registered: 2007-06-12
Posts: 112

Re: Trying to get dbus to work

Thanks capnfabs.  I removed the file and re-installed dbus.  I also created the group dbus and added dbus to it.

Offline

Board footer

Powered by FluxBB