|
|
@ -18,6 +18,7 @@ function list_all() { |
|
|
|
linuxmint) DISPLAY_NAME="Linux Mint";; |
|
|
|
linuxmint) DISPLAY_NAME="Linux Mint";; |
|
|
|
macos) DISPLAY_NAME="macOS";; |
|
|
|
macos) DISPLAY_NAME="macOS";; |
|
|
|
opensuse) DISPLAY_NAME="OpenSUSE";; |
|
|
|
opensuse) DISPLAY_NAME="OpenSUSE";; |
|
|
|
|
|
|
|
popos) DISPLAY_NAME="Pop!_OS";; |
|
|
|
ubuntu-budgie) DISPLAY_NAME="Ubuntu Budgie";; |
|
|
|
ubuntu-budgie) DISPLAY_NAME="Ubuntu Budgie";; |
|
|
|
ubuntu-kylin) DISPLAY_NAME="Ubuntu Kylin";; |
|
|
|
ubuntu-kylin) DISPLAY_NAME="Ubuntu Kylin";; |
|
|
|
ubuntu-mate) DISPLAY_NAME="Ubuntu MATE";; |
|
|
|
ubuntu-mate) DISPLAY_NAME="Ubuntu MATE";; |
|
|
@ -45,6 +46,7 @@ function os_support() { |
|
|
|
lubuntu \ |
|
|
|
lubuntu \ |
|
|
|
macos \ |
|
|
|
macos \ |
|
|
|
opensuse \ |
|
|
|
opensuse \ |
|
|
|
|
|
|
|
popos \ |
|
|
|
ubuntu \ |
|
|
|
ubuntu \ |
|
|
|
ubuntu-budgie \ |
|
|
|
ubuntu-budgie \ |
|
|
|
ubuntu-kylin \ |
|
|
|
ubuntu-kylin \ |
|
|
@ -87,6 +89,10 @@ function releases_macos() { |
|
|
|
big-sur |
|
|
|
big-sur |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function releases_popos() { |
|
|
|
|
|
|
|
echo 21_04 |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function releases_ubuntu() { |
|
|
|
function releases_ubuntu() { |
|
|
|
echo bionic \ |
|
|
|
echo bionic \ |
|
|
|
focal \ |
|
|
|
focal \ |
|
|
@ -401,6 +407,9 @@ function make_vm_config() { |
|
|
|
elif [[ "${OS}" == "opensuse" ]]; then |
|
|
|
elif [[ "${OS}" == "opensuse" ]]; then |
|
|
|
GUEST="linux" |
|
|
|
GUEST="linux" |
|
|
|
IMAGE_TYPE="iso" |
|
|
|
IMAGE_TYPE="iso" |
|
|
|
|
|
|
|
elif [[ "${OS}" == "popos" ]]; then |
|
|
|
|
|
|
|
GUEST="linux" |
|
|
|
|
|
|
|
IMAGE_TYPE="iso" |
|
|
|
elif [[ "${OS}" == *"ubuntu"* ]]; then |
|
|
|
elif [[ "${OS}" == *"ubuntu"* ]]; then |
|
|
|
GUEST="linux" |
|
|
|
GUEST="linux" |
|
|
|
IMAGE_TYPE="iso" |
|
|
|
IMAGE_TYPE="iso" |
|
|
@ -637,6 +646,29 @@ function get_macos() { |
|
|
|
start_vm_info |
|
|
|
start_vm_info |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function get_popos() { |
|
|
|
|
|
|
|
# For future releases, use dvd1 iso files. |
|
|
|
|
|
|
|
local URL="" |
|
|
|
|
|
|
|
local DL_BASE="https://pop-iso.sfo2.cdn.digitaloceanspaces.com" |
|
|
|
|
|
|
|
local VERSION="" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
case ${RELEASE} in |
|
|
|
|
|
|
|
21_04) VERSION=${RELEASE//_/.};; |
|
|
|
|
|
|
|
*) |
|
|
|
|
|
|
|
echo "ERROR! Pop!_OS ${RELEASE} is not a supported release." |
|
|
|
|
|
|
|
releases_popos |
|
|
|
|
|
|
|
exit 1 |
|
|
|
|
|
|
|
;; |
|
|
|
|
|
|
|
esac |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ISO="pop-os_21.04_amd64_intel_9.iso" |
|
|
|
|
|
|
|
URL="${DL_BASE}/21.04/amd64/intel/9/${ISO}" |
|
|
|
|
|
|
|
make_vm_dir |
|
|
|
|
|
|
|
web_get ${URL} ${VM_PATH} |
|
|
|
|
|
|
|
make_vm_config ${ISO} |
|
|
|
|
|
|
|
start_vm_info |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function get_ubuntu() { |
|
|
|
function get_ubuntu() { |
|
|
|
local DEVEL="daily-live" |
|
|
|
local DEVEL="daily-live" |
|
|
|
local ISO="" |
|
|
|
local ISO="" |
|
|
@ -813,6 +845,8 @@ else |
|
|
|
releases_opensuse |
|
|
|
releases_opensuse |
|
|
|
elif [ "${OS}" == "macos" ]; then |
|
|
|
elif [ "${OS}" == "macos" ]; then |
|
|
|
releases_macos |
|
|
|
releases_macos |
|
|
|
|
|
|
|
elif [ "${OS}" == "popos" ]; then |
|
|
|
|
|
|
|
releases_popos |
|
|
|
elif [[ "${OS}" == *"ubuntu"* ]]; then |
|
|
|
elif [[ "${OS}" == *"ubuntu"* ]]; then |
|
|
|
releases_ubuntu |
|
|
|
releases_ubuntu |
|
|
|
elif [ "${OS}" == "windows" ]; then |
|
|
|
elif [ "${OS}" == "windows" ]; then |
|
|
@ -833,6 +867,8 @@ elif [[ "${OS}" == "linuxmint" ]]; then |
|
|
|
get_linuxmint |
|
|
|
get_linuxmint |
|
|
|
elif [[ "${OS}" == "opensuse" ]]; then |
|
|
|
elif [[ "${OS}" == "opensuse" ]]; then |
|
|
|
get_opensuse |
|
|
|
get_opensuse |
|
|
|
|
|
|
|
elif [[ "${OS}" == "popos" ]]; then |
|
|
|
|
|
|
|
get_popos |
|
|
|
elif [[ "${OS}" == *"ubuntu"* ]]; then |
|
|
|
elif [[ "${OS}" == *"ubuntu"* ]]; then |
|
|
|
get_ubuntu |
|
|
|
get_ubuntu |
|
|
|
elif [ "${OS}" == "windows" ]; then |
|
|
|
elif [ "${OS}" == "windows" ]; then |
|
|
|