mac

How to copy text from the MacOS Terminal to the clipboard

If you ever need to copy text (or a text file) from the MacOS Terminal to the Mac clipboard, I can confirm that the Mac pbcopy command works. It reads from STDIN and copies the text to the clipboard, so commands like these work:

$ echo "foo bar baz" | pbcopy

$ cat /etc/passwd | pbcopy
John Gruber: The Mac Pro Lives alvin April 4, 2017 - 8:23am

John Gruber writes today that The Mac Pro Lives. Perhaps more accurately, at least it seems to have a future.

How to get MacOS Message app to sync up with iPhone messages (get it to update)

As a quick note, I often have a problem where the Messages app on MacOS (formerly Mac OS X) won’t update to receive new messages. By this I mean that I receive messages on my iPhone, but then when I go to my Mac and open the Messages app, my new text messages either never get there, or it takes a long time for them to show up in the Messages app.

Cerebro, a Spotlight-like launcher for Linux alvin February 21, 2017 - 11:29am

I recently “made the switch” from MacOS to Linux Mint, and was lamenting the fact that I didn’t have Alfred on Mint. But then this morning I learned about Cerebro, which, if it’s not Alfred yet, at least it’s Spotlight for Linux. omgubuntu.co.uk has this good intro article on Cerebro.

Cerebro is written as an Electron app, and as a result it’s available not only for Linux, but Windows and MacOS as well.

MacOS softwareupdate command (how to ignore updates)

I just learned that MacOS has a softwareupdate command, and further learned that it has a --ignore option, which may or may not let you ignore useless updates. For example, my Mac prompts me daily to update Keynote, Numbers, and Pages, which I rarely (rarely!) use, so I don’t want to bother updating them. I’m hoping the a softwareupdate command will help me with this.

How to type smart quotes on Ubuntu Linux alvin January 20, 2017 - 6:34pm
Table of Contents1 - Background: Switching from MacOS to Ubuntu2 - Background: AltGr and Compose keys3 - Step 1: Figure out what the Compose key is4 - How to type smart quotes on Ubuntu (the hard way)5 - Note: You can stop here6 - Using Ubuntu macros to make it easier7 - Mapping keystrokes to xdotool commands8 - Summary

There seem to be a few different ways to type “smart quotes” on Ubuntu Linux, including using keys (keystrokes) like AltGr and Compose. In this tutorial I’ll document an approach that works best for me: creating simple macros I can assign to simple keystrokes rather than having to use more-complicated keystrokes.

Ubuntu running on a 2008 27” iMac

As shown in the image, I just installed Ubuntu on my 2008 27” iMac. The UI is interesting, a combination of MacOS and Windows. From what I’ve seen, I think I’ll like the Ubuntu UI (Unity) more than Linux Mint, but I’m open. So far Ubuntu is also significantly faster than the latest versions of MacOS were on the same hardware, though that may be because MacOS had a few hundred thousand more files on it than Ubuntu has at the moment.

The best Linux laptops of 2016 alvin January 11, 2017 - 7:09pm

This is a nice article on the best Linux laptops of 2016, including what to look out for in graphics chips and other hardware issues. As I become more disgruntled with Apple and the direction of Macs and MacOS, I thought I’d start looking for a Linux laptop.