MacOS

Apple Documentation

General

iCloud

.zshprofile

macOS Catalina and later ship with zsh as the default shellarrow-up-right.

.hushlogin

Add a .hushlogin file to the directory you terminal starts in to suppress the Last login: message at the top of your terminal.

Lock Screen

Change Key Combo

Go to System Preferences > Keyboard > Shortcuts > App Shortcuts

Click + to add a new one called Lock Screen and set the key combo (eg. ⌥⌘+L)

Stop Wifi Dropping on Screen Lock

Disk Images

Random

Homebrew

Homebrewarrow-up-right (brew) is a package manager for macOS akin to the Advanced Package Toolarrow-up-right (apt) on Debian and Ubuntu.

Taps

Tapsarrow-up-right are third party repositories for homebrew.

Example

If you run brew tap sidaf/homebrew-pentest you'll be able to install any formulas from the sidaf/homebrew-pentest repository via brew install. brew install panoptic will search the default Homebrew repository then any tapped repositories for a formula with the name panoptic.

Python

As of Homebrew 1.5.0arrow-up-right brew install python installs python3.x not python2.7.x. This was not PEP 394arrow-up-right compliant as running python would execute the python3.x binary which violates “all distributions should ensure that python refers to the same target as python2”.

This was fixed in 1.6.0arrow-up-right. brew install python still installs python3.x but will not symlink python to the python3.x binary. Running python will execute the system python2.7.x binary and running python3 will execute the brew python3.x binary.

See Homebrew and Pythonarrow-up-right for more info.

Upgrading Packages

By default Homebrew does not automatically update itself or installed packages. To manually update Homebrew and upgrade all installed packages run:

  1. brew update (Update the formulae and Homebrew itself)

  2. brew upgrade (Upgrade all packages installed by Homebrew)

By default, Homebrew does not uninstall old versions of formula. From time to time you'll want to run brew cleanup to remove old version of formula.

See FAQarrow-up-right for more info.

Virtualisation

VMWare Fusion

We get VMWare Fusionarrow-up-right free from VMWare DreamSparkarrow-up-right. Used by most mac wankers on the course. Would recommend over all other virtualisation programs for Mac.

Currently does not work with M1 Macsarrow-up-right.

Parallels

Parallelsarrow-up-right

Apps

General

Programming

For general information see Programmming. This section list macOS specific tools.

Security/ Privacy

Objective-See

Objective-Seearrow-up-right was created by Patrick Wardlearrow-up-right to provide simple, effective and free macOS security tools. Some of his most useful tools are listed below.

Touch Bar

Research

Blogs

Talks

Older

2015

2016

2017

2018

Slides

Articles

Papers

Forensics

Exploits

Books

MacOS and iOS Internals (Levin)

Last updated

Was this helpful?