Публичное пространство
Скриншот в Линукс CentOS 7
Установите пакет ImageMagick
yum install ImageMagick
Процесс установки:
Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile * base: mirror.reconn.ru * extras: mirror.reconn.ru * updates: mirror.logol.ru Resolving Dependencies --> Running transaction check ---> Package ImageMagick.x86_64 0:6.7.8.9-16.el7_6 will be installed --> Processing Dependency: libwmflite-0.2.so.7()(64bit) for package: ImageMagick-6.7.8.9-16.el7_6.x86_64 --> Running transaction check ---> Package libwmf-lite.x86_64 0:0.2.8.4-41.el7_1 will be installed --> Finished Dependency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: ImageMagick x86_64 6.7.8.9-16.el7_6 updates 2.1 M Installing for dependencies: libwmf-lite x86_64 0.2.8.4-41.el7_1 base 66 k Transaction Summary ================================================================================ Install 1 Package (+1 Dependent package) Total download size: 2.2 M Installed size: 7.8 M Is this ok [y/d/N]: y Downloading packages: (1/2): libwmf-lite-0.2.8.4-41.el7_1.x86_64.rpm | 66 kB 00:00 (2/2): ImageMagick-6.7.8.9-16.el7_6.x86_64.rpm | 2.1 MB 00:00 -------------------------------------------------------------------------------- Total 5.0 MB/s | 2.2 MB 00:00 Running transaction check Running transaction test Transaction test succeeded Running transaction Warning: RPMDB altered outside of yum. Installing : libwmf-lite-0.2.8.4-41.el7_1.x86_64 1/2 Installing : ImageMagick-6.7.8.9-16.el7_6.x86_64 2/2 Verifying : ImageMagick-6.7.8.9-16.el7_6.x86_64 1/2 Verifying : libwmf-lite-0.2.8.4-41.el7_1.x86_64 2/2 Installed: ImageMagick.x86_64 0:6.7.8.9-16.el7_6 Dependency Installed: libwmf-lite.x86_64 0:0.2.8.4-41.el7_1 Complete!
Для того, чтобы сделать скриншот выполните следующие команды:
export DISPLAY=:1 /usr/bin/import -window root screenshot_`date +%Y-%m-%d_%H_%M_%S`.png
© 1994-2023, ООО «Кристалл Сервис Интеграция».
Все права защищены..