UNIX

UNIX tips and tricks

mongrel based puppetmaster and strange error messages

5 January 2012
By

Earlier this week I did a portsupgrade(8) on my FreeBSD puppetmaster. After the upgrade was completed, puppet stopped working and was displaying these errors: err: /File[/var/puppet/lib]: Failed to generate additional resources using ‘eval_generate’: No format match the given format name or mime-type (text/html) err: /File[/var/puppet/lib]: Could not evaluate: No format match the given format name…

Read more »

DualHead2Go

1 November 2011
By
DualHead2Go

The DualHead2Go is a graphics expansion box from Matrox. What does it do? It allows someone to have dual (or triple) monitors attached to a laptop. It does this by mapping the monitors to look like one large monitor to the laptop.  When running /usr/sbin/system_profiler SPDisplaysDataType on my MacBook Pro 15″, it returns this info:…

Read more »

Puppet’s Exec type is lying

4 October 2011
By

Using puppet, you can trigger a command after a file is updated. This works really well where I want to update the sendmail.mc file, run make sendmail.cf and then restart the sendmail process. This is exactly what I want, but it didn’t work the way I expected. Setup and Configuration I have puppet configured to…

Read more »

Restoring ZFS filesystems on FreeBSD

20 September 2011
By

This past weekend, I wound up rebuilding the ZFS filesystem on my FreeBSD box. I went from a 2+1 RaidZ (5) system to a 4+1 and in the process increased the slice of each disk. After much trial and error, here is the list of important things I had to (re)learn through this. Working with…

Read more »

createrepo on FreeBSD

14 September 2011
By

What is createrepo(8)? createrepo(8) is a python(1) script which reads the RPM metadata and creates XML files that yum(8) can use to determine what a RPM package provides, requires and may conflict with.  To find out more details visit the createrepo(8) web site. Why put a Linux RPM utility on a FreeBSD system? I recently…

Read more »

Network filesystem performance on MacBook Air

16 April 2011
By

Just after Christmas, I bought myself a new 11in MacBook Air (MB Air) to replace the 12in PowerBook G4 (PB) that I’ve kept running entirely too long.  I selected the 4GB Ram, 128 GB SSD configuration as the system is not upgradable. I use the MB Air as my primary email, chat, web surfing, document…

Read more »

Fighting foreign language spam

24 January 2011
By

The single largest class of spam that seems to get into my inbox is foreign language spam.  The spam seems to get through the multiple anti-spam layers I use: sendmail SpamCop SpamHaus MailScanner -> Spam Assassin / ClamAV Procmail Mac OS X Mail.app Junk Filtering Custom Mail.app Rules I have no idea why this is…

Read more »

GPG key length and signing RPM packages

21 December 2010
By

For the last two years when I have created my new GPG key I have forgotten to limit the key length to 1024 bits.  This is needed because when signing RPM packages you can sign the packages with 2048 bit keys, but when you try to install them via rpm or yum, you get this…

Read more »

perl, the s/// operator and meta-characters

11 September 2010
By

The other day I was working on adding some extended validation of Nagios confg files.  I have been using Nagios::Object for this job.  What I was specifically testing is in the command object, to see if what was in the command_line was a valid command.  In our configs, we use the $USER1$ through $USER5$ macros…

Read more »

Solaris 10 10/09 (update 8), unattended Jumpstarts, sysidcfg locations and Linux NFS v3 server

20 January 2010
By

At a previous job, we had a combined Solaris Jumpstart and RedHat Kickstart server to install new systems.  Now that I’ve moved on from that position, I decided I needed to reproduce that functionality — with a few differences: Support for Solaris x86 from the beginning FreeBSD support Using DVD iso for the install source…

Read more »