LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 8536|回复: 9

告诉大家一个非常好的工具--netselect

[复制链接]
发表于 2002-12-5 19:24:04 | 显示全部楼层 |阅读模式
呵呵,看了apt howto才知道这工具,可以帮你检查mirror的速度,这样不用一个一个ping了:
netselect www.debian.org www.linuxforum.com等!!
它也自己带了一个有用的工具netselect-apt,可以帮你自动生成stable,testing,unstable的source.list
例如:
netselect-apt unstable 当然你可以生成你喜欢的发行比如stable,testing
那么这个工具会自动找所有的Debian mirror,并且在你运行这命令的目录下生成source.list和叫mirror.full(好象是这名字)两个文件,如果你要使用这个source.list里的mirror的话,执行cp source.list /etc/apt/
mirror.full是个html文件,如果你用lynx mirror.full只会看见source,所以加个后缀为html吧,再lynx xxx.html,这文件好象是些mirror的信息,我没有仔细看,呵呵!
[注意]使用netselect-apt的时候必须先安装wget!!
发表于 2002-12-5 22:19:07 | 显示全部楼层
是呀! I 服了 YOU ,debian

debian:/etc/apt# netselect-apt unstable
Retrieving the list of mirrors from www.debian.org...

--22:13:07--  http://www.debian.org/mirror/mirrors_full
           => `mirrors_full'
Resolving www.debian.org... done.
Connecting to www.debian.org[192.25.206.10]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 141,906 [text/html]

100%[====================================>] 141,906       41.18K/s    ETA 00:00

22:13:13 (41.18 KB/s) - `mirrors_full' saved [141906/141906]

Choosing a main Debian mirror using netselect.
netselect: unknown host debian.kida.net                     
netselect: unknown host ftp.ipv6.opentransit.net            
netselect: unknown host debian.psu.ru                       
Running netselect to choose 1 out of 249 addresses.     
....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
The fastest server seems to be:
        http://www.zentek-international.com/mirrors/debian/debian/

Choosing a non-US Debian mirror using netselect.
netselect: unknown host ftp.ipv6.opentransit.net            
netselect: unknown host debian.psu.ru                       
Running netselect to choose 1 out of 185 addresses.     
...........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
The fastest non-US server seems to be:
        http://ftp.jp.debian.org/debian-non-US/

Writing the sources.list in the current directory.
Done.


提示
最快的服务器是 www.zentek-international.com
没见过,新鲜。
日本的 non-US server 最快。

做好的 source.list

# the main Debian packages.  Uncomment the deb-src line if you
# want 'apt-get source' to work with most packages.
deb http://www.zentek-international.com/mirrors/debian/debian/ unstable main contrib non-free
# deb-src http://www.zentek-international.com/mirrors/debian/debian/ unstable main contrib non-free

# the non-US Debian packages.  Uncomment the deb-src line if you
# want 'apt-get source' to work with non-US packages.
deb http://ftp.jp.debian.org/debian-non-US/ unstable/non-US main contrib non-free
# deb-src http://ftp.jp.debian.org/debian-non-US/ unstable/non-US main contrib non-free

这个再结合平时的经验,搭配其它合适的 apt 源。
发表于 2002-12-6 08:11:43 | 显示全部楼层
还有apt-spy也有同样的功能。
apt-get install apt-spy
发表于 2002-12-6 08:47:04 | 显示全部楼层

这是我的netselect-apt unstable 生成文件,大家看看为什么是这样的,没有地址啊!!!能用吗?

debian:~/tmp# ls
mirrors_full  sources.list
debian:~/tmp# more sources.list
# the main Debian packages.  Uncomment the deb-src line if you
# want 'apt-get source' to work with most packages.
deb  unstable main contrib non-free
# deb-src  unstable main contrib non-free

# the non-US Debian packages.  Uncomment the deb-src line if you
# want 'apt-get source' to work with non-US packages.
deb  unstable/non-US main contrib non-free
# deb-src  unstable/non-US main contrib non-free
debian:~/tmp#
发表于 2002-12-6 09:04:45 | 显示全部楼层

奇怪了大家看看

debian:~/tmp# netselect-apt testing
Retrieving the list of mirrors from www.debian.org...

--15:36:04--  http://www.debian.org/mirror/mirrors_full
           => `mirrors_full'
Resolving www.debian.org... done.
Connecting to www.debian.org[192.25.206.10]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 143,368 [text/html]

100%[=====================================================>] 143,368       30.15K/s    ETA 00:00

15:36:10 (30.15 KB/s) - `mirrors_full' saved [143368/143368]

Choosing a main Debian mirror using netselect.
netselect: unknown host debian.kida.net                     
netselect: unknown host ftp.ipv6.opentransit.net            
netselect: unknown host debian.psu.ru                       
netselect: unknown host debian.tod.net                     
Running netselect to choose 1 out of 255 addresses.     

The fastest server seems to be:
        

Choosing a non-US Debian mirror using netselect.
netselect: unknown host ftp.ipv6.opentransit.net            
netselect: unknown host debian.psu.ru                       
Running netselect to choose 1 out of 190 addresses.     

The fastest non-US server seems to be:
        

Writing the sources.list in the current directory.
Done.
debian:~/tmp#
没有发现地址啊。真是奇怪了。。。。生成文件就像我上一个贴子一样。。。没有地址。
发表于 2002-12-6 23:05:58 | 显示全部楼层
me too
发表于 2002-12-7 20:31:58 | 显示全部楼层
我生成的sources.list如下,
# the main Debian packages.  Uncomment the deb-src line if you
# want 'apt-get source' to work with most packages.
deb http://ftp-mirror.internap.com/pub/debian/ unstable main contrib non-free
# deb-src http://ftp-mirror.internap.com/pub/debian/ unstable main contrib non-free

# the non-US Debian packages.  Uncomment the deb-src line if you
# want 'apt-get source' to work with non-US packages.
deb http://ftp.tiscali.be/debian-non-US/ unstable/non-US main contrib non-free
# deb-src http://ftp.tiscali.be/debian-non-US/ unstable/non-US main contrib non-free
发表于 2002-12-8 12:44:32 | 显示全部楼层
实际用起来不是很准确,也许测试速度的方法不是很好(比如时间太短)。我原来用的linuxforum的比较快,现在反而慢了。
我想可以原因可能是测试的是反应速度,不是实际下载速度。
我用linuxforum可以达50kB/s,但用netselect-atp或apt-spy生成的sources.list,最快不超过20kB/s。
不知其它兄弟是不是这样?
发表于 2003-6-29 18:13:48 | 显示全部楼层
我这里更惨,apt-get update后一大堆"403 Forbidden"。
发表于 2003-7-8 16:55:57 | 显示全部楼层

Reference的解释

Reference对此的解释是"ping time camparison",(samilar to apt-spy)目前还没有更好的工具.作者建议用apt -setup选择最近的网站。可是该原则不太适合大陆。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表