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 ?
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.
server-args
option is wrong, in your case it should be :
--server-args="-screen 0, 640x480x24"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With