Author: jbmurphy

  • How to update ESXi 4.1 without vCenter

    I wanted to update a standalone ESXi box from 4.1 to 4.1 Update 1. Here is how I went about it: Downloaded the update on a windwos box from here and unziped it Open the viClient datastore browser and upload the unzipped folder. If you put it off the root of your datastore, the path…

  • Script to compare RPMs on two different CentOS servers

    I wanted to make sure that the same RPMs were installed on several servers. I wasn’t worried about versions of RPMs because everything should be kept up to date via yum. So I sat down and wrote the script below. It has been on my ToDo list for quite a while! This script connects to…

  • AutoSSH on CentOS

    I have been interested in MySQL replication over ssh and I wanted a way to make sure that the tunnel is always up. Everyone says to use AutoSSH. AutoSSH is not in EPEL, but is in rpmforge (Is that that same as DAG? Didn’t they merge?). I installed rpmforge: I don’t like to do the…

  • Mirror all MySQL DBs to the local machine

    Continuing on my quest to get MySQL replicating over ssh, I am using the following bash function to replicate all remote DBs locally:   Line 2 connects to the local AutoSSH tunnel and gets a list of all the remote DBs. Then we loop through the DBs and if there is not a DB locally…

  • Google Reader Starred items to Together.app

    I use Together.app from Reinvented Software as my archiving solution – my knowledge base. I like the product because it leaves the pdfs I create on the filesystem and the db contains the tags and links associated with each file. I used to use Yojimbo, but it keeps all the files in their database. I am not sure it…

  • WordPress TwentyTen Custom Header setting in the db

    When we move a WordPress site from development to production we update the URL in the following db values: in the GUID value of each post in wp_posts in the wp_options table, the option_name of home in wp_options, the option_name of siteurl In a recent move, we found that the custom header in the TwentyTen theme was not…

  • MySQL replication of WordPress dbs over ssh

    I wanted to setup MySQL replication over ssh for a small WordPress database. I have a VM that lives in my house, I wanted to be able to bring it up, make it current, disconnect, and then hack away. Here is my proceedure. On the master: Setup the replication user (I had to use 127.0.0.1…

  • DrivesMeNuts: Windows shutdown tracker

    You know that drop down box that looks like this (called the Shutdown Tracker): Every month when I patch servers it DrivesMeNuts that Microsoft did not put in a “Planned” option for “Operating System: Patching” Every time I click the shutdown tracker, I think: “Microsoft intentionally left “Patching” off the selection list, so that the…

  • Dell OpenManage Server Administrator on ESX

    This is how I installed Dell OpenManage Server Administrator on our VMware ESX 4.1 box tar -xzf OM-SrvAdmin-Dell-Web-LX-6.4.0-1266_A00.4.tar.gz cd linux/supportscripts/ ./srvadmin-install.sh -x esxcfg-firewall -o 1311,tcp,in,OpenManageRequest ./srvadmin-services.sh restart Mostly a reminder for me, but maybe a search engine will bring someone here, and it would be helpful.

  • My “Copy WordPress site to local” script

    I wanted to write a script that would copy a WordPress site to the local machine from a remote server (securely over ssh). This would allow me to set up a test environment or backup. First I need to make sure the site exists on the source server. Then I want to get the current…