Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.


  Search this Thread
Old 10-21-2010, 05:56 AM   #1
Registered: Oct 2010
Posts: 36

Rep: Reputation: 0
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.

Last edited by LINUXQueAns; 10-21-2010 at 05:58 AM.
Old 10-21-2010, 06:00 AM   #2
Registered: Oct 2010
Posts: 36

Original Poster
Rep: Reputation: 0
$ #ksh -c "export DISPLAY=IPADDR:0.0"
$ echo $DISPLAY

Old 10-21-2010, 06:39 AM   #3
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.3, Oracle Linux, Mint
Posts: 9,716

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Change your login shell from sh to something usable, like ksh or bash.
Append ":/usr/openwin/bin:/usr/sfw/bin" to your PATH.
Old 11-08-2010, 08:14 AM   #4
LQ Newbie
Registered: Nov 2010
Location: DC
Distribution: solaris/arch/backtrack
Posts: 2

Rep: Reputation: 0
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.

$ export DISPLAY


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Do I need to reboot after installation of s/w and set the env variable srangu AIX 3 05-16-2006 05:28 AM
Do I need to remote after installation of s/w and set the env variable srangu AIX 2 05-12-2006 03:12 AM
How to test if an env variable is set King of Men Linux - Newbie 5 11-03-2005 05:39 AM
Environment Variable: how to change env DISPLAY in Redhat 9 lucastic Linux - General 2 07-21-2004 05:15 PM
how do you set an env variable from within a csh script? BrianK Linux - General 3 05-26-2004 03:16 PM > Forums > Other *NIX Forums > Solaris / OpenSolaris

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration