Hello Linux Geeksters. In this article I will show you how to easily perform speedtests from the terminal, on Ubuntu 13.04 Raring Ringtail, Ubuntu 12.04 Precise Pangolin, Linux Mint 15 Olivia, Linux Mint 13 Maya, Elementary OS 0.2 Luna and Pear OS 8.

The python-speedtest-cli app uses speedtest.net, for checking the internet connection’s speed.
For that, you need to install the python-speedtest-cli tool, which is available via the GetDeb repository. Follow the instructions for your system exactly, in order to get a successful installation.
How to install python-speedtest-cli on Ubuntu 13.04 Raring Ringtail, Linux Mint 15 Olivia and Pear OS 8:
$ wget -q -O - http://archive.getdeb.net/getdeb-archive.key | sudo apt-key add -
$ sudo sh -c 'echo "deb http://archive.getdeb.net/ubuntu raring-getdeb apps" >> /etc/apt/sources.list.d/getdeb.list'
$ sudo apt-get update
$ sudo apt-get install python-speedtest-cli
How to install python-speedtest-cli on Ubuntu 12.04 Precise Pangolin, Linux Mint 13 Maya and Elementary OS 0.2 Luna:
$ wget -q -O - http://archive.getdeb.net/getdeb-archive.key | sudo apt-key add -
$ sudo sh -c 'echo "deb http://archive.getdeb.net/ubuntu precise-getdeb apps" >> /etc/apt/sources.list.d/getdeb.list'
$ sudo apt-get update
$ sudo apt-get install python-speedtest-cli
Now that we have installed the needed tool, to perform speedtests, just open a terminal and type:
$ speedtest