Install ubuntu and use xvfb + CutyCapt to capture webpages

Source: Internet
Author: User

Test environment:
1. Ubuntu 10.04 LST on the VM
2. Putty is connected via SSH (this step is not required. I am using this method to connect to ubuntu server)
 

Software package to be installed:
The first step is to install these methods on ubuntu.

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 ++ Step 2

Svn co https://cutycapt.svn.sourceforge.net/svnroot/cutycapt, step 3

Step 4 of cd cutycapt/CutyCapt qmake make: Command Line Test

Xvfb-run -- server-args = "-screen 0, 1024x768x24"./CutyCapt -- url = http://www.google.com --out1_example.png generally follow this step to achieve the goal. However, I encountered some problems during the experiment.

Step 1: No problem,

Step 2 adds a cutycapt directory to the root directory. If the directory is successfully displayed, information such as Checked out revision 6 is displayed, indicating that the cutycapt is OK.

Step 3: cd to the cutycapt/CutyCapt directory and execute qmake. If there is no error, continue to execute make.
Step 4: Execute the Step 4 command under the/cutycapt/CutyCapt directory. Here I encountered a problem:/usr/bin/xvfb-run: 181 :. /CutyCapt: premission denied. I changed the permission of the/cutycapt/CutyCapt directory to a large one, such as 777. then you can.

In Linux, if Chinese characters are garbled, you need to install Chinese fonts.
Linux Command Line captures web page snapshots-(xvfb + CutyCapt)
The above is the result of your own experiment, hoping to help those who need it.


Author "Bob"

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.