Skip to content

Latest commit

 

History

History
178 lines (151 loc) · 6.3 KB

setup.md

File metadata and controls

178 lines (151 loc) · 6.3 KB

How to setup your new macOS system

(instructions are valid as of macOS Monterey 12.3)

Table of contents:

Trackpad

  1. Set trackpad settings:
    1. Point & Click
      • Disable Look up & data detectors
      • Enable Tap to click
      • Enable Secondary Click
      • Increase Tracking speed to two notches below maximum
      • Change Click to Firm
      • Disable Force Click
    2. Scroll & Zoom
      • Disable Scroll Direction: Natural
      • Enable Zoom in or out
      • Disable Smart Zoom
      • Enable Rotate
    3. More Gestures
      • Enable Swipe between pages: Scroll left or right with two fingers
      • Enable Swipe between full-screen apps: Scroll left or right with four fingers
      • Enable Notification Centre: Swipe left from the right edge with two fingers
      • Enable Mission Control: Swipe up with four fingers
      • Enable App Expose: Swipe down with four fingers
      • Disable Launchpad
      • Disable Show Desktop
  2. Enable three finger drag
    System Preferences -> Accessibility -> Pointer Control -> Trackpad Options -> Enable Enable Dragging: Three finger drag

Keyboard

Set keyboard Input Source to British - UK: System Preferences -> Keyboard -> Input Sources

Security

  1. Require password immediately after screensaver starts:
    System Preferences -> Security & Privacy -> General -> Enable Require password: Immediately
  2. Turn on FileVault:
    System Preferences -> Security & Privacy -> FileVault -> Turn On FileVault
  3. Turn on Firewall:
    System Preferences -> Security & Privacy -> FileVault -> Turn On Firewall

Xcode

  1. Sign into Apple account
  2. Install Xcode from the App Store
  3. Open XCode and accept the license agreement
  4. Open XCode and set the Command Line Tools to "Xcode xx.x.x": Preferences -> Locations -> Locations tab -> Command Line Tools

Command Line Tools

Install Command Line Tools:

xcode-select --install

SSH

Copy the private and the public SSH keys to ~/.ssh. This is required to be able to clone the dotfiles repository using SSH in the next step.

Automated Installation

Run the full automated installation using the Makefile:

cd ~
git clone --recurse-submodules git@github.com:sankalptipnis/dotfiles.git
cd dotfiles
make -s all

macOS Settings Initial

Configure the following macOS settings:

  1. General
  2. iCloud
  3. Finder
    1. Set column view to default
    2. Set preferences: Finder (menubar) -> Preferences -> ...
    3. Customise Toolbar
  4. Battery
    1. Enable battery percentage in menu bar
      System Preferences -> Dock & Menu Bar -> Battery -> Enable Show in Menu Bar
    2. Set battery settings
  5. Software auto-update
  6. Keyboard
  7. Shortcuts app
  8. Apple Pay & Wallet

Sublime Text

  1. Install Package Control from the Command Palette
  2. git restore any changes in ~/Library/Application Support/Sublime Text/Packages/User

Better Touch Tool

Import settings from this file.

Keyboard Shortcuts

Set keyboard shortcuts:

  1. macOS keyboard shortcuts: System Preferences -> Keyboard -> Shortcuts
  2. AltTab app
  3. Raycast (Command + Space)
  4. Alfred (Control + Space)
  5. Bartender (Command + Option + Control + .)
  6. 1Password Mini (Command + Option + P)

Chrome and Gmail

  1. Sign into Chrome
  2. Set the Gmail website to be the default email app, if required:
    1. Mail.app -> Preferences -> Default email reader -> Google Chrome.app
    2. Google Chrome.app -> Privacy and Security -> Site Settings -> Additional Permissions -> Protocol Handlers -> Sites can ask to handle protocols
    3. Go the the Gmail website -> Click on diamond icon on the right of the status bar -> Set "Allow mail.google.com to open all email links?" to Allow
  3. Import Reddit Enhancement Suite settings from a backup file in the following directory
  4. Set up other extensions

Kerberos Access to LXPLUS

Create a keytab file containing your password that will be fed to the kinit command in order to obtain a Kerberos ticket. On macOS X (which comes with the Heimdal flavor of Kerberos, and not MIT’s) the command to add a password for CERN’s account is:

ktutil -k ~/.ssh/keytab add -p stipnis@CERN.CH -e arcfour-hmac-md5 -V 3

(type your password)

Alternatively you can use the Makefile to create the keytab:

cd $DOTFILES_DIR
make keytab

Shpotify

shpotify needs to connect to Spotify’s API in order to find music by name. It is very likely you want this feature!

To get this to work, you first need to sign up (or into) Spotify’s developer site and create an Application. Once you’ve done so, you can find its Client ID and Client Secret values and enter them into your shpotify config file at ${HOME}/.shpotify.cfg.

Be sure to quote your values and don’t add any extra spaces. When done, it should look like the following (but with your own values):

CLIENT_ID="abcde12345"
CLIENT_SECRET="12345abcde"

Remaining Apps Installation

Install apps which cannot be installed using Homebrew or mas-cli manually:

App Setup

Open and configure installed apps.

macOS Settings Final

Configure the following macOS settings:

  1. Login items
  2. Notifications
  3. Privacy