God I Wish… Ah!

Apple Inc.At work I’ve been thinking about a particular system administration subject on and off for a few days now. When Mac is first installed all the “Optional Sharing Services” are all shipped defaulted to off, which makes sense and is fine. Generally speaking I’ve been fine with using Apple Remote Desktop to share the workstation, open System Preferences, and turning on whatever sharing bits I need to have on for the client workstations and that’s that. However that’s not really that elegant and I’ve been looking for a way to programmatically do it on the command line. As it is, Apple Remote Desktop can send Unix commands to connected workstations. All my client workstations are assembled in a neat little pile on my Apple Remote Desktop screen, as easy as you please. How can I turn on or off these Sharing services without having to upset the user. Ideally I want to turn these on without even sharing their workstation, to in a way, do it under the covers.

Enter the command systemsetup. G’duh. There’s even a handy-dandy template in Apple Remote Desktop that I’ve overlooked all these years that even has the details of the options laid out. So, in Apple Remote Desktop, select the stations you want to change, click the UNIX button, in there select the right template, change the user to root and send the command. Moments later, and in this case, SSH is up and running on the client workstation as easy as you please. Boom. No futzing with sharing workstations, no mucking about with System Preferences. Just simple, easy, like I knew had to exist. Now I know how.

This is actually the way I prefer to learn these things. This was something I sussed out, so it’s worth more than if I just spotted it in some bit of documentation. It took time and energy and it’s mine. The solution is worth something to me, and so I blog about it so I can celebrate Mac OSX and keep a little log in case I forget in the future. It’ll always be here.

Hooray for Mac OSX!

photo by: marcopako 

Installing a HP LaserJet 1505 printer on Apple OSX Mountain Lion

What a problem this was! We had a user with a MacBook Pro that had a new copy of Macintosh OSX Mountain Lion 10.8.2 running on it. Plugged in a rinky-dink HP LaserJet 1505 and nothing. Even though there was the exact same printer installed before, from the user’s home, the system refused to reuse the connection for the printer at work. Obviously that has to be because the system notices it’s a different device and refuses to play along, which I find stupid.

Plug in the printer, try to add it, and the Add Printer function goes out to Apple Software Update to look for the driver and then comes back and tells us that nothing is available. Then commence zombie debugging via muzzle flare, wandering around in the dark trying to fix what shouldn’t be happening but apparently is beyond all logic and reason.

So how you do diagnose a Mac? Here’s a handy-dandy guide which anyone can use to fix their Macs. I seriously doubt any issues ever survive this particular procedure:

  1. Clear PRAM – Turn off computer, turn on computer while holding down  Command-Option-P-R. The computer will restart and you’ll hear the startup chime twice. Let go of the keys. ~ For this, just do it. It doesn’t matter if you don’t think doing this will fix your problem, it will. Just shut your pie hole and do this. If you don’t do it, I don’t want to hear about your problems. It’s magical. I don’t care if Apple says it won’t do anything. This thing DOES EVERYTHING IN CREATION – apparently. That and it cannot hurt. Lots of fluids and plenty of bed-rest. 
  2. Repair Disk Permissions – Start Disk Utility, find your “Macintosh HD” and click “Repair Disk Permissions” and wait. Do this. Often. Regularly. Lots. Weekly. Now.
  3. Download Onyx. Pick which version of OSX you are using, download it, install it and use it. I recommend skipping everything it wants to do and going right for the Automation button. Uncheck “Repair Permissions” and “Display of folders content” and check the rest. Click Execute and wait. When the system asks for a reboot. Reboot. Everyone should do this weekly. Think of it like vitamins for your Mac. Plus, it can’t hurt.

At this point your system should be all spic and span and whatever niggling bit was bothering you should be dealt with. Of course, for the problem I had to deal with at work, there is one little thing extra, one thing more. Open Finder, click Go on the Menubar, then Go to Folder… and type in /Library/Printers and click Ok. You’ll see a list of folders. In this list find the folder named “hp” and KILL IT WITH EXTREME PREJUDICE. Y’arr! This !@#$ folder is at the very center of my hatred for all that is Hewlett-Packard. I’ve started to unceremoniously refer to them as Fudge Packard. Bastards. Anyways, killing the folder does the trick, it clears everything up and Mountain Lion can download software from Apple again for the HP Drivers – blah blah blah. I’d rather just get a sledgehammer and pound the HP LaserJet 1505 into foil, but hey, you have to cope or have some sort of attack. I regret buying HP. I regret the LaserJet 1505. What a piece of crap. Steaming.

Encrypted Time Machine Drive Botch in Mac OSX 10.8.2 Mountain Lion

