Embracing the Messiness in Search of Epic Solutions

Category: Operating System

  • Linux: Locating Java Home Directory

    If you have multiple versions of Java installed, you can run which command to determine the full path of the command. To quickly navigate to Java’s home directory, you can do something like this:- Read More…

  • Puppet: Installing Multiple Java Versions On Single Node

    PROBLEM I couldn’t find an existing Puppet module that allows me to install multiple Java versions on a single node. The reason for multiple Java versions is to allow Jenkins’s jobs to choose what Java version to compile with. So, I will show you how to create a Puppet module that will do just that. Read More…

  • Installing Puppet v3.2+ in Ubuntu

    PROBLEM By default, when using apt-get, Puppet v2.7 will be installed. This version doesn’t support useful features, such as Lambdas and iteration. To use these experimental features, Puppet v3.2+ is required. SOLUTION First, visit http://apt.puppetlabs.com/ and determine the matching Ubuntu version. Let’s assume we are using Ubuntu 13.04 (Raring Ringtail). So, we will choose http://apt.puppetlabs.com/puppetlabs-release-raring.deb Read More…

  • Homebrew: “Invalid Multibyte Escape” Error

    PROBLEM When running brew on OS X Maverick, you get this error:- SOLUTION After upgrading to OS X Mavericks, the default version of Ruby is v2.0, causing Homebrew to break because it relies on v1.8. See issue #23655 for more information. To fix this, run the following command:- If you are getting the “Permission Denied” Read More…

  • “tree” Command on Mac OS X

    So, I have been drawing the ASCII file structure tree by hand lately… and that is dumb and time consuming. After digging around, I found a great way to do so. First, if you don’t have Homebrew, install it first. Run the following command to install the tree command:- Now, you can run the following Read More…

  • Configuring Remote UPS Shutdown on Mac OS X

    PROBLEM I have APC Smart-UPS SMT1500. It contains a SmartSlot that accepts a network management card that allows the UPS to be connected to the switch (or router) instead of plugging the USB cable from the UPS to a computer. That said, I also have APC AP9630 UPS Network Management Card 2. My goal is Read More…