SysAdmin

How to take a full webpage screenshot from a linux server

JJ
Jobin Joseph · Founder and CEO
·Published 16 February 2013·1 min read

Mission

To setup a software to take full webpage screenshot from the server running on runlevel 3 (Command Line)

Prerequisites Installation

apt-get install subversion svn libqt4-webkit libqt4-dev g++ gcc xvfb

or

yum install subversion svn libqt4-webkit libqt4-dev g++ gcc gcc-c++ xvfb qt4-devel

On CentOS 5, if you get any error, Do the following,

Add this to /etc/yum.repos.d/CentOS-Base.repo #ATrpms [atrpms] name= CentOS-$releasever – ATrpms baseurl=http://dl.atrpms.net/el$releasever-$basearch/atrpms/testing gpgcheck=1 gpgkey=http://ATrpms.net/RPM-GPG-KEY.atrpms enabled=1 rpm –import http://packages.atrpms.net/RPM-GPG-KEY.atrpms yum install subversion gcc-c++ qt44* qt44-devel*

Installation

cd /opt svn checkout https://cutycapt.svn.sourceforge.net/svnroot/cutycapt/CutyCapt cutycapt cd /opt/cutycapt qmake make

SymLink to Binary Path

ln -s /opt/cutycapt/CutyCapt /usr/local/bin/cutycapt

Take Screen shot from the command line

cd ~ xvfb-run –server-args=”-screen 0, 1024x768x24″ cutycapt  –url=http://www.JobNix.in –out=jobnix.in.jpeg

The screen shot will be available in your home directory as file name jobnix.in.jpeg

—
Any Questions…. Please comment

Jobin Joseph
Jobin Joseph, Founder and CEO
5x AWS Certified, ISO 27001:2022 Lead Implementer, 17+ years building cloud infrastructure for regulated industries.
About Jobin →

Reading this because your AWS bill or uptime is a problem?

30 minutes, direct with the founder, no sales pitch: one specific recommendation for your AWS workload.

Book a free 30-minute review
30 min Free Consultation →