Posts Tagged ‘macOS’

GPGTools Support Subscription – in-situ license change

Not brave enough to upgrade to macOS Mojave on my main workhorse yet, I did however click update on GPGTools which only required me restarting Apple Mail. I was very shocked when I saw the following pop-up:

GPGMail Popup

This was an in-situ upgrade from what was free/open source software, to a sudden pop-up nag telling me that I would need to get a license to continue to encrypt/decrypt my mail with ease. I checked out the support plan, which is USD$23.90, and might be something I have to pay for yearly, since a major version coincides with a macOS release according to the FAQ.

Being in the open source industry for 22 years (longer than the term has been around; so let’s call it free software), I’ve seen many license kerfuffles, and I think one of the worst ways to surprise someone is a license change in-situ. In a world where we do git pull’s and just move on, the license is sacrosanct. I’m glad that these developers didn’t focus on mucking with the license and if you choose not to pay USD$23.90 yearly, you can still compile the software yourself.

Am I still allowed to compile my own version of GPG Mail / GPG Suite removing any code regarding the trial or activation?

You absolutely are, the GPL enforces that. You will find the source code on this website and on Github.
We would kindly like to ask you not to use our names or icons if you plan to publish a binary for others to use.

Am I going to compile from source? If this was infrastructure software, definitely, yes. Am I going to pay these developers? I do not know, I still have 30 days to decide.

They clearly learned their lesson, do read the open letter to their users (yes, they’ve had this as a plan for a while, but maybe it wasn’t clear enough). These people aren’t a big evil corp neither did that raise venture capital from what I can tell. They’re independent developers, and if there is something a Mac user tends to do, is that they tend to support indie developers.

If I already pay an Apple tax, the question then becomes: do I pay for yet another app, that seems to basically be a subscription, or do I compile the software? Comes back to the old adage of, spend money to save time, or spend time to save money.

Thumb drive data recovery

I haven’t done any data recovery or data rescue work in sometime (the last time was on Linux, with a combination of dd, ddrescue, and some throwaway code to parse JPGs – it was a Compact Flash card that needed saving). This time, all I had was macOS, a 16GB thumb drive, and the files were someone’s life’s work, which were more than just JPGs but also AI (adobe illustrator), DOC, XLS, PDF, TTF, etc. files.

So via Homebrew, I installed ddrescue again. A command like ddrescue -v -n -c 4096 /dev/disk2 helena.dmg helena.log seemed to work. On macOS, fdisk totally couldn’t get me anything useful and if I ran diskutil list the output would be as follows:

/dev/disk2 (external, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:                                                   *15.5 GB    disk2

For good measure I wanted to also make an image via dd, dd if=/dev/disk2 conv=sync,noerror bs=4096 of=helena.img. It was clearly throwing many errors, an example of which:

13399375872 bytes transferred in 1263.864380 secs (10601910 bytes/sec)
dd: /dev/disk2: Input/output error
dd: /dev/disk2: Input/output error

The real problem was mounting either the DMG or the IMG. On Linux you have this option to loopback mount a file; on macOS this isn’t quite there. There is hdiutil but frankly, this doesn’t work if there is no partition record. I tried to mount it using hdiutil attach -noverify -nomount helena.img but that didn’t work to then do a diskutil mountDisk.

Then… I found a tool: PhotoRec. I wouldn’t have to write something to parse the magic numbers and extract files. PhotoRec just works. It parsed the IMG file, and spat out plenty of files to look at. Recovery was generally full.

For reference, on Linux, there are some good resources: Mounting a raw partition file made with dd or dd_rescue in Linux, and Guide to Using DDRescue to Recover Data. From a forensic standpoint, Disk-Arbitrator looks like a good tool as well.

Updating the locate database on macOS

Today I uninstalled CrashPlan on my macOS laptop since on August 22 2017 they announced they were exiting the home user market. I think the party is close to being over as even Amazon CloudDrive is now limited to 1TB of storage.

I wanted to ensure I removed any traces of CrashPlan. I use the locate command a lot. Ever wondered how to run the equivalent of updatedb on macOS? Its locate.updatedb (comes with a man page too). Run sudo /usr/libexec/locate.updatedb and that updates the locate database.

Pleased to say CrashPlan went away quite cleanly.

Keybase and FUSE on macOS

I like the concept of Keybase, have had an account there for sometime (https://keybase.io/bytebot). I also installed the Keybase app on macOS which has kbfs, the FUSE-based filesystem for Keybase users to share files with encryption (read more).

However, I also tend to spend time offline, and sometimes on restricted networks where I use TripMode. I realised very quickly that a simple ls or df could take some 20 seconds to complete (timeouts at work).

After poking around I realised it was Keybase. So this is what I do now:

keybase ctl stop
pkill Keybase

I used to have to also unmount the /keybase directory but this seems to be taken care of by newer clients. A macOS annoyance. I can’t always just have it running. There is a github issue #971. I think their iOS app is quite well done and have no complaints thus far.

The Touch Bar can wow you over!

In the tech space, sometimes people can be notorious for bemoaning new technology. Case in point? The Touch Bar on the new retina MacBook Pro’s.

I’ve been using a 15″ retina MacBook Pro with Touch Bar for about six months now. I am a vim user when I SSH to servers so I do use the Escape key (and maybe find it a tad annoying that I don’t get any feedback that I’ve hit the Esc key). Otherwise, I use BBEdit. I’ve used the function keys to control screen brightness, adjust volume, and play music. I don’t find Siri useful. I’ve wondered why when I use Keynote I can see little slides appear on my Touch Bar (not like I can read the text, right?). Safari has always been odd with switching tabs via a keyboard (unlike Chrome’s shortcuts), but now you can also switch tabs using the Touch Bar (alas, I’m not really a Safari user). PDFpenPro has selection tools that I can now access via the Touch Bar, so its a bit of a productivity improvement.

So all in, I’m more or less indifferent to the Touch Bar. I don’t love it, but I don’t hate it. Oh wait, I can’t forget the killer feature: unlocking my MacBook Pro with my fingerprints! Touch ID is a killer feature especially since I use 1Password which also supports it. I think this feature alone has improved my productivity tremendously, and saved lots of time re-entering my password.

However, Sara saw my keyboard the other day and she was amazed that it could also display emoji. And this made her really like the MacBook Pro’s Touch Bar (she’s a 13″ MacBook Air user). So Apple can wow users!

Touch Bar with emojis

I presume she will find other uses for it as she’s a creative user of the Mac. I’m just a boring text/code wrangler.

How would the Touch Bar be improved? It needs to be offered across the board on Macs (even for keyboards that iMac and Mac Mini users will use). It probably needs to have haptic feedback; this I suspect will improve the touch typing experience. However even as I write this, I think to myself that when I type on my iPhone or iPad, I don’t get haptic feedback and I intuitively know where everything is…

Upgrade notes on macOS Sierra

I’m notorious for not updating OS X (macOS) too quickly, preferring to wait months on end for Apple to iron out bugs. I just hope that in 2017 they don’t make a major release and something sensible, i.e. that fixes usability and makes the OS much more stable.

However when you buy a new Mac, you’re more or less forced into the new OS. I did pickup a MacBook Pro 15″ with the new TouchBar, and at some stage I’ll talk about my usage (its been about 3 months of daily usage).

One thing that has annoyed me about the new macOS Sierra is that I don’t get to use GPGTools – it will not work on macOS Sierra. There is now however a beta you could try to ensure you’re signing and encrypting email just as well.

Another thing that I hit almost immediately? Some of my SSH hosts just stopped working. I’ve seen various sites talk about how ssh-agent does not automatically load pass phrases to keychain during startup to Upgrading to macOS Sierra will break your SSH keys and lock you out of your own servers.

My ~/.ssh/config now has:

Host *

UseKeychain yes

AddKeysToAgent yes

to fix things.

Everything else more or less works. I did Time Machine restore. I’m not too happy that they removed the Time Remaining from the Battery icon, and I’m not getting the battery life that I expect, but maybe when the new Mac Mini’s come out, I’ll do another Time Machine restore to that, and a clean install to the MacBook Pro.


i