From 668e42316dec33267dcaf26c9faeeb2f21859e1c Mon Sep 17 00:00:00 2001 From: Gal Szkolnik Date: Tue, 9 Aug 2022 12:09:32 -0400 Subject: [PATCH] =Quickly launch latest version of TeamViewer QS without the need to install anything --- ...ecutable_launch-teamviewer-quicksupport.sh | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 _home/private_dot_local/bin/executable_launch-teamviewer-quicksupport.sh diff --git a/_home/private_dot_local/bin/executable_launch-teamviewer-quicksupport.sh b/_home/private_dot_local/bin/executable_launch-teamviewer-quicksupport.sh new file mode 100644 index 0000000..fd67af8 --- /dev/null +++ b/_home/private_dot_local/bin/executable_launch-teamviewer-quicksupport.sh @@ -0,0 +1,38 @@ +#! /usr/bin/env bash + +### based on the code shared at https://community.teamviewer.com/English/discussion/comment/116988/#Comment_116988 + +clear +cat </dev/null | awk '{ print $1 }') +RemoteSize=$(curl -sI "$RemoteFile" | awk -v IGNORECASE=1 '/^Content-Length/ {sub("\r",""); print $2}') +if [ "$LocalSize" != "$RemoteSize" ]; then + echo "Downloading file into $LocalFile..." + curl -Lo "$LocalFile" "$RemoteFile" +else + echo "$LocalFile exists and is same size as on server, using existing file..." +fi + +rm -fR /tmp/tvqs 2>&1 > /dev/null +mkdir -p /tmp/tvqs +pushd /tmp/tvqs > /dev/null +tar xzf "$LocalFile" +cd teamviewerqs +echo "Launching TeamViewer Quick Support from $PWD, it should startup in a few seconds..." +./teamviewer & +popd +