LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Display variable (https://www.linuxquestions.org/questions/linux-newbie-8/display-variable-754320/)

nagavinodh 09-11-2009 01:10 AM

Display variable
 
Hi,
I tried to install a clusterware on hostmachine(red hat 4.2) from client macine(windows xp).

Host Name (red hat) 172.19.0.25
Windows machine Ip 172.19.0.52

I logged on terminal(SSH secure shell client)from Client machine as a root user.
then
I set DISPLAY variable and xhost

export DISPLAY=172.19.0.52:0
xhost +

then switch over ,su - oracle

i got the error when i run the installer


DISPLAY not set. Please set the DISPLAY and try again.
Depending on the Unix Shell, you can use one of the following commands as examples to set the DISPLAY environment variable:
- For csh: % setenv DISPLAY 192.168.1.128:0.0
- For sh, ksh and bash: $ DISPLAY=192.168.1.128:0.0; export DISPLAY
Use the following command to see what shell is being used:
echo $SHELL
Use the following command to view the current DISPLAY environment variable setting:
echo $DISPLAY
- Make sure that client users are authorized to connect to the X Server.
To enable client users to access the X Server, open an xterm, dtterm or xconsole as the user that started the session and type the following command:
% xhost +
To test that the DISPLAY environment variable is set correctly, run a X11 based program that comes with the native operating system such as 'xclock':
% <full path to xclock.. see below>
If you are not able to run xclock successfully, please refer to your PC-X Server or OS vendor for further assistance.
Typical path for xclock: /usr/X11R6/bin/xclock

mesiol 09-11-2009 08:43 AM

Hi,

possibly your variable gets lost during "su -".

Try to set the variable after su-ing to oracle.

Did you have an XServer running on the windows box?


All times are GMT -5. The time now is 11:55 PM.