![]() ![]() To print a list of possible servers based on physical distance, use the –list option. If you just want simplified output that only displays the download and upload speeds, use the –simple option. ![]() This contains a PNG image of the speed test results.Ĭopy and paste the URL on a browser and hit ENTER to view the speed test statistics. $ speedtest-cli -shareĪ URL containing the results of the speed test is provided at the very end. You can share the bandwidth results with others using the –share option. It then retrieves a list of possible servers, selects the best server, and proceeds to perform both the download and upload speed tests, and prints out the results on the terminal. $ speedtest-cliĪs you can see, the script begins by retrieving the testing configuration from and identifies your ISP. You can run the speedtest-cli command in its basic form without any arguments as shown. Now, let’s begin testing the speed of our internet connection. Testing the internet connection speed using Speedtest-cli To check the version of the Speedtest-cli tool, run the command: $ speedtest-cli -version $ sudo mv speedtest-cli /usr/bin Check version of Speedtest-cli Then move the speedtest-cli script to the /usr/bin path. $ ls -l | grep speedtestįinally, execute permissions to the speedtest-cli Python script using the chmod command. Once the download is complete, you can verify its presence using the ls command as shown. To start off, download the script from GitHub using the wget command as shown. The alternative way of installing Speedtest-cli is to download and execute the Speedtest-cli Python script. Install Speedtest-cli using Python script Once the repository is set up, use the APT package manager to install Speedtest-cli as follows. To start off, use the curl command to setup the Speedtest-cli repository. This is the easiest and most straightforward way of installing Speedtest-cli. Install Speedtest-cli using the APT package manager There are various ways of installing the Speedtest-cli tool. Speedtest-cli works with Python 2.4-3.7 For best results, ensure that you have Python 3.6 and later since older versions have been deprecated. Configure scripts to collect speed test results over a period of time.Check the connection from your PC or even a remote server and IoT devices such as Raspberry Pi.Check the bandwidth performance including metrics such as download, upload, and packet loss.The above location seems to be common for Ubuntu, but not across all versions of Unix/Linux. (Again, you should double-check the location of the speedtest.py file. O /usr/lib/python3/dist-packages/speedtest.py Or you could try downloading that version of the speedtest.py file yourself: sudo gzip -k9 /usr/lib/python3/dist-packages/speedtest.py It's too complex for a simple one-line sed command, but you could still apply it yourself manually. Sed -i "s/^ map(int, server_config\.split(','))$/ map(int, (server_config.split(',') if len(server_config) else ) )/" /usr/lib/python3/dist-packages/speedtest.pyĮDIT: the final patch is at, and published in v2.1.3. Sudo gzip -k9 /usr/lib/python3/dist-packages/speedtest.py If you're in Ubuntu or similar, and you have the file in the location shown in your output, you can fix it with: # Backup original code Looking at the first commit in the PR, you just need to modify a single line in speedtest.py. From this speedtest-cli Pull Request, I gather the speedtest site have changed something in the response their API gives out. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |