Cameron"> Dale"> February 17, 2008"> 5"> camrdale@gmail.com"> apt-p2p.conf"> Debian"> GNU"> GPL"> ]>
&dhemail;
&dhfirstname; &dhsurname; 2008 &dhusername; &dhdate;
&dhucpackage; &dhsection; &dhpackage; configuration file for &dhpackage; DESCRIPTION Configuration information for &dhpackage; is searched for in the following order, with later entries overriding former ones: /etc/apt-p2p/apt-p2p.conf ${HOME}/.apt-p2p/apt-p2p.conf the location specified by the config-file parameter FORMAT &dhpackage; has a structure similar to Microsoft Windows INI files. The configuration file consists of sections, led by a ``[section]'' header and followed by ``name = value'' or ``name: value'' entries, with continuations in the style of RFC 822 (values can span multiple lines by starting the subsequent lines with one or more spaces). Some values indicate times, in which case a suffix of 'd' for days, 'h' for hours, 'm' for minutes, and 's' for seconds can be used. Boolean values can be '1', 'yes', 'true', and 'on' to evaluate to True, or '0', 'no', 'false', and 'off' to evaluate to false. Note that leading whitespace is removed from values, and case is not important. Lines beginning with "#" or ";" are ignored and may be used to provide comments. VARIABLES There are 2 required sections in the config file. The first is the DEFAULT section, providing variables for the configuration of the main application. The second is the section that provides variables for the configuration of the DHT. DEFAULT The number of the port to listen on for requests. The main application will use this TCP port to listen for requests from APT, and for uploads to other peers. If a port is not specified for the DHT, it will also use this UDP port to listen for DHT requests. (Default is 9977.) The speed to limit sending data to peers to, in KBytes/sec. Set this to 0 to not limit the upload bandwidth. (Default is 0) The minimum number of peers before the mirror is not used. If there are fewer peers than this for a file, the mirror will also be used to speed up the download. Set to 0 to never use the mirror if there are peers. (Default is 3) The directory to store the downloaded files in. (Default is ${HOME}/.apt-p2p/cache.) The list of directories containing packages to share with others. All files in these directories will be hashed and available for everybody to download. (Default is to share only the files downloaded.) Whether it's OK to use an IP addres from a known local or private range. (Default is false) Whether a remote peer can access the statistics page. (Default is True) The time of inactivity to wait for before unloading the packages cache. The packages cache uses a lot of memory, and only takes a few seconds to reload when a new request arrives. (Default is 5 minutes.) The time after which to refresh DHT keys. This should be a time slightly less than the DHT's KEY_EXPIRE value. (Default is 57 minutes.) The user name to try and run as. Leaving this blank will try to run as current user. (Default is 'apt-p2p'.) The DHT implementation to use. It must be possile to do (in python) ``from <DHT>.DHT import DHT'' to get a class that implements the IDHT interface. There should also be a similarly named section below to specify the options for the DHT. (Default is `apt_p2p_Khashmir') Whether to only run the DHT. This can be useful for providing only a bootstrap node. (Default is false) apt_p2p_Khashmir The number of the port to listen on for DHT (UDP) requests. (Default is to use the value specified in the DEFAULT section.) The list of bootstrap nodes to contact to join the DHT. Each node should be on a separate line, and start with the IP address or host name, followed by a colon and the port number. (Default is a list of known good nodes.) Whether this node is a bootstrap node. (Default is false) The time to wait between saves of the running state. (Default is 5 minutes.) The concurrent number of calls per find node/value request. (Default is 4.) The number of redundant copies of a value to store in the DHT. (Default is 3.) The number of values to attempt to retrieve from the DHT. Setting this to 0 will try and get all values (which could take a while if a lot of nodes have values). Setting it negative will try to get that number of results from only the closest STORE_REDUNDANCY nodes to the hash. (Default is -10000, which is a large negative number so all values from the closest STORE_REDUNDANCY nodes will be retrieved.) The number of times in a row a node can fail to respond before it's booted from the routing table. (Default is 3.) The minimum time to wait before re-pinging a node. (Default is 15 minutes.) The maximum time to wait before refreshing a bucket. (Default is 1 hour.) The time to wait before expiring unrefreshed keys. (Default is 1 hour.) The time to wait before KRPC requests timeout. (Default is 14 seconds.) The time to start with when resending KRPC requests using exponential backoff. The request will first be resent after the delay set here. The request will be resent again after twice the delay set here, and so on. e.g. if TIMEOUT is 14 sec., and INITIAL_DELAY is 2 sec., then requests will be resent at times 0, 2 (2 sec. later), and 6 (4 sec. later), and then will timeout at 14. (Default is 2 seconds.) Whether to log lots of info about the requests and responses in the protocol. (Default is false) SEE ALSO apt-p2p8 AUTHOR This manual page was written by &dhusername; <&dhemail;> for the &debian; system (but may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the &gnu; General Public License, Version 2 or any later version published by the Free Software Foundation. On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL.