Xlib: connection
Generally from a Windows desktop we need to access some linux machines servers with th X Interfaces, here an example of connection to be able to able to use oracle (database assistant
configuration)
Verify if it's working # xclock&
If not do the next step
Some packages should be installed, if not install them:
yum install xorg-x11-xauth
yum install xorg-x11-apps.x86_64
yum install xhost
# xclock&
In case you are using Putty:
First of all you should run xming.
Then connect using putty to the linux machine after checking that in SSH properties the "X11 Forwarding" is activated.
[oracle@vmlin64ora02 ~]$ export DISPLAY=10.215.61.141:0.0
[oracle@vmlin64ora02 ~]$ xhost +
[oracle@vmlin64ora02 ~]$ dbca &
login as: oracle
Access denied
oracle@10.215.111.24's password:
Last login: Mon Apr 22 11:20:29 2013 from 10.215.61.141
[oracle@vmlin64ora02 ~]$ export DISPLAY=10.215.61.141:0.0
[oracle@vmlin64ora02 ~]$ xhost +
access control disabled, clients can connect from any host
[oracle@vmlin64ora02 ~]$ dbca &
[1] 28027
[oracle@vmlin64ora02 ~]$
==> Some Times You can face Errors, i faced that :), so i share the error and the Solution:
Resolve Xlib: connection to “localhost:0.0″ refused by server error when using Xming XServer
It can be frustrating when you try to start xwindow application using Xming XServer on Windows XP/7/Vista but encountering connection refused error. Here is an example of the error:
Xlib: connection to "remotehost:0.0" refused by server
Xlib: No protocol specified
Error: Can't open display: remotehost:0.0
In addition, if you look at Xming log, you will see something like this:
AUDIT: Tue Feb 12 21:49:43 2008: 3868 C:\Program Files\Xming\Xming.exe:
client 4 rejected from IP 10.0.11.16
Here is a quick tip to fix this issue.
Hope This Helps !
In Windows, look for the shortcut to start Xming. Right click your mouse to go to properties.
add -ac to your XMing shortcut:
"C:\Program Files\Xming\Xming.exe" :0 -clipboard -multiwindow -ac"
The -ac parameter allows everyone to connect, like ‘xhost +’
Try your xwindow application again, and you should be good to go.