Apt-mirror: Difference between revisions

From Webhuis wiki
Jump to navigation Jump to search
Line 1: Line 1:
= apt-mirror =
= apt-mirror =
1. Opzet
1. Opzet
Opzetten centrale transparante mirror / cache voor packages om server en desktop installatie te faciliteren en te versnellen.
2. Uitwerking
Opzetten centrale transparante mirror / cache voor packages om server en desktop installatie te faciliteren
Goede hulp bij installatie:
en te versnellen.
http://www.howtoforge.com/debian-packages-proxy-with-apt-cacher en nog beter man apt-cacher
apt-cacher draait in standard mode. de proxy mode levert performance nadelen op vanwege de configuratie van hosts in /etc/hosts
2. Uitwerking
Bekijk installatie:
http://mirror.webhuis.nl:3142/apt-cacher
Goede hulp bij installatie:
Bekijk rapportage:
http://www.howtoforge.com/debian-packages-proxy-with-apt-cacher
en nog beter man apt-cacher
apt-cacher draait in standard mode. de proxy mode levert performance nadelen op vanwege de configuratie van hosts in /etc/hosts
Bekijk installatie:
http://mirror.webhuis.nl:3142/apt-cacher
Bekijk rapportage:
http://mirror.webhuis.nl:3142/apt-cacher/report
http://mirror.webhuis.nl:3142/apt-cacher/report
== apt-mirror server ==
== apt-mirror server ==
1. Opzet
1. Opzet
Opzetten centrale transparante mirror / cache voor packages met apt-cacher.
2. Uitwerking
Opzetten centrale transparante mirror / cache voor packages
Goede hulp bij installatie:
met apt-cacher.
http://www.howtoforge.com/debian-packages-proxy-with-apt-cacher en nog beter man apt-cacher
apt-get install apache2 apt-cacher
2. Uitwerking
Configuratie
apt-cacher.conf
Goede hulp bij installatie:
allowed_locations=ftp.nl.debian.org,security.debian.org,packages.webhuis.nl
http://www.howtoforge.com/debian-packages-proxy-with-apt-cacher
Voor lenny is hieraan toegevoegd:
en nog beter man apt-cacher
volatile.debian.org apt-cacher draait in standard mode
apt-get install apache2 apt-cacher
Configuratie apt-cacher.conf
allowed_locations=ftp.nl.debian.org,security.debian.org,packages.webhuis.nl
Voor lenny is hieraan toegevoegd:
volatile.debian.org
apt-cacher draait in standard mode
3. ToDo
3. ToDo
<pre>
<pre>
cache_dir=/var/cache/apt-cacher
cache_dir=/var/cache/apt-cacher

admin_email=root@localhost
admin_email=root@localhost


daemon_port=3142
daemon_port=3142

group=www-data
group=www-data
user=www-data
user=www-data


allowed_hosts=*
allowed_hosts=*
denied_hosts=
denied_hosts=

allowed_hosts_6=fec0::/16
allowed_hosts_6=fec0::/16
denied_hosts_6=
denied_hosts_6=

allowed_locations=ftp.nl.debian.org,security.debian.org,packages.webhuis.nl,volatile.debian.org/debian-volatile
allowed_locations=ftp.nl.debian.org,security.debian.org,packages.webhuis.nl,volatile.debian.org/debian-volatile

generate_reports=1
generate_reports=1

clean_cache=1
clean_cache=1

logdir=/var/log/apt-cacher
logdir=/var/log/apt-cacher

expire_hours=0
expire_hours=0


use_proxy=0
use_proxy=0



limit=0
limit=0

debug=0
debug=0
</pre>
</pre>

