From 87ebc793fccb3eda7dffdcf17832c5f4140f2098 Mon Sep 17 00:00:00 2001 From: Phil Clifford Date: Tue, 22 Feb 2022 01:51:34 +0000 Subject: [PATCH 1/9] trying to keep up... re-generating --- README.md | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index e09466a..fdc1ab7 100644 --- a/README.md +++ b/README.md @@ -33,13 +33,17 @@ Features - **macOS** Monterey, Big Sur, Catalina, Mojave & High Sierra - **Windows** 8.1, 10 and 11 including TPM 2.0 -- [Ubuntu](https://ubuntu.com/desktop) and all the **[official Ubuntu flavours](https://ubuntu.com/download/flavours)** +- [Ubuntu](https://ubuntu.com/desktop) and all the **[official Ubuntu + flavours](https://ubuntu.com/download/flavours)** - **Over 360 operating system editions are supported!** - Full SPICE support including host/guest clipboard sharing - VirtIO-webdavd file sharing for Linux and Windows guests - VirtIO-9p file sharing for Linux and macOS guests -- [QEMU Guest Agent support](https://wiki.qemu.org/Features/GuestAgent); provides access to a system-level agent via standard QMP commands -- Samba file sharing for Linux, macOS and Windows guests (*if `smbd` is installed on the host*) +- [QEMU Guest Agent + support](https://wiki.qemu.org/Features/GuestAgent); provides access + to a system-level agent via standard QMP commands +- Samba file sharing for Linux, macOS and Windows guests (*if `smbd` + is installed on the host*) - VirGL acceleration - USB device pass-through - Smartcard pass-through @@ -66,7 +70,8 @@ QEMU](https://img.youtube.com/vi/AOTYWEgw0hI/0.jpg)](https://www.youtube.com/wat Requirements ------------ -- [QEMU](https://www.qemu.org/) (*6.0.0 or newer*) **with GTK, SDL, SPICE & VirtFS support** +- [QEMU](https://www.qemu.org/) (*6.0.0 or newer*) **with GTK, SDL, + SPICE & VirtFS support** - [bash](https://www.gnu.org/software/bash/) (*4.0 or newer*) - [Coreutils](https://www.gnu.org/software/coreutils/) - [EDK II](https://github.com/tianocore/edk2) @@ -237,7 +242,7 @@ Other Operating Systems - `popos` (Pop!\_OS) - `regolith` (Regolith Linux) - `rockylinux` (Rocky Linux) -- `slackware` (Slackware) +- `slackware` (Slackware Linux) - `solus` (Solus) - `tails` (Tails) - `void` (Void Linux) @@ -399,6 +404,9 @@ tpm="on" - `tpm="on"` instructs `quickemu` to create a software emulated TPM device using `swtpm`. +Other Guests +------------ + SPICE ===== @@ -613,7 +621,6 @@ Here are the usage instructions: ``` {.bash} - Usage quickemu --vm ubuntu.conf From 0622273efd1c2d61929224e391821f7ba3cd8c53 Mon Sep 17 00:00:00 2001 From: Phil Clifford Date: Wed, 23 Feb 2022 16:16:16 +0000 Subject: [PATCH 2/9] revert README.md to upstream for noise-suppression --- README.md | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 7775229..03b17a4 100644 --- a/README.md +++ b/README.md @@ -33,17 +33,13 @@ Features - **macOS** Monterey, Big Sur, Catalina, Mojave & High Sierra - **Windows** 8.1, 10 and 11 including TPM 2.0 -- [Ubuntu](https://ubuntu.com/desktop) and all the **[official Ubuntu - flavours](https://ubuntu.com/download/flavours)** +- [Ubuntu](https://ubuntu.com/desktop) and all the **[official Ubuntu flavours](https://ubuntu.com/download/flavours)** - **Over 360 operating system editions are supported!** - Full SPICE support including host/guest clipboard sharing - VirtIO-webdavd file sharing for Linux and Windows guests - VirtIO-9p file sharing for Linux and macOS guests -- [QEMU Guest Agent - support](https://wiki.qemu.org/Features/GuestAgent); provides access - to a system-level agent via standard QMP commands -- Samba file sharing for Linux, macOS and Windows guests (*if `smbd` - is installed on the host*) +- [QEMU Guest Agent support](https://wiki.qemu.org/Features/GuestAgent); provides access to a system-level agent via standard QMP commands +- Samba file sharing for Linux, macOS and Windows guests (*if `smbd` is installed on the host*) - VirGL acceleration - USB device pass-through - Smartcard pass-through @@ -70,8 +66,7 @@ QEMU](https://img.youtube.com/vi/AOTYWEgw0hI/0.jpg)](https://www.youtube.com/wat Requirements ------------ -- [QEMU](https://www.qemu.org/) (*6.0.0 or newer*) **with GTK, SDL, - SPICE & VirtFS support** +- [QEMU](https://www.qemu.org/) (*6.0.0 or newer*) **with GTK, SDL, SPICE & VirtFS support** - [bash](https://www.gnu.org/software/bash/) (*4.0 or newer*) - [Coreutils](https://www.gnu.org/software/coreutils/) - [EDK II](https://github.com/tianocore/edk2) @@ -243,7 +238,7 @@ Other Operating Systems - `popos` (Pop!\_OS) - `regolith` (Regolith Linux) - `rockylinux` (Rocky Linux) -- `slackware` (Slackware Linux) +- `slackware` (Slackware) - `solus` (Solus) - `tails` (Tails) - `void` (Void Linux) @@ -405,9 +400,6 @@ tpm="on" - `tpm="on"` instructs `quickemu` to create a software emulated TPM device using `swtpm`. -Other Guests ------------- - SPICE ===== @@ -622,6 +614,7 @@ Here are the usage instructions: ``` {.bash} + Usage quickemu --vm ubuntu.conf From 2a445ca463ca29100ad96b9808e9d12f4918771a Mon Sep 17 00:00:00 2001 From: Phil Clifford Date: Fri, 25 Feb 2022 01:00:35 +0000 Subject: [PATCH 3/9] regenerated Readme for 3.13 --- README.md | 46 ++++++++++++++++++++++------------------------ 1 file changed, 22 insertions(+), 24 deletions(-) diff --git a/README.md b/README.md index 7d948cf..6a998ab 100644 --- a/README.md +++ b/README.md @@ -17,8 +17,8 @@ operating system you want to run and Quickemu will figure out the best way to do it for you. For example: ``` {.bash} -quickget ubuntu-mate impish -quickemu --vm ubuntu-mate-impish.conf +quickget ubuntu-mate 21.10 +quickemu --vm ubuntu-mate-21.10-.conf ``` The original objective of the project was to enable quick testing of @@ -33,13 +33,17 @@ Features - **macOS** Monterey, Big Sur, Catalina, Mojave & High Sierra - **Windows** 8.1, 10 and 11 including TPM 2.0 -- [Ubuntu](https://ubuntu.com/desktop) and all the **[official Ubuntu flavours](https://ubuntu.com/download/flavours)** +- [Ubuntu](https://ubuntu.com/desktop) and all the **[official Ubuntu + flavours](https://ubuntu.com/download/flavours)** - **Over 360 operating system editions are supported!** - Full SPICE support including host/guest clipboard sharing - VirtIO-webdavd file sharing for Linux and Windows guests - VirtIO-9p file sharing for Linux and macOS guests -- [QEMU Guest Agent support](https://wiki.qemu.org/Features/GuestAgent); provides access to a system-level agent via standard QMP commands -- Samba file sharing for Linux, macOS and Windows guests (*if `smbd` is installed on the host*) +- [QEMU Guest Agent + support](https://wiki.qemu.org/Features/GuestAgent); provides access + to a system-level agent via standard QMP commands +- Samba file sharing for Linux, macOS and Windows guests (*if `smbd` + is installed on the host*) - VirGL acceleration - USB device pass-through - Smartcard pass-through @@ -66,7 +70,8 @@ QEMU](https://img.youtube.com/vi/AOTYWEgw0hI/0.jpg)](https://www.youtube.com/wat Requirements ------------ -- [QEMU](https://www.qemu.org/) (*6.0.0 or newer*) **with GTK, SDL, SPICE & VirtFS support** +- [QEMU](https://www.qemu.org/) (*6.0.0 or newer*) **with GTK, SDL, + SPICE & VirtFS support** - [bash](https://www.gnu.org/software/bash/) (*4.0 or newer*) - [Coreutils](https://www.gnu.org/software/coreutils/) - [EDK II](https://github.com/tianocore/edk2) @@ -162,8 +167,8 @@ Ubuntu Guest virtual machine configuration. ``` {.bash} -quickget ubuntu focal -quickemu --vm ubuntu-focal.conf +quickget ubuntu 20.04 +quickemu --vm ubuntu-20.04.conf ``` - Complete the installation as normal. @@ -197,9 +202,9 @@ with your preferred flavour. - `kubuntu` (Kubuntu) - `lubuntu` (Lubuntu) - `ubuntu-budgie` (Ubuntu Budgie) -- `ubuntu-kylin` (Ubuntu Kylin) +- `ubuntukylin` (Ubuntu Kylin) - `ubuntu-mate` (Ubuntu MATE) -- `ubuntu-studio` (Ubuntu Studio) +- `ubuntustudio` (Ubuntu Studio) - `ubuntu` (Ubuntu) - `xubuntu` (Xubuntu) @@ -216,11 +221,11 @@ Other Operating Systems - `cachyos` (CachyOS) - `debian` (Debian) - `devuan` (Devuan) -- `dragonflybsd` (DragonFlyBSD) +- `dragonflybsd` (DragonFlyBSD) - `elementary` (elementary OS) - `fedora` (Fedora) - `freebsd` (FreeBSD) -- `freedos` (FreeDOS) +- `freedos` (FreeDOS) - `garuda` (Garuda Linux) - `gentoo` (Gentoo) - `ghostbsd` (GhostBSD) @@ -416,7 +421,7 @@ requires that the `spicy` client is installed, available from the `spice-client-gtk` package in Debian/Ubuntu. ``` {.bash} -quickemu --vm ubuntu-focal.conf --display spice +quickemu --vm ubuntu-20.04.conf --display spice ``` Headless @@ -428,14 +433,14 @@ available from the `spice-client-gtk` package in Debian/Ubuntu to connect to the running VM ``` {.bash} -quickemu --vm ubuntu-focal.conf --display none +quickemu --vm ubuntu-20.04.conf --display none ``` You can also use the `.ports` file in the VM directory to lookup what SSH and SPICE ports the VM is connected to. ``` {.bash} -cat ubuntu-focal/ubuntu-focal.ports +cat ubuntu-20.04/ubuntu-20.04.ports ``` Accessibility @@ -445,13 +450,7 @@ Qemu provides support for using BrlAPI to display braille output on a real or fake device. ``` {.bash} -quickemu --vm ubuntu-impish.conf --accessibility braille --display sdl -``` - -or even - -``` {.bash} -quickemu --vm ubuntu-impish.conf --acc brl --display sdl +quickemu --vm ubuntu-21.10.conf --braille --display sdl ``` BIOS and EFI @@ -616,7 +615,6 @@ Here are the usage instructions: ``` {.bash} - Usage quickemu --vm ubuntu.conf @@ -646,7 +644,7 @@ Desktop shortcuts can be created for a VM, the shortcuts are saved in shortcut. ``` {.bash} -quickemu --vm ubuntu-focal-desktop.conf --shortcut +quickemu --vm ubuntu-20.04-desktop.conf --shortcut ``` Screen and window size (Linux guests only) From 9ffa5508e9d5fb93cd7b121c12292538b18b4ccb Mon Sep 17 00:00:00 2001 From: Phil Clifford Date: Tue, 22 Feb 2022 01:51:34 +0000 Subject: [PATCH 4/9] trying to keep up... re-generating --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 83488df..31e83b9 100644 --- a/README.md +++ b/README.md @@ -245,7 +245,7 @@ Other Operating Systems - `popos` (Pop!\_OS) - `regolith` (Regolith Linux) - `rockylinux` (Rocky Linux) -- `slackware` (Slackware) +- `slackware` (Slackware Linux) - `solus` (Solus) - `tails` (Tails) - `void` (Void Linux) @@ -407,6 +407,9 @@ tpm="on" - `tpm="on"` instructs `quickemu` to create a software emulated TPM device using `swtpm`. +Other Guests +------------ + SPICE ===== From 2045ae1c959c8606dd4b23add4fb64213049c0de Mon Sep 17 00:00:00 2001 From: Phil Clifford Date: Wed, 23 Feb 2022 16:16:16 +0000 Subject: [PATCH 5/9] revert README.md to upstream for noise-suppression --- README.md | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 31e83b9..52e6958 100644 --- a/README.md +++ b/README.md @@ -33,17 +33,13 @@ Features - **macOS** Monterey, Big Sur, Catalina, Mojave & High Sierra - **Windows** 8.1, 10 and 11 including TPM 2.0 -- [Ubuntu](https://ubuntu.com/desktop) and all the **[official Ubuntu - flavours](https://ubuntu.com/download/flavours)** +- [Ubuntu](https://ubuntu.com/desktop) and all the **[official Ubuntu flavours](https://ubuntu.com/download/flavours)** - **Over 360 operating system editions are supported!** - Full SPICE support including host/guest clipboard sharing - VirtIO-webdavd file sharing for Linux and Windows guests - VirtIO-9p file sharing for Linux and macOS guests -- [QEMU Guest Agent - support](https://wiki.qemu.org/Features/GuestAgent); provides access - to a system-level agent via standard QMP commands -- Samba file sharing for Linux, macOS and Windows guests (*if `smbd` - is installed on the host*) +- [QEMU Guest Agent support](https://wiki.qemu.org/Features/GuestAgent); provides access to a system-level agent via standard QMP commands +- Samba file sharing for Linux, macOS and Windows guests (*if `smbd` is installed on the host*) - VirGL acceleration - USB device pass-through - Smartcard pass-through @@ -70,8 +66,7 @@ QEMU](https://img.youtube.com/vi/AOTYWEgw0hI/0.jpg)](https://www.youtube.com/wat Requirements ------------ -- [QEMU](https://www.qemu.org/) (*6.0.0 or newer*) **with GTK, SDL, - SPICE & VirtFS support** +- [QEMU](https://www.qemu.org/) (*6.0.0 or newer*) **with GTK, SDL, SPICE & VirtFS support** - [bash](https://www.gnu.org/software/bash/) (*4.0 or newer*) - [Coreutils](https://www.gnu.org/software/coreutils/) - [EDK II](https://github.com/tianocore/edk2) @@ -245,7 +240,7 @@ Other Operating Systems - `popos` (Pop!\_OS) - `regolith` (Regolith Linux) - `rockylinux` (Rocky Linux) -- `slackware` (Slackware Linux) +- `slackware` (Slackware) - `solus` (Solus) - `tails` (Tails) - `void` (Void Linux) @@ -407,9 +402,6 @@ tpm="on" - `tpm="on"` instructs `quickemu` to create a software emulated TPM device using `swtpm`. -Other Guests ------------- - SPICE ===== @@ -626,6 +618,7 @@ Here are the usage instructions: ``` {.bash} + Usage quickemu --vm ubuntu.conf From e388a9d83f81196ffdda6b4834d590d9dd53a588 Mon Sep 17 00:00:00 2001 From: Phil Clifford Date: Fri, 25 Feb 2022 01:00:35 +0000 Subject: [PATCH 6/9] regenerated Readme for 3.13 --- README.md | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 52e6958..3eb1d9d 100644 --- a/README.md +++ b/README.md @@ -33,13 +33,17 @@ Features - **macOS** Monterey, Big Sur, Catalina, Mojave & High Sierra - **Windows** 8.1, 10 and 11 including TPM 2.0 -- [Ubuntu](https://ubuntu.com/desktop) and all the **[official Ubuntu flavours](https://ubuntu.com/download/flavours)** +- [Ubuntu](https://ubuntu.com/desktop) and all the **[official Ubuntu + flavours](https://ubuntu.com/download/flavours)** - **Over 360 operating system editions are supported!** - Full SPICE support including host/guest clipboard sharing - VirtIO-webdavd file sharing for Linux and Windows guests - VirtIO-9p file sharing for Linux and macOS guests -- [QEMU Guest Agent support](https://wiki.qemu.org/Features/GuestAgent); provides access to a system-level agent via standard QMP commands -- Samba file sharing for Linux, macOS and Windows guests (*if `smbd` is installed on the host*) +- [QEMU Guest Agent + support](https://wiki.qemu.org/Features/GuestAgent); provides access + to a system-level agent via standard QMP commands +- Samba file sharing for Linux, macOS and Windows guests (*if `smbd` + is installed on the host*) - VirGL acceleration - USB device pass-through - Smartcard pass-through @@ -66,7 +70,8 @@ QEMU](https://img.youtube.com/vi/AOTYWEgw0hI/0.jpg)](https://www.youtube.com/wat Requirements ------------ -- [QEMU](https://www.qemu.org/) (*6.0.0 or newer*) **with GTK, SDL, SPICE & VirtFS support** +- [QEMU](https://www.qemu.org/) (*6.0.0 or newer*) **with GTK, SDL, + SPICE & VirtFS support** - [bash](https://www.gnu.org/software/bash/) (*4.0 or newer*) - [Coreutils](https://www.gnu.org/software/coreutils/) - [EDK II](https://github.com/tianocore/edk2) @@ -436,6 +441,7 @@ SSH and SPICE ports the VM is connected to. ``` {.bash} cat ubuntu-20.04/ubuntu-20.04.ports +<<<<<<< HEAD ``` If, for example, the SSH port is set to 22220, and assuming your VM has @@ -444,6 +450,8 @@ it from the host as follows: ``` {.bash} ssh -p 22220 your_vm_user@localhost +======= +>>>>>>> 2a445ca (regenerated Readme for 3.13) ``` Accessibility @@ -618,7 +626,6 @@ Here are the usage instructions: ``` {.bash} - Usage quickemu --vm ubuntu.conf From f7f8169b9f6a7711bf5ec41022e39a742f0c327b Mon Sep 17 00:00:00 2001 From: Phil Clifford Date: Sun, 27 Feb 2022 00:16:52 +0000 Subject: [PATCH 7/9] check ubuntus enabled also allows parameter to check only one os --- quickget | 65 +++++++++++++++++++++++++++++++++++++------------------- 1 file changed, 43 insertions(+), 22 deletions(-) diff --git a/quickget b/quickget index 6f8514f..05f5179 100755 --- a/quickget +++ b/quickget @@ -156,23 +156,37 @@ function list_csv() { exit 0 } function check_links() { + local OSORUBUNTU + local CHECK_LINKS=true for OS in $(os_support); do - if [[ "${OS}" == *"ubuntu"* ]] || [[ "${OS}" == *"windows"* ]] || [[ "${OS}" == *"macos"* ]]; then + if \ + [[ "${OS}" == *"windows"* ]] || \ + [[ "${OS}" == *"macos"* ]] || \ + [[ ! "${OS}" == *"${1:${OS}}"* ]]; then continue else FUNC="${OS}" + if [[ "${OS}" == *"ubuntu"* ]]; then + OSORUBUNTU="ubuntu" + else + OSORUBUNTU="${OS}" + fi fi - for RELEASE in $("releases_${FUNC}"); do - if [[ $(type -t "editions_${FUNC}") == function ]]; then - for EDITY in $("editions_${FUNC}"); do - URL=$(get_"${FUNC}" | cut -d " " -f1) - CHECK=$(curl -o /dev/null --silent --head -L --write-out '%{http_code}\t%{content_type}' "${URL}") - echo "$FUNC $RELEASE $EDITY ${CHECK} $URL" - done + for RELEASE in $("releases_${OSORUBUNTU}"); do + if [[ ${RELEASE} == "eol-"* ]]; then + continue else - URL=$(get_"${FUNC}" | cut -d " " -f1) - CHECK=$(curl -o /dev/null --silent --head -L --write-out '%{http_code}\t%{content_type}' "${URL}") - echo "$FUNC $RELEASE ${CHECK} $URL" + if [[ $(type -t "editions_${FUNC}") == function ]]; then + for EDITY in $("editions_${FUNC}"); do + URL=$(get_"${FUNC}" | cut -d " " -f1) + CHECK=$(curl -o /dev/null --silent --head -L --write-out '%{http_code}\t%{content_type}' "${URL}") + echo "$FUNC $RELEASE $EDITY ${CHECK} $URL" + done + else + URL=$(get_"${OSORUBUNTU}" | cut -d " " -f1) + CHECK=$(curl -o /dev/null --silent --head -L --write-out '%{http_code}\t%{content_type}' "${URL}") + echo "$FUNC $RELEASE ${CHECK} $URL" + fi fi done done @@ -332,7 +346,6 @@ function editions_garuda() { mate \ qtile \ sway \ - wayfire \ xfce } @@ -594,7 +607,7 @@ function check_hash() { echo -n "Checking ${iso} with ${hash_algo}... " if ! echo "${hash} ${iso}" | ${hash_algo} --check --status; then - echo "ERROR!" + echo "ERROR! Checking ISO" echo "${iso} doesn't match ${hash}. Try running 'quickget' again." exit 1 else @@ -945,7 +958,11 @@ function get_garuda() { cinnamon|mate) URL="http://mirrors.fossho.st/garuda/iso/community/${EDITION}/${RELEASE}";; *) URL="http://mirrors.fossho.st/garuda/iso/garuda/${EDITION}/${RELEASE}";; esac - ISO="garuda-${EDITION}-linux-zen-${RELEASE}.iso" + case ${EDITION} in + xfce|kde-barebones) ISO="garuda-${EDITION}-linux-lts-${RELEASE}.iso";; + *) ISO="garuda-${EDITION}-linux-zen-${RELEASE}.iso";; + esac + HASH="$(wget -q -O- "${URL}/${ISO}.sha256" | cut -d' ' -f1)" echo "${URL}/${ISO} ${HASH}" } @@ -1289,15 +1306,19 @@ function get_ubuntu() { ISO=$(wget -q -O- "${URL}/MD5SUMS" | grep 'desktop\|dvd\|install' | grep amd64 | cut -d' ' -f3) HASH=$(wget -q -O- "${URL}/MD5SUMS" | grep 'desktop\|dvd\|install' | grep amd64 | cut -d' ' -f1) fi - #echo "${URL}/${ISO} ${HASH}" - if [[ "${RELEASE}" == *"daily"* ]] || [ "${RELEASE}" == "dvd" ]; then - zsync_get "${URL}/${ISO}" "${VM_PATH}" "${OS}-devel.iso" - make_vm_config "${OS}-devel.iso" + if [[ -n "${CHECK_LINKS}" ]] ; then + echo "${URL}/${ISO} ${HASH}" else - web_get "${URL}/${ISO}" "${VM_PATH}" - check_hash "${ISO}" "${HASH}" - make_vm_config "${ISO}" + + if [[ "${RELEASE}" == *"daily"* ]] || [ "${RELEASE}" == "dvd" ]; then + zsync_get "${URL}/${ISO}" "${VM_PATH}" "${OS}-devel.iso" + make_vm_config "${OS}-devel.iso" + else + web_get "${URL}/${ISO}" "${VM_PATH}" + check_hash "${ISO}" "${HASH}" + make_vm_config "${ISO}" + fi fi } @@ -1752,7 +1773,7 @@ if [ -n "${1}" ]; then elif [ "${OS}" == "list_json" ]; then list_json elif [ "${OS}" == "check_links" ]; then - check_links + check_links "${2:-}" elif [ "${OS}" == "--version" ] || [ "${OS}" == "-version" ] || [ "${OS}" == "version" ]; then WHERE=$(dirname "${BASH_SOURCE[0]}") "${WHERE}/quickemu" --version From 943ff974eaf30ade2d34d47d16c105602938e72f Mon Sep 17 00:00:00 2001 From: Phil Clifford Date: Sun, 27 Feb 2022 01:20:40 +0000 Subject: [PATCH 8/9] filter ubuntu flavour LTS availability --- quickget | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/quickget b/quickget index 05f5179..a17a9fc 100755 --- a/quickget +++ b/quickget @@ -482,10 +482,19 @@ function releases_tails() { } function releases_ubuntu() { - echo 14.04 \ - 16.04 \ - 18.04 \ - 20.04 \ + local LTS_SUPPORT="14.04 16.04 18.04 20.04" + case "${OS}" in + kubuntu|lubuntu|ubuntukylin|\ + ubuntu-mate|ubuntustudio|xubuntu) + ## after 14.04 + LTS_SUPPORT="${LTS_SUPPORT/14.04 /}" + ;; + ubuntu-budgie) + #after 16.04 + LTS_SUPPORT="${LTS_SUPPORT/14.04 16.04 /}" + ;; + esac + echo ${LTS_SUPPORT} \ 21.10 \ daily-live \ daily-canary \ From dd8b81e1659d0ee5cd93d5f169f20f58f8e865f2 Mon Sep 17 00:00:00 2001 From: Phil Clifford Date: Sun, 27 Feb 2022 03:12:49 +0000 Subject: [PATCH 9/9] add prototype option to look also for .zsync support just checks the download as well with .zsync appended when ZCHECK is set --- quickget | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/quickget b/quickget index a17a9fc..8654ee4 100755 --- a/quickget +++ b/quickget @@ -180,11 +180,20 @@ function check_links() { for EDITY in $("editions_${FUNC}"); do URL=$(get_"${FUNC}" | cut -d " " -f1) CHECK=$(curl -o /dev/null --silent --head -L --write-out '%{http_code}\t%{content_type}' "${URL}") + if [[ -n "${ZCHECK}" ]] ; then + ZCHECK=$(curl -o /dev/null --silent --head -L --write-out '%{http_code}\t%{content_type}' "${URL}.zsync") + echo "$FUNC $RELEASE $EDITY ${ZCHECK} ${URL}.zsync" + fi echo "$FUNC $RELEASE $EDITY ${CHECK} $URL" + done else URL=$(get_"${OSORUBUNTU}" | cut -d " " -f1) CHECK=$(curl -o /dev/null --silent --head -L --write-out '%{http_code}\t%{content_type}' "${URL}") + if [[ -n "${ZCHECK}" ]] ; then + ZCHECK=$(curl -o /dev/null --silent --head -L --write-out '%{http_code}\t%{content_type}' "${URL}.zsync") + echo "$FUNC $RELEASE $EDITY ${ZCHECK} ${URL}.zsync" + fi echo "$FUNC $RELEASE ${CHECK} $URL" fi fi