Last active
May 2, 2024 20:29
-
-
Save philipecampos/498d44dc59f59b3e232820b4218954a9 to your computer and use it in GitHub Desktop.
Configuração inicial máquina ubuntu para desenvolvimento php com docker
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 | |
#instalação docker | |
sudo apt update | |
sudo apt upgrade -y | |
sudo apt install -y apt-transport-https ca-certificates curl software-properties-common | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg | |
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null | |
sudo apt update | |
sudo apt install docker-ce -y | |
sudo usermod -aG docker ${USER} | |
su - ${USER} | |
#instalação git | |
sudo apt install git gitk -y | |
#criando diretório www | |
mkdir ~/www | |
#instalação vscode e phpstorm | |
####### | |
sudo snap install --classic code # or code-insiders | |
sudo snap install phpstorm --classic | |
#instalação do chrome | |
####### | |
cd ~/Downloads | |
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb | |
sudo dpkg -i google-chrome-stable_current_amd64.deb | |
#instalação tableplus | |
####### | |
read -p "Deseja instalar o pacote Tableplus? (Y/n): " resposta | |
# Verifica a resposta do usuário | |
if [ "$resposta" = "Y" ] || [ "$resposta" = "y" ] || [ "$resposta" = "" ]; then | |
# Instala o pacote usando apt-get | |
# Add TablePlus gpg key | |
wget -qO - https://deb.tableplus.com/apt.tableplus.com.gpg.key | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/tableplus-archive.gpg > /dev/null | |
# Add TablePlus repo | |
sudo add-apt-repository "deb [arch=$(dpkg --print-architecture)] https://deb.tableplus.com/debian/$(lsb_release -r -s | cut -d. -f1) tableplus main" | |
# Install | |
sudo apt update | |
sudo apt install -y tableplus | |
echo "Tableplus instalado com sucesso!" | |
else | |
echo "Instalação do Tableplus cancelada." | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment