diff --git a/apps/SpeedTest-CLI/description b/apps/SpeedTest-CLI/description new file mode 100644 index 0000000..63535a5 --- /dev/null +++ b/apps/SpeedTest-CLI/description @@ -0,0 +1,6 @@ +Test your internet speed from a terminal! +Are you familiar with speedtest.net? This tool is created by the same team. +This version is much newer than the speedtest-cli package available in the repositories. + +To run: Menu -> Internet -> Run Speedtest +To run in a terminal: ~/speedtest/speedtest diff --git a/apps/SpeedTest-CLI/icon-24.png b/apps/SpeedTest-CLI/icon-24.png new file mode 100644 index 0000000..5385ee5 Binary files /dev/null and b/apps/SpeedTest-CLI/icon-24.png differ diff --git a/apps/SpeedTest-CLI/icon-64.png b/apps/SpeedTest-CLI/icon-64.png new file mode 100644 index 0000000..d82db6d Binary files /dev/null and b/apps/SpeedTest-CLI/icon-64.png differ diff --git a/apps/SpeedTest-CLI/install-32 b/apps/SpeedTest-CLI/install-32 new file mode 100755 index 0000000..bed5776 --- /dev/null +++ b/apps/SpeedTest-CLI/install-32 @@ -0,0 +1,28 @@ +#!/bin/bash + +DIRECTORY="$(dirname "$(dirname "$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )")")" + +function error { + echo -e "\\e[91m$1\\e[39m" + exit 1 +} + +cd ~ +mkdir speedtest +wget https://bintray.com/ookla/download/download_file?file_path=ookla-speedtest-1.0.0-armhf-linux.tgz -O ~/speedtest.tgz|| error 'Failed to download!' +cd speedtest +tar -xvzf ~/speedtest.tgz || error "failed to extract files!" +cd $HOME +rm ~/speedtest.tgz + +echo "Creating shortcut..." +echo "[Desktop Entry] +Type=Application +Name=Run Speedtest +Comment=CLI internet speed test +Exec=bash -c $HOME'/speedtest/speedtest;echo -e "\Close this window to exit.";sleep infinity' +Icon=$HOME/pi-apps/apps/SpeedTest-CLI/icon-64.png +Categories=Network;WebBrowser; +Path=$HOME/speedtest +Terminal=true +StartupNotify=false" > ~/.local/share/applications/speedtest.desktop || error "failed to create menu shortcut!" diff --git a/apps/SpeedTest-CLI/install-64 b/apps/SpeedTest-CLI/install-64 new file mode 100755 index 0000000..32c148a --- /dev/null +++ b/apps/SpeedTest-CLI/install-64 @@ -0,0 +1,28 @@ +#!/bin/bash + +DIRECTORY="$(dirname "$(dirname "$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )")")" + +function error { + echo -e "\\e[91m$1\\e[39m" + exit 1 +} + +cd ~ +mkdir speedtest +wget https://bintray.com/ookla/download/download_file?file_path=ookla-speedtest-1.0.0-aarch64-linux.tgz -O ~/speedtest.tgz|| error 'Failed to download!' +cd speedtest +tar -xvzf ~/speedtest.tgz || error "failed to extract files!" +cd $HOME +rm ~/speedtest.tgz + +echo "Creating shortcut..." +echo "[Desktop Entry] +Type=Application +Name=Run Speedtest +Comment=CLI internet speed test +Exec=bash -c $HOME'/speedtest/speedtest;echo -e "\Close this window to exit.";sleep infinity' +Icon=$HOME/pi-apps/apps/SpeedTest-CLI/icon-64.png +Categories=Network;WebBrowser; +Path=$HOME/speedtest +Terminal=true +StartupNotify=false" > ~/.local/share/applications/speedtest.desktop || error "failed to create menu shortcut!" diff --git a/apps/SpeedTest-CLI/uninstall b/apps/SpeedTest-CLI/uninstall new file mode 100755 index 0000000..c6e0442 --- /dev/null +++ b/apps/SpeedTest-CLI/uninstall @@ -0,0 +1,12 @@ +#!/bin/bash + +DIRECTORY="$(dirname "$(dirname "$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )")")" + +function error { + echo -e "\\e[91m$1\\e[39m" + exit 1 +} + +rm ~/.local/share/applications/speedtest.desktop || error "failed to remove menu shortcut!" +cd ~ +rm -rf ~/speedtest diff --git a/apps/SpeedTest-CLI/website b/apps/SpeedTest-CLI/website new file mode 100644 index 0000000..a90ad77 --- /dev/null +++ b/apps/SpeedTest-CLI/website @@ -0,0 +1 @@ +https://www.speedtest.net/