LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Puppy
User Name
Password
Puppy This forum is for the discussion of Puppy Linux.

Notices


Reply
  Search this Thread
Old 03-23-2014, 08:43 PM   #1
Fixit7
Senior Member
 
Registered: Mar 2014
Location: El Lago, Texas
Distribution: Ubuntu_Mate 16.04
Posts: 1,374

Rep: Reputation: 169Reputation: 169
Download speed script


I am trying to come up with a ballpark figure for my download speed.

But the results are not showing up in the text file.

Thanks.

# Download_Speed.sh
#
cd Documents
lftp -e 'pget http://www.readyhoustontx.gov/videos...%20Heroes.mp4; exit; ' >> Download_Speed.txt
rm Ready Heroes.mp4
 
Old 03-23-2014, 09:37 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,384
Blog Entries: 28

Rep: Reputation: 6164Reputation: 6164Reputation: 6164Reputation: 6164Reputation: 6164Reputation: 6164Reputation: 6164Reputation: 6164Reputation: 6164Reputation: 6164Reputation: 6164
Try http://www.speedtest.net/
 
1 members found this post helpful.
Old 03-23-2014, 11:05 PM   #3
Fixit7
Senior Member
 
Registered: Mar 2014
Location: El Lago, Texas
Distribution: Ubuntu_Mate 16.04
Posts: 1,374

Original Poster
Rep: Reputation: 169Reputation: 169
I have used them before.

Trouble with it is that it is dependent on where the servers are, traffic, etc.

Using a script, I can find a server close to me for more accurate results.

Andy
 
Old 03-24-2014, 12:15 AM   #4
kirukan
Senior Member
 
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,278

Rep: Reputation: 148Reputation: 148
Mostly the ISP's they might have local and overseas Speedtest servers(Ookla quite popular) so can select different servers from their speedtest meter
 
1 members found this post helpful.
Old 04-30-2014, 01:08 PM   #5
Karl Godt
Member
 
Registered: Mar 2010
Location: Kiel , Germany
Distribution: once:SuSE6.2,Debian3.1, aurox9.2+3,Mandrake?,DSL? then:W7st,WVHB, #!8.10.02,PUPPY4.3.1 now:Macpup
Posts: 314

Rep: Reputation: 45
the data rx_bytes for down and tx_bytes for up load are in

/sys/devices/virtual/net/$ACTIVE_INTERFACE/statistics/

directory .

ACTIVE_INTERFACE for me is ppp0 , for others it might be wlan0 or eth0 .


While sending bigger files over the internet, it is possible to determine the speed as follows :

Code:
ACTIVE_INTERFACE=ppp0

read RX_OLD </sys/devices/virtual/net/$ACTIVE_INTERFACE/statistics/rx_bytes
read TX_OLD </sys/devices/virtual/net/$ACTIVE_INTERFACE/statistics/tx_bytes

while [ running ]; do

sleep 0.98s

read RX </sys/devices/virtual/net/$ACTIVE_INTERFACE/statistics/rx_bytes
read TX </sys/devices/virtual/net/$ACTIVE_INTERFACE/statistics/tx_bytes

SPEED_DOWN=$((((RX-RX_OLD)*8)/1000))
SPEED_UP=$((((TX-TX_OLD)*8)/1000))

#echoPARAM='-en "\r"'
echo ${echoPARAM}"Upload speed is $SPEED_UP kbit / s - Download speed is $SPEED_DOWN kbit / s"

RX_OLD=$RX
TX_OLD=$TX

done
 
Old 04-30-2014, 09:43 PM   #6
Fixit7
Senior Member
 
Registered: Mar 2014
Location: El Lago, Texas
Distribution: Ubuntu_Mate 16.04
Posts: 1,374

Original Poster
Rep: Reputation: 169Reputation: 169
Is it some type of script ?

I am familiar with bash scripts.

Andy
 
Old 05-22-2014, 05:21 AM   #7
Sandra Rowe
LQ Newbie
 
Registered: May 2014
Location: United States
Posts: 1

Rep: Reputation: Disabled
There are many internet speed test apps like okla, speedtestfree form you can check your internet speed with efficient way so try that you surely you got the solution of your problem. Thanks
 
Old 05-23-2014, 04:23 PM   #8
Fixit7
Senior Member
 
Registered: Mar 2014
Location: El Lago, Texas
Distribution: Ubuntu_Mate 16.04
Posts: 1,374

Original Poster
Rep: Reputation: 169Reputation: 169
This works pretty well.

Andy

Quote:
# Download_Speed.sh Use a server as close as possible
#
cd Documents
wget -o Download_Info.txt http://www.readyhoustontx.gov/videos/Ready%20Heroes.mp4
rm Ready Heroes.mp4
 
Old 05-23-2014, 06:35 PM   #9
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,627

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
i have been using this one it works rather well
https://github.com/sivel/speedtest-cli

you might want to check out this blog post
http://www.unixmen.com/check-interne...speedtest-cli/
 
Old 05-23-2014, 08:00 PM   #10
Fixit7
Senior Member
 
Registered: Mar 2014
Location: El Lago, Texas
Distribution: Ubuntu_Mate 16.04
Posts: 1,374

Original Poster
Rep: Reputation: 169Reputation: 169
Nothing happened when I ran speedtest-cli.

Andy
 
Old 05-23-2014, 08:10 PM   #11
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,627

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
did you read the instructions
it is a python script
is it executable ?

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

chmod +x speedtest-cli
then
Code:
XXXXXXXXXXXX~/test> ./speedtest-cli
Retrieving speedtest.net configuration...
Retrieving speedtest.net server list...
Testing from WideOpenWest (??.??.??.??)...
Selecting best server based on ping...
Hosted by Amplex (Toledo, OH) [72.88 km]: 18.04 ms
Testing download speed........................................
Download: 15.17 Mbits/s
Testing upload speed..................................................
Upload: 1.09 Mbits/s
XXXXXXXXXXXX:~/test>

Last edited by John VV; 05-23-2014 at 08:12 PM.
 
Old 05-23-2014, 10:10 PM   #12
Fixit7
Senior Member
 
Registered: Mar 2014
Location: El Lago, Texas
Distribution: Ubuntu_Mate 16.04
Posts: 1,374

Original Poster
Rep: Reputation: 169Reputation: 169
bash: ./speedtest-cli: Permission denied

I am running as root.

Last edited by Fixit7; 05-23-2014 at 10:11 PM.
 
Old 05-24-2014, 02:53 PM   #13
ndc85430
Member
 
Registered: Apr 2014
Distribution: Slackware
Posts: 92

Rep: Reputation: Disabled
Quote:
Originally Posted by Fixit7 View Post
bash: ./speedtest-cli: Permission denied

I am running as root.
Running the script as root is probably unnecessary. However what is necessary is that it has executable permissions. If you don't know about permissions in Linux, you can read this, for example.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how can i speed up my download speed on a broadband connecxion dgfi Linux - Newbie 2 03-01-2014 01:43 PM
difference between wget and php script in download speed linuxsavar Linux - Server 1 07-29-2011 08:27 AM
Upload speed limiting to increase download speed dangerousdave Linux - Networking 6 02-16-2010 03:19 PM
Why is my internet upload speed greater than my download speed? km4hr Linux - Networking 1 05-27-2008 08:33 PM
LXer: Linux/UNIX: Double your download speed with download accelerator LXer Syndicated Linux News 1 09-28-2006 07:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Puppy

All times are GMT -5. The time now is 11:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration