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 #69581 is a reply to message #69579] Fri, 05 February 2010 15:54 Go to previous messageGo to previous message
Karl[1] is currently offline  Karl[1]
Messages: 79
Registered: October 2005
Member
On Feb 5, 3:22 pm, nata <bernat.puigdomen...@gmail.com> wrote:
> Hi Karl,
>
> Thank you for your reply. Finally I got something.
> Now, I'm able to run the script but only for the root user (I don't
> know why). For the other users I got the following message:
> Warning: Cannot allocate colormap entry for default background.
>
> This is my final script:
>
>         export DISPLAY=:2
>         /usr/X11R6/bin/Xvfb :2 -screen 0 1152x900x16 &
>         /usr/local/itt/idl70/bin/idl -rt=my_script.sav -args A B C
>
> nata
>
> PS I realized that I just have to define the screen one time (/usr/
> X11R6/bin/Xvfb :2 -screen 0 1152x900x16 &).
> Then, if the script will be executed each 10 minutes using the 1st and
> 3th lines it's enough

What got rid of the

X11 connection rejected because of wrong authentication.

message?

I would put a sleep for a few seconds after you kick off Xvfb to make
sure it gets started before IDL tries to talk to it.

Also, I'd put a killall Xvfb after IDL runs. There's no good reason
to let the server run. If you have to run it as root, you might want
to find some other way to kill it, so you don't kill someone else's
Xvfb.

You don't need a screen that large - you could go really tiny in w and
h, and 8 bits for d. This is just a dummy server and you'll save some
memory.

The colormap issue is probably caused by the root user and the "other"
users having a different set of X default or config files, or
something along those lines. The "other" users may have config files
in their home dirs that are trying to init a desktop or who knows
what. It is just a warning - the IDL client still runs without being
root, right? I wouldn't run it as root if I could avoid it.

It could be that one of these config files is asking for a 32-bit
color spec and your server is 16 bpp. You might try starting Xfvb
with 32 bpp. Or move all those X-related config files out of the way
in your home dir and see if that helps. Check for X-related env vars
as well.
[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: Sat Oct 11 06:57:40 PDT 2025

Total time taken to generate the page: 2.31957 seconds