Jump to content

[GUIDE] Use Speedtest.net from your vps/dedi without using vnc/remote


eKoIce

Recommended Posts

Wouldn’t it be nice to be able to test your upload/download speed from your VPS and share the “famous” picture from speedtest.net ?

 

Speedtest.net uses Flash to test upload/download speed which is a hassle on most VPS.

The long way to get this is to install VNC and run it from a browser, but that is no longer necessary.

We can now use Matt Martz python script speedtest-cli to accomplish this from the commandline.

 

Prerequisites:

Python 2.4-2.7

 

After you have installed Python on your vps download the speedtest-cli file from github

If you have Python 2.X installed then run this:

wget https://raw.github.com/sivel/speedtest-cli/master/speedtest-cli --no-check-certificate -O speedtest-cli.py

 

when downloaded execute with:

python speedtest-cli.py --share

 

after the test are run you will get the url to your speedtest.net image.

heres an example ran from a VPS

 

root@sdragon256:~# python speedtest-cli --share Retrieving speedtest.net configuration... 
Retrieving speedtest.net server list... 
Testing from Secure Dragon LLC. (199.167.31.222)... 
Selecting best server based on ping...
Hosted by Hivelocity Hosting (Tampa, FL) [27.12 km]: 56.982 ms 
Testing download speed........................................
Download: 78.07 Mbit/s
Testing upload speed..................................................
Upload: 58.69 Mbit/s 
Share results: http://www.speedtest.net/result/2481742413.png

 

source: http://www.lowendguide.com/category/scripts/

 

p.s. This little guide Works only on Linux servers/vps with SSH2 access.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock