Just some notes from when fred got a new macbook.
Make sure you have a rescue account on your old macbook. JAMF messed with my passwords.
Install chrome Install bitwarden Install iterm2 (will trigger install of xcode-development-tools) Install alfred Login to chrome Install updates Copy ssh ids, or generate new ones
(sorry, these are from memory so may be approximate)
chroot /Volumes/Mac\ HD /bin/bash
(name is approximate, I forget the volume name)chown -R user_n_name /usr/local
brew install vim macvim
# will fail
brew unlink macvim
brew install vim
brew install thefuck
brew install cowsay fortune eolcat
brew install slack
git clone git@github.xdr.accenturefederalcyber.com:mdr-engineering/infrastructure-notes.git
git clone git@github.xdr.accenturefederalcyber.com:mdr-engineering/xdr-terraform-live.git
git clone git@github.xdr.accenturefederalcyber.com:mdr-engineering/xdr-terraform-modules.git
git clone git@github.xdr.accenturefederalcyber.com:mdr-engineering/msoc-infrastructure.git
source .bashrc # pick up changes to path
brew install warrensbox/tap/tfswitch
tfswitch
# Select 0.13.5
tfswitch
# Select 0.11.14
brew install warrensbox/tap/tgswitch
tgswitch
# Install latest (0.28.24 at time of this writing)
brew install awscli
https://github.xdr.accenturefederalcyber.com/duane-waddle/saml2aws/releases
brew uninstall saml2aws
xattr -d com.apple.quarantine saml2aws
on the binary or you'll get a warning that you can't run it.If PR https://github.com/Versent/saml2aws/pull/793 gets merged, we can revert to using brew.
vim ~/infrastructure-notes/AWS\ Notes.md
# Search for 'saml2aws'
# Create the ~/.saml2aws file as specified
saml2aws login --idp-account=govcloud
# Login via username/password, Approve via okta
saml2aws login --idp-account=commercial
# Login via username/password, Approve via okta
ln -s ~/infrastructure-notes/files/config ~/.aws/config
# Test
aws --profile mdr-test-c2-gov s3 ls
cd ~/xdr-terraform-live/test/aws-us-gov/mdr-test-c2/006-account-standards
tfswitch
terragrunt init
# these two should make no changes
terragrunt apply
terragrunt-local apply
Install scaleft per instrutions in ScaleFT Notes
Download and install viscosity, add and test both vpns.
If you want alfred, install it from the website and not the app store.
Get your AFS stuff back
git config --global user.name "Fred Damstra [afs macbook]"
git config --global user.email "frederick.t.damstra@accenturefederal.com"
Run 'Keychain Access' Import files/mdr\ root\ ca.crt Set certificate as trusted
aws-extend-switch-roles ( See AWS Notes.md )
become root
dscl . -append /Groups/admin GroupMembership duane.e.waddle
undo
dscl . -delete /Groups/admin GroupMembership duane.e.waddle
Install powerlevel10k to configure .zsh. This will add git branch to your cmd prompt.
https://github.com/romkatv/powerlevel10k
tmux
caffeinate -d
Ctrl + b
d
One liner: tmux new-session -d -s caffeinate 'caffeinate -d'
~/.zshrc
alias cafe='tmux new-session -d -s caffeinate "caffeinate -d"'
alias nap='tmux kill-session -t caffeinate'