Skip to content

Instantly share code, notes, and snippets.

@ops-gaurav
Last active June 16, 2021 03:23
Show Gist options
  • Save ops-gaurav/40a4fc3c6ccb91c1b0467056f56c6db1 to your computer and use it in GitHub Desktop.
Save ops-gaurav/40a4fc3c6ccb91c1b0467056f56c6db1 to your computer and use it in GitHub Desktop.
install nvm
#!/usr/bin/sh
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.0/install.sh | bash
export NVM_DIR="/home/ubuntu/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
# install the node version
nvm install 14.15.4
echo "Installed node version " && node --version
# configure the SSH for github
echo "Configuring the SSH for github..."
read -p "Provide your github email for peppercontent:" user_email
ssh-keygen -t rsa -N '' -C "$user_email" -f ~/.ssh/id_rsa
echo "Use this public key. Copy it for future reference"
cat .ssh/id_rsa.pub
echo "Share this public ssh key with github admin and keep it handy for future reference."
# creating config
echo "Host github.com" >> ~/.ssh/config
echo "User git" >> ~/.ssh/config
# configuring yarn
echo "Now installing yarn on your system..."
npm install --global yarn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment