1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120
|
APT-SOURCES v2.0 -
Copyright(C) by Danny Rodriguez
This version of apt-sources was completely re-written from scratch. It no
longer uses BING or NETSELECT source code to choose the best servers for
your sources.list. It's also no distro'd under GPL.
Version 2.0 now simply takes a list of FTP sites in URL format, and benchmarks
them via FTP, and that's it :)
Note, running the program without any options could take a long time, so I'd
read the options below to see what suites your needs.
Also please understand that this program is *NOT* meant to benchmark sites
other than DEBIAN mirror sites.
Options :
-a --manual-add=[STRING]
This option allows you to append a string to the end of the sources.list
file. Ofcourse you could just edit the file yourself, so I don't know the
need for this option, just added it for shits and giggle.s
usage: apt-sources -a "deb ftp://ftp.us.debian.org/debian stable main"
----------------------------------------------------------
-d --distribution=[DIST]
This option allows you to choose which distribution tree to use (STABLE,
UNSTABLE, TESTING).
usage: apt-sources -d stable
----------------------------------------------------------
-e --early-finish=[#]
This option sets the number of FTP sites to successfully benchmark if you
don't want to go through the whole list.
usage: apt-sources -e 5
----------------------------------------------------------
-f --use-file=[FILE]
This option enables APT-SOURCES to use a list of servers to benchmark. This
file can either be generated from a previous run of apt-sources (with the
-s/--save-top option) or a list of URLS in this format :
ftp://ftp.first.site.com
.
.
.
ftp://ftp.last.site.com
Be aware, this program benchmarks via a standardized file on all debian
mirror locations. If that is not found, it skips the benchmark on the
site.
usage: apt-sources -f filename.ext
----------------------------------------------------------
-l --save-list=[FILE]
APT-SOURCES by default saves the final results to a generated sources.list
file in the /etc/apt directory. If this option is set, it will default to
this file instead.
Note: Either file will be backed up in the format filename.ext.old.time(NULL)
Also, if no option is given, and you don't have access to write to /etc/apt,
apt-sources will secondly try to write it to ./sources.list
usage: apt-sources -l filename.ext
----------------------------------------------------------
-s --save-top=[FILE]
This option saves the TOP 25 servers benchmarked to a file in a format that
is supported by the -f option.
This option will write both the name of the server benchmarked, and the speed
it was benchmarked at.
NOTE: A sample file called SAMPLE.SERVERS was included in this distro
to show you what is generated.
usage: apt-sources -s filename.ext
----------------------------------------------------------
-h
This option displays a shorter version of this file :)
Special thanks to UNDERNET #linux for their warmth love and support! :) heh.
A very special thanks to SansGrip for some help with the socket code.
|