Operating System - HP-UX
1823250 Members
3283 Online
109648 Solutions
New Discussion юеВ

Display environment variable incorrect

 
Sarah Chellgren
Advisor

Display environment variable incorrect

I have inherited a HP 9000 D server and I can only get a command line. When I run SAM, I get a message stating "The DISPLAY environment variable may be incorrect...The DISPLAY environment is set to "hostname:0.0", but the current configuration won't allow SAM to run.." It's running 11.0 and not connected to the network. Also, I have notived TERM is set to A208LC1280 and don't understand why. Can anyone help? Thanks
5 REPLIES 5
Patrick Wallek
Honored Contributor

Re: Display environment variable incorrect

What type of terminal do you have attached to the system?

Typically a D system came with a 700/9X type terminal. If this is the case then it won't be able to support any of the GUI versions of SAM or other tools.

But judging from your messages, the system thinks it has a GUI capable monitor running CDE. If you just have a command prompt and no GUI then you can do a 'export DISPLAY=' to get rid of the display name. Then do a 'export TERM=hp' to set the term type to something more useful. This should at least get you to where you can run SAM.

You may want to check your .profile or .?shrc and see if any of that information is hard coded so it gets set by default when you log in.
Sarah Chellgren
Advisor

Re: Display environment variable incorrect

Patrick thanks for your help. People in the office swear they have seen a GUI on it so it has the capabilities. Using export DISPLAY= throws me straight into the terminal version of SAM without the error message. TERM=hp doesn't seem to have changed anything. Any other ideas?

Sarah
Louis Masucci
Advisor

Re: Display environment variable incorrect

do the following

# ksh
# export DISPLAY=:0.0


this should work .. Lou
Dan Hetzel
Honored Contributor

Re: Display environment variable incorrect

Hi Sarah,

You may have 2 different kinds of GUI, one attached to the server (screen, keyboard and mouse) or a separate workstation/PC.

In the first case, setting the DISPLAY to :
${HOSTNAME}:0.O
should work ! Make sure your $HOSTNAME is set.
Type 'uname -n' as this will tell you what your server considers as its name...
Full command is:
export DISPLAY=${HOSTNAME}:0.0

In the second case (remote workstation/PC), you'll have to set the DISPLAY variable to the name of your workstation/PC
This will tell the X11 server that all graphical display has to be redirected to another host.

When typing the command 'who -u' once logged in, the last field of the line with your login name should show you where you're coming from.

If this doesn't work, give us the details of the following commands:
# echo $DISPLAY
# who am i
# who -u

Best regards,

Dan
Everybody knows at least one thing worth sharing -- mailto:dan.hetzel@wildcroft.com
Sarah Chellgren
Advisor

Re: Display environment variable incorrect

Thanks everyone. Doing what was suggested didn't work or was what I was doing already but I appreciate the effort. The machine may have to be scraped anyway.