We had a Firewire 800 drive botch when it came to whole-volume encryption in Mac OSX 10.8.2 Mountain Lion. We lost the password and couldn’t recover it. The drive refused to erase, all the options were grayed out. I refuse to believe that a software change can render hardware junk, so there had to be a way, and I found it. Here’s the procedure:

  • Attach botched drive to computer, since the password won’t work, cancel the unlock dialog box
  • Open Terminal
  • Enter command: diskutil CoreStorage list
  • You will get a long list, you are looking for the UUID of the “Logical Volume Group” at the very top of the list, for the drive that is affected.
  • Enter command: diskutil CoreStorage delete [UUID]
  • The system will eject the volumes, destroy the grouping, erase the disk, then initialize the disk, mount it and finish.
  • Done!

Workflow with Pocket

I have recently fallen into a peculiar workflow arrangement between various social networking applications and Read It Later’s Pocket application. When I am following the flow of status updates from my Twitter stream I prefer to stay in-the-moment with the stream and select interesting-looking tweets that have links attached to them, but instead of actually following them in a browser, I send them to Pocket. My preferred Twitter application, TweetBot makes this as easy as tap and select “Send to Pocket” with a happy little sound confirming that my action worked. This really works well for me and doing this has spread beyond the confines of Twitter out to Facebook – however there is no convenient interface between Facebook status posts and Pocket so the workflow is a little more convoluted. I command-click on perhaps-interesting Facebook posts and this opens them up in tabs. Then I switch to the tab, click the Pocket extension, send the link to Pocket and close the tab. I don’t really want to see the links right now, I’d rather send them all off to Pocket and then queue them up that way.

Another really neat web tool that I’ve fallen in love with is IFTTT.com. This site allows you to connect a huge collection of services to their site and then construct “If This Then That” rules. This has actually simplified the Twitter-to-Pocket interface, in so far that if I like a Tweet then that is plucked by IFTTT and sent off to my Pocket automatically. This particular bit does muddy the waters between TweetBot and Twitter itself, but it’s not really a problem, just a build-up of near-miss convenience. IFTTT in this arrangement shines when it comes to Google Reader. I have subscribed to quite a lot of RSS and ATOM feeds from various sites and manage them all in Google Reader. If I “star” something in Google Reader, then IFTTT notices and copies that entry to my Pocket for later reading. As I am quite fond of having my cake and eating it too I’m always on the lookout for multi-product synergy and convenience. I really do not like Google Reader’s web interface, in fact, I really don’t like many “Web Interfaces” for products and would prefer the gilded cage of specialized client software instead. So there is a nice synergy between Reeder on my Mac computers which presents my Google Reader contents in a visually appealing way as well as Flipboard, which is the preferred way to view Google Reader on my iPad. By using IFTTT as the middleman-behind-the-scenes I can funnel all the stories that catch my interest and collect them right into Pocket.

All of these things can also be done with Instapaper and I was an ardent fan of Instapaper for a very long while, but I’ve switched over to Pocket. I still regard Marco Arment and his product to be very good, but for me personally I found that Instapaper on my 1st Generation iPad would jettison too much for my liking. It wasn’t as much a problem with Instapaper as it was the iPad itself. Embarrassingly outclassed by the applications that I was trying to force on it. I’d be able to stand by this, but Instapaper on my 3rd Generation iPad also jettisoned. I didn’t really want to bother the author with the yackety-schmackety bug reports and Pocket edged out Instapaper when it came to displaying video and audio media. The core functions between the two are quite similar and the only other small feature that pushed me over to Pocket was the ability to search on my Pocket list and perform actions on multiple items. I have no doubt that Instapaper will catch up and may already have caught up. The money I spent on Instapaper was money well-spent and I would suggest that people look at both apps before deciding for themselves.

So back to the workflow, this is how I naturally started navigating my social network stream of information. In a way, I follow sources which curate the noise of Reddit and other news aggregators into categories that I find most interesting and then I self-curate the longer pieces into Pocket for later consumption. As I used this workflow it occurred to me that what was happening was an emergent stratification of curation. Living generates a noisy foam of information, which crashes on the coral reefs of StumbleUpon, Reddit, Engadget, HuffPo and the like. Information seagulls, like @geekami (for example) fly over these coral reefs of information and pluck out the shiniest bits, linking them to tweets and shipping them out. Then I come along and refine that for things I really find interesting and all of this ends up crashing into Pocket. Arguably, Pocket is the terminal for all this curation, but it doesn’t have to be. I could (but I don’t) cross-link Pocket and Buffer using IFTTT and regenerating a curated flow of information turning me into an information seagull. I suppose I don’t follow that path because I already have enough to do as it is, reading, comics, FOMO, work, gym… the list goes on and on.

For all the apps and people I mentioned in this blog entry, I really do recommend that you Google them and see if any of this fits in your life as it did mine. If It works for you, or you found a better way of managing this flow of information foam, please comment with your workflow description. Just more curation. Lexicographers and Encyclopedists eat your heart out. 😉

Shuffle thy mortal coil

Everything is done, for the Apple Digital Lifestyle project for our soon-to-retire management person. Getting to this point was a challenge only in terms of getting the data off of the old computer. The old machine was a Dell Dimension desktop loaded with Windows XP. I got the machine running and everything was fine, as far as Windows XP can be fine and I inserted my Knoppix DVD into the disk drive and rebooted. Then began the hurdles, the system was configured to boot first to the HD, not to the DVD, so I changed that and rebooted, the disk wouldn’t read and the system booted to the HD anyways, up comes Windows XP. Turns out, this computer is so old that it doesn’t have DVD, just a plain CD-ROM drive that I errantly mistook for a DVD drive. So I swapped out the Knoppix DVD and traded it for a Knoppix CD, rebooted and finally was up and running in Knoppix. I mounted the volume where the user files lived and used the tar utility to copy them over the network to my iMac on my desk. Once that was done I switched Knoppix out for DBAN, a popular hard drive erasing utility and booted into that, set it to chew away using DoD short wipe and proceeded to unpack the tar file I had copied over. I had unpacked the users data, trimmed out the meaningless Windows junk and ended up with about 800MB of user data in the end, mostly music and pictures and a few documents peppered in. I made a new ‘tar’ file and then copied that over to the new iMac using my handy-dandy USB file transmission cable. I had utterly blanked on the fact that both my iMac and the new iMac had fancy FireWire 800 capability, and only now that I reflect upon it do I feel rather silly in forgetting FireWire.

Once the data was over, I moved all the documents where they needed to be and then I thought about how I would manage the music and pictures. First was the pictures, I opened iPhoto ’09 (which came with the iMac!) and clicked on File, Import, pointed it to the directory that held the mishmash of user data and in about 45 seconds (I couldn’t help but time it) all the user pictures were now in iPhoto. I did the same thing with iTunes for the music and that took a whole 30 seconds. I then threw all the rescued remains in the trash (because they were now in iPhoto and iTunes) and then rescued bookmarks, that took a whole 10 seconds and into Safari it went. Cleaned everything up, installed the ‘Free’ HP All-in-one, and that took 2 minutes to unpack and 30 seconds to set up, I had a test print a minute later. Packed it all up, walked it to the manager’s office and he’s all set to enjoy.

What will he enjoy? His big thing is email and using iChat Video Chat. That’s the biggest selling point I think for this entire adventure. He can see his daughter and her budding family, full audio/video Mac goodness for as long as he likes to do so. I suggested that he could even set up a link in the morning and have a virtual “magic mirror” run all day long so they could spend time close to their loved ones without the expense or trouble of traveling.

After this entire adventure it struck me that I effectively ran an entire micro-sized Apple Store from inside my head. I had a Genius Bar (my office), I was the Genius (don’t have a fancy apple shirt, tho) and I got the user interested, sold, migrated, and trained – just like in an Apple Store. If Apple ever were to establish a store in Kalamazoo I would definitely moonlight there, without a doubt. The last time I did enter an Apple Store was with my Father in Syracuse a few months ago, the salespeople approached and I was busy pointing out a 21″ iMac to my Dad and as the sales guy approached he heard me actually running through his script. He chuckled and smiled and stood behind me. That’s why Apple succeeds, because they impress people like me and we become evangelists. Walking around, free Apple advertising and when someone comes up and asks, we show them all the wonderful fun they could have and then they go and buy into the dream as well, the cycle continues.

Apple iPad

Apple has unveiled their latest technological offering, the Apple iPad. It fills a niche between their iPhone and their Macintosh line of computers (MacBooks cause everyones hot for mobility). I was on pins and needles for the entire event, which I enjoyed in fits and starts from the Engadget Liveblog page. Watching Apple demonstrate the device, chat up some of it’s features, and then at the end pull the pin and lob a hand-grenade of aggressive pricing at everyone, I was stunned!

What gets me is a bit of geek lore, at least at first. iPad, I’m sure Apple’s inspiration was a ‘notepad’ since the device is arguably most like a conveniently-beefy sized notepad. The word iPad though does have deep connections for many Sci-Fi Geeks who also happen to be gadgetophiles. In Star Trek TNG a common device that was handed from crewmember to crewmember was a PADD. A roughly 10 inch rectangular piece of metal and plastic that was touch sensitive and displayed information. Oh eat your heart out! iPad – PADD. For geeks like me, this is a blossoming of authentic science-fiction that has been turned into a real thing and offered to us. The act of handing our iPad to someone else to look at something makes that whole experience valuable – we saw that in Star Trek, we’re doing it in real life. It’s one thing out of a multitude, but it’s very much like heroin for geeks. If not for every geek, at least this one.

The iPad is not only chock full of sci-fi technoromanticism (portmanteau bitches!) but it has the capacity to change the world. The iPad, like the iPhone and the iPod is a device that does something and from the track record of Apple, it will do the tasks very well. Whether you get it chock full of storage or not, wireless up the wazoo or not, the device itself means something. A full color illuminated display for books with authentic graphical representations of the behavior of real books will enhance literacy and impact the printed page. It won’t demolish the print industry, but it will liberate books from the tyranny of limited printings. If you want a book and it’s in a digital format, the idea that “We’re all out, we are waiting for a second printing” simply goes away. This will ensure that books can be spread, retained, and even published without the usual prohibitive costs related to acquiring an editor, a publishing house, signing book deals. The iPad (et al) will do for books what the iPod did for music – ie release creativity. People who couldn’t necessarily get their music out into the world via a record contract could suddenly record and put their music on MySpace or thru a Podcast and then the record companies didn’t matter so much, the consumers could approach the artists directly. Same goes for books. Before if you wanted to write the great American novel you’d have to pound it out, submit it to publishers and they controlled whether it spread or not. The iPad (et al) can release literature from control, bypass the gatekeepers. Everyone can publish.

When I say (et al) what do I mean? iPad isn’t the only device out there that can render literature, so can the Nook and the Kindle. The iPad presents an overwhelming challenge to it’s competitor devices, not so much for the principal context of literature, but because the iPad can do much much more than the Kindle or Nook could possibly muster. Playing Music, Movies, Extensibility through the App Store, these are things that the Nook and Kindle just can’t accomplish (save music, which I know the Nook can…) and it’s this extensibility, full color, and full touch sensitivity across the entire device. The iPad is a killer device for many forms of literature, but the form I’m personally most driven by is that of comic books. These books  are bright, graphical, textual, and often times have callouts where hypertextual links would offer incredible convenience. One thing people have to understand, and this is true of the iPad as well as the Nook, is that you do not have to wait for some DRM’ed eBook to be published to read literature, whether it be a classic like The Iliad or Green Lantern Volume 2. You can do the legwork yourself, these two devices have open extensibility, in the Nook it’s the ability to dispaly PDF files and open eBook formats – while for the iPad it’s the foundation of the iPhone OS and the sure extensibility of the App Store.

Waiting for eBook publishing to catch up is not as compelling a reason to hesitate as may be feared. Routes to getting what you want will always exist as long as there is an analog hole. For print matter, the analog hole is the print itself. You buy a book, disassemble it, feed it to a sheetfed color scanner and in an afternoon you’ve converted a physical book to it’s digital counterpart. You can then spread that digital representation to whomever you wish, it is definitely not legal, but it is something you can do, thanks to the analog hole. This is most paramount to content providers, publishers and the like. Your lesson is this: Change your business model when the technology changes and you will succeed – Fail and you will be buried. If XYZ Publisher refuses to heed this warning and refuses to publish their product in a digital format then the customers will be forced to cope and create the knockoff digital content on their own, they know what they want and if it’s possible for them to obtain it, they will. XYZ Publisher will find their sales drying up because nobody wants dead trees anymore, they want digitial content, and if that has leaked into the network, all those potential sales are gone and XYZ might as well board up and close shop. It is better for XYZ, and their customers if they immediately produce digital content, leave DRM by the wayside, treat their customers with respect and they’ll make profits like gangbusters. A perfect example of this is Marvel and DC Comics. For years people have been disassembling these comic books and scanning them and making the entire archive available on the network free of charge. By not leaping on the bandwagon immediately, they’ve missed a golden opportunity to extend their product into a entirely new economic ecosystem. The drop-dead-date has not passed yet, but it is coming, around March when the iPad starts to sell. For example, if DC wanted to jump on top of this immediately they’d need to get a DC Comic Book App set up in the App Store, set up a channel for paying for content (which you can now do through an App) and then deliver digital editions of their entire line available through their iPad App. Charge the cover price, skip out on the cost of printing, happy customers. Win win and win.

What then for the Kindle and Nook? They will always have a place at the table. I don’t see iPad annihilating them, however I do see Nook leading Kindle to the MC Escher Staircase and pushing it. Kindle’s living nightmare, an Apple competitor, is now here. Nook will push Kindle and iPad will shoot it once it lands at the bottom of the MC Escher Staircase. It won’t be pretty.

And just so everyone is aware, I am saving money so I can buy myself an iPad. I couldn’t imagine not having a PADD. 🙂