1
2
xwd -out screenshot.xwd -root -display :0.0
convert /tmp/screenshot.xwd /tmp/screenshot.png