Last active
February 24, 2024 17:39
-
-
Save uBrunoow/7d62aab641d1e6079fa077b0d9e3efa4 to your computer and use it in GitHub Desktop.
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 | |
# Executar comandos a seguir para atualizar os pacotes | |
sudo apt update -y | |
sudo apt upgrade -y | |
# Só o Python | |
sudo apt install python3.10-full python3.10-dev -y | |
# Instalar pacotes a seguir | |
sudo apt install git curl build-essential dkms perl wget -y | |
sudo apt install gcc make default-libmysqlclient-dev libssl-dev -y | |
sudo apt install -y zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev llvm \ | |
libncurses5-dev libncursesw5-dev \ | |
xz-utils tk-dev libffi-dev liblzma-dev python3-openssl git | |
# Instalar o Node.js | |
curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash - | |
sudo apt-get install -y nodejs | |
# Instalar o Yarn | |
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - | |
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list | |
sudo apt-get update && sudo apt-get install yarn -y | |
# Instalar o NVM | |
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash | |
# Habilitar o nvm no bash ou no zsh | |
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" | |
# Instalar PNPM | |
npm install -g pnpm | |
# Instalar zsh e Oh my zsh | |
sudo apt install zsh | |
# Instalar Spaceship Prompt | |
# https://github.com/spaceship-prompt/spaceship-prompt | |
git clone https://github.com/spaceship-prompt/spaceship-prompt.git "$ZSH_CUSTOM/themes/spaceship-prompt" --depth=1 | |
ln -s "$ZSH_CUSTOM/themes/spaceship-prompt/spaceship.zsh-theme" "$ZSH_CUSTOM/themes/spaceship.zsh-theme" | |
# Mudar ~/.zshrc -> ZSH_THEME="spaceship" | |
# Instalar Zsh Autosuggestions | |
# https://github.com/zsh-users/zsh-autosuggestions | |
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions | |
# Instalar Zsh Syntax Highlighting | |
# https://github.com/zsh-users/zsh-syntax-highlighting | |
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting | |
# Instalar Zsh Completions | |
# https://github.com/zsh-users/zsh-completions.git | |
git clone https://github.com/zsh-users/zsh-completions.git | |
# Instalar o poetry | |
curl -sSL https://install.python-poetry.org | python3 - | |
mkdir $ZSH_CUSTOM/plugins/poetry | |
poetry completions zsh > $ZSH_CUSTOM/plugins/poetry/_poetry | |
* Caso de errado: | |
-> sudo apt install python3-poetry | |
# Instalar o docker e o docker-compose | |
- Docker | |
sudo apt-get update | |
sudo apt-get install ca-certificates curl | |
sudo install -m 0755 -d /etc/apt/keyrings | |
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc | |
sudo chmod a+r /etc/apt/keyrings/docker.asc | |
echo \ | |
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \ | |
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \ | |
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null | |
sudo apt-get update | |
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin | |
sudo usermod -aG docker ${USER} | |
- Docker compose | |
sudo apt-get update | |
sudo apt-get install docker-compose-plugin | |
sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose | |
sudo chmod +x /usr/local/bin/docker-compose | |
# Instalar o pyenv | |
curl https://pyenv.run | bash | |
# Instalar os temas do terminal Gogh | |
bash -c "$(wget -qO- https://git.io/vQgMr)" | |
# Instalar Gnome Gnome Tweaks e Gnome extensions | |
sudo apt install chrome-gnome-shell | |
sudo apt install gnome-tweaks | |
sudo apt install gnome-shell-extensions | |
sudo apt install gnome-shell-extension-manager |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment