Mac OS X Mac OS X Server Mac Security Mass Deployment

Install Xcode Command Line Tools On A Fresh Mac Image

I didn’t figure this out myself but can’t remember the source to attribute. Anyway, I image a lot of systems in my home lab for testing. Many tools I use (e.g. ant, metasploit, etc) need the Xcode Command Line Tools. The easy way to install these is to run xcode-select sung the –install option, as follows:

/usr/bin/xcode-select --install

personal

Work harder, faster and more… Or not…

The difference between being judgmental and caring can be the benefit of the doubt. Living in Los Angeles I got to learn a lot about people not giving two craps whether you were alive or dead. Unless of course you started to smell the place up. Living in Minneapolis I got to learn a lot about people being a little too much in my business. But then I realized that it’s OK to be in my business, as it keeps apathy at bay and helps make me a better person, provided it doesn’t come with a bit too much judgement. When no one cares, what drives you to be better other than your own desire to be, well, better. Which can be fleeting.

But that’s at home. At work, I’ve started to realize the various stages of my own judgement and don’t always look back on my actions (or judgment of others more to the point) too kindly. There was a time when I worked more 100 hour weeks than 50 hour weeks. I’ve never actually worked less than 50. There was a time when I expected everyone to work the same as me. I expected them to be in the office for a dozen hours a day and to stay focused the whole time. I can’t even do that any more. Having said that, I’ll put my 9-10 hours a day (often including weekends) against anyone else’s 16 hour days. Focus with age, or so I keep telling myself. It’s not about working more, it’s about working smarter. And you don’t want to work faster, because the quality of your work starts to decrease.

I also stopped judging how much others work because I started to realize I don’t see all of their work. On the Tuesday after Labor Day, I left the office at 4. But in order to meet some crazy deadlines I worked 30-40 hours that weekend. If anyone noticed me leaving at 4, they likely didn’t know that. But no one cares because they’re all too busy worrying about their side of the street. In short, who cares about working faster and more hours. More hours are just for show. For being a martyr. For burning out.

When I was younger, I didn’t realize that it was more important to work smarter. I thought if others saw me burning the midnight oil that they would be inspired. I also didn’t realize what things were like when you had kids or in general, when you have a life outside of work. Now, I reserve my judgement for the output over a longer duration of time over when I can see your mug in the office. And when the Apple Emoji for Poo hits the fan, I’m still there, and less distracted when needed – as the people around me are more understanding when I’m home more.

You see, with our personal lives bleeding into our professional time and our professional lives bleeding into our personal time, we start to realize that the barriers between home and work are more and more grey. We learn (hopefully you’re here) that we must disengage from the computer when our family and friends try to talk to us (I have to close my laptops). We learn that if you try to find a home-life balance that we end up setting the two to be in diametric opposition. Instead, maybe just maybe we learn how to let them coexist.

Mac OS X Mac Security Network Infrastructure

Bringing stroke Back

Stroke got moved, so dug this up and am reprinting with the latest and greatest location.

Network Utility has a port scanner – it’s built in and really easy to use. Sure, stroke isn’t nmap, but it’s not trying to be… Since Network Utility is distributed with every copy of Mac OS X it stands to reason that every copy of Mac OS X has the ability to scan a port without using a GUI tool.  Enter one of the best named tools in Mac OS X, stroke.  Stroke is the command line back-end to the Port Scan tab of Network Utility.  To use stroke, you will need to cd into the Network Utility application bundle and then cd into Contents and then Resources.

Once you are at “/System/Library/CoreServices/Applications/Network Utility.app/Contents/Resources”, you will need to provide stroke with an IP address (or name), followed by the first port to scan and then the last (or the same number twice if your range is only one IP address.  For example, if you want to port scan port 80 on your own system you could use the following:

./stroke 127.0.0.1 80 80

But you shouldn’t just stroke yourself (sorry, couldn’t help it).  You should also stroke others (Clarence Carter be damned!).  So if you want to port scan www.google.com for port 80 the following would achieve such a lofty goal:

./stroke www.google.com 80 80

Because the name www.google.com has to resolve, you’re actually able to check whether a DNS error occurs and whether you can communicate over port 80 to the host in one command.  If you want to make a copy of stroke into a directory and then add it to your environment variable’s PATH you can then use it without needing to change your working directory.

Uncategorized

Use an ipsw to Manually Upgrade an iOS Device

Recently, I needed to test the behavior of something during the upgrade process of an iOS device. The device was running the latest version of iOS so I needed to use an ipsw to load a specific version of the OS. Usually I use Configurator for running a lot of updates, but I didn’t want to restore the device, so I used iTunes. After I backed up the device, here’s what I did:

  • Download the ipsw file from Apple for that specific device
  • Connect the device (make sure Configurator isn’t open, enter a passcode if needed and then launch iTunes
  • Click on the device in iTunes (You might need to show sidebar if you don’t initially see it)
  • Click on the Summary tab
  • Option-Click on Check for Update (Alt-Click on Windows)Screen Shot 2014-08-28 at 11.17.47 AM
  • Select the ipsw previously downloaded
  • When prompted, click Update
  • When the device reboots, wait for the status bar and you should be all done

 

 

Good luck!

Agile

Scrum Master vs Product Manager

giphy-1

 

PS – You have to click on it.

Mac OS X

Use Get Info to See Information About Multiple Files Concurrently in One Screen

When doing a regular get info, you will have a screen (the Inspector) that shows you some basic information about a file or folder. This screen changes as the file changes, so if you were downloading a file, as the download completes, the file displays an ever increasing size. To see this screen, use the Command key and the i key (Cmd + i). If you have multiple objects selected when using the key, you’ll see each show a summary in its own screen.

However, at times you’ll want to see a Summary Info screen, which shows information about multiple selected objects. This screen doesn’t change as the files that are selected change. To see this screen, highlight a number of files and then use the Command, Control and i keys concurrently (⌘^i) to see a screen as follows.

Screen Shot 2014-08-26 at 2.28.30 PM

personal

Crazy Russian Zombie Apocalypse Survival Training

Mac OS X Mac OS X Server Mac Security Mass Deployment

Installing A Java JDK On Beta Versions Of OS X

Open the installation DMG and expand the package so we can edit objects inside the package, done with pkgutil:

pkgutil —expand “/Volumes/JDK 7 Update 67/JDK 7 Update 67.pkg” “/tmp/JDKTEMP.flat”

Next, we’re going to edit that Distribution file, which is what’s checking the OS version, using vi:

vi /tmp/JDKTEMP.flat/Dstribution

Then we’re going to look for the OS version (currently 10.7) in the pm_install section:

Edit OS version to 10.10

Then let’s save the file and then flatten the package, again using pkgutil:

pkgutil —flatten “/tmp/JDKNEW.flat” “/tmp/JDK7.pkg”

Finally fire up the package:

open /tmp/JDK7.pkg

And of course, finish running the installer. Good luck!

Ubuntu Unix

Installing the Docker for OpenStack Heat

Docker is an engine that automates deploying applications as highly portable, self-sufficient containers, independent of hardware, language, framework, packaging system and hosting provider. Heat is the main project used when it comes to OpenStack orchestration. There is a Docker plugin for Heat. To install this plugin, you’ll need to use the stable/icehouse branch (which seems like what’s made the tool so mature rather than simply being available for Nova) to install Heat via apt-get install. Once downloaded, extract the contrib/docker folder and delete the tests directory. Then copy the contrib/docker folder to the OpenStack controller. Here we’ll put it at /usr/lib/heat directory. This results in the path of /usr/lib/heat/docker/docker. Next, install python-pip:

apt-get install python-pip

Then check the installer requirements:

pip install -r requirements.txt

Then edit the heat config, likely at /etc/heat/heat.conf. Here, provide the plugin in the plugin_dirs section as:

/usr/lib/heat/docker/docker

Then reboot and check the resource type listing:

/usr/lib/heat/heat resource-type-list

If you see DockerInc::Docker::Container, you can deploy Docker containers.

Mac OS X Server Mass Deployment

Mobile Device Management Chapter Of Take Control Of OS X Server Now Available

The Mobile Device Management chapter (Chapter 9 if you’re keeping track) of Take Control of OS X Server is now up and available at TidBits.com for TidBits members at http://tidbits.com/article/14967. Hope you enjoy!

TCo OS X Server 1.0 Cover for PDF