Debian初识(选择最佳镜像发布站点加入source.list文件)

选择最佳镜像发布站点加入source.list文件:netselect,netselect-apt

“该将哪个Debian镜像发布站点加入source.list文件?”。有很多方法来选择镜像发布站点,专家们可能会写一个脚本去测试 不同站点的ping时间。不过其实有一个程序可以帮你: netselect

要安装netselect,通常使用:

# apt-get install netselect

# sudo netselect ftp.debian.org http.us.debian.org ftp.at.debian.org download.unesp.br ftp.debian.org.br ftp.hk.debian.org ftp.tw.debian.org debian.linux.org.tw ftp.sjtu.edu.cn mirrors.163.com
150 mirrors.163.com

表示,在netselect后列出的所有主机中,mirrors.163.com是下载速 度最快的主机,其得分为150。(注意!!这是在我电脑上的测试结果,不同的网络 节点网速会大不相同,所以这个分值不一定适用于其它电脑)

# apt-get install netselect-apt
# netselect-apt stable

从0.3.ds1版开始,netselect源码包中包含了netselect-apt二 进制包,它使上述操作自动完成。只需将发布目录树做为参数(默认为stable)输入, sources.list文件就会生成速度最快的main和non-US镜像站点列表,并保 存在当前目录下。下面的例子生成一个包含stable发布镜像站点列表的sources.list:

 # ls sources.list
     ls: sources.list: File or directory not found
 # netselect-apt stable
     (...)
 # ls -l sources.list
     sources.list
 #

记住:sources.list生成在当前目录下,必须将其移 至/etc/apt目录。 根据文档内提示:打开注释deb-src。

 

  • putty在win10下面访问不了debian8.2,可能原因有:

    1,防火墙

    2,网卡驱动不支持!!这点需注意,升级电脑,被坑!

  •  查看软件安装位置
  • whereis torcs

    man whereis

    NAME
    whereis - locate the binary, source, and manual page files for a com‐
    mand

     

  • 查看软件运行位置
    which torcs  

    man which
    NAME
    which - locate a command

     

 

posted on 2016-03-08 15:28  xweel  阅读(867)  评论(0编辑  收藏  举报

导航