Operating System - HP-UX
1752734 Members
5607 Online
108789 Solutions
New Discussion юеВ

Re: DISPLAY, TERM XTERM variables problem

 
SOLVED
Go to solution
Burhan Koni
Advisor

DISPLAY, TERM XTERM variables problem

Dear all
I have ORACLE APPLICATION 11i installed on HP-UX 11i. I have problem in diplaying reports in pdf or html format. one of the diagnostic commands:
# xterm -display Fin02.ora:0.0
Error: Can't open display: Fin02.ora:0.0
Error: Couldn't find per display information

# xdpyinfo
xdpyinfo: unable to open display "Fin02.ora:0.0".
#


also the value of TERM is dtterm from x-manager, and ansi from telnet session.


how to fix this ???

Thanks
Burhan
13 REPLIES 13
Umapathy S
Honored Contributor

Re: DISPLAY, TERM XTERM variables problem

The TERM values are correct for dtterm and telnet sessions.

Can you try first exporting the DISPLAY and then opening xterm.

Error: Couldn't find per display information

This error usually occurs when the X11 is not able to point the local display itself.

HTH,
Umapathy
Arise Awake and Stop NOT till the goal is Reached!
Christian Gebhardt
Honored Contributor

Re: DISPLAY, TERM XTERM variables problem

Hi

- Is Fin02.ora your workstation or the server --> You have to set the display to your workstation
- Does the server know the name of your workstation --> try IP-Adress
- Is a X-Server running on your Workstation ?

Chris
Burhan Koni
Advisor

Re: DISPLAY, TERM XTERM variables problem

Fin02.ora is the server
Umapathy S
Honored Contributor

Re: DISPLAY, TERM XTERM variables problem

Did you check as per Chris reply?
Is there a Xserver running in your workstation/windows.

Are you trying to connect to the server using an emulator or workstation.

Mostly this must be an workstation. Login to Fin02 and type xhost + (which allows the access)

But as I said before the local display itself is not proper.

HTH,
Umapathy
Arise Awake and Stop NOT till the goal is Reached!
Elmar P. Kolkman
Honored Contributor

Re: DISPLAY, TERM XTERM variables problem

xterm is an X-windows application. It needs to connect to an Xserver to perform. It uses the DISPLAY environment variable or -display argument to determine where that X-server runs. The part before the colon (Fin02.ora in your case) is the IP address of the Xserver process, the part behind the colon (0.0 in your case) determines the port number to be used.

An Xserver can be on HP-UX if you have a graphical console or on a PC running Linux with programs like XFree86 or Windows with Reflexion or something like that.

Now the error code you get means that xterm can not open a connection to the Xserver. So now there can be two problems: you have an authorisation problem or you don't have an Xserver at all on your server.

Before going further, check if you have a graphical console that should support X... or that you should point the display to your workstation.
Every problem has at least one solution. Only some solutions are harder to find.
Michael Schulte zur Sur
Honored Contributor

Re: DISPLAY, TERM XTERM variables problem

Hi,

as Christian points out, where do you need the graphic output, on a pc or on a graphics console? Wherever this is, a Xserver must run there and the display options must be set for that machine. Check with xhost the hosts with access.

greetings,

Michael
Bill Hassell
Honored Contributor

Re: DISPLAY, TERM XTERM variables problem

The machine Fin02.ora must be running an Xwindow emulator. The concept of server and client is different for Xwindows. If you type a command such as xterm on a particular computer, then that computer is the client in Xwindows. The -display Fin02.ora:0.0 information is telling xterm to find an Xwindow display server on Fin02.ora which must be a graphics workstation or an Xterminal or a PC running an Xwindow emulator.

Is Fin02.ora a graphics computer with Xwindow capability?


Bill Hassell, sysadmin
Steven E. Protter
Exalted Contributor

Re: DISPLAY, TERM XTERM variables problem

Add this line to .profile or /etc/profile

DISPLAY=$(who -m -u | awk '{print $8}'):0.0
export DISPLAY


This will insure that the DISPLAY variable won't be a problem and standard X Windows Emulator software will work.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
matteo_4
Frequent Advisor

Re: DISPLAY, TERM XTERM variables problem

Hi burhan,

i think you have to try to export the display....

try

> xhost +

> setenv DISPLAY Fin02.ora:0.0

bye