Mac

Screen Capture KeyStrokes

  • Command-Shift-3 » Make a screendump of the whole screen, save to disk
  • Command-Shift-4 » Make a screendump of (crosshair) selection, save to disk
  • Command-Shift-3 while selecting press Control » Make a screendump, place in Clipboard
  • Command-Shift-4 while selecting press Control » Make a screendump of (crosshair) selection, place in Clipboard
  • Command-Shift-4 together with Spacebar » Select window, then Make a screendump of the selected window
  • Command-Shift-4 together with Spacebar while selecting press Control » Select window, then Make a screendump of the selected window, place in Clibboard

Physical Security

  • It's not good enough to have a solid password for a user login; you can just boot from a CD or other disk; from there, you're root.
  • To defend against that, you need to set a firmware password:
    1. Boot from the install disk
    2. After confirming the language, select "Firmware password" from the "Utilities" drop-down menu.

SSHKeyChain

Got this message during install:

Warning:
Tunneling of ports < 1024 has been disabled because of a security hazard.
To enable this feature, run the following commands in a Terminal:

sudo chown root:admin /Applications/SSHKeychain.app/Contents/Resources/TunnelRunner
sudo chmod u+s /Applications/SSHKeychain.app/Contents/Resources/TunnelRunner

GnuGP and GPGME

MacPort: gnupg @1.4.7 mail/gnupg is all you need to get started with gpg.

http://www.gnupg.org/(en)/documentation/howtos.html

Installing S.M.A.R.T. Monitor tooling

(Mike Hardy helped me out with this on March 2009, when I was in GDL)

Install: # port install smartmontools

which includes two tools: smartctl and smartd

Sample smartctl command: /opt/local/sbin/smartctl -o on -s on -T permissive -a /dev/rdisk0

  • non-zero values for "197 Current_Pending_Sector" or "198 Offline_Uncorrectable" indicate a dying disk
  • non-zero values for "5 Reallocated_Sector_Ct" indicate the disk is seriously actively failing.

(see also http://monkey.org/freebsd/archive/freebsd-scsi/200306/msg00017.html)

Rip an ISO from a CD

I do it this way to rip backups of many CDs and DVDs….

First insert the disk and let it show up on your desktop then do the following in Terminal…

diskutil unmount /Volumes/volumename

hdiutil makehybrid -o image.iso /dev/disk2 -verbose

The device name for your optical drive may not necessarily be disk2 (on my MBP, it was).

Convert a DMG to ISO

hdiutil convert /path/to/filename.dmg -format UDTO -o /path/to/savefile.iso

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License