Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Installing OSX Sierra from scratch

List & install software updates

softwareupdate --list
sudo softwareupdate --verbose --install --all

Set computer name

COMPUTER_NAME="<computer-name>"
sudo scutil --set ComputerName $COMPUTER_NAME
sudo scutil --set LocalHostName $COMPUTER_NAME
sudo scutil --set HostName $COMPUTER_NAME

Screen saver / lock

  • System Preferences > Desktop & Screen Saver > Screen Saver > Hot Corners > Top Right
    • Start Screen Saver
  • System Preferences > Security & Privacy > General
    • Require password immediately after sleep or screen saver begins

Accessibility

  • System Preferences > Accessibility > Zoom
    • Use keyboard shortcuts to zoom
  • System Preferences > Accessibility > Mouse & Trackpad > Trackpad Options
    • Check "Enable dragging"
    • Select "three finger drag"

Dock settings

defaults write com.apple.dock static-only -bool TRUE
defaults write com.apple.Dock autohide -bool TRUE
defaults write com.apple.dock showhidden -bool TRUE
killall Dock

Trackpad gestures

  • System Preferences > Trackpad > Point & Click > Tap to click
    • Check checkbox

Keyboard shortcuts

  • System Preferences > Keyboard > Shortcuts > App Shortcuts > All Applications
    • Click "+" to add "Zoom" with shortcut cmd-shift-M

Date & time

  • System Preferences > Date & Time > Clock > Date options
    • Check "Show date" checkbox

Sound

  • System Preferences > Sound > Sound Effects > Alert Volume
    • Move slider to minimum

Battery usage

  • Click on battery icon in status bar
    • Enable "Show Percentage" option

Keyboard

  • System Preferences > Keyboard > Keyboard
    • Tick "Show keyboard and emoji viewers in menu bar" checkbox

Finder preferences

sfltool add-item com.apple.LSSharedFileList.FavoriteItems file:///Users/jamesmead/Dropbox/Inbox%20-%20Personal 
sfltool add-item com.apple.LSSharedFileList.FavoriteItems file:///Users/jamesmead/Dropbox/Inbox%20-%20Work
sfltool add-item com.apple.LSSharedFileList.FavoriteItems file:///Users/jamesmead/Code

Environment

Install dotfiles from https://github.com/floehopper/dotfiles.

mkdir ~/bin

Install Homebrew

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Install tools

Follow post-install instructions in each case.

brew install git
brew install hub
brew install bash-completion
brew install wget
brew install trash
brew install nmap
brew install rclone
brew install ag
brew install tree
brew install phantomjs
brew install neovim
# brew install vim --with-override-system-vi
brew install awscli
brew install jq
brew install heroku
brew install postgres
brew install tldr
brew install openshift-cli
brew install elasticsearch
brew install kibana
brew install grv
brew install tidy-html5
brew install httpie
brew install ffmpeg
brew install openssl
brew install fd
brew install saulpw/vd/visidata
brew install youtube-dl
brew install fzf
brew install gnupg
brew install go

Install apps

Terminal

cd ~/Code/
mkdir lysyi3m
cd lysyi3m
git clone git@github.com:lysyi3m/osx-terminal-themes.git
cd osx-terminal-themes
open "schemes/Solarized Dark.terminal"
open "schemes/Solarized Light.terminal"
defaults write com.apple.terminal "Default Window Settings" "Solarized Dark"
defaults write com.apple.terminal "Startup Window Settings" "Solarized Dark"
killall Terminal

Dropbox

brew cask install dropbox
  • Sign in
  • Click through introduction
  • Start syncing

Google Chrome

brew cask install google-chrome

Firefox

brew cask install firefox

1Password

brew cask install 1password
  • Sync from Dropbox
  • Install browser extensions
  • Add other vaults

Google drive

brew cask install google-backup-and-sync

Kindle for Mac

brew cask install kindle
  • Sign in
  • Setup
  • Start syncing

Slack

brew cask install slack

Doxie

brew cask install doxie

Atom editor

brew cask install atom
apm install language-elm
apm install language-diff
apm install language-docker
apm install language-puppet
apm install language-groovy
apm install markdown-pdf
apm install linter
apm install linter-ruby
apm install linter-eslint
apm install linter-shellcheck
apm install linter-tidy
apm install formatter
apm install formatter-tidy # set options from freerange/site `Spider#normalize_artefacts`
apm install atom-ternjs

VS Code

brew cask install visual-studio-code

Gitx

  • This fork fixes a problem with Objective-C garbage collection in Sierra
brew cask install rowanj-gitx

Docker

brew cask install docker

# From https://docs.docker.com/machine/completion/#bash
curl -L https://raw.githubusercontent.com/docker/docker-ce/master/components/cli/contrib/completion/bash/docker -o $(brew --prefix)/etc/bash_completion.d/docker
# From https://docs.docker.com/compose/completion/#bash
curl -L https://raw.githubusercontent.com/docker/compose/master/contrib/completion/bash/docker-compose -o $(brew --prefix)/etc/bash_completion.d/docker-compose

Spotify

brew cask install spotify

Minecraft

brew cask install minecraft

Calibre eBook reader

brew cask install calibre

Vienna RSS reader

brew cask install vienna

Tunnelblick (VPN client)

brew cask install tunnelblick

OpenCPN (Marine navigation)

brew cask install opencpn

Java8

brew cask install caskroom/versions/java8

Quicklook plugin for Markdown

brew cask install qlmarkdown

Meld merge tool

brew cask install meld
git config --global merge.tool meld

Mac App Store CLI

brew install mas

Pages

mas search Pages
409201541 Pages (7.0)
...

mas install 409201541

XCode

mas search XCode
...

mas install 497799835

GoPro Quik

brew cask install quik

Chrome Driver

brew cask install chromedriver

Keybase

brew cask install keybase

VLC

brew cask install vlc

Winds (RSS)

brew cask install winds

CCMenu

brew cask install ccmenu

Muffet

go get -u github.com/raviqqe/muffet

Quicklook plugins

brew cask install qlmarkdown quicklook-json

Development

brew install rbenv && rbenv init
brew install mysql && brew services start mysql
brew install mongodb brew services start mongodb
brew install redis && brew services start redis
brew install imagemagick

Follow these instructions to install rbenv-aliases plugin.

GOV.UK development

brew cask install virtualbox
brew cask install virtualbox-extension-pack
brew cask install vagrant

cd ~/Code/alphagov/govuk-puppet
# ensure virtualbox guest additions are up-to-date
vagrant plugin install vagrant-vbguest
vagrant plugin install vagrant-dns
# creates dev.gov.uk TLD by creating `/etc/resolver/dev.gov.uk`
vagrant dns --install

brew install openconnect

Install virus-scanning tool for use on OSX

Follow these instructions.

For govuk-terraform-provisioning

See https://github.com/Yleisradio/homebrew-terraforms

brew tap Yleisradio/terraforms
brew install chtf
# and follow instructions
# reload bash environment
cd Code/alphagov/govuk-terraform-provisioning
chtf `cat .terraform-version`

DNS for dev TLD

brew install dnsmasq
echo "address=/.dev/127.0.0.1" >>/usr/local/etc/dnsmasq.conf
sudo bash -c 'echo "nameserver 127.0.0.1" > /etc/resolver/dev'
sudo brew services start dnsmasq

Enable FileVault

sudo fdesetup enable
  • Supply username & password
  • Record recovery key
  • Reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment