echo "Verifying checksum..." sha256sum -c SHA256SUMS 2>&1 | grep "$ISO: OK" if [ $? -ne 0 ]; then echo "Checksum verification failed!" exit 1 fi
wget https://releases.ubuntu.com/24.04.2/ubuntu-24.04.2-live-server-amd64.iso download ubuntu server iso
echo "Downloading $ISO ..." wget -c "$BASE_URL/$ISO" echo "Verifying checksum
echo "Verifying GPG signature (requires gpg)..." gpg --keyserver hkp://keyserver.ubuntu.com --recv-keys 0x843938DF228D22F7B3742BC0D94AA3F0EFE21092 gpg --verify SHA256SUMS.gpg SHA256SUMS if [ $? -ne 0 ]; then echo "GPG verification failed!" exit 1 fi download ubuntu server iso
echo "Downloading checksums and signature..." wget -c "$BASE_URL/SHA256SUMS" wget -c "$BASE_URL/SHA256SUMS.gpg"