Skip to content

Instantly share code, notes, and snippets.

@sayyidyofa
Last active April 14, 2025 08:18
Show Gist options
  • Save sayyidyofa/61c9d47f1d818c9d8dfa51025c8350c1 to your computer and use it in GitHub Desktop.
Save sayyidyofa/61c9d47f1d818c9d8dfa51025c8350c1 to your computer and use it in GitHub Desktop.
Gateway VM Setup
#!/usr/bin/env bash
HOSTNAME="$1"
sudo apt update
sudo apt install -y vim iputils-ping htop
sudo systemctl disable --now multipathd
sudo systemctl mask --now multipathd
sudp apt purge polkitd snapd unattended-upgrades
sudo timedatectl set-timezone Asia/Jakarta
wget -O - https://apt.releases.hashicorp.com/gpg | sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list
sudo apt update && sudo apt install consul
sudo hostnamectl set-hostname $HOSTNAME
sudo reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment