1833784 Members
2195 Online
110063 Solutions
New Discussion

Re: Unable to run SAM

 
SOLVED
Go to solution
Jeff Picton
Regular Advisor

Unable to run SAM

Hello

When I try to run SAM from my PC, I get the following message :-

The DISPLAY environment variable is set to "151.170.84.1:0.0:0", but
the current configuration won't allow sam to run on that display.

The DISPLAY environment variable may be incorrect, or, if you are
running sam remotely, you may need to allow the remote system
to access your local X server by typing

/usr/bin/X11/xhost +mimas

on your local machine.

Do you want to proceed using the terminal version of sam?
(yes or no) [yes]

This has occurred since the ip address of my machine was changed during company relocation. Can anyone explain why ?

Thks

Jeff
11 REPLIES 11
Fabio Ettore
Honored Contributor

Re: Unable to run SAM

Hi Jeff,

try

# export DISPLAY=:0.0

Best regards,
Ettore
WISH? IMPROVEMENT!
Pete Randall
Outstanding Contributor
Solution

Re: Unable to run SAM

Jeff,

It's most likely a name resolution issue. Check from both ends with nslookup hostname and nslookup ip_address. I would guess that your ip_address has not been updated in either /etc/hosts on the server or DNS has not been updated.


Pete

Pete
Jeff Picton
Regular Advisor

Re: Unable to run SAM

Hi

I do this and get :-
The DISPLAY environment variable is set to "151.170.84.1:0.0:0", but
the current configuration won't allow sam to run on that display.

The DISPLAY environment variable may be incorrect, or, if you are
running sam remotely, you may need to allow the remote system
to access your local X server by typing

/usr/bin/X11/xhost +mimas

on your local machine.

Do you want to proceed using the terminal version of sam?
(yes or no) [yes] no

so exporting manually doesn't appear to work. Is there a file where this is configured ?

Thks
Sanjay Kumar Suri
Honored Contributor

Re: Unable to run SAM

Check the ip address of your system with the command (from Command prompt):

ipconfig

and set the DISPLAY as

#DISPLAY=:0.0
#export DISPLAY

sks
A rigid mind is very sure, but often wrong. A flexible mind is generally unsure, but often right.
Jeff Picton
Regular Advisor

Re: Unable to run SAM

Hi again

That works but I will have to issue these commands each time I log into the server. Is there anyway this can be done automatically ?

Cheers
Pete Randall
Outstanding Contributor

Re: Unable to run SAM

Jeff,

As I said - you need to fix either /etc/hosts on the server or your PC's entry in DNS. That will cure it permanently.


Pete

Pete
Sanjay Kumar Suri
Honored Contributor

Re: Unable to run SAM

If the ip address is allotted useding DHCP then it is dynamic.

However ip can be made static in the TCP/IP properties of your system as well.

sks
A rigid mind is very sure, but often wrong. A flexible mind is generally unsure, but often right.
Fabio Ettore
Honored Contributor

Re: Unable to run SAM

Jeff,

in order to do it automatically just insert into $HOME/.profile of user (it can be root or anybody else):

TTY=`who am i | awk '{print $2}'`
WHO=`who -u | grep $TTY| awk '{print $8}'`
DISPLAY="$WHO":0.0
export DISPLAY

When you login from a PC into HP-UX system, DISPLAY variable should be set to :0.0, whatever IP address.

Best regards,
Ettore
WISH? IMPROVEMENT!
Jeff Picton
Regular Advisor

Re: Unable to run SAM

Hi all

Thanks for your replies. I have discovered that my PC Network has DHCP enabled for my PC and therefore have asked for a reserve address for my PC within the database. Hopefully this may solve the problem.
Fabio Ettore
Honored Contributor

Re: Unable to run SAM

Jeff,

my last post could suggest you an option to solve your problem. Whatever the IP address has your PC, HP-UX system should recognize it.

Best regards,
Ettore
WISH? IMPROVEMENT!
Pete Randall
Outstanding Contributor

Re: Unable to run SAM

Jeff,

I hadn't considered that you might be running DHCP. In that case, a solution like Ettore suggested might be the best answer.

Good luck,


Pete

Pete