Tested on Debian 7 and Ubuntu 14.04.