Slaptijack Title

Archive for the ‘System Administration’ Category

Why Isn't tmpreaper Working?

If you have a directory that you want to keep clean, tmpreaper is a great way to remove files based on how old they are. The other day, I had a directory that looked like this: x@x:~/dump$ ls -l -rw-r--r-- 1 x x 212268169 Mar 15 01:02 x-2015-03-15.sql.gz -rw-r--r-- 1 x x 212270156 Mar 16 […]

Categories: System Administration

WARNING: The following packages cannot be authenticated!

We run several (read: hundreds) of servers that are still running Debian 6 (Squeeze). A few months ago, we started seeing the following errors coming from the daily apt cronjob: 'WARNING: The following packages cannot be authenticated!'

Categories: System Administration

OS X Not Appending Search Domains - Yosemite Edition

It seems this problem has resurfaced again with the new version of Mac OS X. More specifically, this problem seems to affect appending search domains when the hostname contains a dot. In Yosemite (10.10), mDNSResponder has been replaced with discoveryd. Fortunately, all we need to do here is add the --AlwaysAppendSearchDomains argument to the LaunchDaemon […]

Categories: System Administration

Mac OS X Not Using Search Domains

Every time I restart my OS X Mountain Lion (10.9) laptop, it stops using the DNS search domains I've added via the Network preferences pane. I have found that restarting mDNSResponder fixes this issue. There are two ways to do this.

Categories: System Administration

Puppet + Augeas: Modify Logrotate Configuration

On my web server, I keep my web sites in /var/lib/www. Each web site has a dedicated logs directory. Since logrotate is already rotating Apache logs on the server, I'd like to continue using that to rotate these log files as well. Below, is a Puppet snippet that uses Augeas to modify the stock Debian […]

Categories: System Administration