From 29118351874da7d8ee04fd11fb2506c3c1dddec3 Mon Sep 17 00:00:00 2001 From: Yannick Mauray Date: Sat, 16 Oct 2021 21:58:53 +0200 Subject: [PATCH] Added linuxmint support quickget supports linuxmint cinnamon 20.2, MATE 20.2, and xfce 20.2 --- README.md | 10 ++++++++++ quickget | 42 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+) diff --git a/README.md b/README.md index 3629825..37394f1 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,7 @@ comprehensive support for macOS and Windows**. * Windows 8.1, 10 and 11 including TPM 2.0 * Ubuntu, and all the official flavours, supported by `quickget` * Fedora, supported by `quickget` + * linuxmint Cinnamon, MATE, and xfce, supported by `quickget` * openSUSE Leap and Tumbleweed, supported by `quickget` * Full SPICE support including host/guest clipboard sharing * VirtIO-webdavd file sharing for Linux and Windows guests @@ -296,6 +297,15 @@ quickget fedora 34 quickemu --vm fedora-34.conf ``` +## linuxmint Guest + +`quickemu` supports linuxmint releases. + +```bash +quickget linuxmint mate-20_2 +quickemu --vm linuxmint-mate-20.2.conf +``` + ## openSUSE Guest `quickemu` supports openSUSE Leap and Tumbleweed. diff --git a/quickget b/quickget index b73645e..98dbd68 100755 --- a/quickget +++ b/quickget @@ -4,6 +4,7 @@ function os_support() { echo freebsd \ fedora \ kubuntu \ + linuxmint \ lubuntu \ macos \ opensuse \ @@ -27,6 +28,12 @@ function releases_fedora(){ 35_beta } +function releases_linuxmint(){ + echo cinnamon-20_2 \ + mate-20_2 \ + xfce-20-2 +} + function releases_opensuse(){ echo 15_0 \ 15_1 \ @@ -350,6 +357,9 @@ function make_vm_config() { elif [[ "${OS}" == *"fedora"* ]]; then GUEST="linux" IMAGE_TYPE="iso" + elif [[ "${OS}" == *"linuxmint"* ]]; then + GUEST="linux" + IMAGE_TYPE="iso" elif [[ "${OS}" == *"opensuse"* ]]; then GUEST="linux" IMAGE_TYPE="iso" @@ -462,6 +472,34 @@ function get_fedora() { start_vm_info } +function get_linuxmint() { + local URL="" + local DL_BASE="https://mirrors.edge.kernel.org/linuxmint/stable" + local VERSION="" + + case ${RELEASE} in + cinnamon-20_2|mate-20_2|xfce-20_2) VERSION=${RELEASE//_/.};; + *) + echo "ERROR! linuxmint ${RELEASE} is not a supported release." + releases_linuxmint + exit 1 + ;; + esac + + re='(.*)-(.*)' + [[ ${VERSION} =~ ${re} ]]; + local FLAVOR=${BASH_REMATCH[1]} + VERSION=${BASH_REMATCH[2]} + + ISO="linuxmint-${VERSION}-${FLAVOR}-64bit.iso" + URL="${DL_BASE}/${VERSION}/${ISO}" + + make_vm_dir + web_get ${URL} ${VM_PATH} + make_vm_config ${ISO} + start_vm_info +} + function get_opensuse() { # For future releases, use dvd1 iso files. local URL="" @@ -721,6 +759,8 @@ else releases_freebsd elif [ "${OS}" == "fedora" ]; then releases_fedora + elif [ "${OS}" == "linuxmint" ]; then + releases_linuxmint elif [ "${OS}" == "opensuse" ]; then releases_opensuse elif [ "${OS}" == "macos" ]; then @@ -741,6 +781,8 @@ elif [[ "${OS}" == *"freebsd" ]]; then get_freebsd elif [[ "${OS}" == *"fedora"* ]]; then get_fedora +elif [[ "${OS}" == *"linuxmint"* ]]; then + get_linuxmint elif [[ "${OS}" == *"opensuse"* ]]; then get_opensuse elif [[ "${OS}" == *"ubuntu"* ]]; then