the Scrot installation system is CENTOS6.2i386 # wget http://fossies.org/unix/privat/scrot-0.8.tar.gz# tar XVF scrot-0.8. tar.gz # CD Scrot-0.8 # ./Configure error [[email protected] Scrot-0.8]# ./configurechecking forA bsd-compatible install .../usr/bin/install-cchecking whether build environment isSane Yeschecking Whether make sets $ (make) ... yeschecking forWorking aclocal-1.4. .. missingchecking forworking autoconf ... foundchecking forWorking automake-1.4. .. missingchecking forworking Autoheader ... foundchecking forworking makeinfo ... foundchecking forgcc ... gccchecking forC compilerdefaultOutput ... a. outchecking whether the C compiler works ... yeschecking whether we are cross compiling ... nochecking forsuffix of executables...checking forSuffix ofObjectfiles ... ochecking whether we areusingThe GNU C compiler ... yeschecking whether GCC accepts-g ... yeschecking forgcc option to accept ANSI C ... none neededchecking forgcc option to accept ANSI C ... none neededchecking forAn ANSI c-conformingConst. .. yeschecking forA bsd-compatible install .../usr/bin/install-cchecking Whether make sets $ (make) ... (cached) yeschecking whether to enable maintainer-specific portions of makefiles ... nochecking forgiblib-config ... nochecking forGiblib-version >=1.2.3... noThe giblib-Config script installed by Giblib could not be foundIf Giblib was installedinchPREFIX, make sure Prefix/bin is inchYour path, orSetThe giblib_config environment variable to theFull path to giblib-config.configure:error:Cannot Find Giblib:is giblib-configinchThe path?hint missing giblib # wget http://linuxbrit.co.uk/downloads/giblib-1.2.4.tar.gzor the following link # wget http://pkgs.fedoraproject.org/repo/pkgs/giblib/giblib-1.2.4.tar.gz/c810ef5389baf24882a1caca2954385e/ Giblib-1.2.4.tar.gz# tar ZXVF giblib-1.2.4. tar.gz # CD Giblib-1.2.4 #./Configure continue to prompt for error checking whether to buildStaticlibraries ... yeschecking forf95 option to produce PIC ...-fpiccheckingifF95 PIC Flag-FPIC works ... yescheckingifF95 Supports-c-o file.o yeschecking whether the F95 linker (/usr/bin/LD) supports shared libraries ... yeschecking dynamic linker characteristics ... GNU/Linux ld.sochecking How to hardcode library paths into programs ... immediatechecking whether stripping libraries ispossible ... yeschecking forA bsd-compatible install .../usr/bin/install-cchecking Whether make sets $ (make) ... (cached) yeschecking whether build environment isSane yeschecking whether to enable maintainer-specific portions of makefiles ... nocheckingifmalloc debugging iswanted ... nochecking forimlib2-config ... nochecking forImlib2-version >=1.0.0... noThe imlib2-Config script installed by IMLIB2 could not be foundIf Imlib2 was installedinchPREFIX, make sure Prefix/bin is inchYour path, orSetThe imlib2_config environment variable to theFull path to imlib2-config.configure:error:Cannot Find Imlib2:is imlib2-configinchThe path?hint missing imlib2, then download install, then OK. The installation sequence is logged as follows, ##################### #imlib ######################## wget http://Sourceforge.net/projects/enlightenment/files/imlib2-src/1.4.5/imlib2-1.4.5.tar.gz/downloadTar xvf imlib2-1.4.5. tar.gz CD imlib2-1.4.5 ./Configure make make install ####################### #giblib ##################### wget http:< /c6>//linuxbrit.co.uk/downloads/giblib-1.2.4.tar.gzCD giblib-1.2.4 ./Configure make make install ####################### #scrot ####################### wget http://fossies.org/unix/privat/scrot-0.8.tar.gzTar xvf scrot-0.8. tar.gz CD Scrot-0.8 ./Configure make make install ######################## #over ##################### installation is complete and the issue is not over #scrot running SCR OT command, the following prompt Libgiblib library did not find Scrot:error whileLoading shared libraries:libgiblib.so.1: Cannot open sharedObjectfile:no such file or directory in the system to find Libgiblib library files #find/usr-name libgiblib.so.1/usr/local/lib/libgiblib.so.1#cat/etc/ld.so.conf view current library load path include LD.SO.CONF.D/*. conf #echo "/usr/local/lib" >>/etc/ld.so.conf Add library path #ldconfig load library file Scrot normal use to #scrot--help view Scrot Help information Usage:scrot [OPTIONS] ... [FILE] The Where file is the target file for the screenshot. If file is not specified, a date-stamped FILE would be dropped in the current directory. See Mans Scrot for more details-h,--help Display this Help and exit-v,--version Output version information and exit-b,--border when selecting ... Scrot is used in Scrot format: Scrot [op tions] [file]. General usage generally, you can use Scrot to crawl the entire desktop, a specified window, and the selected rectangular area. Crawl Desktop: Scrot desktop.png, this command fetches the current entire desktop and saves it as a desktop.png file. This image file can be found in the current directory. Grab window: scrot-bs window.png, option B allows Scrot to grab the outer frame when the window is crawled, while the S option lets the user choose what window to crawl.Crawl area: Scrot-s rectangle.png, after this command is executed, the rectangular area dragged by the mouse is Scrot crawled down. Advanced usage is sufficient for the general crawl to use the Scrot base. However, in some special cases, using Scrot to grab images requires some skill. Delay Crawl: SCROT-CD menu.png, the D option in this command is used to delay the capture of the image, followed by 10 for 10 seconds delay, the preceding option C shows the countdown. This technique will fully demonstrate its magic when crawling menus or command prompts. Generate thumbnails: scrot-t 50% thumb.png, this command generates thumbnails of the image while capturing the image. The option T will turn on this feature, followed by 50% as the scale percentage of the original. Change quality: Scrot-q quality.jpg, the Q option in this command is used to change the quality of the captured image, which has a value between 1-100 and defaults to 75. The higher the value, the higher the image quality, and the lower the compression rate of the image, the larger the space occupied. Action screenshot: Scrot action.png-e ' mv $f ~/images/', which moves the captured image to the ~/images/directory. Obviously, the function of manipulating the image is turned on by the E option, where the $f represents the path/file name of the original. The above example specifies the file name of the captured image that needs to be saved. In fact, if you do not specify a name, Scrot automatically uses a combination of the current datetime and width height to generate the file name when the image is crawled.
Send a picture to see the effect of the capture,
Open to view the following
It seems a little regret that cannot support the paste function, can only save the file as a picture, but can meet the daily use.
Another screenshot software is import
A few common import commands:
1 Import my.jpg
You can then use the mouse to select the range
2 Sleep 5; Import my.jpg
After 5 Seconds of waiting, intercept the mouse to select the range
3 Import-frame my.jpg
Capture the window clicked by the mouse
4 Import-window Root My.jpg
Captures the entire screen, acting like the print screens key
5 Import-frame-window 0xe00003 Mypicture.jpg
Used to intercept windows with window ID 0xe00003.
You can use the Xwininfo command to get the window ID
PS: Capture the completed picture, if you want to know its parameters, you can use the Identify command to add the image file name on it.
Installation of software Scrot under Linux