Speedtest-cli is used to check the speed of uploading and downloading in the server and it use command line interface in order to perform the task. You can also test the network speed of your server too. It is quite simple to install Speedtest-cli in server. In this article we are showing the simple installation steps to follow for the installation of Speedtest-cli.
This article will help you to very simple understand, what is this utility doing and how to install her in your Linux OS.
Table of Contents
- What is speedtest-cli?
- What is EPEL release?
- Install Pyhton and pyhton-pip?
- Linux system examples
- Speedtest-cli utiliti installation and using guide
1. What is speedtest-cli?
Speedtest-cli is a script written in the Python programming language which measures the internet speed bidirectionally. This application allows you to check your internet speed upon distance in km, it can test against specific servers and it also provides a URL so that you can share your result on the internet.
2. What is EPEL release?
EPEL - (Extra Packages for Enterprise Linux) is open source and free community based repository project from Fedora team which provides 100% high quality add-on software packages for Linux distribution including RHEL (Red Hat Enterprise Linux), CentOS, and Scientific Linux.
Python is an interpreted, object-oriented, high-level programming language with dynamic semantics. Its high-level built in data structures, combined with dynamic typing and dynamic binding, make it very attractive for Rapid Application Development, as well as for use as a scripting or glue language to connect existing components together.
pip — pip is a package management system used to install and managesoftware packages written in Python.
4. Linux system examples
Centos:
Install EPEL release :
yum install epel-release -y
Install python and python-pip :
yum install python python-pip -y
Install Speedtest-cli package via pip :
pip install --upgrade pip
Debian/Ubuntu:
First update the packages:
apt-get update
Install python and python-pip :
apt install python python-pip -y
pip install --upgrade pip
Install Speedtest-cli package via pip :
apt-get install speedtest-cli
FreeBSD:
Install python :
pkg install python
Download the speedtest-cli.py file:
wget --no-check-certificate -O speedtest-cli https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py
Than give proper permission for the downloaded file:
chmod 777 speedtest-cli
Now run below any one command to get the Internet speed:
./speedtest-cli
5. Speedtest-cli utiliti installation and using guide
For install speedtest-cli use follow command:
pip install speedtest-cli
By the choosing server location for the internet checking use this command:
speedtest-cli -–list
This utility instruction you can find by follow next command:
speedtest-cli --help
Each server has a own unique ID, for example:(2113 ) Gatchina-Online (Gatchina, Russian Federation) [305.32 km]
By the using this server for the checking follow command:
speedtest-cli --server 2113
You can also check you internet speed by save in picture. Use follow command:
speedtest-cli --share