Using scrot- Install scrot with your package manager. On Debian and Ubuntu-like systems, type sudo apt-get install scrot. If your account isn't included in the sudoers file, first type su, type your password and afterwards type apt-get install scrot. On RPM-based systems who are using yum, type sudo yum install scrot. Same here about the sudoers file.
- Run scrot (type scrot in your terminal)
- Press the PrtScr-button. The screenshot will be in /home/user/.
Using imagemagickimagemagick is a collection of tools and libraries for many image formats. It is pre-installed in most distributions. You can check the availability of the binary needed by typing
$ which import
/usr/bin/import
--
Ref: wiki.lxde.org/en/How_to_take_screenshots