X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=debian%2Fapt-p2p.sgml;h=d8e95976c6ce2bc1294b2601676d0d8e35aa9519;hb=63dffea17bbfc90dcfb66ec22f48800e71888bc9;hp=aa106a8d6c81f2981372deba7c075a5d15d8133b;hpb=7b1167d8ce780312d3689c9309c7e9c64060c085;p=quix0rs-apt-p2p.git diff --git a/debian/apt-p2p.sgml b/debian/apt-p2p.sgml index aa106a8..d8e9597 100644 --- a/debian/apt-p2p.sgml +++ b/debian/apt-p2p.sgml @@ -4,7 +4,7 @@ Cameron"> Dale"> - February 17, 2008"> + April 25, 2008"> 8"> @@ -47,14 +47,14 @@ Normally &dhpackage; is run from init.d using twistd, in which case no &dhpackage; options can be specified on the command-line, and all configuration variables are - read from the default config file locations of ${HOME}/.apt-p2p.conf and /etc/apt-p2p/apt-p2p.conf. + read from the default config file locations of ${HOME}/.apt-p2p/apt-p2p.conf and /etc/apt-p2p/apt-p2p.conf. The command is then: twistd -y /path/to/&dhpackage; - For a detailed listing of the twistd options, see + For a detailed listing of the twistd options, see twistd1 - &dhpackage; can also be run without twistd by executing: + &dhpackage; can also be run without twistd by executing: &dhpackage; @@ -63,31 +63,54 @@ DESCRIPTION - This manual page documents briefly the options available to the &dhpackage; command. &dhpackage; is a helper for downloading Debian packages files with APT. It will download any needed files from other Apt-P2P peers in a - bittorrent-like manner, and so reduce the strain on the Debian mirrors. + peer-to-peer manner, and so reduce the strain on the Debian mirrors. - In order for APT to send it's requests to &dhpackage;, the source.list entries must be modified to point to the + + APT SETUP + + In order for APT to send it's requests to &dhpackage;, the sources.list entries must be modified to point to the local &dhpackage; address. Unless you have changed the default port, then adding "localhost:9977/" to the beginning of each entry should be sufficient. For example, if your sources.list contains a line like this: - - deb http://ftp.us.debian.org/debian etch main contrib non-free - + +
deb http://ftp.us.debian.org/debian etch main contrib non-free
+ then replace it with this: - - deb http://localhost:9977/ftp.us.debian.org/debian etch main contrib non-free + +
deb http://localhost:9977/ftp.us.debian.org/debian etch main contrib non-free
+ + You can do the same with 'deb-src' lines as well, and &dhpackage; + will be used to download and share your source packages as well. + +
+ + PORT FORWARDING + + It is VERY important that Apt-P2P's ports be reachable by other peers. + This is needed both to share files with others, and to connect to + others through the DHT to find peers for files. If you aren't + accessible by others, you will not only not share anything, but your + performance during downloading will be affected. + + Apt-P2P uses a default port of 9977, over both TCP and UDP, for it's + communication. You can change this port in the + /etc/apt-p2p/apt-p2p.conf file, and use different ports for TCP and + UDP, if desired. Whatever port you use, make sure to forward it + through your NAT or firewall to improve your performance and share + with others. Information on port forwarding can be found here: + + - The port can be changed in the &dhpackage; config file in /etc/&dhpackage;/&dhpackage;.conf, - but it defaults to 9977. - + + OPTIONS These programs follow the usual &gnu; command line syntax, - with short options starting with a single dash (`-'), - and long options starting with two dashes (`--'). + with short options starting with a single dash ('-'), + and long options starting with two dashes ('--'). A summary of options is included below. @@ -103,7 +126,7 @@ the filename to print log messages to, - or `-' to log to standard output, if not specified then + or '-' to log to standard output, if not specified then /var/log/apt-p2p.log will be used