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 …AI-enabled developer productivity, build systems, and engineering leadership
Posted on in System Administration
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 …Posted on in System Administration
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!" When
running apt-get update the following errors dump out:
$ apt-get update
W: GPG …Posted on in System Administration
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 …
Posted on in System Administration
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.
The first is a simple restart by sending …
Posted on in System Administration
Posted on in System Administration
I stumbled across this problem when a daily cronjob on one of our Debian servers complained about this. A lot. If you run across this on one of your systems, there is a quick fix.
In our case, it turned out that /usr/bin/mandb could not read /etc/passwd …
Posted on in System Administration
Thanks to an error report from one of my backup jobs, I noticed that
/Users/slap/Library/Logs/DiagnosticReports was filling up with Finder crash
reports (files of the type *.crash). These files were being created once a
minute. Additionally, icons on my Desktop were blinking once a minute.
Upon …
Posted on in System Administration
I decided the other night to begin doing some testing using my headless Mac Mini. I use VirtualBox for all my testing on my Mac OS X systems. Since the Mini is headless, I decided now was as a good a time as any to start using VirtualBox via the …
Posted on in System Administration
On your Mac, the Brother ControlCenter software that let's you scan an image from your Brother MFC to your computer is started at boot by launchd. Therefore, it can be restarted from the command line.
For example, here is a list of processes controlled by launchd:
$ launchctl list | grep brother …Posted on in System Administration
I have a fairly lightly loaded MySQL server with a few tables that are updated every five minutes. Other than these updates, there are very few queries run against the database. The data is queried just a few times per month. Ever so often, one of the more complicated queries …
Posted on in System Administration
Posted on in System Administration
Practical Oracle 11g SQL*Plus and RMAN commands for inspecting Fast Recovery Area usage and backup history.
Posted on in System Administration
If you are unfamiliar with Oracle and setting up your vCloud Director Oracle database, don't make the same mistake I made:
SQL> CREATE TABLESPACE "CLOUD_DATA" DATAFILE "/home/oracle/app/oracle/oradata/orcl/cloud_data01.dbf" SIZE 1000M AUTOEXTEND ON ;
CREATE TABLESPACE "CLOUD_DATA" DATAFILE "/home/oracle/app/oracle/oradata/orcl/cloud_data01.dbf …Posted on in system_administration
for id in \`find . -mtime +10 -name qf\\\* \| sed 's/\^....//'\`; do
mv qf\${id} /var/tmp/scott-20120104/ ;
mv df\${id} /var/tmp/scott-20120104/ ;
done
Posted on in System Administration
When I upgraded to OS X 10.7 (Lion), I started using the built-in IPSec VPN client rather than Cisco's VPNClient. I experienced problems immediately. At first it appeared that the connection was being made, but no traffic was passing. When I tried pinging by IP address, I found that …