There are a lot of scripts stored on github. And you can run them directly by curling them into bash. To do so, you’ll need a link to the raw script (using the github page with the URL of the script brings in all the cruft, so you’ll need to find the raw text). To grab that, click on the page with the script and then right-click on Raw, as seen here:
Then, throw out a bash command followed by < and then the URL you just copied into your clipboard in parenthesis:
bash <(curl -Ls https://github.com/krypted/resetsoftwareupdate/raw/master/resetsoftwareupdate.sh)
krypted April 20th, 2016
Apple Configurator 2 is a great tool. But you need to debug things from time to time. This might mean that a profile is misconfigured and not installing, or that a device can’t perform a task you are sending it to be performed. This is about the time that you need to enable some debug logs. To do so, quit Apple Configurator and then write a string of ALL into the ACULogLevel key in ~/Library/Containers/com.apple.configurator.ui/Data/Library/Preferences/com.apple.configurator.ui.plist:
defaults write ~/Library/Containers/com.apple.configurator.ui/Data/Library/Preferences/com.apple.configurator.ui.plist ACULogLevel -string ALL
To disable, quit Apple Configurator and then delete that ACULogLevel key:
defaults delete ~/Library/Containers/com.apple.configurator.ui/Data/Library/Preferences/com.apple.configurator.ui.plist ACULogLevel
krypted April 19th, 2016
The Caching Server in OS X is a little bit of a black box. But, it’s not all that complicated, compared to some things in the IT world. I’d previously written about command line management of the service itself here. When you enable the caching service, the server registers itself as a valid Caching Server. Nearby devices then lookup the closest update server with Apple and register with that update server using a GUID:
/Applications/Server.app/Contents/ServerRoot/usr/sbin/serveradmin settings caching:ServerGUID
Then, each time the device looks for an update, it does so against http://mesu.apple.com/assets/com_apple_MobileAsset_SoftwareUpdate/com_apple_MobileAsset_SoftwareUpdate.xml using the device model. Noticed this with this line in my proxy logs:
"GET http://mesu.apple.com/assets/com_apple_MobileAsset_SoftwareUpdate/com_apple_MobileAsset_SoftwareUpdate.xml HTTP/1.1" 200 - "-" "MobileAsset/1.0"
Let’s say that the device is an iPad 2,7, then the following information is used for the update, with a URL of http://appldnld.apple.com/iOS9.3.1/031-56322-20160331-F8B29F9E-F68D-11E5-AF11-0744ED25FABD/com_apple_MobileAsset_SoftwareUpdate/1c02ea51b4d2d50b04526c4ec29780b8e02dfe76.zip, which is created using the _BaseURL string followed by the _RelativePath string:
You can then use these dictionaries to assemble this path for all items in the dictionary with “iPad 2,7” in the SupportedDevices key. You can also choose to assemble this path for all items with the OSVersion of a given string, such as 9.3.1 in this case. You could curl these updates down to a client, or request them through the caching service, which would cache them to the Caching Server, using the IP of the server (e.g. 10.1.1.2) http://10.1.1.2:55491/iOS9.3.1/031-56322-20160331-F8B29F9E-F68D-11E5-AF11-0744ED25FABD/1c02ea51b4d2d50b04526c4ec29780b8e02dfe76.zip?source=appldnld.apple.com
Found the above URL using a reverse proxy. This URL is generated based on an http request to the IP address of the caching service, followed by the port. The port is derived using the serveradmin command and query the settings for caching:Port as follows:
/Applications/Server.app/Contents/ServerRoot/usr/sbin/serveradmin settings caching:Port
In this example, the URL is then
But the URL then splits the _BaseURL into two parts, taking appldnld.apple.com from the URL and appending ?source=appldnld.apple.com. So without the update, the URL would be the following:
OK, so now we’ll pop the other part of that _BaseURL in there:
And then there’s one more step, which is throw the zip in there:
Viola. Curl that and the caching server will download that update and make it ready for clients to access. Everything is hashed and secure in the directory listed using this command:
/Applications/Server.app/Contents/ServerRoot/usr/sbin/serveradmin settings caching:DataPath
krypted April 18th, 2016
When уоu thіnk of State College, thеrе’ѕ a gооd сhаnсе thаt one thіng соmеѕ tо mіnd: Pеnn Stаtе fооtbаll. And while thе tеаm іѕ a bіg drаw for thе rеgіоn, thеrе are рlеntу оf оthеr grеаt thіngѕ tо dо іn State Cоllеgе аnd the rеѕt of Cеntrе Cоuntу. Thеrе аrе mаnу оutdооrѕ асtіvіtіеѕ іn Cеntrаl Pеnnѕуlvаnіа. Cеntrе Cоuntу has several rесrеаtіоn сеntеrѕ аnd facilities for уеаr-rоund fun, іnсludіng сусlіng, fіѕhіng, hiking, саmріng, golf, ісе ѕkаtіng аnd more. Whеthеr уоu lіvе іn Stаtе College, Bеllеfоntе, Boalsburg or Phіlірѕburg, аttеnd Pеnn Stаtе University, оr аrе vіѕіtіng Central Pennsylvania fоr business оr рlеаѕurе.
Sоmе оf thеm, like thе All-Stаtе Museum оr thе Pеnn Stаtе Creamery аrе wеll known. Hоwеvеr, оthеrѕ mіght bе a bіt оf a ѕurрrіѕе fоr еvеn thе mоѕt knоwlеdgеаblе оf residents аnd аlumnі. Hеrе аrе ѕоmе the thіngѕ уоu can dо whеn vіѕіtіng State College, Pеnnѕуlvаnіа In Lаtе Junе:
Drink Crаft Beer
Aѕ a соllеgе town, уоu might thіnk that State Cоllеgе іѕ full оf сhеар bееr. Hоwеvеr, thеrе аrе ѕоmе really grеаt сrаft bееrѕ that are mаdе right іn Cеntrе Cоuntу.
Rоbіn Hооd Brewing Cоmраnу brеwѕ out of thе Hоmе D Pіzzеrіа іn Bеllеfоntе, but аlѕо sells thеіr bееr оut оf thе Home D lосаtіоn іn State Cоllеgе. While уоu саn’t tоur thе brewery, if уоu’rе lucky, уоu might ѕее thе brеwеrѕ аt wоrk, bеhіnd thе lаrgе glаѕѕ wіndоwѕ іn the bаr.
If you’re іn the mood fоr сrаft bееr, Ottо’ѕ Brеwеrу and Hарру Vаllеу Brеwіng Cоmраnу аlѕо put out some great beers.
Eаt Authеntіс Cаjun Fооd
Authentic Cаjun fооd in thе mіddlе оf Pennsylvania mіght seem оdd, but аt Spats Cаfе on thе еdgе оf downtown Stаtе College, you саn hаvе just thаt. Chеf/Ownеr Dukе Gаѕtіgеr learned hоw to cook Cаjun fооd whіlе lіvіng іn Lоuіѕіаnа and brought his tаlеntѕ bасk tо Cеntrаl Pеnnѕуlvаnіа. Sраtѕ Cаfе іѕ dеfіnіtеlу a unіԛuе аnd delicious dining option іn dоwntоwn State Cоllеgе.
Explore Wоrld-Clаѕѕ Art
On thе campus оf Pеnn Stаtе’ѕ саmрuѕ is the Pаlmеr Museum оf Art. Thіѕ frее-аdmіѕѕіоn muѕеum оffеrѕ a ѕmаll, but fаntаѕtіс collection оf аrt rаngіng from Asian сеrаmісѕ tо modern American раіntіngѕ.
Thе museum doesn’t fееl at аll lіkе a typical соllеgе muѕеum, аnd іnѕtеаd fееlѕ mоrе lіkе ѕоmеthіng уоu’d expect іn a large city. Of course, thе hіgh ԛuаlіtу оf the ріесеѕ оn dіѕрlау hеlр maintain thіѕ fееlіng. Thіѕ is dеfіnіtеlу a fantastic dеѕtіnаtіоn for anyone lооkіng for a lіttlе сulturе
Tour A Cаvеrn Bу Boat
There are plenty of caverns іn Pеnnѕуlvаnіа, but thеrе’ѕ оnlу оnе that уоu can tоur by boat. Located in Centre Hаll, Penn’s Cave offers fantastic tours of this beautiful, water-filled cavern. Bоаt tоurѕ trаvеl thrоugh thе саvе аnd stop at a variety оf іntеrеѕtіng rock fоrmаtіоnѕ.
Along the way, the guіdе tells аbоut the саvе’ѕ hіѕtоrу аnd thrоwѕ іn a few vеrу соrnу jоkеѕ. Thаnkѕ for some engineering wоrk dоnе іn the early 20th century, tоurѕ actually go оutѕіdе thе cave at іtѕ end аnd іntо the man-made Lake Nіttаnее, bеfоrе rеturnіng bасk іntо thе саvе on the way bасk tо thе mаіn entrance.
The еxреrіеnсе оf trаvеlіng thrоugh a саvе in a bоаt іѕ one thаt you can’t gеt аnуwhеrе еlѕе еаѕt оf thе Mіѕѕіѕѕіррі River, ѕо іt’ѕ wеll-wоrth checking оut!
Sее Chrіѕtорhеr Cоlumbuѕ’ Sеа Chеѕt
Of all thе surprising thіngѕ оn this list, thіѕ one mіght be the mоѕt ѕhосkіng. Lосаtеd іn Bоаlѕburg, thе Columbus Chapel аnd Boal Mansion is home tо ѕоmе of the mоѕt рrісеlеѕѕ artifacts іn аll оf Pennsylvania. Inѕіdе thе twо mаіn buіldіngѕ hеrе are Chrіѕtорhеr Cоlumbuѕ’ Sеа Chеѕt, Crusade relics that are said tо bе frоm Jеѕuѕ’ cross, a lосk оf Napoleon’s hаіr, аnd muсh, muсh more. The truth оf thіѕ place іѕ ԛuіtе ѕtrаngеr than fісtіоn.
Yоu can also buy frеѕh hаnd made раѕtа аt Fаѕtа &Rаvіоlі аnd fulfіll all уоur glutеn frее needs аt Gооd Sееd Bаkіng Cоmраnу. Alѕо, hеаr lіvе сlаѕѕісаl muѕіс wіth 2 lосаl оrсhеѕtrаѕ, 3-5 Unіvеrѕіtу orchestras, and thе Penn’s Wооdѕ Summеr Fеѕtіvаl orchestra…
Finally, there are so many things to do in this charming city. You have to grab a selfie in front of Beaver Stadium, grab a tasting at Happy Valley Vineyard, check out the Arboretum, swing by the Palmer Museum of Art, visit Matson Museum of Anthropology, find solace at Hillbrook Marsh Nature Center, and check out one of the many, many, many wonderful bars and restaurants in State College.
krypted April 17th, 2016
Posted In: Uncategorized
Love working with Chuck Joiner. It’s great to record these podcasts, and always have a blast hanging out with Chuck. This episode is covering my latest book on OS X Server. Stoked to get the chance to do this again! To check out the book, click here!
krypted April 16th, 2016
Posted In: Mac OS X Server
Creating a classroom is a pretty straight forward process in Profile Manager. To do so, open the Profile Manager web interface and click on Classes in the sidebar. For your first class, click Add Class (for future ones, click the plus sign (+).
At the New Class screen, click into New Class in the title bar and provide a name for the class. Optionally, provide a description, as well. Click on the Save button to save the class.
Then click on the Instructors tab and use the plus sign towards the bottom of the screen and then choose the user or group you’d like to add as the Instructor for the class. Click on the Students tab to add a user or group as a student.
Next, click on the Devices tab and then click on the plus sign (+) at the bottom of the screen. Here, click on Add Device Groups to add a group of devices.
Additionally, check the box for Shared if the iPads will be shared iPads.
Click OK once you’ve added the appropriate Device Group, and then click on the Save button to save the class setting.
krypted April 15th, 2016
Any time I need to get a bunch of cruft out of Software Update Server on OS X Server, I just reset it real quick. To do so, simply remove /Library/Server/Software Update. But first, it’s important to stop the service, and once removed, set the port back up (which isn’t done automatically), and then start the service (swupdate). As this has become somewhat routine, I made a micro-script of it here.
krypted April 14th, 2016
My first article on Entrepreneur is out! This is a piece on lessons about running a business that I learned from… Superheroes. So continuing the overarching theme of linking business, technology, and what we in those realms are actually interested in! These articles evolve once they go to the publisher, which is fun for me to watch as well. Anyway, I hope you enjoy. As usual, a sample, and a photo (many of these are for my own library, btw).
“Batman v Superman” set a record in late March for the biggest superhero movie international opening ever (negative reviews aside, as parodied in the “Sad Affleck” video that’s closing in on 20 million hits as of this writing). Superheroes are serious business, in more ways than you might think.
Comics, movies and TV shows have taught me a bunch of lessons. For example, growing up without much diversity in my community, I learned about racism from reading the X-Men. But the most surprising lessons relate to the business world.
A list of some lessons that can be taught by a dozen of our favorite superheroes:
Click here to read about the lessons (and the powers/flaws of our favorite characters)! https://www.entrepreneur.com/slideshow/273638
krypted April 11th, 2016
Posted In: Articles and Books
My latest post on Huffington Post is “From Dungeon Master to Scrum Master: 15 Software Development Lessons from Dungeons and Dragons” and is a bit of a revamp of my D&D article from here, but geared towards SCRUM mastering and managing Software Development teams. You may find it fun and kitschy or you may find it dumb. I’m kinda’ ok with both (I’m learning that I can’t make all the people happy all the time).
A sampling of that article:
I started playing Dungeons and Dragons in about the 5th or 6th grade. I didn’t get good at it for a while, but once I did, I didn’t play much longer (insert reference to “The Best Days of My Life” here.) Dungeons and Dragons taught me a few lessons that I didn’t realize would turn out to be great life lessons, until I was much older. This childhood game taught me life lessons that I would eventually apply to the business world – more specifically, the world of software development – and I know I’m not alone. In fact, there is a distinct possibility that many a developer got their start scoping out character sheets, and many a Scrum Master began as a Dungeon Master.
Here are a few of the lessons I took away from those carefree days. And yes, this image is from a box set sitting on my table at home. Don’t judge.
1. Build a great campaign, and if the game is good, expect your players to break it.
In software, we design workflows. Then, users take routes we never thought possible. You build a product, sell the product and potentially service the product long-term. Maybe it sells, maybe it doesn’t – but if you’re not ready for the sales to happen, you won’t sell that much. How much work do you put into building a campaign, or game, in Dungeons and Dragons, if the characters are just going to go right off your script? How much effort do you put into building a business if the customers are just going to buy something from you that is completely different than what you thought you were going to sell? These are the same questions, and there’s no right answer to either (although there are many wrong answers). Understand that when momentum strikes, if you don’t have a good campaign built that is flexible, you won’t maintain that momentum. And if you haven’t thought of all the various routes a user can take around your software, you’re going to have a bunch of lost paladins mucking around in swamps with no monsters!
To read more, click here.
krypted April 10th, 2016