<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="City"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="place"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="PersonName"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
p
        {mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:windowtext;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>
</head>
<body lang=EN-US link=blue vlink=blue>
<div class=Section1>
<p class=MsoNormal><font size=3 face=Arial><span style='font-size:12.0pt;
font-family:Arial'>Thank you for the suggestion. I "setenv DISPLAY
:0" in the .cshrc file.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face=Arial><span style='font-size:12.0pt;
font-family:Arial'>Now, pvserver works when I am logged onto the console on
both machines.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face=Arial><span style='font-size:12.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=3 face=Arial><span style='font-size:12.0pt;
font-family:Arial'>Is there a way to get pvserver to work without logging onto the
console for each machine?<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face=Arial><span style='font-size:12.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=3 face=Arial><span style='font-size:12.0pt;
font-family:Arial'>Specifically, is there a way to:<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face=Arial><span style='font-size:12.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=3 face=Arial><span style='font-size:12.0pt;
font-family:Arial'>1. Compile Paraview so that pvserver does not have any X
server dependency?<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face=Arial><span style='font-size:12.0pt;
font-family:Arial'> I compiled Paraview with off-screen <st1:City w:st="on"><st1:place
w:st="on">Mesa</st1:place></st1:City>.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face=Arial><span style='font-size:12.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=3 face=Arial><span style='font-size:12.0pt;
font-family:Arial'>OR<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face=Arial><span style='font-size:12.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=3 face=Arial><span style='font-size:12.0pt;
font-family:Arial'>2. Configure X server to allow windows to be opened by folks
not on the console?<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face=Arial><span style='font-size:12.0pt;
font-family:Arial'> Security restrictions on our systems prevent me from
using "xhost +".<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face=Arial><span style='font-size:12.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<div>
<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>
<hr size=2 width="100%" align=center tabindex=-1>
</span></font></div>
<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> Berk Geveci
[mailto:berk.geveci@gmail.com] <br>
<b><span style='font-weight:bold'>Sent:</span></b> Tuesday, December 20, 2005
6:43 AM<br>
<b><span style='font-weight:bold'>To:</span></b> Alex Decastro<br>
<b><span style='font-weight:bold'>Cc:</span></b> <st1:PersonName w:st="on">paraview@paraview.org</st1:PersonName><br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: [Paraview] mpirun
pvserver: bad X server connection.</span></font><o:p></o:p></p>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>You probably have to set
DISPLAY to :0 in your .XXXrc (.bashrc, .cshrc, .kshrc, .zshenv) so that it is
set during a non-interactive remote session. In the next version of ParaView
(2.6), it will be possible to set the display in a configuration file. <br>
<br>
<o:p></o:p></span></font></p>
<div>
<p class=MsoNormal><span class=gmailquote><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'>On 12/19/05, <b><span style='font-weight:bold'>Alex
Decastro</span></b> <<a href="mailto:decastro@sdsc.edu">decastro@sdsc.edu</a>>
wrote:</span></font></span><o:p></o:p></p>
<div>
<p><font size=3 face=Arial><span style='font-size:12.0pt;font-family:Arial'>I
installed Paraview 2.2.1 with OSMesa 5.0.2 and MPICH <a href="http://1.2.5.2"
target="_blank">1.2.5.2</a> on RedHat Linux.</span></font><o:p></o:p></p>
<p><font size=3 face=Arial><span style='font-size:12.0pt;font-family:Arial'>I
am trying to run pvserver in parallel using MPI.</span></font><o:p></o:p></p>
<p><font size=3 face=Arial><span style='font-size:12.0pt;font-family:Arial'> </span></font><o:p></o:p></p>
<p><font size=3 face=Arial><span style='font-size:12.0pt;font-family:Arial'>Here
is the shell script I use to run pvserver:</span></font><o:p></o:p></p>
<p><font size=3 face=Arial><span style='font-size:12.0pt;font-family:Arial'>#!/bin/sh</span></font><o:p></o:p></p>
<p><font size=3 face=Arial><span style='font-size:12.0pt;font-family:Arial'>export
DISPLAY=0.0</span></font><o:p></o:p></p>
<p><font size=3 face=Arial><span style='font-size:12.0pt;font-family:Arial'>$(MPI_HOME)/bin/mpirun
-v -machinefile machines.</span></font><o:p></o:p></p>
<p><font size=3 face=Arial><span style='font-size:12.0pt;font-family:Arial'>txt
-np 2 $(PARAVIEW_HOME)/bin/pvserver --use-offscreen-rendering</span></font><o:p></o:p></p>
<p><font size=3 face=Arial><span style='font-size:12.0pt;font-family:Arial'> </span></font><o:p></o:p></p>
<p><font size=3 face=Arial><span style='font-size:12.0pt;font-family:Arial'>machines.txt
- is a text file listing two machines.</span></font><o:p></o:p></p>
<p><font size=3 face=Arial><span style='font-size:12.0pt;font-family:Arial'> </span></font><o:p></o:p></p>
<p><font size=3 face=Arial><span style='font-size:12.0pt;font-family:Arial'>Here
is the error log:</span></font><o:p></o:p></p>
<p><font size=3 face=Arial><span style='font-size:12.0pt;font-family:Arial'>Listen
on port: 11111</span></font><o:p></o:p></p>
<p><font size=3 face=Arial><span style='font-size:12.0pt;font-family:Arial'>Waiting
for client...</span></font><o:p></o:p></p>
<p><font size=3 face=Arial><span style='font-size:12.0pt;font-family:Arial'>connected
to port 11111</span></font><o:p></o:p></p>
<p><font size=3 face=Arial><span style='font-size:12.0pt;font-family:Arial'>Client
connected.</span></font><o:p></o:p></p>
<p><font size=3 face=Arial><span style='font-size:12.0pt;font-family:Arial'>Process
id: 1 >> ERROR: In
/projects/vis/users/decastro/paraview-mpi2/paraview-2.2.1/VTK/Rendering/vtkXOpenGLRenderWindow.cxx,
line 326</span></font><o:p></o:p></p>
<p><font size=3 face=Arial><span style='font-size:12.0pt;font-family:Arial'>vtkXOpenGLRenderWindow
(0xb7825c0): bad X server connection.</span></font><o:p></o:p></p>
<p><font size=3 face=Arial><span style='font-size:12.0pt;font-family:Arial'>
</span></font><o:p></o:p></p>
<p><font size=3 face=Arial><span style='font-size:12.0pt;font-family:Arial'>Process
id: 1 >> ERROR: In /projects/vis/users/decastro/paraview-mpi2/paraview-2.2.1/VTK/Rendering/vtkXOpenGLRenderWindow.cxx,
line 169</span></font><o:p></o:p></p>
<p><font size=3 face=Arial><span style='font-size:12.0pt;font-family:Arial'>vtkXOpenGLRenderWindow
(0xb7825c0): bad X server connection.</span></font><o:p></o:p></p>
<p><font size=3 face=Arial><span style='font-size:12.0pt;font-family:Arial'> </span></font><o:p></o:p></p>
<p><font size=3 face=Arial><span style='font-size:12.0pt;font-family:Arial'>On
both machines, I logged into the console and set the environment variable:
setenv DISPLAY :0.0</span></font><o:p></o:p></p>
<p><font size=3 face=Arial><span style='font-size:12.0pt;font-family:Arial'>Everything
works fine if I use –np 1 instead of –np 2.</span></font><o:p></o:p></p>
<p><font size=3 face=Arial><span style='font-size:12.0pt;font-family:Arial'>It
is possible that security restrictions on our Linux system prevent the two
pvserver processes from communicating using X server. I cannot run "xhost
+" on our Linux system, due to our security restrictions. Could that be
related to the problem?</span></font><o:p></o:p></p>
<p><font size=3 face=Arial><span style='font-size:12.0pt;font-family:Arial'> </span></font><o:p></o:p></p>
<p><font size=3 face=Arial><span style='font-size:12.0pt;font-family:Arial'>For
example, if I use rsh to start xclock, I get the following error:</span></font><o:p></o:p></p>
<p><font size=3 face=Arial><span style='font-size:12.0pt;font-family:Arial'>%
rsh machine xclock</span></font><o:p></o:p></p>
<p><font size=3 face=Arial><span style='font-size:12.0pt;font-family:Arial'>Error:
Can't open display.</span></font><o:p></o:p></p>
<p><font size=3 face=Arial><span style='font-size:12.0pt;font-family:Arial'> </span></font><o:p></o:p></p>
<p><font size=3 face=Arial><span style='font-size:12.0pt;font-family:Arial'>Thanks
for any help,</span></font><o:p></o:p></p>
<p><font size=3 face=Arial><span style='font-size:12.0pt;font-family:Arial'>Alex</span></font><o:p></o:p></p>
<p><font size=3 face=Arial><span style='font-size:12.0pt;font-family:Arial'> </span></font><o:p></o:p></p>
</div>
<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'><br>
_______________________________________________<br>
ParaView mailing list<br>
<a href="mailto:ParaView@paraview.org">ParaView@paraview.org</a><br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
<br>
<o:p></o:p></span></font></p>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
</div>
</body>
</html>