Hi,

On Tue, 2011-10-04 at 10:45 -0500, Fan, Lei wrote:
> Thanks for your great help, Gerrit. 

no problem, I've been there before as we use rocks too ;)

> I tried to follow your instructions and
> got the following things:
> 
> [root@grrc ~]# ssh -x tile-0-0 printenv DISPLAY
> [root@grrc ~]# ssh -x tile-0-0 xterm
> Warning: This program is an suid-root program or is being run by the root
> user.
> The full text of the error or warning message cannot be safely formatted
> in this environment. You may get a more descriptive message by running the
> program as a non-root user or by removing the suid bit on the executable.
> xterm Xt error: Can't open display: %s
> xterm:  DISPLAY is not set

ok, a general comment, follow this advice an don't run things as root
with rocks. The root account is more limited in what it can access over
the network, the home directory for example is not a network dir for
root.

> Since I'm not very familiar with xterm and X11, I have to guess that it may
> come from the
> xorg configuration files. I uploaded two configuration files as reference.
> Could you help me know how
> I can set up display in xterm or in these files?

not quite, the basic X setup (done in the xorg.conf) looks ok, glx is
there, and the nvidia driver is used so that should be fine. You are
more dealing with local setup issues.

In general all X programs use the DISPLAY env var to determine which 
display to use. From the error message this is not being set during
the login process.

So the next thing to try is to run

ssh -x tile-0-0 'export DISPLAY=:0.0; xterm'

this should set the DISPLAY variable correctly before starting xterm.
If not the most likely error you get is 

xterm Xt error: Can't open display: %s

this would indicate that the security setting forbid anyone but the user
that is logged into the tile (the viz user) from opening things on the
DISPLAY. The common solution is to add xhost + to the login scripts for
viz. IIRC this should have been done by the viz roll, to confirm look at
~viz/.Xclients

it should contain the 'xhost +' command somewhere, if not add it and
restart X on the tiles so viz logs in again and the updated script is
taken into account.

with that you should be able to run commands that access the display on
the tile, e.g.

ssh -x tile-0-0 'export DISPLAY=:0.0; xterm'

should open the xterm window.

Last step to verify OpenGL is there run

ssh -x tile-0-0 'export DISPLAY=:0.0; glxinfo' | less

This should report NVIDIA Corporation in the vendor strings
and the OpenGL version string, for example : 

OpenGL version string: 4.1.0 NVIDIA 280.13

should match your driver version. If that is the case you should be able
to run the cluster server on the tile.

If you want to make the 'export DISPLAY=:0.0' persistent put it into the
~/.bashrc file of your user so it will be set for every shell you open.


kind regards
  gerrit




------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
Opensg-users mailing list
Opensg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to