xWindows error: xhost unable to open display


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers xWindows error: xhost unable to open display
# 1  
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
# 2  
Old 08-26-2011
Good for you
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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

9. 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

10. 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
Login or Register to Ask a Question