Skip to content

Instantly share code, notes, and snippets.

@MarcioMoura2022
MarcioMoura2022 / wg-easy-setup-oracle-vm.sh
Created June 11, 2025 14:50 — forked from itxtoledo/wg-easy-setup-oracle-vm.sh
Optimized script to install wg-easy on Oracle Linux (Oracle Cloud) in a VPS with 1 GB of RAM
#!/bin/bash
# Check if running as root
if [[ $EUID -ne 0 ]]; then
echo "Error: This script must be run as root. Use sudo."
exit 1
fi
# Initial settings
set -euo pipefail