level 11
封崇必有年
楼主
1.安装
$ sudo yum install scrot
[sudo] password for Abcdefg:
Loaded plugins: langpacks, presto, refresh-packagekit
updates/metalink | 6.2 kB 00:00
updates | 4.5 kB 00:00
updates/primary_db | 4.4 MB 00:02
updates/group_gz | 434 kB 00:19
Resolving Dependencies
--> Running transaction check
---> Package scrot.x86_64 0:0.8-7.fc17 will be installed
--> Processing Dependency: libgiblib.so.1()(64bit) for package: scrot-0.8-7.fc17.x86_64
--> Processing Dependency: libImlib2.so.1()(64bit) for package: scrot-0.8-7.fc17.x86_64
--> Running transaction check
---> Package giblib.x86_64 0:1.2.4-16 will be installed
---> Package imlib2.x86_64 0:1.4.5-3.fc17 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
scrot x86_64 0.8-7.fc17 fedora 19 k
Installing for dependencies:
giblib x86_64 1.2.4-16 fedora 22 k
imlib2 x86_64 1.4.5-3.fc17 fedora 192 k
Transaction Summary
================================================================================
Install 1 Package (+2 Dependent packages)
Total download size: 232 k
Installed size: 684 k
Is this ok [y/N]: y
Downloading Packages:
(1/3): giblib-1.2.4-16.x86_64.rpm | 22 kB 00:00
(2/3): scrot-0.8-7.fc17.x86_64.rpm | 19 kB 00:04
(3/3): imlib2-1.4.5-3.fc17.x86_64.rpm | 192 kB 00:17
--------------------------------------------------------------------------------
Total 13 kB/s | 232 kB 00:17
Running Transaction Check
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : imlib2-1.4.5-3.fc17.x86_64 1/3
Installing : giblib-1.2.4-16.x86_64 2/3
Installing : scrot-0.8-7.fc17.x86_64 3/3
Verifying : giblib-1.2.4-16.x86_64 1/3
Verifying : scrot-0.8-7.fc17.x86_64 2/3
Verifying : imlib2-1.4.5-3.fc17.x86_64 3/3
Installed:
scrot.x86_64 0:0.8-7.fc17
Dependency Installed:
giblib.x86_64 0:1.2.4-16 imlib2.x86_64 0:1.4.5-3.fc17
Complete!
<brainz@www ~="">2.使用
$ scrot -s rectangle.png</brainz@www>
回车后,使用鼠标拖曳的矩形区域将被 scrot 抓取下来
3.例子


2012年07月18日 14点07分
1
$ sudo yum install scrot
[sudo] password for Abcdefg:
Loaded plugins: langpacks, presto, refresh-packagekit
updates/metalink | 6.2 kB 00:00
updates | 4.5 kB 00:00
updates/primary_db | 4.4 MB 00:02
updates/group_gz | 434 kB 00:19
Resolving Dependencies
--> Running transaction check
---> Package scrot.x86_64 0:0.8-7.fc17 will be installed
--> Processing Dependency: libgiblib.so.1()(64bit) for package: scrot-0.8-7.fc17.x86_64
--> Processing Dependency: libImlib2.so.1()(64bit) for package: scrot-0.8-7.fc17.x86_64
--> Running transaction check
---> Package giblib.x86_64 0:1.2.4-16 will be installed
---> Package imlib2.x86_64 0:1.4.5-3.fc17 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
scrot x86_64 0.8-7.fc17 fedora 19 k
Installing for dependencies:
giblib x86_64 1.2.4-16 fedora 22 k
imlib2 x86_64 1.4.5-3.fc17 fedora 192 k
Transaction Summary
================================================================================
Install 1 Package (+2 Dependent packages)
Total download size: 232 k
Installed size: 684 k
Is this ok [y/N]: y
Downloading Packages:
(1/3): giblib-1.2.4-16.x86_64.rpm | 22 kB 00:00
(2/3): scrot-0.8-7.fc17.x86_64.rpm | 19 kB 00:04
(3/3): imlib2-1.4.5-3.fc17.x86_64.rpm | 192 kB 00:17
--------------------------------------------------------------------------------
Total 13 kB/s | 232 kB 00:17
Running Transaction Check
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : imlib2-1.4.5-3.fc17.x86_64 1/3
Installing : giblib-1.2.4-16.x86_64 2/3
Installing : scrot-0.8-7.fc17.x86_64 3/3
Verifying : giblib-1.2.4-16.x86_64 1/3
Verifying : scrot-0.8-7.fc17.x86_64 2/3
Verifying : imlib2-1.4.5-3.fc17.x86_64 3/3
Installed:
scrot.x86_64 0:0.8-7.fc17
Dependency Installed:
giblib.x86_64 0:1.2.4-16 imlib2.x86_64 0:1.4.5-3.fc17
Complete!
<brainz@www ~="">2.使用
$ scrot -s rectangle.png</brainz@www>
回车后,使用鼠标拖曳的矩形区域将被 scrot 抓取下来
3.例子


