Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add whonix #755

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions quickget
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ function os_support() {
vanillaos \
void \
vxlinux \
whonix \
windows \
xerolinux \
xubuntu \
Expand Down Expand Up @@ -701,6 +702,10 @@ function releases_xerolinux() {
echo kde
}

function releases_whonix() {
echo 17.0.3.0
}

function releases_zorin() {
echo 16
}
Expand Down Expand Up @@ -1841,6 +1846,16 @@ function get_vxlinux() {
echo "${URL}/${ISO} ${HASH}"
}

function get_whonix() {
local HASH=""
local URL=""
local ISO="Whonix-Xfce-${RELEASE}.Intel_AMD64.qcow2.libvirt.xz"
local URL="https://download.whonix.org/libvirt/${RELEASE}/"

HASH=$(wget -q -O- "${URL}/Whonix-Xfce-${RELEASE}.sha512sums" | cut -d' ' -f1)
echo "${URL}/${ISO} ${HASH}"
}

function unattended_windows() {
cat << 'EOF' > "${1}"
<?xml version="1.0" encoding="utf-8"?>
Expand Down Expand Up @@ -2226,6 +2241,13 @@ create_vm() {
ISO=$(ls ${VM_PATH} | grep -i '.iso' | grep -v '.zip')
fi

if [ ${OS} == "whonix" ] && [[ $ISO =~ ".xz" ]]; then
cd ${VM_PATH}
tar -xvf Whonix*.libvirt.xz
more WHONIX_BINARY_LICENSE_AGREEMENT
touch WHONIX_BINARY_LICENSE_AGREEMENT_accepted || touch WHONIX_BINARY_LICENSE_AGREEMENT_denied
fi

make_vm_config "${ISO}"
}

Expand Down