LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (https://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   How to set Display env variable in solaris (https://www.linuxquestions.org/questions/solaris-opensolaris-20/how-to-set-display-env-variable-in-solaris-839501/)

LINUXQueAns 10-21-2010 04:56 AM

How to set Display env variable in solaris
 
Hi All,

I am getting below error meassage while try to set DISPLAY varialbe.

$ export DISPLAY=IPADDR:0.0
DISPLAY=IPADDR:0.0: is not an identifier

$xhost +
ksh: xhost not found

Plz help me to set the DISPLAY variable.

LINUXQueAns 10-21-2010 05:00 AM

$ #ksh -c "export DISPLAY=IPADDR:0.0"
$ echo $DISPLAY

$

jlliagre 10-21-2010 05:39 AM

Change your login shell from sh to something usable, like ksh or bash.
Append ":/usr/openwin/bin:/usr/sfw/bin" to your PATH.

mothball67 11-08-2010 07:14 AM

If you really like to use sh for your shell, which I would not recommend, you would need to define the variable and then export it.

$ DISPLAY=IPADDR:0.0
$ export DISPLAY


All times are GMT -5. The time now is 03:12 AM.