Skip to content

nikhilgorantla/build-my-pc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 

Repository files navigation

Onboard New Macbook < 20 Min

Script Laptop Onboarding

Pre-requisites

  • Copy Bash Alias.
wget https://raw.githubusercontent.com/nikhilgorantla/build-my-pc/master/scripts/.bash_profile && \
mv .bash_profile ~/.bash_profile
source ~/.bash_profile
  • Copy Fish Config
wget https://raw.githubusercontent.com/nikhilgorantla/build-my-pc/master/scripts/config.fish && \
mv config.fish ~/.config/fish/ && \
source ~/.config/fish/config.fish
  • Copy Fish Autocomplete
curl -L https://raw.githubusercontent.com/nikhilgorantla/build-my-pc/master/scripts/fish-autocomplete.sh| sh

Configure Git Profile

  • Configure local Git profile
git config --global user.name “NikG”
git config --global user.email “[email protected]”
git config --global core.editor “code -w”
git config --global merge.tool code

SSH Public Keys

  • Generate General ssh keys
ssh-keygen -t rsa -b 2048
  • Generate ssh key for codebase
ssh-keygen -t rsa -b 2048 -f "id_rsa_github"
  • Generate ssh key for server
ssh-keygen -t rsa -b 2048 -f "id_rsa_serv1"

Homebrew & Homebrew Cask & Homebrew-cask-upgrade

  • Install Homebrew for applications.
curl -L https://raw.githubusercontent.com/nikhilgorantla/build-my-pc/master/scripts/homebrew-install.sh | sh

Install Brew Apps

  • Install core applicaitons.
curl -L https://raw.githubusercontent.com/nikhilgorantla/build-my-pc/master/scripts/brew_tools.sh | sh

Install Brew Cask Apps

  • Install tools
curl -L https://raw.githubusercontent.com/nikhilgorantla/build-my-pc/master/scripts/brewcask_apps.sh | sh

Install Mac Apps

  • Install Mac Store applications.
curl -L https://raw.githubusercontent.com/nikhilgorantla/build-my-pc/master/scripts/mas_apps.sh | sh

Install PiP Apps

  • Install PiP Packages.
curl -L https://raw.githubusercontent.com/nikhilgorantla/build-my-pc/master/scripts/pip_packages.sh | sh

Install NPM Apps

  • Install NPM packages.
curl -L https://raw.githubusercontent.com/nikhilgorantla/build-my-pc/master/scripts/npm_packages.sh | sh

Install VSCode Extensions

  • Run the following to install all extensions.
curl -L  https://raw.githubusercontent.com/nikhilgorantla/build-my-pc/master/scripts/vs-code-extension.sh | sh

If the command fails, try Cmd + Shift + P and then type install and choose the

Shell Command: Install 'code-insiders' command in PATH

and re-run the command

Install kubectl Plugins

  • Install kubectl Plugins.
curl -L https://raw.githubusercontent.com/nikhilgorantla/build-my-pc/master/scripts/kubectlPlugins.sh | sh

Install Helm-2 and Helm-3

  • Get Helm Install script
$ curl https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 > get_helm.sh
$ chmod 700 get_helm.sh
  • Install Helm-2
$ ./get_helm.sh -v v2.16.3
$ cd /usr/local/bin/ && mv helm helm2
$ helm2 list
  • Install Helm-3
$ ./get_helm.sh
$ cd /usr/local/bin/ && mv helm helm3
$ helm3 list

Copy Sensitive Creds

  • aws
cp ~/.aws/config
cp ~/.aws/credentials
  • k8s kube
cp ~/.kube/config
  • SSH Authorized_keys
cp ~/.ssh/authorized_keys

Keeping Things Updated

  • Laptop House keeping
curl -L  https://raw.githubusercontent.com/nikhilgorantla/build-my-pc/master/scripts/housekeeping.sh | sh
  • Upgrade all Brew Apps
curl -L  https://raw.githubusercontent.com/nikhilgorantla/build-my-pc/master/scripts/brew_tools_upgrade.sh | sh