Skip to content

Instantly share code, notes, and snippets.

@evertonthepaula
Created June 18, 2020 22:01
Show Gist options
  • Save evertonthepaula/abb500f7d190cd25b1e5bff21def018a to your computer and use it in GitHub Desktop.
Save evertonthepaula/abb500f7d190cd25b1e5bff21def018a to your computer and use it in GitHub Desktop.
printf "\n\e[34m ############## UBUNTU ########################### \e[39m\n\n"
echo ' - Instalando pacotes essenciais ...'
printf "\n\e[34m #################################################### \e[39m\n\n"
sudo apt update && sudo apt -y upgrade && sudo apt -y dist-upgrade &&\
sudo apt install -y \
ssh \
git \
curl \
openssl \
gnupg-agent \
openssh-client \
ca-certificates \
build-essential \
apt-transport-https \
software-properties-common && \
printf "\n\e[34m ############## DOCKER ########################### \e[39m\n\n"
echo ' - instalando Docker & docker-compose ...'
printf "\n\e[34m #################################################### \e[39m\n\n"
sudo apt install -y docker.io docker-compose && \
printf "\n\e[34m ############## NVM ########################### \e[39m\n\n"
echo ' - Baixando & configurando NVM ...'
printf "\n\e[34m #################################################### \e[39m\n\n"
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash && \
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")" && \
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" && command -v nvm && source ~/.bashrc && \
printf "\n\e[34m ############## UBUNTU ########################### \e[39m\n\n"
echo ' - Removendo arquivos desnecessários ...'
printf "\n\e[34m #################################################### \e[39m\n\n"
sudo apt autoremove && sudo apt autoclean && sudo apt clean
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment