Store SSH key (passphrase) into macOS Keychain

Introduction The ssh agent on macOS can add your private key and the passphrase of this to the keychain (“Keychain Access.app”). This is useful because you unlock the access with your normal login into the macOS user account. Meaning you can use your key without typing in the passphrase…

Backup and Restore your Homebrew Setup

Introduction Homebrew is a popular package manager for MacOS. It provides easy access to thousands of programs and applications. It is developed and maintained by an open-source community on Github. Use Homebrew bundle to backup and restore your Homebrew configuration. If you haven’t installed it yet, go take a…

sudo Touch ID on MacBook

To allow TouchID on your Mac to authenticate you for sudo access instead of a password you need to do the following. * Open Terminal * Switch to the root user with sudo su - * Edit the /etc/pam.d/sudo file with a command-line editor such as nano * The contents of…

Enable sudo without a password

edit /etc/sudoers sudo visudo Then find the admin group permission section: %admin ALL = (ALL) ALL %wheel ALL=(ALL) ALL Change to add NOPASSWD: %admin ALL = (ALL) NOPASSWD: ALL user ALL=(ALL) NOPASSWD: ALL Be aware that removing the password requirement to use sudo eliminates a level of security. If…

iTerm2

iTerm2 is a replacement for Terminal and the successor to iTerm. It works on Macs with macOS 10.14 or newer. iTerm2 brings the terminal into the modern age with features you never knew you always wanted. Key Features Split Panes Divide a tab up into multiple panes, each one…

Create a macOS USB Installer

You don't need a bootable installer to upgrade macOS or reinstall macOS, but it can be useful if you want to install macOS on multiple computers without downloading the installer each time, or you're unable to install a compatible macOS from the Finder or macOS Recovery.…

Homebrew

The Missing Package Manager for macOS (or Linux) Homebrew is the easiest and most flexible way to install the UNIX tools Apple didn’t include with macOS. It can also install software not packaged for your Linux distribution without requiring sudo. Install /bin/bash -c "$(curl -fsSL https://raw.…

Default Write Commands

Macs are very tweakable machines. macOS is a great operating system because most settings work just fine as they are, but with a few simple Terminal commands you can change just about anything that doesn’t suit you perfectly. These commands are called Defaults Write Commands, and when entered into…