scripts/update_iso.sh

119 lines
4.9 KiB
Bash
Raw Normal View History

#!/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
}
2017-06-07 12:21:59 +02:00
# Debian {{{
DEBIAN_STABLE="8.8.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"
## Unstable
# AMD64 (
dl_iso "http://ftp.nl.debian.org/debian/dists/sid/main/installer-amd64/current/images/netboot/mini.iso" "LINUX/debian-unstable-mini.iso"
2017-06-07 12:21:59 +02:00
# }}}
# ArchLinux (~550Mo) {{{
ARCH_VERSION="2017.05.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"
2017-06-07 12:21:59 +02:00
# }}}
2017-06-07 12:21:59 +02:00
# Linux Mint {{{
LM_LAST="18.1"
LMDE_LAST="201701"
#dl_iso "http://mirrors.ircam.fr/pub/linuxmint-iso//stable/"${LM_LAST}"/linuxmint-"${LM_LAST}"-cinnamon-64bit-v2.iso" "LINUX/linuxmint-"${LM_LAST}"-cinnamon-64bit-v2.iso"
## LMDE Cinnamon
2017-06-07 12:21:59 +02:00
dl_iso "http://mirrors.ircam.fr/pub/linuxmint-iso/debian/lmde-2-"${LMDE_LAST}"-cinnamon-64bit.iso" "LINUX/lmde-2-"${LMDE_LAST}"-cinnamon-64bit.iso"
## LMDE Mate
2017-06-07 12:21:59 +02:00
dl_iso "http://mirrors.ircam.fr/pub/linuxmint-iso/debian/lmde-2-"${LMDE_LAST}"-mate-64bit.iso" "LINUX/lmde-2-"${LMDE_LAST}"-mate-64bit.iso"
2017-06-07 12:21:59 +02:00
# }}}
2017-06-07 12:21:59 +02:00
# Tails (~1Go) {{{
TAILS_VERSION="2.12"
dl_iso "http://dl.amnesia.boum.org/tails/stable/tails-i386-${TAILS_VERSION}/tails-i386-${TAILS_VERSION}.iso" "LINUX/tails-i386-${TAILS_VERSION}.iso"
2017-06-07 12:21:59 +02:00
# }}}
2017-06-07 12:21:59 +02:00
# Kali (~2,9Go) {{{
KALI_WEEKLY="2017-W20"
#dl_iso "http://cdimage.kali.org/kali-weekly/kali-linux-e17-"${KALI_WEEKLY}"-amd64.iso" "LINUX/kali-linux-e17-"${KALI_WEEKLY}"-amd64.iso"
2017-06-07 12:21:59 +02:00
# }}}
2017-06-07 12:21:59 +02:00
# Clonezilla (~150Mo) {{{
2015-04-20 16:19:59 +02:00
CLONEZILLA_STABLE=" 2.3.2-22 "
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"
2017-06-07 12:21:59 +02:00
# }}}
2017-06-07 12:21:59 +02:00
# Kaspersky (~200Mo) {{{
dl_iso "http://rescuedisk.kaspersky-labs.com/rescuedisk/updatable/kav_rescue_10.iso" "ANTIVIRUS/kaspersky_anti_virus_rescue_cd_10.iso"
2017-06-07 12:21:59 +02:00
# }}}
2017-06-07 12:21:59 +02:00
# Gparted (~200Mo) {{{
2016-07-20 08:28:17 +02:00
GPARTED_VERSION="0.22.0-1"
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"
2017-06-07 12:21:59 +02:00
# }}}
2017-06-07 12:21:59 +02:00
# SystemrescueCD (~400Mo) {{{
2015-04-20 16:19:59 +02:00
SYSRCCD_VERSION=" 4.5.2 "
dl_iso "http://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/${SYSRCCD_VERSION}/systemrescuecd-x86-${SYSRCCD_VERSION}.iso" "UTILITIES/systemrescuecd-x86-${SYSRCCD_VERSION}.iso"
2017-06-07 12:21:59 +02:00
# }}}
2017-06-07 12:21:59 +02:00
# 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
2017-06-07 12:21:59 +02:00
# }}}
2017-06-07 12:21:59 +02:00
# 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
2017-06-07 12:21:59 +02:00
# }}}