#!/bin/bash dl_iso() { ## URL to download URL="${1}" ## Path to store the downloaded file ISO_PATH="${2}" ## Retention time DATE=$(date --date '30 days ago' +%Y-%m-%d) if [ ! -f ${ISO_PATH} ]; then wget "${URL}" -O "${ISO_PATH}" else # If the file doesn't already exist and not older than 30 days if [ ! `find . -samefile ${ISO_PATH} -newerct ${DATE}` ]; then wget "${URL}" -O "${ISO_PATH}" fi fi } #### Debian DEBIAN_STABLE="7.7.0" ## Standard Stable versions # AMD64 (~250Mo) dl_iso "http://cdimage.debian.org/debian-cd/${DEBIAN_STABLE}/amd64/iso-cd/debian-${DEBIAN_STABLE}-amd64-netinst.iso" "LINUX/debian-stable-amd64-netinst.iso" # i386 (~200Mo) dl_iso "http://cdimage.debian.org/debian-cd/${DEBIAN_STABLE}/i386/iso-cd/debian-${DEBIAN_STABLE}-i386-netinst.iso" "LINUX/debian-stable-i386-netinst.iso" rm -f LINUX/debian-stable ; echo "${DEBIAN_STABLE}" > "LINUX/debian-stable" ## Version with firmares # AMD64 (~300Mo) dl_iso "http://cdimage.debian.org/cdimage/unofficial/non-free/cd-including-firmware/${DEBIAN_STABLE}/amd64/iso-cd/firmware-${DEBIAN_STABLE}-amd64-netinst.iso" "LINUX/firmware-stable-amd64-netinst.iso" # i386 (~250Mo) dl_iso "http://cdimage.debian.org/cdimage/unofficial/non-free/cd-including-firmware/${DEBIAN_STABLE}/i386/iso-cd/firmware-${DEBIAN_STABLE}-i386-netinst.iso" "LINUX/firmware-stable-i386-netinst.iso" ## Testing # AMD64 (~225Mo) dl_iso "http://cdimage.debian.org/cdimage/daily-builds/daily/arch-latest/amd64/iso-cd/debian-testing-amd64-netinst.iso" "LINUX/debian-testing-amd64-netinst.iso" # i386 (~270Mo) dl_iso "http://cdimage.debian.org/cdimage/daily-builds/daily/arch-latest/i386/iso-cd/debian-testing-i386-netinst.iso" "LINUX/debian-testing-i386-netinst.iso" #### ArchLinux (~550Mo) ARCH_VERSION="2014.10.01" dl_iso "http://archlinux.mirrors.ovh.net/archlinux/iso/${ARCH_VERSION}/archlinux-${ARCH_VERSION}-dual.iso" "LINUX/archlinux-dual.iso" rm -f LINUX/archlinux-version ; echo "${ARCH_VERSION}" > "LINUX/archlinux-version" #### Linux Mint ## 17 - Qiana (Ubuntu) #dl_iso "http://mirrors.ircam.fr/pub/linuxmint-iso//stable/17/linuxmint-17-cinnamon-64bit-v2.iso" "LINUX/linuxmint-17-cinnamon-64bit-v2.iso" ## LMDE Cinnamon dl_iso "http://mirrors.ircam.fr/pub/linuxmint-iso/debian/linuxmint-201403-cinnamon-dvd-64bit.iso" "LINUX/linuxmint-201403-cinnamon-dvd-64bit.iso" ## LMDE Mate dl_iso "http://mirrors.ircam.fr/pub/linuxmint-iso/debian/linuxmint-201403-mate-dvd-64bit.iso" "LINUX/linuxmint-201403-mate-dvd-64bit.iso" #### Tails (~1Go) TAILS_VERSION="1.2" dl_iso "http://dl.amnesia.boum.org/tails/stable/tails-i386-${TAILS_VERSION}/tails-i386-${TAILS_VERSION}.iso" "LINUX/tails-i386-${TAILS_VERSION}.iso" #### Kali (~2,9Go) #dl_iso "http://cdimage.kali.org/kali-latest/amd64/kali-linux-1.0.8-amd64.iso" "LINUX/kali-linux-1.0.8-amd64.iso" #### Clonezilla (~150Mo) CLONEZILLA_STABLE="2.2.4-12" dl_iso "http://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/${CLONEZILLA_STABLE}/clonezilla-live-${CLONEZILLA_STABLE}-amd64.iso" "BACKUP_LINUX/clonezilla-live-${CLONEZILLA_STABLE}-amd64.iso" dl_iso "http://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/${CLONEZILLA_STABLE}/clonezilla-live-${CLONEZILLA_STABLE}-i686-pae.iso" "BACKUP_LINUX/clonezilla-live-${CLONEZILLA_STABLE}-i686-pae.iso" rm -f BACKUP_LINUX/clonezilla-live-stable ; echo "${CLONEZILLA_STABLE}" > "BACKUP_LINUX/clonezilla-live-stable" #### Kaspersky (~200Mo) dl_iso "http://rescuedisk.kaspersky-labs.com/rescuedisk/updatable/kav_rescue_10.iso" "ANTIVIRUS/kaspersky_anti_virus_rescue_cd_10.iso" #### Gparted (~200Mo) GPARTED_VERSION="0.19.1-4" dl_iso "http://downloads.sourceforge.net/project/gparted/gparted-live-stable/${GPARTED_VERSION}/gparted-live-${GPARTED_VERSION}-i486.iso" "UTILITIES/gparted-live-${GPARTED_VERSION}-i486.iso" #### SystemrescueCD (~400Mo) SYSRCCD_VERSION="4.4.0" dl_iso "http://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/${SYSRCCD_VERSION}/systemrescuecd-x86-${SYSRCCD_VERSION}.iso" "UTILITIES/systemrescuecd-x86-${SYSRCCD_VERSION}.iso" #### Memtest MEM_VERSION="5.01" dl_iso "http://www.memtest.org/download/${MEM_VERSION}/memtest86+-${MEM_VERSION}.iso.zip" "UTILITIES/memtest86+-${MEM_VERSION}.iso.zip" unzip UTILITIES/memtest86+-${MEM_VERSION}.iso.zip -d UTILITIES/ rm -f UTILITIES/memtest86+-${MEM_VERSION}.iso.zip #### Bootdisk // Reset windows password ## http://pogostick.net/~pnh/ntpasswd/ NT_VERSION="140201" dl_iso "http://pogostick.net/~pnh/ntpasswd/cd${NT_VERSION}.zip" "UTILITIES/cd${NT_VERSION}.zip" unzip UTILITIES/cd${NT_VERSION}.zip -d UTILITIES/ rm -f UTILITIES/cd${NT_VERSION}.zip