We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
Page Index Toggle Pages: 1
Run exported app without display (Read 1608 times)
Run exported app without display
Nov 27th, 2007, 8:28pm
 
Hi, we have a processing app that renders a series of images.

I've exported it as a linux application, but when I run it it opens an X11 window and show the display while also rendering the images to disk.

I want to run this in a command line context on linux without having to show the display. How do I do this?
Re: Run exported app without display
Reply #1 - Nov 27th, 2007, 8:44pm
 
Short answer: I don't think you can.
See: http://processing.org/discourse/yabb_beta/YaBB.cgi?board=Suggestions;action=display;num=1193317878;start=8#8
Re: Run exported app without display
Reply #2 - Nov 27th, 2007, 10:24pm
 
Hm. Well, thanks to your link I at least got it to not pop open a X window while rendering by using the non-display render code posted there.

But on the mac when I do this it renders faster than real time, using 100% of the CPU. On Linux, it uses 1% or 2% of the CPU and takes much longer than real time. Is it still sending data over X11 even though a window is not showing up?


Re: Run exported app without display
Reply #3 - Nov 27th, 2007, 11:25pm
 
Hey, I got it to not take forever on a remote linux box. You still need X11 but I did

# apt-get install xvfb
# Xvfb :2 &
[1] 14401
# export DISPLAY=":2"
# ./runcode

This creates a virtual framebuffer so it doesn't have to send over all the data to your client.

Page Index Toggle Pages: 1