== apt-mirror client ==
== apt-mirror client ==
<pre>
<pre>
#
#
# /etc/apt/sources.list
# /etc/apt/sources.list
#
#
#
# etch
#
#
deb http://mirror.webhuis.nl:3142/ftp.nl.debian.org/debian etch main
# etch
#deb http://ftp.nl.debian.org/debian etch main
#
deb http://mirror.webhuis.nl:3142/ftp.nl.debian.org/debian etch main
deb-src http://mirror.webhuis.nl:3142/ftp.nl.debian.org/debian etch main
#deb http://ftp.nl.debian.org/debian etch main
#deb http://yourcache.example.com:3142/ftp.au.debian.org/debian unstable main contrib non-free
deb-src http://mirror.webhuis.nl:3142/ftp.nl.debian.org/debian etch main
deb http://mirror.webhuis.nl:3142/security.debian.org etch/updates main
deb-src http://mirror.webhuis.nl:3142/security.debian.org/ etch/updates main contrib non-free
## Packages Webhuis
#deb http://yourcache.example.com:3142/ftp.au.debian.org/debian unstable main contrib non-free
#deb http://mirror.webhuis.nl:3142/packages.webhuis.nl/debian etch non-free
deb http://mirror.webhuis.nl:3142/security.debian.org etch/updates main
deb-src http://mirror.webhuis.nl:3142/security.debian.org/ etch/updates main contrib non-free
#
# Packages Webhuis
#
deb http://mirror.webhuis.nl:3142/packages.webhuis.nl/debian etch non-free
</pre>
</pre>
<hr>
<hr>

Revision as of 11:13, 10 January 2011

apt-mirror

1. Opzet Opzetten centrale transparante mirror / cache voor packages om server en desktop installatie te faciliteren en te versnellen. 2. Uitwerking Goede hulp bij installatie: http://www.howtoforge.com/debian-packages-proxy-with-apt-cacher en nog beter man apt-cacher apt-cacher draait in standard mode. de proxy mode levert performance nadelen op vanwege de configuratie van hosts in /etc/hosts Bekijk installatie: http://mirror.webhuis.nl:3142/apt-cacher Bekijk rapportage: http://mirror.webhuis.nl:3142/apt-cacher/report

apt-mirror server

1. Opzet Opzetten centrale transparante mirror / cache voor packages met apt-cacher. 2. Uitwerking Goede hulp bij installatie: http://www.howtoforge.com/debian-packages-proxy-with-apt-cacher en nog beter man apt-cacher apt-get install apache2 apt-cacher Configuratie apt-cacher.conf allowed_locations=ftp.nl.debian.org,security.debian.org,packages.webhuis.nl Voor lenny is hieraan toegevoegd: volatile.debian.org apt-cacher draait in standard mode 3. ToDo

cache_dir=/var/cache/apt-cacher
admin_email=root@localhost
daemon_port=3142
group=www-data
user=www-data
allowed_hosts=*
denied_hosts=
allowed_hosts_6=fec0::/16
denied_hosts_6=
allowed_locations=ftp.nl.debian.org,security.debian.org,packages.webhuis.nl,volatile.debian.org/debian-volatile
generate_reports=1
clean_cache=1
logdir=/var/log/apt-cacher
expire_hours=0
use_proxy=0
limit=0
debug=0

apt-mirror client

#
#  /etc/apt/sources.list
#     
#                                                                                                                                         
# etch
#
deb http://mirror.webhuis.nl:3142/ftp.nl.debian.org/debian etch main
#deb http://ftp.nl.debian.org/debian etch main
deb-src http://mirror.webhuis.nl:3142/ftp.nl.debian.org/debian etch main
#deb http://yourcache.example.com:3142/ftp.au.debian.org/debian unstable main contrib non-free
deb http://mirror.webhuis.nl:3142/security.debian.org etch/updates main
deb-src http://mirror.webhuis.nl:3142/security.debian.org/ etch/updates main contrib non-free
##  Packages Webhuis
#deb     http://mirror.webhuis.nl:3142/packages.webhuis.nl/debian     etch non-free 

Terug naar: Webhuis Infrastructuur