I have a server running Fedora 16. I have cloned it using the dd command. The new machine is running very well except that when I connect remotely using ssh and then try to open a new window using "gnome-terminal" or "gedit" it has dbus errors and says "Could not connect to session bus".
It is not an X-forwarding problem because I can open xeyes.
I can open gedit locally.
The dbus service is running.
I have done lots of searching and found workarounds suggesting using:
Code:
dbus-launch --exit-with-session gnome-terminal
This works via ssh and opens a new window nicely.
Another suggestion is to put code in every .bash_profile file:
Code:
if test -z "$DBUS_SESSION_BUS_ADDRESS" ; then
## if not found, launch a new one
eval `dbus-launch --sh-syntax --exit-with-session`
echo "D-Bus per-session daemon address is: $DBUS_SESSION_BUS_ADDRESS"
fi
I tried this but it makes the connection so slow it is unusable. You can't even type a command because it leaves out half the letters. Does anyone know why this happens?
Another suggestion says there may be stale dbus address info in the x-server?
https://bugzilla.redhat.com/show_bug.cgi?id=834347
But I would like to know why the original machine works fine and the clone does not? And how to fix the clone?
Thanks in advance.