Paul D. Ouderkirk

guerilla sysadmin

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"

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

Laws of Transcoding Video*

  1. Never delete the original.
  2. Transcoding always wants more CPU cores than you have.
  3. Never transcode when you can remux.

*They’re more like guidelines…

Words of wisdom

I have a stack of deadlines a mile high, but I think I’m also going to sit around with a bottle and just think for a while. The thinking time is essential. At least half of all writing involves just sitting and staring into space. Letting your brain out to hunt down ideas, bringing them back all warm and bloody between its teeth.

Warren Ellis

RAS: Reliability, Availability, Serviceability

Reliability: parts that tend not to fail
Availability: when a part fails, there’s a backup
Serviceability: when you’re replacing a failed part, you don’t need to down the server

Server Burn-in

I used to burn-in new servers by having them compile MySQL from source in a loop for 24-48 hours, but let’s face it, that’s not much of a challenge for today’s servers.

You know what is? Building OpenOffice.org.
Continue reading

Airing of Grievances, part two

Who picked these example cities for timezones in Canada? Dawson *and* Dawson Creek? (populations: 1,327 and 11,811, respectively).

Atikokan?!? (population:3,293) I wasn’t even sure what province this one was in, I had to look it up.

Continue reading

Airing of grievances, part one.

Default install of OpenSUSE 11 (meaning I didn’t explicitly include or exclude any particular software packages during the installation).

Comes with OpenOffice.org, Banshee (media player), F-Spot (like iPhoto) and Firefox.

Not included? A whois client.

OLPC XO-1 /proc/cpuinfo

[olpc@xo-11-42-2b ~]$ cat /proc/cpuinfo
processor : 0
vendor_id : AuthenticAMD
cpu family : 5
model : 10
model name : Geode(TM) Integrated Processor by AMD PCS
stepping : 2
cpu MHz : 430.931
cache size : 128 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 1
wp : yes
flags : fpu de pse tsc msr cx8 sep pge cmov clflush mmx mmxext 3dnowext 3dnow
bogomips : 863.19
clflush size : 32

Chumby /proc/cpuinfo

chumby:~# cat /proc/cpuinfo
Processor : ARM926EJ-Sid(wb) rev 4 (v5l)
BogoMIPS : 174.89
Features : swp half thumb fastmult edsp java
CPU implementer : 0x41
CPU architecture: 5TEJ
CPU variant : 0x0
CPU part : 0x926
CPU revision : 4
Cache type : write-back
Cache clean : cp15 c7 ops
Cache lockdown : format C
Cache format : Harvard
I size : 16384
I assoc : 4
I line length : 32
I sets : 128
D size : 16384
D assoc : 4
D line length : 32
D sets : 128

Hardware : Freescale MX21ADS
Revision : 0000
Serial : 0000000000000000

« Older posts

© 2014 Paul D. Ouderkirk

Theme by Anders NorenUp ↑