1) Instale speedtest-cli (1) por ex. usando os seguintes comandos do terminal:
sudo apt-get install python-pip
sudo pip install speedtest-cli
2) Copiar & amp; cole o seguinte script bash simples em um novo arquivo de texto simples (por exemplo, ~ / .bin / SpeedTestGUI.sh)
#!/bin/bash
notify-send "Retrieving speedtest.net configuration..." -i gtk-dialog-info -t 1 -u normal && notify-send "Retrieving speedtest.net server list..." -i gtk-dialog-info -t 1 -u normal && notify-send "Selecting best server based on ping..." -i gtk-dialog-info -t 1 -u normal && notify-send "Your download and upload speeds will be calculated and displayed in a popup window shortly..." -i gtk-dialog-info -t 5 -u normal &
TMPFILE='mktemp -t speedtest.XXXXXX'
speedtest-cli 2>&1 > $TMPFILE
# Check if the temp file is empty: if true there's something wrong with network
if [ ! -s "$TMPFILE" ]; then
zenity --error --text="Network Error!"
else
# Determine ISP source server, best target server, dowload and upload speeds
SOURCE="$(cat "$TMPFILE"|sed -n '3,3p'|sed -e 's/Testing from //g' -e 's/\.\.\.//g')"
TARGET="$(cat "$TMPFILE"|sed -n '5,5p'|sed -e 's/Hosted by //g' -e 's/: .\+$//g')"
DOWNLD="$(cat "$TMPFILE"|sed -n '7,7p'|sed -e 's/Download: //g')"
UPLOAD="$(cat "$TMPFILE"|sed -n '9,9p'|sed -e 's/Upload: //g')"
# Display information obtained
zenity --info --text="\nISP Server: <b>$SOURCE</b>\n\nTarget Server: <b>$TARGET</b>\n\nDownload Speed: <b>$DOWNLD</b>\n\nUpload Speed: <b>$UPLOAD</b>"
# Remove the temp file when the user closes the zenity window
rm -f $TMPFILE
fi
3) Torne-o executável e execute-o - clicando no gerenciador de arquivos ou adicionando-o a um menu.
Uma caixa de informações do Zenity exibirá detalhes básicos da velocidade da internet.
(1) Mais informações: link