Answer the question
In order to leave comments, you need to log in
How to take a screenshot of a virtual display in linux?
Look, I start programs like this with the following command:
DISPLAY=:99 xvfb-run -a -n 1 -l -s "-screen 0, 1920x1080x8" python3 main.py
Answer the question
In order to leave comments, you need to log in
vncsnapshot
is in the
upd repositories . I didn’t think that you might not have a vnc server, the X server itself can give screenshots, the utility
xwd -root -display :99 | convert - png:- > screenshot.png
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question