Book Image

BeagleBone for Secret Agents

By : Joshua Datko
Book Image

BeagleBone for Secret Agents

By: Joshua Datko

Overview of this book

Table of Contents (14 chapters)
BeagleBone for Secret Agents
Credits
Foreword
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Determining your bandwidth with speedtest-cli


In order to adjust the bandwidth rate, we first need to know how much bandwidth our bridge has. Fortunately, there is a nice script to run a speed test from your command line that is appropriately called speedtest-cli. This is installed with the following command:

sudo pip install git+https://github.com/sivel/speedtest-cli.git

Run the test with the following command:

speedtest-cli --simple > speedtest.txt

If you inspect the output file, you should see something like the following:

Ping: 107.686 ms
Download: 28.23 Mbit/s
Upload: 5.37 Mbit/s

We'll use the results in this file as the basis for our bandwidth adjustment. At the moment, we only need to remember its location for later use.