1.安装scrot工具
apt-get install scrot
2.scrot源码
https://github.com/xingyun86/scrot.git
apt-get install giblib*
./configure --prefix=$PWD/Output
make
3.运行scrot
./scrot 123.png