Skip to content

Instantly share code, notes, and snippets.

@josejuansanchez
Last active November 23, 2020 11:04
Show Gist options
  • Select an option

  • Save josejuansanchez/f8c08133b6be6f4a98165210ff9cadf2 to your computer and use it in GitHub Desktop.

Select an option

Save josejuansanchez/f8c08133b6be6f4a98165210ff9cadf2 to your computer and use it in GitHub Desktop.
Actualización de educandos
#!/bin/bash
set -x
# Descargamos el archivo sources.list para Ubuntu 20.04
cd /etc/apt/sources.list.d/
rm ubuntu.list
wget https://gist.githubusercontent.com/josejuansanchez/f8c08133b6be6f4a98165210ff9cadf2/raw/e8883e8dc473fc6896a64907615f4b445f2db2e4/ubuntu.list
# Eliminamos el archivo de guadalinexedusc.list
rm /etc/apt/sources.list.d/guadalinexedusc.list
# Actualizamos los paquetes
sudo apt update
sudo apt upgrade -y
# Instalamos nuevos gnome-tweaks
sudo apt install gnome-tweaks -y
# Instalamos Docker
sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
gnupg-agent \
software-properties-common -y
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io
sudo usermod -aG docker $USER
sudo systemctl enable docker
# Instalamos Visual Studio Code
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > packages.microsoft.gpg
sudo install -o root -g root -m 644 packages.microsoft.gpg /etc/apt/trusted.gpg.d/
sudo sh -c 'echo "deb [arch=amd64 signed-by=/etc/apt/trusted.gpg.d/packages.microsoft.gpg] https://packages.microsoft.com/repos/vscode stable main" > /etc/apt/sources.list.d/vscode.list'
sudo apt-get install apt-transport-https -y
sudo apt-get update -y
sudo apt-get install code -y
deb http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse
deb http://archive.canonical.com/ubuntu focal partner
deb-src http://archive.canonical.com/ubuntu focal partner
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment