diff --git a/sources/tech/20140825 Linux Terminal--speedtest_cli checks your real bandwidth speed.md b/sources/tech/20140825 Linux Terminal--speedtest_cli checks your real bandwidth speed.md deleted file mode 100644 index 20b638aeda..0000000000 --- a/sources/tech/20140825 Linux Terminal--speedtest_cli checks your real bandwidth speed.md +++ /dev/null @@ -1,151 +0,0 @@ -[su-kaiyao]翻译中 - -Linux Terminal: speedtest_cli checks your real bandwidth speed. -================================================================================ -![](http://www.speedtest.net/result/3700218352.png) - -What’s your upload and download speed at home (or in your office) ? -Are you really sure that you get what do you pay for to your ISP ? - -To test the speed of our internet connection There are several internet services such as SpeedTest a web service that is available both from Web browsers and mobile application. - -Now you can easily check it also with speedtest_cli a command line interface for testing internet [bandwidth][1] using [speedtest.net][2]. In this way you can do the test also on servers that don’t have a Browser or a graphical interface. - -### Installation ### - -speedtest_cli it’s just a python script, so it’s really easy to install and use it, and you have different ways to do it: - -#### 1) pip / easy_install #### - -Open a terminal and give the command: - - pip install speedtest-cli - -or - - easy_install speedtest-cli - -#### 2) Github #### - -To install directly from github you can use these commands: - - pip install git+https://github.com/sivel/speedtest-cli.git - -or - - git clone https://github.com/sivel/speedtest-cli.git - python speedtest-cli/setup.py install - -#### 3) As Ubuntu/Debian or Mint package #### - -The [package][3] is available on the getdeb repository, you can easily add it with these steps: - -- Install the [getdeb package][4]. -Or -- Configure the repository manually: -Go to System-Administration-Software Sources, Third-Party Software tab, Add: - - deb http://archive.getdeb.net/ubuntu trusty-getdeb apps - -Add the repository GPG key, open a terminal window and type: - - wget -q -O- http://archive.getdeb.net/getdeb-archive.key | sudo apt-key add - - -And now you can install the speedtest-cli package with the commands: - - sudo apt-get update - sudo apt-get install python-speedtest-cli - -#### 4) Just download (Like the way it used to be) #### - -As last option, just download the python script where you prefer and run it from there: - - wget -O speedtest-cli https://raw.github.com/sivel/speedtest-cli/master/speedtest_cli.py - chmod +x speedtest-cli - -or - - curl -o speedtest-cli https://raw.github.com/sivel/speedtest-cli/master/speedtest_cli.py - chmod +x speedtest-cli - -### Basic Usage ### - -You can simply run the command speedtest_cli.py without any option and you’ll get a report on the terminal of your bandwidth speed, this is the output of my crappy Italian Adsl: - - $ ./speedtest_cli.py - Retrieving speedtest.net configuration... - Retrieving speedtest.net server list... - Testing from Telecom Italia (87.13.73.66)... - Selecting best server based on latency... - Hosted by LepidaSpA (Bologna) [12.20 km]: 104.347 ms - Testing download speed........................................ - Download: 6.35 Mbits/s - Testing upload speed.................................................. - Upload: 0.34 Mbits/s - -So this is the basic usage, and it’s good enough to know how great (or bad) is your connection, but maybe you want to share this information with your friends, to do this just use the option –share - - ./speedtest_cli.py --share - Retrieving speedtest.net configuration... - Retrieving speedtest.net server list... - Testing from Telecom Italia (87.13.73.66)... - Selecting best server based on latency... - Hosted by LepidaSpA (Bologna) [12.20 km]: 93.778 ms - Testing download speed........................................ - Download: 6.20 Mbits/s - Testing upload speed.................................................. - Upload: 0.33 Mbits/s - Share results: http://www.speedtest.net/result/3700218352.png - -This will produce an image similar to this one (but I hope for you with better values): - -![](http://www.speedtest.net/result/3700218352.png) - -Another interesting option it’s the –list that shows a list of speedtest.net servers sorted by distance, these are my results: - - Retrieving speedtest.net configuration... - Retrieving speedtest.net server list... - 2872) LepidaSpA (Bologna, Italy) [12.20 km] - 1561) MYNETWAY S.R.L. (Cesena, Italy) [80.97 km] - 2710) ReteIVO by D.t.s. Srl (Florence, Italy) [90.90 km] - 4826) Inteplanet Srl (Verona, Italy) [100.45 km] - 3998) Wolnext srl (Verona, Italy) [100.45 km] - 2957) Wifiweb s.r.l. (Altavilla Vicentina, Italy) [103.11 km] - 3103) E4A s.r.l. (Vicenza, Italy) [107.17 km] - 3804) Interplanet Srl (Vicenza, Italy) [107.17 km] - 1014) NTRnet (Vicenza, Italy) [107.17 km] - 3679) Hynet s r l (Vicenza, Italy) [107.17 km] - 3745) Comeser Srl (Fidenza, Italy) [114.00 km] - 5011) Welcomeitalia spa (Massarosa, Italy) [119.26 km] - 2864) ReteIVO by D.t.s. Srl (Massa, Italy) [120.92 km] - 2918) ReteIVO by D.t.s. Srl (Arezzo, Italy) [129.79 km] - ... - -Now that I know the ID of the servers that are located near my location I can pick up a specific server with the option –server, so to chose the server located at Florence (ID 2710) I can use the command: - - ./speedtest_cli.py --server 2710 - Retrieving speedtest.net configuration... - Retrieving speedtest.net server list... - Testing from Telecom Italia (87.13.73.66)... - Hosted by ReteIVO by D.t.s. Srl (Florence) [90.90 km]: 106.505 ms - Testing download speed........................................ - Download: 6.18 Mbits/s - Testing upload speed.................................................. - Upload: 0.35 Mbits/s - -Article sponsored by [Asapy Programming Company][5] - --------------------------------------------------------------------------------- - -via: http://linuxaria.com/howto/linux-terminal-speedtest_cli-checks-your-real-bandwidth-speed - -译者:[译者ID](https://github.com/译者ID) -校对:[校对者ID](https://github.com/校对者ID) - -本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出 - -[1]:http://linuxaria.com/article/tool-command-line-bandwidth-linux -[2]:http://linuxaria.com/howto/speedtest.net -[3]:http://www.getdeb.net/ -[4]:http://archive.getdeb.net/install_deb/getdeb-repository_0.1-1~getdeb1_all.deb -[5]:http://www.asapy.com/ diff --git a/translated/tech/20140825 Linux Terminal--speedtest_cli checks your real bandwidth speed.md b/translated/tech/20140825 Linux Terminal--speedtest_cli checks your real bandwidth speed.md new file mode 100644 index 0000000000..f470b075c4 --- /dev/null +++ b/translated/tech/20140825 Linux Terminal--speedtest_cli checks your real bandwidth speed.md @@ -0,0 +1,152 @@ +Linux终端:speedtest_cli检测你的实时带宽速度 +=== + +![](http://www.speedtest.net/result/3700218352.png) + +什么是你在家(或者办公室)的上传和下载速度?你能保证,你支付费用给ISP的同时,你得到了等价的回报? + +为了测试我们因特网连接的速度,当下存在着一些因特网服务,比如说SpeedTest,这是一种可以通过Web浏览器和手机应用程序浏览的web服务 + +现在,你可以很容易地检测你的网速,使用speedtest_cli同样很简单,它是一个使用[speedtest.net][2]来测试因特网[带宽][1]的命令行界面。通过这种方式,你也可以在没有浏览器或者图形化界面的服务器上做带宽测试 + +### 安装 ### + +speedtest_cli是一个python脚本,所以它真的很容易安装和使用,你拥有许多方式安装它: + +#### 1)pip / easy_install #### + +打开一个终端,输入下面的命令: + + pip install speedtest_cli + +或者 + + easy_install speedtest_cli + +#### 2)Github #### + +想要直接从github安装,你得这么做: + + pip install git+https://github.com/sivel/speedtest-cli.git + +或者 + + git clone https://github.com/sivel/speedtest-cli.git + python speedtest-cli/setup.py install + +#### 3)作为Ubuntu/Debian或者Mint包 #### + +getdeb仓库给我们提供了[安装包][3],按照下面的步骤,就可以轻松安装: + +- 安装[getdeb包][4] +或者 +- 手动地配置仓库: +进入系统管理软件源,第三方软件选项,加上: + + deb http://archive.getdeb.net/ubuntu trusty-getdeb apps + +增加仓库GPG钥匙,打开终端窗口,然后输入: + + wget -q -O- http://archive.getdeb.net/getdeb-archive.key | sudo apt-key add - + +现在,你就可以使用下面的命令安装speedtest_cli包了: + + sudo apt-get update + sudo apt-get install python-speedtest-cli + +#### 4)下载(和以前的方式一样) #### + +作为最后的选择,只需要下载python脚本,然后在你想运行的地方运行脚本: + + wget -O speedtest-cli https://raw.github.com/sivel/speedtest-cli/master/speedtest_cli.py + chmod +x speedtest-cli + +或者 + + curl -o speedtest-cli https://raw.github.com/sivel/speedtest-cli/master/speedtest_cli.py + chmod +x speedtest-cli + +### 基本用法 ### + +你可以不带任何选项地运行speedtest_cli.py,然后你会在终端获得关于你带宽速度的报告,这就是我蹩脚的意大利Adsl输出: + + $ ./speedtest_cli.py + Retrieving speedtest.net configuration... + Retrieving speedtest.net server list... + Testing from Telecom Italia (87.13.73.66)... + Selecting best server based on latency... + Hosted by LepidaSpA (Bologna) [12.20 km]: 104.347 ms + Testing download speed........................................ + Download: 6.35 Mbits/s + Testing upload speed............................................... + Upload: 0.34 Mbits/s + +这就是简简单单的基本用法,这足以让你知道你因特网连接的好坏,但是有可能,你需要和朋友分享这条信息,为了到达此目的,只需要-share选项 + + ./speedtest_cli.py --share + Retrieving speedtest.net configuration... + Retrieving speedtest.net server list... + Testing from Telecom Italia (87.13.73.66)... + Selecting best server based on latency... + Hosted by LepidaSpA (Bologna) [12.20 km]: 93.778 ms + Testing download speed........................................ + Download: 6.20 Mbits/s + Testing upload speed............................................... + Upload: 0.33 Mbits/s + Share results: http://www.speedtest.net/result/3700218352.png + +这将会产生一个类似于下面的图像(但是我希望你图像里面的值更好): + + ![](http://www.speedtest.net/result/3700218352.png) + +另一个有趣的选项是-list,它会按照距离列出所有speedtest.net服务器,下面是我运行的结果: + + Retrieving speedtest.net configuration... + Retrieving speedtest.net server list... + 2872) LepidaSpA (Bologna, Italy) [12.20 km] + 1561) MYNETWAY S.R.L. (Cesena, Italy) [80.97 km] + 2710) ReteIVO by D.t.s. Srl (Florence, Italy) [90.90 km] + 4826) Inteplanet Srl (Verona, Italy) [100.45 km] + 3998) Wolnext srl (Verona, Italy) [100.45 km] + 2957) Wifiweb s.r.l. (Altavilla Vicentina, Italy) [103.11 km] + 3103) E4A s.r.l. (Vicenza, Italy) [107.17 km] + 3804) Interplanet Srl (Vicenza, Italy) [107.17 km] + 1014) NTRnet (Vicenza, Italy) [107.17 km] + 3679) Hynet s r l (Vicenza, Italy) [107.17 km] + 3745) Comeser Srl (Fidenza, Italy) [114.00 km] + 5011) Welcomeitalia spa (Massarosa, Italy) [119.26 km] + 2864) ReteIVO by D.t.s. Srl (Massa, Italy) [120.92 km] + 2918) ReteIVO by D.t.s. Srl (Arezzo, Italy) [129.79 km] + ... + +现在,我知道围绕在我周围的服务器的ID,我可以使用-server选项选择一个特定的服务器,所以,为了选择位于Florence(ID 2710)的服务器,我使用下面的命令: + + ./speedtest_cli.py --server 2710 + Retrieving speedtest.net configuration... + Retrieving speedtest.net server list... + Testing from Telecom Italia (87.13.73.66)... + Hosted by ReteIVO by D.t.s. Srl (Florence) [90.90 km]: 106.505 ms + Testing download speed........................................ + Download: 6.18 Mbits/s + Testing upload speed.............................................. + Upload: 0.35 Mbits/s + +文章由[Asapy Programming Company][5]发表 + +--- + +via: http://linuxaria.com/howto/linux-terminal-speedtest_cli-checks-you +r-real-bandwidth-speed + +译者:[su-kaiyao](https://github.com/su-kaiyao) +校对:[校对者ID](https://github.com/校对者ID) + +本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出 + +[1]:http://linuxaria.com/article/tool-command-line-bandwidth-linux +[2]:http://linuxaria.com/howto/speedtest.net +[3]:http://www.getdeb.net/ +[4]:http://archive.getdeb.net/install_deb/getdeb-repository_0.1-1~getde +b1_all.deb +[5]:http://www.asapy.com/ +