AFS Macbook Notes.md 2.8 KB

Macbook Notes

Just some notes from when fred got a new macbook.

Prelims

Make sure you have a rescue account on your old macbook. JAMF messed with my passwords.

General steps

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

First Hurdle, installing brew

(sorry, these are from memory so may be approximate)

  1. Attempt to follow normal instructions to install brew via curl (not sure if this is necessary)
  2. Reboot, and press command-R during boot to enter recovery mode.
  3. Start 'disk utility' and mount the disk.
  4. Run chroot /Volumes/Mac\ HD /bin/bash (name is approximate, I forget the volume name)
  5. Run chown -R user_n_name /usr/local
  6. Reboot
  7. Follow normal instrutions to install brew via curl

Misc Packages

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 saml2aws
brew install awscli

Configure saml2aws

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

Validate terraform/terragrunt

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

ScaleFT

Install scaleft per instrutions in ScaleFT Notes

Viscosity

Download and install viscosity, add and test both vpns.

Alfred

If you want alfred, install it from the website and not the app store.

Run OneDrive

Get your AFS stuff back

Update your git info

git config --global user.name "Fred Damstra [afs macbook]"
git config --global user.email "frederick.t.damstra@accenturefederal.com"

Add the ssl certificate

Run 'Keychain Access' Import files/mdr\ root\ ca.crt Set certificate as trusted