Skip to content

Instantly share code, notes, and snippets.

@NotYusta
Last active May 4, 2025 10:54
Show Gist options
  • Save NotYusta/3520958b4be2e5b191c54521c8ee7d71 to your computer and use it in GitHub Desktop.
Save NotYusta/3520958b4be2e5b191c54521c8ee7d71 to your computer and use it in GitHub Desktop.
Add swap, Install Firewall, Wings & Docker
#!/bin/sh
INSTALL_FIREWALL_URL="https://gist.githubusercontent.com/NotYusta/d1e227f6dbd27323b8c475586fe6d43d/raw/50d7798fd65bbaef945d8316df7a413fa25fe359/firewall.sh"
INSTALL_WINGS_URL="https://gist.githubusercontent.com/NotYusta/77c998832676310b53761adb0c3546c7/raw/5c220329c685ba8f331395629daaea7bb11c9a4b/install_wings.sh"
ADD_SWAP_URL="https://gist.githubusercontent.com/NotYusta/bc86b388b0661604bbab70a987c88bd2/raw/34900dba58368aeca79d0e6cb2050f0cc4330f5a/add_swap.sh"
RC_LOCAL_URL="https://gist.githubusercontent.com/NotYusta/0d669bd57bfc67a56c8f1f18941a2b9a/raw/9b01ea04856264b619c604699cf7202a250614b5/rc-local.sh"
if command -v dnf >/dev/null; then
dnf update -y
dnf install curl -y
elif command -v apt >/dev/null; then
apt update -y
apt install curl -y
else
echo "Unsupported OS" && exit 1
fi
curl -s "$ADD_SWAP_URL" | bash
curl -s "$INSTALL_WINGS_URL" | bash
curl -s -L "$INSTALL_FIREWALL_URL" -o /root/firewall.sh
chmod +x /root/firewall.sh
bash /root/firewall.sh
curl -s "$RC_LOCAL_URL" | bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment