Skip to content

yuhunglin/dotfiles

Repository files navigation

Dotfiles

  • [???] Reworked off a mathias base for high sierra 10.13.
  • [2020/08/26] Reworked using dotbot
  • [2020/09/07] Readme cleanup + dotbot instructions

OSX Installation (from a new machine)

  1. (optional) Extend sudo timestamp_timeout while machine is getting setup

    sudo visudo
    
    # Add this to the bottom to extend the timeout to 4 hours
    Defaults timestamp_timeout=240
    
  2. Bootstrap

    • caffinate
    • promptless homebrew
    • git install
    • workspace, git clone
    • kill caffinate
    (caffeinate &) \
    && echo | /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" \
    && brew install git \
    && mkdir -p ~/workspace \
    && ssh-keyscan github.com >> ~/.ssh/known_hosts \
    && git clone --recursive https://github.com/yuhunglin/dotfiles.git ~/workspace/dotfiles\
    && cd ~/workspace/dotfiles \
    && git remote set-url origin git@github.com:yuhunglin/dotfiles.git \
    && killall caffeinate
    
  3. Set machine name and stuff:

    • set machine name
    • ssh-keygen
    • add new ssh-key to github
    • set shell to bash
    ~/workspace/dotfiles/scripts/osx_set_machine_name.sh flexo
    ssh-keygen -t rsa -b 4096
    # Copy to github for the new machine
    cat ~/.ssh/id_rsa.pub
    sudo chsh -s /usr/local/bin/bash \
    && sudo chsh -s /usr/local/bin/bash $(whoami)
    
    
  4. run dotbot stuff

    caffeinate -i ./install-profile osx_monterey
    
  5. Deal with keybase finder issues:

    • sudo xattr -rd com.apple.quarantine /Library/Filesystems/kbfuse.fs/ to deal with the kbfuse.fs signature issues.
  6. keybase gpg stuff:

  7. (optional) Remove the sudoers timestamp_timeout after machine is setup.

  • Other useful commands:
    • Standalone config runs:
      • homebrew - caffeinate -i ./install-standalone homebrew
      • osx settings - caffeinate -i ./install-standalone homebrew
      • nvim refresh - caffeinate -i ./install-standalone nvim

Stuff to automate

  1. dotfiles/bin

    • github releases (for now)
    curl -L https://github.com/hashicorp/levant/releases/latest/download/darwin-amd64-levant -o ~/workspace/dotfiles/bin/levant && chmod +x ~/workspace/dotfiles/bin/levant
    
    curl -L https://github.com/jetstack/vault-unsealer/releases/latest/download/vault-unsealer_0.3.1_darwin_amd64 -o ~/workspace/dotfiles/bin/vault-unsealer && chmod +x ~/workspace/dotfiles/bin/vault-unsealer
    
  2. Add Google Keep manually to the dock

  3. Open the following programs to finish installation

    • Docker
    • Flycut
    • Keybase
    • MeetingBar
    • Spectacle/Rectangle
    • VLC
    • Viscosity
  • Maybe install the printer?

Extras

  • .extras.sample is copied over to $HOME and an easy way to slot in things that cannot be committed easily.

About

because all the cool kids are doing it

Topics

Resources

License

Stars

1 star

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors