comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: IDL without X11?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: IDL without X11? [message #69584 is a reply to message #69583] Fri, 05 February 2010 13:01 Go to previous messageGo to previous message
Karl[1] is currently offline  Karl[1]
Messages: 79
Registered: October 2005
Member
On Feb 5, 1:16 pm, nata <bernat.puigdomen...@gmail.com> wrote:
> I found this:
>
> Since this program is an X client, it requires the presence of an X
> server,
> making it problematic to automate this process using CRON.
>
> The X version X11R6 was downloaded via anonymous ftp from:
>
> ftp://ferret.wrc.noaa.gov/pub/special_requests/xvfb/solaris/ X11R6/bin...
>
> Then it's just a matter of starting the virtual frame buffer program
> on <HOST> to create the virtual display #1:
>
>   /usr/X11R6/bin/Xvfb :1 -screen 0 1152x900x8 &
>
> Then within the script that performs <desired batch operations>
> the following line sends graphics output to DISPLAY 1, the virtual
> frame
> buffer we just started:
>
>   set DISPLAY=:1.0 ; export DISPLAY
>
> I installed Xvfb and I do:
>  Xvfb :5 -screen 0 1152x900x8 &
>  set DISPLAY=:5.0 ; export DISPLAY
>  idl
>  plot, dist(2)
>  % Compiled module: DIST.
>  X11 connection rejected because of wrong authentication.
>
> T_T It doesn't work !
> Help?
> nata

I was going to suggest Xvfb as well. The only other way I can think
of is find another machine that is running an X server all the time,
set up authentication (xhost or whatever), and then have your IDL
process point its DISPLAY at that machine. But this seems fragile.

What you are doing should work. Things to look at:

Is your Xvfb server really running? Check process list.
Can you run another X11 non-IDL client such as xclock to the Xvfb
server?

The error message really suggests that there is an SSH issue somehow.
I know that you are logging into this headless server with SSH and
that you want the Xvfb server and IDL client to both run on the
headless server, but something isn't getting set the way you think it
is. Check your env vars, etc. Might try using set DISPLAY=localhost:
5:0 just to be explicit.

Might also try turning off X11 tunneling in your initial connection to
the headless server, just to rule that out. It turns out that if you
have X11 tunneling enabled in SSH, not only will SSH set your DISPLAY
to localhost:10.0, but it will also put an authentication cookie in
your ~/.Xauthority file. You are undoing the effect of SSH setting
the DISPLAY to :10, but not the effect of the cookie. Might try
renaming the ~/.Xauthority file or something.

Try googling on the error message text for a number of other
possibilities.

I think you are on the right track - something simple must be wrong.
Of course it would be better if you were allowed to change the IDL
code to not do this :-).
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: fingerprint
Next Topic: IDL processed mosaic image of the Moon, 8000x8800 pixels

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 21:45:12 PDT 2025

Total time taken to generate the page: 0.39989 seconds