|
OpenBSD Installation and Upgrading Installing and upgrading OpenBSD. |
|
Thread Tools | Display Modes |
|
|||
issues with "Dbus"
Got myself a copy of OpenBSD 4.8 AMD64 and installed without any problems. But once i installed Gnome things got unstable to say the least.
I keep getting these in /log/messages "bsd gnome-session[31230]: WARNING: Could not connect to ConsoleKit: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory" tried deinstalling / reinstalling everything related to DBUS and / or Gnome tried adding users such as messagebus and systembus tried followup on approx 25-30 google threads tried (just to see) manually creating /var/run/dbus/system_bus_socket, and that changes error message to "socket operation on non-socket" tried about everything i can think of except complete reinstall of OBSD from scratch (wich i am severely reluctant to do since it took a great deal of time just to get X running at all) What is wrong? broken dependencies? broken libs? missing users? bad / wrong user / daemon rights? |
|
|||
/etc/rc.d does not even exist
locate says: bash-4.1# locate rc.d /home/cvs/src/etc/rc.d /home/cvs/src/etc/rc.d/rc.subr,v /home/cvs/src/gnu/usr.bin/binutils/gas/testsuite/gas/arc/Attic/rrc.d,v /usr/local/share/gtk-doc/html/orc/orc.devhelp /usr/local/share/gtk-doc/html/orc/orc.devhelp2 bash-4.1# an alternative attempt? bash-4.1# dbus-daemon --system Failed to start message bus: Failed to bind socket "/var/run/dbus/system_bus_socket": No such file or directory bash-4.1# |
|
|||
i get no response / output at all from that command:
bash-4.1# pkg_info -L dbus | grep rc.d then tried bash-4.1# pkg_info -v -L dbus | grep rc.d then tried bash-4.1# pkg_info -vvvvv -L dbus | grep rc.d bash-4.1# no response whatsoever |
|
|||
I really dislike dbus, but, if you're going to run it.. I recommend NOT running it system wide.
You can create ~/.dbus/session.conf, and launch dbus in your .xinitrc file. Code:
<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-Bus Bus Configuration 1.0//EN" "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd"> <busconfig> <type>session</type> <keep_umask/> <listen>unix:tmpdir=~/.dbus/tmp</listen> <policy context="default"> <allow send_destination="*" eavesdrop="true"/> <allow eavesdrop="true"/> <allow own="*"/> <allow user="zylorx"/> </policy> </busconfig> You'll also need something like this in your .xinitrc/.xsession, for example.. exec /usr/local/bin/dbus-launch --sh-syntax --exit-with-session --config-file=~/.dbus/session.conf /usr/X11R6/bin/cwm I use cwm and this lets my desktop applications play nicely, most should automatically start a dbus session on their own if it doesn't already exist. This is just how I start it, preferred instructions are installed as part of the dbus package.. in 4.8-current these are installed in /usr/local/share/doc/pkg-readmes/: Code:
To start a session bus instance of dbus-daemon (needed by at least gvfs aware applications and /usr/local/share/dbus-1/services/*.service), add the following lines in .xinitrc or .xsession before starting the window manager (see dbus-launch(1) for more info) -- note that some session managers, e.g. gnome-session(1) already do this for you. if [ -z "${DBUS_SESSION_BUS_ADDRESS}" ]; then eval `dbus-launch --auto-syntax --exit-with-session` fi |
|
|||
I went to ~/.dbus/ checked ls, there was only "session-bus" so i did "touch session.conf"
then went on with .xinitrc and .xsession, in my normal user account NONE of them existed! in root account there is a .xinitrc though |
|
|||
It would appear you have more problems than the apparent dbus configuration issue, I for one will not assist you with those.
|
|
|||
ok, well i appriciate your help, X and gnome is running after all, if the errors wont cause more than some log contents i think ill leave it as it for the time being
|
|
||||
When you install a package, if there is any manual action you must take, such as starting services, a message will be produced on the console. It is common for new users to ignore these messages as unimportant, especially when they come from dependent applications like dbus.
These messages often describe exactly what must be done in rc.local to start a daemon at boot time. You can reproduce these install messages with pkg_info. Please review the man page. |
|
|||
ye, thats what happened to me, however, i corrected it some days ago, but still get same errors, is it important to follow the "post-install" instructions immediately after packet install? or is it possible to correct those bloopers afterwards? e.g can my system be salvaged? or new install a definitive must-do?
|
|
||||
This is the message you should have seen:
Code:
To start systemwide message dbus daemon whenever the machine boots, add the following lines to /etc/rc.local: if [ -x /usr/local/bin/dbus-daemon ]; then install -d -o _dbus -g _dbus /var/run/dbus echo -n ' dbus'; /usr/local/bin/dbus-daemon --system fi I ask because it is not clear to me that is what you saw and did. |
|
|||
ye, i saw that text and followed the instructions a couple of days ago, however today i had another look at rc.local and might have spotted a flaw.
if [ -x /usr/local/bin/dbus-daemon ]; then install -d -o _dbus -g _dbus /var/run/dbus echo -n ' dbus'; /usr/local/bin/dbus-daemon --system fi the above doesnt produce as much error logging as the one below (my previous): if [ -x /usr/local/bin/dbus-daeon ]; then install -d -o _dbus -g _dbus /var/run/dbus echo -n ' dbus'; /usr/local/bin/dbus-daemon --system fi |
|
|||
Quote:
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to replace "ectags" with "ctags"? | fender0107401 | OpenBSD Packages and Ports | 5 | 16th April 2013 10:01 AM |
OSI "categorically rejects" IIPA's attack on open source | J65nko | News | 0 | 5th March 2010 06:00 PM |
wpa_supplicant errors: "CTRL-EVENT-SCAN-RESULTS" | jackburke | FreeBSD General | 0 | 1st February 2010 12:07 AM |
Fixed "xinit" after _7 _8, "how" here in case anyones' "X" breaks... using "nvidia" | jb_daefo | Guides | 0 | 5th October 2009 09:31 PM |
"Thanks" and "Edit Tags". | diw | Feedback and Suggestions | 2 | 29th March 2009 12:06 AM |