LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 06-15-2011, 02:30 PM   #16
Blinker_Fluid
Member
 
Registered: Jul 2003
Location: Clinging to my guns and religion.
Posts: 683

Rep: Reputation: 63

Quote:
Originally Posted by techM View Post
Yes on both the servers /etc/ssh/sshd_config , X11Forwarding is yes.

bash-2.05# echo $DISPLAY

bash-2.05#
What about your putty settings? if Enable X11 forwarding isn't checked you aren't going to display.
 
Old 06-16-2011, 02:30 AM   #17
techM
LQ Newbie
 
Registered: May 2010
Posts: 21

Original Poster
Rep: Reputation: 0
Solaris10 and Solaris9 are remote server. I access these systems from my PC on Windows. I access application GUI using Internet Explorer. Using Browser, i am able to see the graph.
If i need to modify the files, i login to these servers using putty from my PC on windows.

jlliagre - I login to Solaris9 thru putty and check echo $DISPALY, There is one line blank and prompt on the next line as below .

Code:
bash-2.05# echo $DISPLAY

bash-2.05#
Here i am not sure how it the graph is working without display value set.
Blinker_Fluid - I access application GUI (for both servers) using browser. But also as you said i enabled the X11 forwarding in putty settings. And already in /etc/ssh/sshd_config X11Forwarding is yes. and also whatever the putty settings, i am able to see graph from the application

Last edited by techM; 06-16-2011 at 02:33 AM.
 
Old 06-16-2011, 06:33 AM   #18
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.3, Oracle Linux, Mint, Tribblix
Posts: 9,746

Rep: Reputation: 456Reputation: 456Reputation: 456Reputation: 456Reputation: 456
Do you mean the java application is just creating graphics as files served by a web server and not directly accessing your screen ?
 
Old 06-16-2011, 08:22 AM   #19
techM
LQ Newbie
 
Registered: May 2010
Posts: 21

Original Poster
Rep: Reputation: 0
It should access and it is accessing.
 
Old 06-16-2011, 08:27 AM   #20
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.3, Oracle Linux, Mint, Tribblix
Posts: 9,746

Rep: Reputation: 456Reputation: 456Reputation: 456Reputation: 456Reputation: 456
Why should it if you view the graphic through a browser ?
 
Old 06-16-2011, 08:41 AM   #21
techM
LQ Newbie
 
Registered: May 2010
Posts: 21

Original Poster
Rep: Reputation: 0
Actual work/requirement is viewing graph through a browser ONLY. When it was not working, i checked various ways to handle. I checked through XManager also. When i run from XManager, and set display value as systemip:0, then i got the following error

Code:
java.lang.InternalError: Can't connect to X11 window server using '0.0.0.0:0' as the value of the DISPLAY variable.
	at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
But my requirement is graph through Browser only
 
Old 06-16-2011, 09:24 AM   #22
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.3, Oracle Linux, Mint, Tribblix
Posts: 9,746

Rep: Reputation: 456Reputation: 456Reputation: 456Reputation: 456Reputation: 456
If it works on Solaris 9 without using an X server, there is no point trying to make it work differently with Solaris 10.

Java can certainly draw graphics internally and on a file in headless mode. One way to do it is to launch the application with this option set:
Code:
java -Djava.awt.headless=true ...
This option is ignored if the DISPLAY variable is set.
 
Old 06-17-2011, 07:27 AM   #23
techM
LQ Newbie
 
Registered: May 2010
Posts: 21

Original Poster
Rep: Reputation: 0
i got the solution. The problem was XVFB not started on solaris10 servers. Now its working fine as per requirement.
 
Old 06-17-2011, 08:08 AM   #24
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.3, Oracle Linux, Mint, Tribblix
Posts: 9,746

Rep: Reputation: 456Reputation: 456Reputation: 456Reputation: 456Reputation: 456
Thanks for the feedback. That doesn't explain how it works on Solaris 9 as Xvfb, beeing an X11 server, is requiring the DISPLAY variable to be set too.
 
Old 06-20-2011, 02:54 AM   #25
techM
LQ Newbie
 
Registered: May 2010
Posts: 21

Original Poster
Rep: Reputation: 0
YES. After restarting the XVFB, then am able to set the display variable succesfully. But need to set the DISPLAY variable. Otherwise will get the same error.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
munin graph mahmoud Linux - Software 2 01-08-2009 09:41 AM
graph implementation simasimon Programming 2 10-05-2007 04:11 PM
graph plotting in c/c++ vrdhananjay Programming 1 01-20-2005 08:11 PM
graph connectivity durden2.0 Programming 1 04-17-2004 06:48 AM
Graph in Qt manjula_rajan Programming 0 03-18-2004 02:09 AM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

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

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration