xvfb failed to start in ubuntu

Wei Lin picture Wei Lin · Sep 22, 2012 · Viewed 8.8k times · Source

I trying to get a screen shot by using the following two tools (something relative to qt, webkit and etc. maybe)

when run it on server using xvfb-run following the guide of them, I got the error: Xvfb failed to start

then I searched the situation and find a similar question here

xvfb run error in ubuntu 11.04

then try to add

--auto-servernum --server-num=1 

now the whole command is:

xvfb-run --auto-servernum --server-num=1 -server-args="-screen 0, 640*480*24" python webkit2png.py --url=http://google.com --out=test.png

but got another error: /usr/bin/xvfb-run: 187: kill: No such process

how to solve it ?

Answer

user1072651 picture user1072651 · Oct 9, 2012

It works when I remove "-server-args". Try doing that.

xvfb-run --auto-servernum --server-num=1 python webkit2png.py --url=http://google.com --out=test.png

This is the command you're looking for.