background preloader

Virtual thumbshoter

Facebook Twitter

Xvfb. Xvfb is primarily used for testing: Usage examples[edit] Screenshot example[edit] As an example, the following sequence of commands runs the virtual framebuffer as display ":1", runs a program on it, and captures the virtual screen in the file image.png using the import command of ImageMagick: Xvfb :1 & xv -display :1 & import -display :1 -window root image.png The result can be shown by running display image.png or xv image.png.

Xvfb

Xvfb-run command Remote control over SSH[edit] Xvfb is also used for remote control. Export DISPLAY=:1 Xvfb :1 -screen 0 1024x768x16 & fluxbox & x11vnc -display :1 -bg -nopw -listen localhost -xkb The next step is to fire up a SSH client such as PuTTY with tunneling to localhost port 5900 enabled. Ssh -N -T -L 5900:localhost:5900 user@remotehost & vncviewer -encodings 'copyrect tight zrle hextile' localhost:5900 x11vnc's man page also contains instructions. Xvnc (not to be confused with x11vnc) is very similar to Xvfb. See also[edit] External links[edit] Semicomplete.com - Jordan Sissel. Resig has a bunch of unit tests he does to make sure jQuery works properly on whatever browser.

semicomplete.com - Jordan Sissel

Manually running and checking unit test results is annoying and time consuming. Let's automate this. Update (May 2010): See this post for more details on automating xserver startup without having to worry about display numbers (:1, :2, etc). Combine something simple like Firefox and Xvfb (X Virtual Frame Buffer), and you've got a simple way to run Firefox without a visible display. Let's start Xvfb: startx -- `which Xvfb` :1 -screen 0 1024x768x24 # Or with Xvnc (also headless) startx -- `which Xvnc` :1 -geometry 1024x768x24 # Or with Xephyr (nested X server, requires X) startx -- `which Xephyr` :1 -screen 1024x768x24 This starts Xvfb running on :1 with a screen size of 1024x768 and 24bits/pixel color depth.

DISPLAY=:1 firefox # Or, if you run csh or tcsh env DISPLAY=:1 firefox. Using xvfb. GtkMozEmbed: Embedding Mozilla into Gtk Applications. You are here: Unix project page > GtkMozEmbed: Embedding Mozilla into Gtk Applications Introduction GtkMozEmbed is an easy-to-use widget that will allow you to embed a Mozilla browser window into your Gtk application.

GtkMozEmbed: Embedding Mozilla into Gtk Applications

It's designed to be easy to use and uncomplicated to make the barrier for use as low as possible. This means that the functionality exposed should cover about 80% of uses. If you want to get at some of Mozilla's higher brain functions it means that you will have to write your own embedding widget. In a future revision ( post M16 ) I will make it possible to get at the underlying nsIWebBrowser implementation from the embedding widget. Additionally, using the Gtk Mozilla embedding widget means that you don't have any C++ dependencies in your code that does the embedding. Please send any questions/comments or corrections to Christopher Blizzard <blizzard@mozilla.org> Function Reference. Serveur X sous Windows - La solution. Il est possible d'installer un serveur X sous Windows afin d'utiliser les applications X-Windows (Gnome, KDE, etc.) sous Windows (par exemple à travers une connexion ssh).

Serveur X sous Windows - La solution

La méthode suivante n'utilise pas Cygwin. Serveur X sous Windows - La solution. Gtkmozembed.MozEmbed. Gtkmozembed.MozEmbed gtkmozembed.MozEmbed — Embed Mozilla browser in Gtk application Ancestry +-- gobject.GObject +-- gtk.Object +-- gtk.Widget +-- gtk.Bin +-- gtk.MozEmbed Signal Prototypes Description GtkMozEmbed is an easy-to-use widget that will allow you to embed a Mozilla browser window into your Gtk application.

gtkmozembed.MozEmbed

It's designed to be easy to use and uncomplicated to make the barrier for use as low as possible. Here's a small example: import gtk import gtkmozembed class TinyGecko: def __init__(self): self.moz = gtkmozembed.MozEmbed() win = gtk.Window() win.add(self.moz) win.show_all() # self.moz.load_url(' data = '<html><head><title>Hello</title></head><body>pygtk dev</body></html>' self.moz.render_data(data, long(len(data)), ' 'text/html') if __name__ == '__main__': TinyGecko() gtk.main() Methods. Gobject Functions. Gobject.type_name The gobject.type_name() function returns the unique name that is assigned to the specified type. type can be a GObject type, type ID or instance.

gobject Functions

This function raises a TypeError exception if type isn't a PyGTK type. #525938 - iceweasel: AdBlock Plus (1.0.2) custom element hiding. Windows-to-Linux roadmap: Overview.