|
| 1 | +################################################################### |
| 2 | +# CONFIGURATION OPTIONS |
| 3 | +################################################################### |
| 4 | +# Every item has a default value besides MIRRORS (which is unset). |
| 5 | + |
| 6 | +# Use aptitude or apt-get? |
| 7 | +# Note that for outputting the package URI list, we always use apt-get |
| 8 | +# ...since aptitude can't do this |
| 9 | +# Optionally add the FULLPATH to apt-get or apt-rpm or aptitude |
| 10 | +# e.g. /usr/bin/aptitude |
| 11 | +# |
| 12 | +# Default: apt-get |
| 13 | +# |
| 14 | +#_APTMGR=apt-get |
| 15 | + |
| 16 | + |
| 17 | +# Enable DOWNLOADBEFORE to suppress apt-fast confirmation dialog and download |
| 18 | +# packages directly. |
| 19 | +# |
| 20 | +# Default: dialog enabled |
| 21 | +# |
| 22 | +#DOWNLOADBEFORE=true |
| 23 | + |
| 24 | + |
| 25 | +# Choose mirror list to speed up downloads from same archive. To select some |
| 26 | +# mirrors take a look at your distribution's archive mirror lists. |
| 27 | +# Debian: http://www.debian.org/mirror/list |
| 28 | +# Ubuntu: https://launchpad.net/ubuntu/+archivemirrors |
| 29 | +# |
| 30 | +# Examples: |
| 31 | +# To use some German mirrors and official Debian and Ubuntu archives you can use: |
| 32 | +# MIRRORS=( 'http://ftp.debian.org/debian,http://ftp2.de.debian.org/debian,http://ftp.de.debian.org/debian,ftp://ftp.uni-kl.de/debian' |
| 33 | +# 'http://archive.ubuntu.com/ubuntu,http://de.archive.ubuntu.com/ubuntu,http://ftp.halifax.rwth-aachen.de/ubuntu,http://ftp.uni-kl.de/pub/linux/ubuntu,http://mirror.informatik.uni-mannheim.de/pub/linux/distributions/ubuntu/' ) |
| 34 | +# To use French Ubuntu mirrors you can use: |
| 35 | +# MIRRORS=( 'http://fr.archive.ubuntu.com/ubuntu,http://bouyguestelecom.ubuntu.lafibre.info/ubuntu,http://mirror.ovh.net/ubuntu,http://ubuntu-archive.mirrors.proxad.net/ubuntu' ) |
| 36 | +# |
| 37 | +# Default: disabled |
| 38 | +# |
| 39 | +#MIRRORS=( 'none' ) |
| 40 | + |
| 41 | + |
| 42 | +# Maximum number of connections |
| 43 | +# You can use this value in _DOWNLOADER command. Escape with ${}: ${_MAXNUM} |
| 44 | +# |
| 45 | +# Default: 5 |
| 46 | +# |
| 47 | +#_MAXNUM=5 |
| 48 | + |
| 49 | + |
| 50 | +# Maximum number of connections per server |
| 51 | +# Default: 10 |
| 52 | +# |
| 53 | +# _MAXCONPERSRV=10 |
| 54 | + |
| 55 | + |
| 56 | +# Download file using given number of connections |
| 57 | +# If more than N URIs are given, first N URIs are used and remaining URIs are used for backup. |
| 58 | +# If less than N URIs are given, those URIs are used more than once so that N connections total are made simultaneously. |
| 59 | +# |
| 60 | +# _SPLITCON=8 |
| 61 | + |
| 62 | + |
| 63 | +# Split size i.e. size of each piece |
| 64 | +# Possible Values: 1M-1024M |
| 65 | +# |
| 66 | +# _MINSPLITSZ="1M" |
| 67 | + |
| 68 | + |
| 69 | +# Piece selection algorithm to use |
| 70 | +# Available values are: default, inorder, geom |
| 71 | +# default: selects piece so that it reduces the number of establishing connection, reasonable for most cases |
| 72 | +# inorder: selects pieces in sequential order starting from first piece |
| 73 | +# geom: selects piece which has minimum index like inorder, but it exponentially increasingly keeps space from previously selected pieces |
| 74 | +# |
| 75 | +# _PIECEALGO="default" |
| 76 | + |
| 77 | + |
| 78 | +# Downloadmanager listfile |
| 79 | +# You can use this value in _DOWNLOADER command. Escape with ${}: ${DLLIST} |
| 80 | +# |
| 81 | +# Default: /tmp/apt-fast.list |
| 82 | +# |
| 83 | +#DLLIST=/tmp/apt-fast.list |
| 84 | + |
| 85 | + |
| 86 | +# Download command to use. Temporary download list is designed for aria2. But |
| 87 | +# you can choose another download command or download manager. It has to |
| 88 | +# support following input file syntax (\t is tab character): |
| 89 | +# |
| 90 | +# # Comment |
| 91 | +# MIRROR1\tMIRROR2\tMIRROR3... |
| 92 | +# out=FILENAME1 |
| 93 | +# MIRROR1\tMIRROR2\tMIRROR3... |
| 94 | +# out=FILENAME2 |
| 95 | +# ... |
| 96 | +# |
| 97 | +# Examples: |
| 98 | +# aria2c with a proxy (set username, proxy, ip and password!) |
| 99 | +# _DOWNLOADER='aria2c -c -j ${_MAXNUM} -x ${_MAXCONPERSRV} -s ${_SPLITCON} --min-split-size=${_MINSPLITSZ} --stream-piece-selector=${_PIECEALGO} --http-proxy=http://username:password@proxy_ip:proxy_port -i ${DLLIST}' |
| 100 | +# |
| 101 | +# Default: _DOWNLOADER='aria2c -c -j ${_MAXNUM} -x ${_MAXCONPERSRV} -s ${_SPLITCON} --min-split-size=${_MINSPLITSZ} --stream-piece-selector=${_PIECEALGO} -i ${DLLIST} --connect-timeout=600 --timeout=600 -m0' |
| 102 | +# |
| 103 | +#_DOWNLOADER='aria2c -c -j ${_MAXNUM} -x ${_MAXCONPERSRV} -s ${_SPLITCON} --min-split-size=${_MINSPLITSZ} --stream-piece-selector=${_PIECEALGO} -i ${DLLIST} --connect-timeout=600 --timeout=600 -m0' |
| 104 | + |
| 105 | + |
| 106 | +# Download temp folder for Downloadmanager |
| 107 | +# example /tmp/apt-fast. Standard is /var/cache/apt-fast |
| 108 | +# |
| 109 | +# Default: /var/cache/apt/apt-fast |
| 110 | +# |
| 111 | +#DLDIR=/var/cache/apt/apt-fast |
| 112 | + |
| 113 | + |
| 114 | +# APT archives cache directory |
| 115 | +# |
| 116 | +# Default /var/cache/apt/archives |
| 117 | +# (APT configuration items Dir::Cache and Dir::Cache::archives) |
| 118 | +# |
| 119 | +#APTCACHE=/var/cache/apt/archives |
| 120 | + |
| 121 | + |
| 122 | +# apt-fast colors |
| 123 | +# Colors are disabled when not using a terminal. |
| 124 | +# |
| 125 | +# Default colors are: |
| 126 | +# cGreen='\e[0;32m' |
| 127 | +# cRed='\e[0;31m' |
| 128 | +# cBlue='\e[0;34m' |
| 129 | +# endColor='\e[0m' |
0 commit comments