logo       

Re: using pygtk to create plots on a server w/ no DISPLAY: msg#00210

gnome.gtk+.python

Subject: Re: using pygtk to create plots on a server w/ no DISPLAY

John Hunter [Sun, Aug 31, 2003 at 10:34:39AM -0500]:
> Typically when I log in to the server from a local machine w/o X, eg a
> win32 machine over putty, and try to import gtk, I get the exception
> "RuntimeError: could not open display". I'm wondering if there is
> anyway to use gtk in display-less mode.

AFAIK GTK has been ported to framebuffer Linux console, Berlin window system
and even a text terminals (via ncurses library), so there are plenty of
options, depending on what do you mean by "display". The easiest one IMVHO
would be to run it on Xvfb "display" - or use Xvnc server.

You can still set DISPLAY variable to :0.0 and try disturbing the local X
user, if your host doesn't have enough secure settings ;) Or, install
Cygwin's XFree86 on your Windows machine, or other Xservers, or ...

Regards,
--
Michal Pasternak :: http://pasternak.w.lub.pl
"unhelpfull channel isn't it :) but yeah it's all in the docs"
-- elhim on #wxwindows
_______________________________________________
pygtk mailing list pygtk@xxxxxxxxxx
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise