Category Archives: Uncategorized

Uncategorized

Watchman Monitoring Sponsoring Krypted.com

150x150

I’d like to give  a big thanks to Watchman Monitoring for becoming the second sponsor of krypted.com. I like the fact that thus far, I’ve managed to keep all sponsorship talks within the Mac Admin community and hope this is a trend I can continue as time goes on. I also like the fact that it’s all products that I believe in! Watchman provides an excellent service, and if you haven’t had a chance to check it out then I encourage you to do so!

280x280

Mac OS X Mac OS X Server Mac Security Mass Deployment Uncategorized

Viewing Mac App Store Purchases From The Command Line

As you may have noticed, we’ve been working on building some links between the App Store and patch management tools such as Casper, FileWave and Munki. We’ve been looking at policy-based management of apps as well. In this semi-new world of signing and stores and the such, there’s actually a good bit you can ascertain about an app both inside the app as well as inside metadata OS X keeps about the app. I’ve discussed signing (apps and packages) in the past, but let’s look at using some commands to help us out with some tasks.

The first command is to determine some information about apps that are on the computer. Spotlight keeps a fair amount of information about these apps and can be invoked using the mdls command. Running the command with no additional parameters looks like this (I’m gonna’ use iMovie in these examples, although note that there are spaces in a lot of app names and paths as you start scripting things – so use IFS rather than trying to use traditional array):

mdls /Applications/iMovie.app

This results in output similar to the following (I’ve stripped out a few fields as they consume a lot of space and aren’t super pertinent to what I’m trying to do here):

kMDItemAlternateNames = (
"iMovie.app"
)
kMDItemAppStoreCategory = "Video"
kMDItemAppStoreCategoryType = "public.app-category.video"
kMDItemCFBundleIdentifier = "com.apple.iMovieApp"
kMDItemContentCreationDate = 2011-09-28 08:04:34 +0000
kMDItemContentModificationDate = 2012-09-22 02:13:45 +0000
kMDItemContentType = "com.apple.application-bundle"
kMDItemDisplayName = "iMovie"
kMDItemExecutableArchitectures = (
i386
)
kMDItemFSContentChangeDate = 2012-09-22 02:13:45 +0000
kMDItemFSCreationDate = 2011-09-28 08:04:34 +0000
kMDItemVersion = "9.0.8"

To just ask for one of these attributes, run the command along with the -name option in addition to the metadata attribute you’d like returned. For example, to see the bundle ID (kMDItemCFBundleIdentifier), use:

mdls /Applications/iMovie.app -name kMDItemCFBundleIdentifier /Applications/iMovie.app

Now, if you’d like to just quickly ascertain what apps on the system came from the App Store, use the mdfind command, along with whatever of the attributes matches what you want to know. Running mdfind for kMDItemAppStoreHasReceipt of 1 would look like the following and would result in a list of all apps on the system that came from the App Store:

mdfind kMDItemAppStoreHasReceipt=1

Blacklisting all apps that are part of a specific category (and with regard to customer requests, that category seems to always be Games) is something we get a lot of banter about with customers. To determine this information for apps, you can run mdfind on kMDItemAppStoreCategory for Games:

mdfind kMDItemAppStoreCategory=Games

You could then dump the contents of those into something that can blacklist apps (or whitelist based on other categories). Now, version control is another hot topic at various organizations. To see the version type of a given app, use the -name option with mdls kMDItemVersion

mdls /Applications/iMovie.app -name kMDItemVersion /Applications/iMovie.app

Then you can track the version of the app and take action through other ways to remove old versions and force users to upgrade. The mdfind command can also be leveraged to find apps that have escaped their traditional homes of /Applications and /Applications/Utilities, with the ability to obtain a full list by querying for kMDItemContentType of app bundles, as follows:

mdfind kMDItemContentType="com.apple.application-bundle"

Loading a list of apps (output from `mdfind kMDItemAppStoreHasReceipt=1` or `mdfind kMDItemAppStoreCategory=Games`) into an array and then querying each one of them for more information is pretty trivial beyond the steps we’ve already taken. This information can then be fed into some kind of Managed Prefs script to deny or allow access to various objects or an admin could even chmod the bundle, mark it as invisible, poison it (keep in mind, if you alter it you’ll break the signing), etc in order to get some desired outcome.

You can also use defaults to read a users com.apple.storeagent.plist file for the AppleID field to see what AppleID is currently logged into the AppStore, providing another variable that can be reported on:

defaults read /Users/cedge/Library/Preferences/com.apple.storeagent.plist AppleID

And yes, it’s worth noting that users from another account or a system image, etc can be used to download apps so this one isn’t exactly certain but the purchaser isn’t stored anywhere within the bundle nor is it permissioned in a way that we can use to find the purchaser that way.

There’s still a bit of a gap right now with regards to some of these technologies that Mac SysAdmins are managing. The consumeristic technologies such as App Stores are here to stay. We’re kidding ourselves if we think that we won’t be able to buy certain apps via Volume Licenses and have pkg installers for too much longer. Apple has made no indication that they’re dropping the results that can be obtained with a simple installer command, but with forcing signing on certain objects, gatekeeper and other technologies it’s hard to say what the future will really have in store for us. Getting to a point where we can report on elements of the App Store and hopefully eventually deploy objects through the App Store should continue to help bridge these factors, but I still see the need for additional binaries from Apple to be introduced to get the rest of the way there (or at least expose a method to me so I can go in there and buy an app through the method).

Football Uncategorized

25 College Team Names That Make Ya’ Wonder

I love college football. Anyone who knows me, probably knows what I’m doing about this time on a Saturday. And while I hail from the SEC, went to Georgia and have always loved “old man style” football, I’ve also lived in Southern California and now in Minneapolis where I’ve gotten to enjoy Pac 12 and Big 10 football. Doing work at Big 12 and Big East schools has also led to me attending many a game in many a stadium. I’ve also always loved watching teams that just plain suck or teams that no one has ever heard of. They have more heart than an entire division of NFL teams combined. In short, I’ll watch pretty much any football, any time.

In my travels, I’ve come across many a team who have names that just make me wonder what in tarnation they were thinkin’. So I’ve compiled a list on this beautiful college football Saturday. Here goes:

  1. Demon Deacons of Wake Forest: A guy in a top had rides onto the field on a motorcycle. I know, it sounds like Stan Lee in the 60′s, right. But Wake Forest is a Baptist college, so after being called the Baptists, or Old Gold and Black for a few decades, in 1923 a few people started calling them the Demon Deacons due to a fighting spirit of sorts. Given that a bunch of Baptist old timers took awhile to come around to such a name, in 1941 the Demon Deacon became the official mascot, originally being picked by one of the fraternities on campus.
  2. Georgetown Hoyas comes from “What Rocks” in Greek, Hoya Saxa!. Now, running around chanting Greek isn’t probably what most people think of a ruckus college crowd these days, but this name goes all the way back to 1893! Their mascot is a bulldog, so I’ve always had a soft spot for ‘em.
  3. Stormy Petrels is a name I don’t know that I’d of heard if I weren’t from Georgia. This is the name of of the Oglethorpe University team and comes from a seabird. It came by the way of a college president in 1915 and supposedly dates all the way back to James Oglethorpe, the founder of the Georgia colony.
  4. Boll Weevils are the number one enemy of cotton. And if you’ve ever opened up some flour filled with these little devils then you might get totally squeezy seeing an 8 foot tall one roaming the sidelines of the University of Arkansas at Monticello. A great name for a team in 1920, when they got the name. The women’s teams are known as the Cotton Blossoms. Makes you wonder what exactly what the big industry is in that area…
  5. Hokies is the name of the team out of Virginia Tech. They’re not having a great season, but they have been pretty darn good ever since a guy named Michael Vick went there. The name means nothing, except for to millions of college football fans.
  6. Tar Heels is the name of the North Carolina team. I’ve been unable to ascertain where the name originated, but Walt Whitman did call North Carolinians tarboilers, so I’ll go with people that were unlucky enough to step in tar. The Hokies and the Tar Heels are both in the ACC.
  7. Anteaters of University of California Irvine. This name isn’t over 100 years old, but it is closing in on 50 years old. The name was chosen by students, soon after the school was founded, in 1965.
  8. Ichabods of Washburn University in Kansas are named after college a headless horseman. Actually, they aren’t. The name hails from the founder of the school, Ichabod Washburn. But don’t tell the guys on the other side of the lines that!
  9. Wonder Boys of Arkansas Tech were named in 1919. Guess things were different back then… These days, just think the guy who plays Iron Man also played a Wonder Boy.
  10. Horned Frogs is the name of a team that I’ve always liked, Texas Christian University (TCU). Now, there are a lot of awesome things you can do with the name of this team, but to keep it PG I’ve always just called them the Horned Toads.
  11. Trolls is the name of the Trinity Christian College team, in Illinois. Irony is that they’re not very Christian beasts. Named in ’59, they were already out of all the good names by the time he got to town…
  12. Cornhuskers is the name of the teams at the University of Nebraska. I have loved watching them over the years and they’re probably one of the biggest names on this list. The reason I put them on here is that if you think about it, people who husk corn is a weird thing to name a team after… Of course, to continue picking on the Big Ten, so are Buckeyes and Golden Gophers. Then again, you’d expect funny names for teams in a conference where they haven’t learned to count past 10 (there are 12 teams in the Big 10).
  13. Hoosiers are the University of Indiana and a term in fact used to refer to those from Indiana. To continue picking on the Big 10, this term also has no real known origin but dates back to the 1830s before football was awesome. So there ya’ go. It’s funny, many of these names sound weird if you’ve never heard them but if you watch sports they just seem second nature, like they belong…
  14. Billikins is the name given to teams of St Louis University. Billikins are elven charm dolls. Now, if you’re Tigg from Sons of Anarchy and you see one of these, you might just run off the field screaming. So if you play football against big burly bikers then hey, great name!
  15. Cobbers is the name of the team at Concordia University. Apparently corn is somehow linked to football.
  16. Fighting Artichokes is the name of the Scottsdale Community College team. ‘Cause nothing strikes fear into carnivorous football players more than the thought of having to eat a thistle!
  17. Aggies is the name of the Texas A&M team (that just beat the #1 ‘Bama Crimson Tide tonight). This isn’t actually a weird name once you wonder and realize it’s short for Agriculture, the A in the name. The Aggies are part of the Big 12, by the way. A conference that doesn’t have 12 teams. TCU is also in the Big 12 now, although it’s their 3rd conference in as many years…
  18. Jumbos of Tufts University are not named after 300 pound lineman. Instead, they’re named after an elephant donated by Barnum after it died and got stuffed by taxidermists. I guess not everyone can name their team the Crimson Tide and then have a picture of an elephant, right… Anyway, I put this on the list ’cause it makes me think of the movie Dumbo. That’s all…
  19. Geoducks (geo is pronounced gooey) is the name of the Evergreen State College (Washington) teams. I now know that a Geoduck is the largest burrowing clam in the world. Their mascot dresses as a mollusks which must be terrifying for opposing teams that have shellfish allergies. “Go, Geoducks, go, Through the mud and the sand, Let’s go. Siphon high, squirt it out, Swivel all about, Let it all hang out.”
  20. Fighting Camels is the name of the Campbell University team. But the name of the school or team isn’t why they are on this list as much as the name of the mascot. Here he is:
  21. Scrotie is the unofficial mascot of the Rhode Island School of Design. This isn’t a team name. But they have the hockey team called the Nads and the basketball team named the Balls. I’ll let you google image the mascot yourself and spare you the imagery here…
  22. Fighting Pickles is the name of the North Carolina School of the Arts teams. It’s an art school… But you’d be surprised how similarly their pickle looks like Scrotie above!
  23. Dirtbags is just an awesome name. And very Long Beach in some ways. There’s not much more to say about California State University-Long Beach.
  24. Banana Slugs is my second most favorite name weird name around. If you’ve ever been to Santa Cruz, you probably understand why marijuana was legalized in California. If so, then this name makes sense; otherwise, not-so-much. Trivia: in 1985, the administration wanted to name the team the sea lions. The students, high though they may be, ended up winning out and the Banana Slugs it was!
  25. Ragin’ Cajuns is probably my favorite of these. Louisiana-Lafayette is Cajun country and the name of this team dates back to the 1970s, although they’ve been playing football since 1901.

Runner ups, dropping out of the top 25 for one reason or another: Black Flies, Pomona Sagehens (The Huns was an awesome name), Gorlocks (named from Gore and Lockwood, two streets that intersect, their mascot is actually a cheetah/buffalo/St Bernard mix that would make Napoleon Dynamite totally jealous), the NYU Violets, the University of New England Nor’easters, Chaparrals, Chanticleers, Lemmings, Poets, Squirrels, Thundering Herd (I’m guessing the only Buffalo in Huntington West Virginia is the Buffalo Wild Wings on 4th), Ladies and Gents, University of Delaware Blue Hens, Student Princes, the Hustlin’ Quakers of Earlham College, Sooners (I picked on the Big 12 too much already), Tulsa’s Golden Hurricane, the Zips, the Lutes (no really, another Christian school, too), Shockers (whoever thought up WuShock was certainly struck by lightning), Terrapins (ya, nothing says we average 8 days for a 40 yard dash like the Terps), the Boilermakers (I picked on the Big 10 too much already), the Green Terror, the Keelhaulers, the Gamecocks (the baseball caps they sell at the campus store just say COCKS), the Bridges (I guess it is Brooklyn after all), the Fighting Koalas, the South Dakota School of Mines HardRockers (didn’t they beat Minnesota a couple of years ago along with everyone else in the Dakotas?!?!), the Lord Jeffs (srsly?), the Okras (okra scares the crap out of me) and of course, any team with a Swallow for a mascot (college, pro, etc).

Note: I’ve tried to leave out any teams named after Native American tribes.

Now that I’ve probably managed to offend pretty much every sports fan, I’ll tell you that I love these names. I didn’t call this article the “25 Dumbest Names for College Teams” or the “25 Stupidest Names in College Sports.” There’s a reason for that. I love all these teams. And honestly, it would seem somewhat trite for most of these teams to be called the Bulldogs, the Falcons, the Braves, the Hawks, the Thrashers, the Georgia Southern Eagles, the Valdosta State Blazers or the Mercer Bears. But if you’ve had a name for decades then you kinda’ stick with it, trite, silly or awesome. Now, let’s go get some Fighting Pickles tats!

Mac OS X Server Uncategorized

Creating Groups in Mountain Lion Server

There are four ways to create groups in Mountain Lion Server. The first is using the Server app, the second is using Workgroup Manager, the third is using the Users & Groups System Preference pane and the fourth is using the command line. In this article we will look at creating groups in the Server app.

Once a server has been an Open Directory Master all user and group accounts created will be in the Local Network Group when created in Server app. Before that, all user and group objects are stored locally when created in Server app. Once promoted to an Open Directory server, local groups must be created in Workgroup Manager, the Users & Groups System Preference pane or using a command line tool appropriate for group management.

 To create a new group, open the Server app and then click on Groups in the ACCOUNTS list of the Server app sidebar. From here, you can switch between the various directory domains accessible to the server using the drop-down list available. Click on the plus sign to create a local network group.
At the New Group screen, provide a name for the group in the Full Name field. This can have spaces. Then create a short name for the group in the Group Name field. This should not have spaces.
Click Done when you have supplied the appropriate information and the group is created. Once done, double-click on the group to see more options.
Here, use the plus sign (“+”) to add members to the group or highlight members and use the minus sign (“-”) to remove users from the group. You can also choose to use the following options:
  • Give this group a shared folder: Creates a shared directory for the group, or a group with an ACL that grants all group members access.
  • Make group members Messages buddies: Adds each group member to each other group members buddy list in the Messages client.
  • Enable group mailing list: Enables a list using the short name of the group where all members receive emails to that address.
  • Create Group Wiki: Opens the Wiki interface for creating a wiki for the group.

Once changes have been made, click Done to commit the changes.

Uncategorized

Um, where is the snow? It is almost December…

Uncategorized

I am confused. Why can’t I fall asleep?

Uncategorized

My first feeble attempt at outdoor lights

Uncategorized

“all I want for Christmas is an SEC championship for the Dawgs!”

Uncategorized

Inside LaunchPad in OS X Lion

rm ~/Library/Application\ Support/Dock/*.db

 

Uncategorized

Time Machine: “We Don’t Need No Stinkin’ Versions in Mountain Lion”

Mountain Lion comes with a number of changes. One of these is the fact that the checkbox to configure Versions histories in Time Machine is now gone. Honestly, I don’t think that many people used this kind of thing anyway, but it’s worth noting that in