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"