Jonathan Polansky

A pretty good webpage.

Post archive for ‘Tech’

Connect an Apple Time Capsule to an existing non-Apple network

I have an Apple Time Capsule (don’t ask why). I want to connect it to an existing wireless network as a client. Essentially, I want to disable all the access point functionality and use it only as a Time Capsule for Time Machine backups. Turns out, you can’t do it wirelessly. The son of a [...]

VMWare converter fails physical linux clone at /var partition

I was having issues cloning a running physical lunux system using VMWare’s vCenter Converter Standalone 5.0.0 app. It continually would fail (timeout) while trying to clone the /var partition. This URL held the answer to this particular problem: FIX: 1. ls -lh /var/log 2. look at the LASTLOG file, it will show as 1.2T [...]

vi/vim issues with Ubuntu 11.04, Eterm, and screen

I’ve been using vi/vim for a number of years and it’s always worked “out of the box” which is why I was surprised when vi didn’t work as it usually does on a brand new install of Ubuntu 11.04. I was having many issues with the backspace key not working properly as well as the [...]

OSSEC issue resolved: “ERROR: Queue ‘/var/ossec/queue/ossec/queue’ not accessible: ‘Connection refused’.”

I’ve been using chef and the OSSEC cookbook (provided at to install and manage an OSSEC server and agent nodes. During the process of adding an agent to the server via the ossec::agent recipe I could not get OSSEC to start on the agent. After re-provisioning the agent node numerous times, every time chef [...]

chef-server connection failed to rabbitmq using bunny protocol as user chef

I spent 4 hours troubleshooting the error: merb : chef-server (api) : worker (port 4000) ~ Connection failed – user: chef – (Bunny::ProtocolError) Turns out it was because the rabbitmq server hadn’t been configured for usage with chef yet. Somehow the chef wiki docs failed to mention this step in their CentOS install guide (perhaps [...]

Enable gzip for css and javascript to satisfy Google Webmaster tools

Today I was dealing with ruxable crashing over the weekend so I spent some time reviewing the configuration of the server. Everything is still incredibly simple (read more about the AMI and configuration I use) but while reviewing the Google Webmaster Tools analysis, I found that gzip compression wasn’t enabled for css and javascript. This [...]

Base CentOS 5 Amazon AWS EC2 AMI

I just migrated from a home server to EC2. I’ve created AMIs at my place of business and while the flexibility of creating a custom AMI is fantastic, the amount of time it takes is significant. When I went to start an instance to run I went looking for a public AMI as [...]

Using wget to create a static local copy of a website

I was recently working on a project where I needed to retire a >10 year old system with more homegrown webapps than you could shake a stick at. Some were able to be migrated. Some were not. As I was about to shut the machine down, it was brought to my attention that a section [...]

vi find and replace with back reference

This is an example of how to use the vi find and replace functionality with a back reference. Hopefully this will make it easier for someone else to figure out how to do it than it was for me. This particular find and replace command was used to convert a file of source and destination [...]

List only the path and filenames of files with differences using subversion svn

The Subversion svn command has built in diff functionality but it is more limited than GNU diff. It doesn’t allow you to use the ‘-q’ option to “Report only whether the files differ, not the details of the differences.” Luckily, svn allows you to specify an external “diff” command and then pass it arguments.  Use [...]