Last active
December 21, 2019 12:53
-
-
Save leonardobiffi/ba3dc2bfcc01d12b9acfbfe7aef613df to your computer and use it in GitHub Desktop.
Pos Install Ubuntu 19.10
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
#!/usr/bin/env bash | |
#VARIAVEIS | |
URL_GOOGLE_CHROME="https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb" | |
URL_TEAMVIEWER="https://download.teamviewer.com/download/linux/version_13x/teamviewer_amd64.deb" | |
DIRETORIO_DOWNLOADS="$HOME/Downloads/programas" | |
PROGRAMAS_PARA_INSTALAR=( | |
flameshot | |
vim | |
gnome-tweak-tool | |
docker.io | |
docker-compose | |
tilix | |
libreoffice | |
libreoffice-l10n-pt-br | |
) | |
## Atualizando o repositório depois da adição de novos repositórios ## | |
sudo apt update -y | |
## Download e instalaçao de programas externos ## | |
mkdir "$DIRETORIO_DOWNLOADS" | |
wget -c "$URL_GOOGLE_CHROME" -P "$DIRETORIO_DOWNLOADS" | |
wget -c "$URL_TEAMVIEWER" -P "$DIRETORIO_DOWNLOADS" | |
## Instalando pacotes .deb baixados na sessão anterior ## | |
sudo dpkg -i $DIRETORIO_DOWNLOADS/*.deb | |
# Instalar programas no apt | |
for nome_do_programa in ${PROGRAMAS_PARA_INSTALAR[@]}; do | |
if ! dpkg -l | grep -q $nome_do_programa; then # Só instala se já não estiver instalado | |
apt install "$nome_do_programa" -y | |
else | |
echo "[INSTALADO] - $nome_do_programa" | |
fi | |
done | |
## Configuração para o Docker ## | |
sudo usermod -aG docker $USER | |
## Instalando pacotes Snap ## | |
sudo snap install spotify | |
sudo snap install sublime-text | |
# ----------------------------- PÓS-INSTALAÇÃO ----------------------------- # | |
## Finalização, atualização e limpeza## | |
sudo apt install -f | |
sudo apt update && sudo apt dist-upgrade -y | |
flatpak update | |
sudo apt autoclean | |
sudo apt autoremove -y |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment