2017/11/13

Why did Skype hijack my phone?

I installed "Skype for Business" recently (required by my org) and everything seemed fine.

Some time later, I clicked on a phone number and selected "Call 888-555-1212 using iPhone" from the contextual popup as usual - and Skype came up. Yuck.

After a _great_ deal of searching, I found that reverting to the default behavior (of actually calling with my iPhone...) is as simple as:
  • Open the FaceTime app.
  • Open its Preferences.
  • Look for the "Default for calls" popup, at the bottom.
  • Select "FaceTime".

2017/06/23

Stale NFS mounts

Think you've got a stale NFS mount, gumming up the works?
Maybe several mounts, you're not sure which is the problem, and your usual tools are not working (ex: they just hang)?

Try this one-liner (sudo / root is required for "lsof"):


Which should ID the culprit, and give you some info to help determine how to handle.

Notes:
  • This unfortunately cannot simply be single-quoted, and executed via ansible. There's probably a way to add another level of quoting to address that, however I simply dropped the code in a file in my homedir, then ansible'd that.
  • The "-b" option to "lsof" is essential, since it avoids blocking, which is almost certain in this circumstance.
  • The "lsof" gives a simple count; if there are any, you may wish to repeat the "lsof" to actually show the open files.
  • The mount's line from /etc/mtab should show some useful info, such as the IP address where the mount at least was, when it was made.