Last active
April 14, 2025 08:18
-
-
Save sayyidyofa/61c9d47f1d818c9d8dfa51025c8350c1 to your computer and use it in GitHub Desktop.
Gateway VM Setup
This file contains hidden or 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
#!/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