You have to set to 16 bit or 24 bit color for the virtual buffer. Then most probably you have set the color depth to 32bit which never worked for me. This sets the display number 1 and screen 0 to 800×600 resolution with the color depth of 24. To get the output you have to dump the virtual display to a file and then convert to suitable jpg or png graphics with ImageMagick If you want to capture a screen shot but you have only a linux server running and no graphics card or monitor. I am installing the Xvfb (X11 server) on a Centos/ Redhat linux system. In this tutorial i will show how to install, setup and configure a display. It can be customized for multiple displays and screens as well. Xvfb is a virtual frame buffer X11 server that can be installed on linux servers without a monitor and graphics card.
0 Comments
Leave a Reply. |