Friday, April 25, 2014

Fix: /bin/dbus-launch terminated abnormally without any error message and solution

I am a new Linux server user. I need to tunnel X over ssh. I type the following command on a CentOS/RHEL based remote host to get display on a local desktop:
ssh -X user@server1.cyberciti.biz
xeyes &
firefox &
But, I am getting an error that read as follows:
**error**: Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See http://projects.gnome.org/gconf/ for information. (Details - 1: Failed to get connection to session: /bin/dbus-launch terminated abnormally without any error message)
How do I fix this error on a newly formatted/installed RHEL or CentOS Linux 6.x server?
You need to install D-Bus. It is nothing but a message bus system, a simple way for applications to talk to one another. In addition to interprocess communication, D-Bus helps coordinate process lifecycle; it makes it simple and reliable to code a "single instance" application or daemon, and to launch applications and daemons on demand when their services are needed. You also need to install Fonts on a CentOS/RHEL based system.

To fix /bin/dbus-launch terminated abnormally without any error message on a CentOS/RHEL

Type the following yum command to install D-Bus and Fonts:
$ sudo yum install dbus-x11
Sample outputs:
Loaded plugins: downloadonly, fastestmirror, security
Loading mirror speeds from cached hostfile
 * base: mirrors.tummy.com
 * epel: mirror.steadfast.net
 * extras: centos-mirror.jchost.net
 * updates: centos.hostingxtreme.com
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package dbus-x11.x86_64 1:1.2.24-7.el6_3 will be installed
--> Finished Dependency Resolution
 
Dependencies Resolved
 
===========================================================================================================
 Package                 Arch                  Version                           Repository           Size
===========================================================================================================
Installing:
 dbus-x11                x86_64                1:1.2.24-7.el6_3                  base                 40 k
 
Transaction Summary
===========================================================================================================
Install       1 Package(s)
 
Total download size: 40 k
Installed size: 28 k
Is this ok [y/N]: y
Downloading Packages:
dbus-x11-1.2.24-7.el6_3.x86_64.rpm                                                  |  40 kB     00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : 1:dbus-x11-1.2.24-7.el6_3.x86_64                                                        1/1
  Verifying  : 1:dbus-x11-1.2.24-7.el6_3.x86_64                                                        1/1
 
Installed:
  dbus-x11.x86_64 1:1.2.24-7.el6_3
 
Complete!
 
To install Fonts, type:
$ sudo yum groupinstall 'Fonts'
Now, you can run and tunnel X over ssh:
$ ssh -X user@server1.cyberciti.biz
$ xeyes
$ firefox

0 comments:

Post a Comment