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 #69579 is a reply to message #69578] Fri, 05 February 2010 21:40 Go to previous messageGo to previous message
TonyL is currently offline  TonyL
Messages: 14
Registered: November 2008
Junior Member
On Feb 6, 10:54 am, Karl <karl.w.schu...@gmail.com> wrote:
> 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.

I use a cron job running on a Linux system that uses the Z-buffer for
all graphics. That way you avoid any need to define a graphics device
that has some kind of 'physical' existence. Z buffer uses system
memory. Of course you will need to change a few commands with the Z
buffer compared to a window device. I have use Xvfb before but i found
it was a hassle if the PC was ever restarted and the Xvfb wasn't auto
started.

Tony
[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 09:40:04 PDT 2025

Total time taken to generate the page: 1.92113 seconds