NB Suited is no longer maintained, could use Steve's mac_setup
For use with suited.
- Create a new SSH key for the new device and add it to the ssh-agent.
ssh-keygen -trsa -b4096 -C "$GIT_EMAIL" -f ~/.ssh/id_rsa
chmod 400 ~/.ssh/id_rsa
ssh-add ~/.ssh/id_rsa
As of MacOS Sierra, you also need to modify ~/.ssh/config
.
Host *
AddKeysToAgent yes
UseKeychain yes
IdentityFile ~/.ssh/id_rsa
- Add it to GitHub.
To get it to the clipboard: cat ~/.ssh/id_rsa.pub | pbcopy
.
-
Check whether you want full disk encryption (probably yes for own computer, no for shared computer, see this commit)
-
Run suited initial set-up. (This will also check out the
mac_setup
repo.)
curl -O https://raw.githubusercontent.com/norm/suited/master/suited.sh
bash suited.sh github:annashipman/mac_setup:initial_setup.conf
Note this will fail on the last command; currently reworking this but until then the workaround is to create the folders it wants and move suited
there.
After installing:
Move to the mac_setup
directory.
Run the rest of the setup:
MACOS_DEFAULTS_DIR=./macos/defaults suited main.conf
Notes:
You will need to log out and back in to see some of the Mac settings change.
-
Go to settings, security, turn off FileVault and then turn it on again and allow apple ID to unlock it. This is a manual step, pending rewriting how this all works.
-
'Dockutil' currently commented out; so manually remove everything from the dock except for Notes, Firefox, iTerm and Chrome.
-
Right click on Dock, settings, can change size of icons and also uncheck 'show recent applications in Dock'
-
Set iTerm to the right size (iTerm2 -> Settings -> Profiles -> Default -> Window -> Columns: 170, Rows: 42). Also, set Working directory to 'Reuse previous session's directory' (in General tab under Default profile) and turn off the bell for events such as auto-completion not available (In Terminal tab under Default profile -> Notifications -> Silence bell)
-
Update github email address in
.gitconfig
. -
Set default shell back to bash.
chsh -s /bin/bash
-
Set caps lock to control (System settings -> keyboard -> keyboard shortcuts -> Modifier keys)
-
Add a shortcut for strikethrough (System settings -> Keyboard -> Shortcuts tab -> App Shortcuts -> + -> ⇧⌘X)
-
Set up notes, calendar, reminders to sync (System settings -> iCloud -> uncheck the things then select the things I want to synch. (Messages is automatic.))
-
Notes: View -> Sort by -> Title
-
Install Things from the Mac App store (go to my account, change who purchsed by) and log in (Things -> settings -> Things Cloud). Set it not to display number of items (settings -> General -> Badge count).
-
Stop notifications - go through all apps and turn them off.
-
Stop interface sounds (System settings -> Sounds -> uncheck interface sounds). This could probably be automated but I don't have time to figure out how right now.
-
Install Firefox 1Password browser extension by copying file from computer.
-
Stop Firefox showing recently visited pages (3 bar menu -> settings -> Home, update Homepage and New tabs).
-
Stop Firefox offering to remember passwords (3 bar menu -> settings -> Privacy and security -> Forms and passwords make sure "Ask to save logins and passwords for sites" is unchecked.)
-
Set default search to DuckDuckGo: about:preferences#search.
-
Stop Chrome offering to remember passwords (Three dots menu -> Settings -> Passwords -> Unselect "Offer to save passwords"
-
Set up my server. Put config into the
~/.ssh/config
file (required config is in 1Password). Copy the new public key (cat ~/.ssh/id_rsa.pub | pbcopy
), SSH to the machine as root and paste the new public key into Puppet, and then run puppet (puppet apply -v puppet/annajunior.pp
). Note: need to remove entire comment at the end as Puppet doesn't like the whitespace. -
Add SSH key to Bitbucket (profile is hidden at the bottom left).
-
Copy over required files from old computer:
Pictures
,Movies
, in progress stuff inprojects
and if relevant,Desktop
. -
Install backblaze. Can brew install --cask, but it downloads an installer that you then have to open, so this is a manual step, for now. Also set up Time MAchine back ups.
-
Finally, install Ruby. This is a separate script as it takes AGES. Do when you're about to make a cup of tea.
suited ruby.conf
- Remap external keyboard keys (caps lock -> control, alt [option] -> apple [command], apple -> alt)
- Install Xcode - this can be done in the Brewfile but takes a long time so better to do manually via the AppStore when needed.