Script Laptop Onboarding
- 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 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
- 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"
- Install Homebrew for applications.
curl -L https://raw.githubusercontent.com/nikhilgorantla/build-my-pc/master/scripts/homebrew-install.sh | sh
- Install core applicaitons.
curl -L https://raw.githubusercontent.com/nikhilgorantla/build-my-pc/master/scripts/brew_tools.sh | sh
- Install tools
curl -L https://raw.githubusercontent.com/nikhilgorantla/build-my-pc/master/scripts/brewcask_apps.sh | sh
- Install Mac Store applications.
curl -L https://raw.githubusercontent.com/nikhilgorantla/build-my-pc/master/scripts/mas_apps.sh | sh
- Install PiP Packages.
curl -L https://raw.githubusercontent.com/nikhilgorantla/build-my-pc/master/scripts/pip_packages.sh | sh
- Install NPM packages.
curl -L https://raw.githubusercontent.com/nikhilgorantla/build-my-pc/master/scripts/npm_packages.sh | sh
- 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.
curl -L https://raw.githubusercontent.com/nikhilgorantla/build-my-pc/master/scripts/kubectlPlugins.sh | sh
- 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
- aws
cp ~/.aws/config
cp ~/.aws/credentials
- k8s kube
cp ~/.kube/config
- SSH Authorized_keys
cp ~/.ssh/authorized_keys
- 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