Sponsored Content
Top Forums UNIX for Dummies Questions & Answers xWindows error: xhost unable to open display Post 302550635 by shoefiend on Friday 26th of August 2011 02:24:31 PM
Old 08-26-2011
Bug xWindows error: xhost unable to open display

I am trying to direct a AIX display to my XWindows and I am at a dead end now!
So this what I've done so far:

1. In putty settings, I set "Enable X11 forwarding" and also set "X diplay location" to "localhost:0" (without quotes, of course)

2. Via putty, connected to my AIX server
3. On AIX, forwarded display to my Windows box
$ export DISPLAY=<ip address of Windows>:0

Meanwhile, I opened MobaXTerm.exe on my Windows machine
$ ssh username@AIX_host_name

On AIX:
$ xclock
Xlib: connection to "<Windows IP address>:0.0" refused by server
Xlib: No protocol specified
Error: Can't open display: <Windows IP Address>:0

On Windows: tried looking for listener
$ ps -ef | grep listen
root 364732 1 0 Aug 21 - 0:00 /usr/bin/cimlistener

Then tried setting the Windows to be a host to AIX box:
$ xhost <IP Address of AIX box>
1356-200 xhost unable to open display ""

What more to do?


---------- Post updated at 02:24 PM ---------- Previous update was at 12:07 PM ----------

Er.. looks like the various XWindows clients I was trying out were all clashing with one another.

I was trying both XMing and MobaXTerm. Finally noticed that XMing server was still running in the background even though I thought I'd exited XMing.

The following steps in same order worked:
1. Exited XMIng server

2. Connected to AIX server using MobaXTerm
$ ssh username@ServerName

3. In Putty settings, enable X11 Forwarding and set display to localhost:0
(google for this. I am unable to post links as Im a new forum memeber)

4. Connect to AIX using putty
5. Set display to IP address of Windows machine that is running MobaXTerm:
$ echo $DISPLAY

$export DIPSLAY=<ip address of Windows machine>:0

6. Test with a comamnd like xclock. If everything is right, it should display the clock on the windows machine
$ xclock

Last edited by shoefiend; 08-26-2011 at 03:25 PM.. Reason: Resolved the problem myself
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

PCC-F-NOERRFILE, unable to open error message file, facility PR2

I am trying to build a tuxedo server which in turn depends on several Pro*C programs. I am doing it on HP-UX system. It looks to me that the ORACLE_HOME is set properly. But I am getting error message when trying to build. PCC-F-NOERRFILE, unable to open error message file, facility PR2 exit... (1 Reply)
Discussion started by: asutoshch
1 Replies

2. Post Here to Contact Site Administrators and Moderators

Unable to open thread

I am unable to open the mimesender thread. I get the following message when clicking on https://www.unix.com/showthread.php?p=33233#post33233 : (2 Replies)
Discussion started by: dangral
2 Replies

3. UNIX for Dummies Questions & Answers

xhost: unable to open display????

I am a dba, not an sa, that recently had to take over administering an HP-UX server. Needless to say I am not in a comfortable area, but found out that of all people I am the most knowledgeable on unix here .... scary thought I know. I am having troubles exporting my display to a Windows XP... (5 Replies)
Discussion started by: soestx
5 Replies

4. UNIX for Advanced & Expert Users

xhost unable to open display

I am trying to install ORACLE 10g database on HP-UNIX 11.11 I am running OUI runinstaller from exceed terminal from windows PC. I have set DISPLAY=IPAddress of PC:0.0 When installer starts it is giving me error of display (5 Replies)
Discussion started by: ymg
5 Replies

5. AIX

Unable to launch xwindows from aix ?

Unable to launch xwindows from aix box ..No clue whats wrong .Help me out how to debug this issue ? export DISPLAY=ipadress:port.sessionid then try launching application ... I am getting error can't display thanks, kittu (1 Reply)
Discussion started by: kittu1979
1 Replies

6. Shell Programming and Scripting

PCC-F-NOERRFILE, unable to open error message file

Hi, I was compiling few C programs in the unix server and getting the following error message rm: /home/a0xxx28/AVT/SEEDLIBRARYDB/LIB/*.a non-existent proc MODE=ANSI CODE=ANSI_C INCLUDE=/home/a0xxx28/PVT/SEEDLIBRARYDB/INCLUDE INCLUDE=/home/a0xxx28/PVT/SEEDLIBRARY/INCLUDE ... (1 Reply)
Discussion started by: kavithakuttyk
1 Replies

7. Red Hat

Error: Can't open display: :0.0

Hi, I get errors while running xclock from a non root user: # xclock --- this works fine # su - girish $ DISPLAY=:0.0; export DISPLAY $ xclock Xlib: connection to ":0.0" refused by server Xlib: No protocol specified Error: Can't open display: :0.0 $ I basically want to... (4 Replies)
Discussion started by: girish1428
4 Replies

8. Solaris

Unable to open Crontab

Hi, I have 2 solaris server. I can able to open to see cron entry by using crontab -l in one of the server. I cant able to open another server. How to check if crontab is fixed in that server. If not then how to make a crontab in that server. Please advice. Thanks, Mani ----------... (1 Reply)
Discussion started by: Mani_apr08
1 Replies

9. Ubuntu

Unable display txt file.

Hello, I am unable to display downloaded file from unbunto. its says cat filename no file and directory but file is there. i saved file on desktop. i am using vmware players . could you please help to with the command. THANK YOU (8 Replies)
Discussion started by: raz33
8 Replies

10. AIX

Cannot open xwindows/xterm as a root

disabled the direct root login on all the AIX LPARs. So' only can become root by "su" to root from normal/regular user account. Issue is, I cannot open xwindows (xterm or xming) from my LPAR as a root. But I can open/access Xwindows using a USER account. />xclock Error: Can't open... (9 Replies)
Discussion started by: system.engineer
9 Replies
libssh2_channel_x11_req_ex(3)					  libssh2 manual				     libssh2_channel_x11_req_ex(3)

NAME
libssh2_channel_x11_req_ex - request an X11 forwarding channel SYNOPSIS
#include <libssh2.h> int libssh2_channel_x11_req_ex(LIBSSH2_CHANNEL *channel, int single_connection, const char *auth_proto, const char *auth_cookie, int screen_number); int libssh2_channel_x11_req(LIBSSH2_CHANNEL *channel, int screen_number); DESCRIPTION
channel - Previously opened channel instance such as returned by libssh2_channel_open_ex(3) single_connection - non-zero to only forward a single connection. auth_proto - X11 authentication protocol to use auth_cookie - the cookie (hexadecimal encoded). screen_number - the XLL screen to forward Request an X11 forwarding on channel. To use X11 forwarding, libssh2_session_callback_set(3) must first be called to set LIBSSH2_CALL- BACK_X11. This callback will be invoked when the remote host accepts the X11 forwarding. RETURN VALUE
Return 0 on success or negative on failure. It returns LIBSSH2_ERROR_EAGAIN when it would otherwise block. While LIBSSH2_ERROR_EAGAIN is a negative number, it isn't really a failure per se. ERRORS
LIBSSH2_ERROR_ALLOC - An internal memory allocation call failed. LIBSSH2_ERROR_SOCKET_SEND - Unable to send data on socket. LIBSSH2_ERROR_CHANNEL_REQUEST_DENIED - SEE ALSO
libssh2_channel_open_ex(3) libssh2_session_callback_set(3) libssh2 0.15 1 Jun 2007 libssh2_channel_x11_req_ex(3)
All times are GMT -4. The time now is 10:27 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy