2014-10-20 15:24:52 +02:00
|
|
|
|
#!/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
|
2015-04-20 16:19:59 +02:00
|
|
|
|
DEBIAN_STABLE="7.8.0"
|
2014-10-20 15:24:52 +02:00
|
|
|
|
## 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)
|
2015-04-20 16:19:59 +02:00
|
|
|
|
ARCH_VERSION="2015.04.01"
|
2014-10-20 15:24:52 +02:00
|
|
|
|
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
|
2014-10-21 10:42:21 +02:00
|
|
|
|
## 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
|
2015-04-20 16:19:59 +02:00
|
|
|
|
dl_iso "http://mirrors.ircam.fr/pub/linuxmint-iso/debian/lmde-2-201503-cinnamon-64bit.iso" "LINUX/lmde-2-201503-cinnamon-64bit.iso"
|
2014-10-21 10:42:21 +02:00
|
|
|
|
## LMDE Mate
|
2015-04-20 16:19:59 +02:00
|
|
|
|
dl_iso "http://mirrors.ircam.fr/pub/linuxmint-iso/debian/lmde-2-201503-mate-64bit.iso" "LINUX/lmde-2-201503-mate-64bit.iso"
|
2014-10-20 15:24:52 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#### Tails (~1Go)
|
2015-04-20 16:19:59 +02:00
|
|
|
|
TAILS_VERSION="1.3.2"
|
2014-10-20 15:24:52 +02:00
|
|
|
|
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)
|
2015-04-20 16:19:59 +02:00
|
|
|
|
CLONEZILLA_STABLE=" 2.3.2-22 "
|
2014-10-20 15:24:52 +02:00
|
|
|
|
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)
|
2015-04-20 16:19:59 +02:00
|
|
|
|
GPARTED_VERSION=" 0.22.0-1 "
|
2014-10-20 15:24:52 +02:00
|
|
|
|
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)
|
2015-04-20 16:19:59 +02:00
|
|
|
|
SYSRCCD_VERSION=" 4.5.2 "
|
2014-10-20 15:24:52 +02:00
|
|
|
|
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
|