Last active
August 7, 2020 01:55
-
-
Save ryandaniels/dee67bb9cd0b7714dd7195b9bc6acc6f to your computer and use it in GitHub Desktop.
Downloads the .torrent files for Ubuntu ISOs since they don't exist in just one place
This file contains 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
#!/bin/bash | |
wget="wget -nc -nv" | |
version="20.04.1" | |
# Downloads the .torrent files for Ubuntu ISOs since they don't exist in just one place | |
# To get the iso, use a local mirror: https://launchpad.net/ubuntu/+cdmirrors | |
# Prep | |
dl_dir="./torrents" | |
mkdir -p "$dl_dir" | |
cd "$dl_dir" || exit 1 | |
# Desktop and Server (amd64) | |
# https://releases.ubuntu.com/20.04.1/ | |
$wget https://releases.ubuntu.com/"$version"/ubuntu-"$version"-desktop-amd64.iso.torrent | |
$wget https://releases.ubuntu.com/"$version"/ubuntu-"$version"-live-server-amd64.iso.torrent | |
# Rest of server (arm64, ppc64el, s390x) | |
# http://cdimage.ubuntu.com/releases/20.04.1/release/ | |
$wget http://cdimage.ubuntu.com/releases/"$version"/release/ubuntu-"$version"-live-server-arm64.iso.torrent | |
$wget http://cdimage.ubuntu.com/releases/"$version"/release/ubuntu-"$version"-live-server-ppc64el.iso.torrent | |
$wget http://cdimage.ubuntu.com/releases/"$version"/release/ubuntu-"$version"-live-server-s390x.iso.torrent | |
# Official Flavours | |
# https://ubuntu.com/download/flavours | |
# http://cdimage.ubuntu.com/kubuntu/releases/20.04.1/release/ | |
# http://cdimage.ubuntu.com/lubuntu/releases/20.04.1/release/ | |
# http://cdimage.ubuntu.com/ubuntu-budgie/releases/20.04.1/release/ | |
# http://cdimage.ubuntu.com/ubuntu-mate/releases/20.04.1/release/ | |
# http://cdimage.ubuntu.com/ubuntukylin/releases/20.04.1/release/ | |
# http://cdimage.ubuntu.com/ubuntustudio/releases/20.04.1/release/ | |
# http://cdimage.ubuntu.com/xubuntu/releases/20.04.1/release/ | |
for i in kubuntu lubuntu ubuntu-budgie ubuntu-mate ubuntukylin xubuntu; do | |
# echo "$i"; | |
$wget http://cdimage.ubuntu.com/"$i"/releases/"$version"/release/"$i"-"$version"-desktop-amd64.iso.torrent | |
done | |
# Official Flavours (dvd) | |
# http://cdimage.ubuntu.com/ubuntustudio/releases/20.04.1/release/ubuntustudio-20.04.1-dvd-amd64.iso.torrent | |
for i in ubuntustudio; do | |
# echo "$i"; | |
$wget http://cdimage.ubuntu.com/"$i"/releases/"$version"/release/"$i"-"$version"-dvd-amd64.iso.torrent | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment