CentOS6安装webkit2png
增加源
/etc/yum.repos.d/CentOS-ATrpms.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
shell:
rpm --import http://packages.atrpms.net/RPM-GPG-KEY.atrpms
安装依赖包
yum -y install qt47 qt47-devel qt47-webkit qt47-webkit-devel gcc gcc-c++
yum -y install xauth
安装SIP
cd /usr/local/src
wget http://www.riverbankcomputing.co.uk/static/Downloads/sip4/sip-4.13.1.tar.gz
tar vzxf sip-4.13.1.tar.gz
cd sip-4.13.1
python configure.py
make && make install
安装Imaging
cd /usr/local/src
wget http://effbot.org/downloads/Imaging-1.1.7.tar.gz
tar -zxvf Imaging-1.1.7.tar.gz
cd Imaging-1.1.7
python setup.py install
安装PyQt
cd /usr/local/src
wget http://www.riverbankcomputing.co.uk/static/Downloads/PyQt4/PyQt-x11-gpl-4.9.tar.gz
tar vzxf PyQt-x11-gpl-4.9.tar.gz
cd PyQt-x11-gpl-4.9
python configure.py -q /usr/lib64/qt47/bin/qmake-qt47
make && make install
webkit2png下载和使用
http://github.com/AdamN/python-webkit2png/
./webkit2png.py -x 1024 768 -g 1024 0 http://box.inote.cc -o ibox.png
安装中文字体
yum -y install wqy-zenhei-fonts.noarch