Skip to content

Instantly share code, notes, and snippets.

Last active August 31, 2019 23:15
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Script para instalar os Visual Studio Code e o Google Chrome no Ubuntu
#!/usr/bin/env sh
# Baixa a chave da Microsoft
wget -qO- | gpg --dearmor >
# Baixa a chave do Google
wget -qO- | sudo apt-key add -
# Move a chave da Microsoft pro lugar certo e remove arquivo temporário
sudo install -o root -g root -m 644 /usr/share/keyrings/ && rm
# Adiciona o repositório da Microsoft à lista
sudo sh -c 'echo "deb [arch=amd64 signed-by=/usr/share/keyrings/] stable main" > /etc/apt/sources.list.d/vscode.list'
# Adiciona o repositório do Google à lista
sudo sh -c 'echo "deb [arch=amd64] stable main" >> /etc/apt/sources.list.d/google-chrome.list'
# Atualiza lista de pacotes e instala o VS Code e o Google Chorme
sudo apt update && sudo apt install code google-chrome-stable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment