Useful shortcuts in Mac OS X Preview image viewer

Go full screen: ^+⌘+F

Zoom into image: ⌘+”+”

Zoom out: ⌘+”-”

Pan with mouse: Keep pressed ⌥+space, cursor turns into hand, grab with LMB and move the mouse.


Re-mount disk read only in Mac OS X

You have connected an external disk. You want to re-mount it read-only.

What you do is you list the disks, pick the partition you are interested in, unmount it and then mount again with readOnly option:

  • diskutil list
  • diskutil unmount /dev/disk2s1
  • diskutil mount readOnly /dev/disk2s1

Copy file name to command line in mc in Mac OS X

In Mac OS X the shortcut Alt+Enter, which is used to copy file name from file list pane to command line, does not work.

Instead use Esc+Enter.

Calendar Mac OS X “Failed to authenticate with Google”

You are trying to set up your Mac OS X Calendar to work with your Google account. You know it is possible, because you have done it before, but this time it just does not work. Everything seems to be correct, but whatever you do, you keep getting the message:

Authentication failed

Failed to authenticate with Google

One special reason for this may be that if you are using some kind of a personal firewall, e.g. TCPBlock, it is blocking attempts of the Calendar application to reach the Google server.

Try to disable the firewall for a short while and see if Calendar begins to work as it should. If it does, adjust your firewall settings.



Show WiFi signal strength in command line on Mac

while x=1; do /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -I | grep CtlRSSI; sleep 0.5; done


Keyboard shortcut to move file in Mac OS X

It is very easy to move a file or folder in Windows or Linux GUI file manager. Just cut the item and paste it wherever you want it, the same way you would move a block of text or an image in a word processor, for example. Simple.

Of course, it should not be that simple with Apple, because those people are too sophisticated for simple things. So, yes, you still can do it (surprise, surprise!), but in a quite counter-intuitive way:

  • Press Command+C to copy the file or folder
  • Browse to the place you want it to be
  • Press Command+Option+V to paste a copy of the copied item at the current destination and delete the original at the source, effectively moving it.


Tunnelblick: access locally

You set up openVPN on Mac OS X with tunnelblick. You attempt to connect but get a message This file server is available on your computer. Access the volumes and files locally.

The problem may exist between the keyboard and the chair. Check if you are not connecting  to your own IP address instead of the server’s address.