Last active
June 4, 2024 19:30
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!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