LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris and OpenSolaris.
General Sun, SunOS and Sparc related questions also go here.

Notices

Reply
 
LinkBack Search this Thread
Old 10-21-2010, 04:56 AM   #1
LINUXQueAns
Member
 
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 04:58 AM.
 
Old 10-21-2010, 05:00 AM   #2
LINUXQueAns
Member
 
Registered: Oct 2010
Posts: 36

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

$
 
Old 10-21-2010, 05:39 AM   #3
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,459

Rep: Reputation: 352Reputation: 352Reputation: 352Reputation: 352
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, 07:14 AM   #4
mothball67
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.

$ DISPLAY=IPADDR:0.0
$ export DISPLAY
 
  


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are 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 04:28 AM
Do I need to remote after installation of s/w and set the env variable srangu AIX 2 05-12-2006 02:12 AM
How to test if an env variable is set King of Men Linux - Newbie 5 11-03-2005 04:39 AM
Environment Variable: how to change env DISPLAY in Redhat 9 lucastic Linux - General 2 07-21-2004 04:15 PM
how do you set an env variable from within a csh script? BrianK Linux - General 3 05-26-2004 02:16 PM


All times are GMT -5. The time now is 07:45 PM.

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