| 1 |
## Installing Apt-DHT |
## Installing Apt-P2P |
| 2 |
|
|
| 3 |
Make sure you have all the dependencies first. Then, |
Make sure you have all the dependencies first. Then, |
| 4 |
you'll need to download the code, as it has not been packaged yet. |
you'll need to download the code, as it has not been packaged yet. |
| 5 |
You can find the code in the [Git repository][10]. |
You can find the code in the [Git repository][10]. |
| 6 |
|
|
| 7 |
[10]: http://git.camrdale.org/?p=apt-dht.git;a=summary |
[10]: http://git.camrdale.org/?p=apt-p2p.git;a=summary |
| 8 |
|
|
| 9 |
## Configuring APT for Apt-DHT |
## Configuring APT for Apt-P2P |
| 10 |
|
|
| 11 |
Once you have downloaded Apt-DHT, you need to |
Once you have downloaded Apt-P2P, you need to |
| 12 |
update your `/etc/apt/sources.list` file to point APT towards |
update your `/etc/apt/sources.list` file to point APT towards |
| 13 |
Apt-DHT. This is done by adding localhost and the port that |
Apt-P2P. This is done by adding localhost and the port that |
| 14 |
Apt-DHT is running on to the beginning of your hostname. |
Apt-P2P is running on to the beginning of your hostname. |
| 15 |
For example, if you had a line like this: |
For example, if you had a line like this: |
| 16 |
|
|
| 17 |
deb http://ftp.us.debian.org/debian etch main contrib non-free |
deb http://ftp.us.debian.org/debian etch main contrib non-free |
| 18 |
|
|
| 19 |
and the Apt-DHT client is using the default Apt-DHT port (9977), then |
and the Apt-P2P client is using the default Apt-P2P port (9977), then |
| 20 |
you would modify the line to become: |
you would modify the line to become: |
| 21 |
|
|
| 22 |
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 |
| 23 |
|
|
| 24 |
## Other Initial Setup |
## Other Initial Setup |
| 25 |
|
|
| 26 |
Before you start to use Apt-DHT, you may want to check the client |
Before you start to use Apt-P2P, you may want to check the client |
| 27 |
configuration file `apt_dht_conf.py` to update it |
configuration file `apt_p2p_conf.py` to update it |
| 28 |
for your setup. In particular, you may want to configure a different |
for your setup. In particular, you may want to configure a different |
| 29 |
`PORT` option, and then |
`PORT` option, and then |
| 30 |
configure your router/NAT to forward that port (both TCP and UDP) to your |
configure your router/NAT to forward that port (both TCP and UDP) to your |
| 31 |
machine (see the [[FAQ]] for more info). |
machine (see the [[FAQ]] for more info). |
| 32 |
|
|
| 33 |
## Using Apt-DHT for the First Time |
## Using Apt-P2P for the First Time |
| 34 |
|
|
| 35 |
Before you can start downloading using Apt-DHT, you need to |
Before you can start downloading using Apt-P2P, you need to |
| 36 |
update APT (`apt-get update`) so it sees the new Apt-DHT lines |
update APT (`apt-get update`) so it sees the new Apt-P2P lines |
| 37 |
in the sources.list file. |
in the sources.list file. |
| 38 |
Apt-DHT is now ready to download packages for you. Any future |
Apt-P2P is now ready to download packages for you. Any future |
| 39 |
requests to APT (e.g. via an `apt-get install foo` or |
requests to APT (e.g. via an `apt-get install foo` or |
| 40 |
`apt-get dist-upgrade`) will be downloaded by Apt-DHT. |
`apt-get dist-upgrade`) will be downloaded by Apt-P2P. |