Author: jbmurphy
-
Creating an offline replica of our Windows Environment-Part 1
I am working on my new project, upgrading our Exchange 2003 environment to Exchange 2010. I wanted to create an off line replica of our current environemnet. This is how I set about doing that Before I started, I created a new workstation – Windows 7 on our ESX server. This machine is joined to the domain,…
-
Xnest, xdmcp and X11 on CentOS
It has been a while since I have used XNest. It works. Slow, but it works. I can ssh into a box and bring back a full X session back to my Mac. In CentOS 5.5 I had to edit /etc/gdm/custom.conf and add: Enable=true under [xdmcp]. Restart X and now I can run: Xnest :1 -geometry 1024×768…
-
GNU date vs BSD date
I usually develop and test my BASH scripts on my mac, mostly for use on RedHat systems. Occasionally I run into problems with this workflow. Recently I realized there was a differnce between the date command on RedHat and the date command in OS X. Turns out BDS date != GNU date. The workaround, install coreutils from Mac…
-
My mac ports cheat sheet
These 3 commands will check for new ports, upgrade outdated ports, and remove older versions. sudo port selfupdate sudo port upgrade outdated sudo port uninstall inactive To make sure you have a slimmed down install, use port_cutleaves to remove unnecessary ports. There are often “Build Dependencies” (like autoconf, automake, libtool, m4, help2man, p5-locale-gettext) that are…
-
Check if a file exists on a remote server
I was working on a copy WordPress site to a local machine script, and I wanted to check if the remote path was a WordPress site. Here is the code I used.
-
Run a task sequence after completed OSD
We wanted to run a Task Sequence after an Operating System Deployment. The OSD image would have only Office,Antivirus, and Windows. The task sequence would have all the other common packages we roll out (Adobe Reader and Flash, Firefox, Quicktime, Java . . .). The problem was that I wanted an easy way to deploy…
-
Quick check if a mysql database exists
Here is my bash code that checks if a db exists before I try to create one in a script: This will exit out if there is a database with the name you are searching for. The tricky part for me (and always is) was this double quotes inside the single quotes in the LIKE…
-
Rackspace Cloud Files download script
A new(er) tool in the services I use/recommend is Rackspace Cloud servers and Rackspace Cloud Files. We were evaluating cloud services to host client websites, and I ended up choosing Rackspace’s cloud offerings. I really like the services the provide. With their Cloud files, I can upload files that can be accessed anywhere. I decided…
-
Waking a sleeping Mac Pro upon opening a folder
Scenario I have two macs at home, a MacPro and a MacMini. The MacMini is attached to our TV. I put my MacPro to sleep when I leave for work in the morning. My wife comes home and tries to play videos for my son on the Mac Mini. The videos are actually on the…
-
A second addition to my PowerShell install script
I added even more functionality in my PowerShell install script (original script, and first update). I wanted the ability to display an informational popup to let the user know what we were up to. The function below takes the text to display from the config xml file and displays it in a windows form, with…
