Skip to content

Instantly share code, notes, and snippets.

@andreyev
Last active June 3, 2025 13:05
Show Gist options
  • Save andreyev/3e3b25ef94bd95d316c724d50e3f25e3 to your computer and use it in GitHub Desktop.
Save andreyev/3e3b25ef94bd95d316c724d50e3f25e3 to your computer and use it in GitHub Desktop.
#!/bin/bash
set -e
sudo apt update && sudo apt upgrade -y
sudo apt install -y guake git screen jq unzip curl gnupg ca-certificates lsb-release software-properties-common build-essential procps file
curl -fsSL https://get.docker.com | sudo bash
sudo usermod -aG docker $1
curl -s "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip -oq awscliv2.zip && sudo ./aws/install --update && rm -rf aws awscliv2.zip
curl -sLO "https://dl.k8s.io/release/$(curl -s https://cdn.dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
sudo install -m 0755 kubectl /usr/local/bin/ && rm kubectl
v=$(curl -s https://checkpoint-api.hashicorp.com/v1/check/terraform | jq -r .current_version)
curl -sLO https://releases.hashicorp.com/terraform/${v}/terraform_${v}_linux_amd64.zip
unzip -oq terraform_${v}_linux_amd64.zip && sudo mv terraform /usr/local/bin/ && rm *.zip
curl -sfL https://get.k3s.io | sudo sh -
sudo gpg --yes --keyserver keyserver.ubuntu.com --recv-keys 0C59E21A5CB00594 && sudo gpg --export --armor 0C59E21A5CB00594 | sudo gpg --dearmor -o /etc/apt/keyrings/magalu-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/magalu-archive-keyring.gpg] https://packages.magalu.cloud/apt stable main" | sudo tee /etc/apt/sources.list.d/magalu.list
sudo apt update
sudo apt install mgccli
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment