Friday 18 December 2015

Getting Speedtest Into Your CLI

Previously, I performed Internet bandwidth and speedtest using GUI, browser and etc. However, since some of us might love terminals more (yes...it is indeed faster!), I'm going to share on how can we install speedtest script to our host OS.

The distribution that I used in this post would be:

root@ubuntu:/home/fwnh67# lsb_release -a
No LSB modules are available.
Distributor ID:    Ubuntu
Description:    Ubuntu 14.04.3 LTS
Release:    14.04
Codename:    trusty

Ah, before I forget, you got to elevate the terminal privilege to root before installing the speedtest-cli script.

Moving on, we invoke the below command to get the script installed:

root@ubuntu:/home/fwnh67# pip install speedtest-cli
Downloading/unpacking speedtest-cli
Downloading speedtest_cli-0.3.4-py2.py3-none-any.whl
Installing collected packages: speedtest-cli
Successfully installed speedtest-cli
Cleaning up...

Once done, you may return back to your original user privilege.

From the terminal, get speedtest to run and get your internet speed tested. Example as per below:

fwnh67@ubuntu:~$ speedtest
Retrieving speedtest.net configuration...
Retrieving speedtest.net server list...
Testing from TiME (1.1.36.4)...
Selecting best server based on latency...
Hosted by GSpeed Networks [121.65 km]: 14.065 ms
Testing download speed........................................
Download: 4.93 Mbit/s
Testing upload speed..................................................
Upload: 1.56 Mbit/s

No comments:

Post a Comment