1837131 Members
2723 Online
110112 Solutions
New Discussion

Re: SAM

 
Wamaitha
Frequent Advisor

SAM

hi, when i type SAM, i do not get the GUI version, all i get is the TUI version, what do i need to do to get the GUI version??
thank you in advance
10 REPLIES 10
James R. Ferguson
Acclaimed Contributor

Re: SAM

Hi:

Make sure that you have set and exported the DISPLAY variable. Substitute your IP address (for that of 10.100.101.102) in the example below:

# export DISPLAY=10.100.101.102:0.0

Regards!

...JRF...
Wamaitha
Frequent Advisor

Re: SAM

sorry to be so clueless, can i get more info or direct me to a place that will provide me with documentation, still trying to grasp the who HP-UX,
thank you in advance
Zigor Buruaga
Esteemed Contributor

Re: SAM

Devender Khatana
Honored Contributor

Re: SAM

Hi,

You should have a X Session open either on same host or any other host within same network for this to work.

The reason what appears here is that you have X session open on some other host and then you are doing telnet/rlogin to this host. Is not it?

If yes find out the default DISPLAY set on the host where the X-session is open by
#set |grep DISPLAY
DISPLAY=10.51.25.227:0.0

Set the same DISPLAY in the session of that host where you want to run SAM in GUI mode by

#export DISPLAY=10.51.25.227:0.0

Now if SAM is run it should open up in GUI mode only.

HTH,
Devender


Impossible itself mentions "I m possible"

Re: SAM

Can you give some more information? Are you using the console, a terminal or connecting from a PC?

If you are connecting from a PC, you'll need an X Server running on your PC before you'll be able to get the GUI interface to work.

In my environment I can't login directly as root due to security policy. When I use "su - root" I lose the GUI variables and they must be reset.

Please let us know more and maybe we can help.

Steve
Wamaitha
Frequent Advisor

Re: SAM

Stephen, i am using a x-terminal and logging on as root, when i type in SAM i get the TUI version not the GUI.
i know that i need to add the DISPLAY in my env, but i want to do it right.
thank you in advance
Charles McCary
Valued Contributor

Re: SAM



# export DISPLAY=xxx.xxx.xxx.xxx:0

Where xxx.xxx.xxx.xxx equals the IP address of your local terminal (pc).

thanks,

C
Wamaitha
Frequent Advisor

Re: SAM

so how do i get to make this permanent??
so that i am not exporting all the time??
thank you in advance
Peter Nikitka
Honored Contributor

Re: SAM

Hi,

put something like this in $HOME/.profile or /etc/profile:
(part of our common template):

if [ -t 1 ]
then remhost=`who am i -R | awk '{print(substr($NF,2,length($NF)-2))}'`
# post-processing of remhost
case "$remhost" in
'') remhost=localhost
disp=:0.0 ;;
*:0.0) disp=$remhost
remhost=${remhost%:*} ;;
*:*) remhost=${remhost%:*}
disp=$remhost:0.0 ;;
*.*) remhost=${remhost%%.*}
disp=$remhost:0.0 ;;
*) disp=$remhost:0.0 ;;
esac
DISPLAY=${DISPLAY:-$disp}
export DISPLAY
fi

mfG Peter
The Universe is a pretty big place, it's bigger than anything anyone has ever dreamed of before. So if it's just us, seems like an awful waste of space, right? Jodie Foster in "Contact"
Fabio Ettore
Honored Contributor

Re: SAM

Hi,

Perform the following steps to run SAM in GUI mode:

1. Uncomment 'DTSOURCEPROFILE' in the '/.dtprofile' file.

2. Logout

3. Login again. (start a new shell session for changes to take effect)


From doc A5840407 in knowledge base.

Best regards,
Fabio
WISH? IMPROVEMENT!