08-26-2011
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
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
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
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
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 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
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
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
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
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
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
SIZE(1) General Commands Manual SIZE(1)
NAME
size - print the size of the sections in an object file
SYNOPSIS
size [ option ... ] [ object ... ]
DESCRIPTION
Size (without the -m option) prints the (decimal) number of bytes required by the __TEXT, __DATA and __OBJC segments. All other segments
are totaled and that size is listed in the `others' column. The final two columns is the sum in decimal and hexadecimal. If no file is
specified, a.out is used.
The options to size(1) are:
- Treat the remaining arguments as name of object files not options to size(1).
-m Print the sizes of the Mach-O segments and sections as well as the total sizes of the sections in each segment and the total size of
the segments in the file.
-l When used with the -m option, also print the addresses and offsets of the sections and segments.
-x When used with the -m option, print the values in hexadecimal (with leading 0x's) rather than decimal.
-arch arch_type
Specifies the architecture, arch_type, of the file for size(1) to operate on when the file is a universal file. (See arch(3) for
the currently know arch_types.) The arch_type can be "all" to operate on all architectures in the file. The default is to display
only the host architecture, if the file contains it; otherwise, all architectures in the file are shown.
SEE ALSO
otool(1)
BUGS
The size of common symbols can't be reflected in any of the numbers for relocatable object files.
Apple Computer, Inc. July 28, 2005 SIZE(1)