Browser screenshots on a Linux server

Web screenshots from a headless Linux server

On Ubuntu 10.04.3 AMD64

$ sudo apt-get install xvfb xfonts-100dpi xfonts-75dpi xfonts-scalable xfonts-cyrillic x-ttcidfont-conf
$ sudo apt-get install python-qt4 libqt4-webkit
$ curl -OL https://raw.github.com/AdamN/python-webkit2png/master/webkit2png.py
$ chmod +x webkit2png.py
$ export DISPLAY=localhost:99.0
$ Xvfb :99 -screen 0 1600x1200x24+32 &
$ ./webkit2png.py -o paul.ouderkirk.ca.png "http://paul.ouderkirk.ca"
Posted at 2pm on 08/03/12 | no comments | Filed Under: linux read on

When does my SSL certificate expire?

Quick and dirty method for checking the expiration data on an SSL certificate:

$ echo "" | openssl s_client -connect paul.ouderkirk.ca:443 2> /dev/null | openssl x509 -noout -enddate
notAfter=Dec 29 05:00:47 2012 GMT
Posted at 10am on 29/02/12 | 1 comment | Filed Under: linux read on

About

Paul D. Ouderkirk is a Linux/UNIX systems administrator in Ottawa, Canada.

“You’ll have to get used to [@pdo], he suffers from a deplorable excess of personality, especially for a [sysadmin]”

Categories