Package URI: xvfbtex.tar.gz
[this is an export from a larger build environment]

2012-03-13 14:31:59 CDT (Mar Tue) updated for gcc-4.6


Connects to an X server such a XGLTEX which is running with a shared-memory
framebuffer in a valid OpenGL texture format.


  xvfbtex <shmid> <display> <xsize> [<ysize> [<modeflag>] ]

  shmid:    numeric, see ipcs(1)
  display:  XOpenDisplay(3x) arg for XGLTEXT server, to test XTestQueryExt
  xsize:    x size framebuffer, defaults to square in RGB mode, zsize 3
  ysize:    if present, set ysize (overrides the square bias from xsize)
  mode;     if present (any text), sets GL_RGBA mode and zsize of 4

Command example:

  XGLTEX -x 1600 -y 1200 -z 3 -c 8 -p 24 :1

    .. or, for later servers:

  XGLTEX -sp /etc/X11/xserver/SecurityPolicy -co /usr/lib/X11/rgb \
     -fp /usr/share/fonts/X11/misc -x 1600 -y 1200 -z 3 -c 8 -p 24 :1

  find line resembling:
   shared mem: 19890190 shmid, 12587008 bytes, address 0x40052000

  put shmid into:
   xvfbtex 19890190 :1 1600 1200

  either kill the XGLTEX with the -TERM signal (which trigger cleanup)
  or cleanup after run with something like:
   ipcs | grep $LOGNAME | awk '$NF == 0 { print "ipcrm shm " $2 }' | sh

Use of server - match :1 (or whatever) from XGLTEX command:

  export DISPLAY=:1.0
  xset +fp tcp/fonts:7100  # where fonts is an alias for local xfs fontserver
  xset +fp unix/:7100

run apps:

  fvwm2 &
  xloadimage -fullscreen -onroot ~/lib/images/wallpaper-rikku.jpg
  mozilla &
  xterm &