For newer Ubuntus
sudo apt-get update sudo apt-get -y install build-essential sudo apt-get install cutycap
For older (like 10.04)
sudo apt-get update sudo apt-get -y install build-essential sudo apt-get install xvfb sudo apt-get install xfs xfonts-scalable xfonts-100dpi sudo apt-get install libgl1-mesa-dri sudo apt-get install subversion libqt4-webkit libqt4-dev g++ svn co https://cutycapt.svn.sourceforge.net/svnroot/cutycapt cd cutycapt/CutyCapt qmake make
Missing X environment?
Use http://www.x.org/archive/current/doc/man/man1/Xvfb.1.xhtml
sudo apt-get install xvfb
Capture the websites
./CutyCapt --url=http://www.google.com --out=example.png ./CutyCapt --url=http://www.google.com --out=example.html --out-format=html
Or:
xvfb-run --server-args="-screen 0, 1024x768x24" ./CutyCapt --url=http://www.google.com --out=example.png xvfb-run --server-args="-screen 0, 1024x768x24" ./CutyCapt --url=http://www.google.com --out=example.html --out-format=html