Skip to content

Instantly share code, notes, and snippets.

@AmreeshTyagi
Last active January 14, 2023 11:09
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AmreeshTyagi/4a25703459698964c5999362966445d8 to your computer and use it in GitHub Desktop.
Save AmreeshTyagi/4a25703459698964c5999362966445d8 to your computer and use it in GitHub Desktop.
Install tools, gvm for golang, nvm for nodejs & docker on ubuntu development machine in one click
#!bin/bash
# Install basic utils
sudo apt-get install curl git htop tmux -y
# Install build tools
sudo apt-get install binutils bison gcc make -y
# Install golang verison manager. Don't use gvm. Better to install directly from offical website to avoid pkg broken issue.
# zsh < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer)
# Install nodejs version manager
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.2/install.sh | bash
# Install Nodejs LTS
nvm install --lts
# Install yarn and pnpm
npm install --global yarn pnpm
# Install docker - as per official documentation - only for development not production
# https://docs.docker.com/engine/install/ubuntu/#install-using-the-convenience-script
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh # Make sure because you are using root access to run this.
sudo groupadd docker
sudo usermod -aG docker $USER
echo "Tools Successfully Installed."
echo "Logout/Login to access docker without root."
echo "Use gvm to install any golang version."
echo "Use nvm to install any nodejs version."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment