Ubuntu Server. Test Internet Connection Speed with Speedtest-Cli

Speedtest-cli is a simple client written in Python CLI to measure bidirectional bandwidth Internet using the Speedtest.net infrastructure. It works with Python 2.4 to 3.4.

Installing speedtest-cli Using pip command:

First, install pip with the following command:

sudo apt-get install python-pip

Once pip installed, now install speedtest-cli by using pip command:

sudo pip install speedtest-cli

Installing speedtest-cli Manually

To installing speedtest-cli in manually method you need to download the latest speedtest-cli python script from github:

sudo wget https://raw.github.com/sivel/speedtest-cli/master/speedtest_cli.py

make speedtest_cli.py executable

sudo chmod a+rx speedtest_cli.py

Move speedtest_cli.py to directory /usr/bin

sudo mv speedtest_cli.py /usr/bin/speedtest-cli

Test Connection Speed using Speedtest-cli

It is easy to check internet speed with speedtest-cli. Just type command speedtest-cli without any arguments.


After execute this command it will automatically detect locate the closest of Speedtest server (in terms of geographical distance) and show the report download speed an upload speed

More information about speedtest-cli, type:

speedtest-cli –help

Source: ubuntuserverguide.com


Setup Your Own “Speedtest Mini Server” to Test Internet Bandwidth Speed

Speedtest.net mini is a speed testing application which is used for hosting speed test server (Mini) on your own site/server. Another application from NetGuage serves the same purpose which primarily is designed for Corporate sites.

Speedtest.net Mini is available for free and it’s compatible with all major web servers. It measure ping by sending HTTP request to selected server and measures the time till it get response. For checking upload and download speed, it uploads and downloads small binary files from web server to client and vice-versa for upload.

Note: Speedtest Mini server may not be used for commercial use, nor on any commercial sites.

Install Speedtest Mini Server on Linux

Download speedtest Mini Server from the link below. You need to Login before you can download. If you don’t have an account, register first.


Setup Instructions

Download mini.zip
Unzip it onto your server
Decide on PHP, ASP.NET, ASP or JSP
Select which index file to use
Rename the file to index.html
Load index.html in your browser

You can also copy the commented code from index.html and paste it into an existing web page. Just be sure to keep the speedtest folder and speedtest.swf in place.

Tags: ,